Jan Lelis
Posts: 136
Nickname: rbjl
Registered: Aug, 2009
|
Jan Lelis is an IT student from Dresden/Germany
|
|
|
|
Requirements: A Mini RubyGems plugin
|
Posted: Oct 3, 2010 8:25 AM
|
|
|
This post originated from an RSS feed registered with Ruby Buzz
by Jan Lelis.
|
Original Post: Requirements: A Mini RubyGems plugin
Feed Title: rbJ*_*L.net
Feed URL: http://feeds.feedburner.com/rbJL
Feed Description: Hi, I am a fan of Ruby and like to explore it and the world around ;).
So I started this blog, where I am publishing code snippets, tutorials for beginners as well as general thoughts about Ruby, the web or programming in general.
|
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Jan Lelis
Latest Posts From rbJ*_*L.net
|
|
The .gemspec file of a gem allows to specify requirements for that gem – but usually you do not get to see them. These five lines patch RubyGems, so that gem displays the requirements of a gem after it has been installed:
Gem.post_install do |gem|
gem.spec.requirements.each{ |req|
puts "Please note, the #{gem.spec.name} gem requires: #{req}"
}
end
github, gem install requirements
CC-BY (DE)
Read: Requirements: A Mini RubyGems plugin
|
|