Skip to content

Commit

Permalink
Remove unused "require 'nokogiri'"
Browse files Browse the repository at this point in the history
After removing Nokogiri as a dependency (see rapid7#97 and 042c2a3)
requiring Nexpose fails without nokogiri installed.

See rapid7@042c2a3

To reproduce this issue you can use this minimalistic Gemfile:
```ruby
source 'https://rubygems.org'

gem 'nexpose'
```

Using the `bundle exec` command you can exclude any gems not specified
in your Gemfile from your environment:
```
aus-mac-1033 @ ~/g/r/nexpose-polling λ bundle exec ruby -e "require 'nexpose'"
/Users/ecarey/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/nexpose-0.9.3/lib/nexpose.rb:53:in `require': cannot load such file -- nokogiri (LoadError)
        from /Users/ecarey/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/nexpose-0.9.3/lib/nexpose.rb:53:in `<top (required)>'
        from -e:1:in `require'
        from -e:1:in `<main>'
```
  • Loading branch information
erran committed Jan 27, 2015
1 parent 5edef56 commit 4266976
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/nexpose.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
require 'date'
require 'time'
require 'rexml/document'
require 'nokogiri'
require 'net/https'
require 'net/http'
require 'uri'
Expand Down

0 comments on commit 4266976

Please sign in to comment.