rapid7/nexpose-client — pull request #9 by thesp0nge (2012-05-09 08:52:44+00:00)
Title: Remove version namespace pollution

Hi guys, having constants in the gemspec can be a bad idea since it may cause a namespace pollution.

I'm using my fork in a Padrino web application and when asking for the console (padrino console) using ruby 1.8, interpreter complains that VERSION was already defined.
Ruby uses it values (0.0.9x) and it raises a runtime exception:
var/www/railsapp/deploy/engage/shared/bundle/ruby/1.8/bundler/gems/nexpose-client-15a660aa0a30/nexpose.gemspec:4: warning: already initialized constant VERSION
/var/www/railsapp/deploy/engage/shared/bundle/ruby/1.8/bundler/gems/nexpose-client-15a660aa0a30/nexpose.gemspec:4: warning: already initialized constant VERSION
=> Loading production console (Padrino v.0.10.5)
/usr/lib/ruby/1.8/e2mmap.rb:51: Use Ruby 1.1 (RuntimeError)
from /usr/lib/ruby/1.8/irb.rb:12:in `require'
from /usr/lib/ruby/1.8/irb.rb:12
from /var/www/railsapp/deploy/engage/shared/bundle/ruby/1.8/gems/padrino-core-0.10.5/lib/padrino-core/cli/base.rb:66:in `require'
from /var/www/railsapp/deploy/engage/shared/bundle/ruby/1.8/gems/padrino-core-0.10.5/lib/padrino-core/cli/base.rb:66:in `console'
from /var/www/railsapp/deploy/engage/shared/bundle/ruby/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in `send'
from /var/www/railsapp/deploy/engage/shared/bundle/ruby/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
from /var/www/railsapp/deploy/engage/shared/bundle/ruby/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
from /var/www/railsapp/deploy/engage/shared/bundle/ruby/1.8/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
from /var/www/railsapp/deploy/engage/shared/bundle/ruby/1.8/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
from /var/www/railsapp/deploy/engage/shared/bundle/ruby/1.8/gems/padrino-core-0.10.5/bin/padrino:9
from /var/www/railsapp/deploy/engage/shared/bundle/ruby/1.8/bin/padrino:19:in `load'
from /var/www/railsapp/deploy/engage/shared/bundle/ruby/1.8/bin/padrino:19