Skip to content

Commit

Permalink
Remove begin rescue around requiring java
Browse files Browse the repository at this point in the history
gemspec will not allow the gem to be installed on anything other than jruby
  • Loading branch information
zenonas committed Oct 16, 2014
1 parent b107c47 commit 6445a3a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/snmpjr/wrappers/snmp4j.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
class Snmpjr
module Wrappers
begin
require 'java'
require 'snmpjr/wrappers/snmp4j-2.3.1.jar'
rescue
raise "Snmpjr requires JRuby"
end
require 'java'
require 'snmpjr/wrappers/snmp4j-2.3.1.jar'

include_package 'org.snmp4j'
end
Expand Down

0 comments on commit 6445a3a

Please sign in to comment.