Skip to content

51cards/Stack-Exchange-Bounty-Ad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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?

About

Programmatic Bounty Advertisement

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages