Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 925 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 925 Bytes

Stack Exchange Bounty Ad

Setting Up The Environment

  • Use RVM or rbenv to install and manage Ruby 1.9.3
  • Run bundle install to load up the gems. This part will likely give you lots of grief due to ImageMagick and RMagick2.
  • No errors? Fantastic!

Generating Images

Feel free to change the site parameter to any fully qualified StackExchange domain.

Test Specific Values

Via irb or a script in this directory:

require './bounty.rb'
File.open('image.png', 'wb') { |f| f.write(bounty_image(nil, #{number_of_bounties}, #{total_rep_available}).blob) }

What now?

I dunno. I think you're done, right?