From 6445a3afa8274465928b48576a06cb516a97085a Mon Sep 17 00:00:00 2001 From: Zen Kyprianou Date: Thu, 16 Oct 2014 17:28:46 +0100 Subject: [PATCH] Remove begin rescue around requiring java gemspec will not allow the gem to be installed on anything other than jruby --- lib/snmpjr/wrappers/snmp4j.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/snmpjr/wrappers/snmp4j.rb b/lib/snmpjr/wrappers/snmp4j.rb index 8b1902e..06263a9 100644 --- a/lib/snmpjr/wrappers/snmp4j.rb +++ b/lib/snmpjr/wrappers/snmp4j.rb @@ -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