The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Requirements: A Mini RubyGems plugin

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
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
Reply to this message Reply

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

Advertisement

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

Topic: Achieving C99 compliance via C++ Previous Topic   Next Topic Topic: RPCFN: Japanese Mosaic Problem (#14)

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use