Top Level Namespace

Defined Under Namespace

Modules: RDF

Constant Summary collapse

JRUBY_MESSAGE =

Definitions

%Q{
The rdf-jena gem only runs on JRuby due to dependency on Apache Jena.

Requirements
- Java 8 (http://www.oracle.com/technetwork/java/javase/downloads/)
- JRuby 1.7 or 9k series (http://jruby.org/download)

Steps
- Install Java 8 or set as the default Java for your system.
- Install JRuby.
- Run "gem install rdf-jena" using JRuby.
}
JAVA8_MESSAGE =
%Q{
The rdf-jena gem only runs on Java 8 due to dependency on Apache Jena 3.x series.

Requirements
- Java 8 (http://www.oracle.com/technetwork/java/javase/downloads/)
- JRuby 1.7 or 9k series (http://jruby.org/download)

Steps
- Install Java 8 or set as the default Java for your system.
- Run "gem install rdf-jena" using JRuby.
}

Instance Method Summary collapse

Instance Method Details

#running_java8?Boolean

Returns:

  • (Boolean)


38
39
40
41
42
43
44
45
# File 'ext/jruby/extconf.rb', line 38

def running_java8?
  return false if not running_jruby?

  java_import 'java.lang.System'
  java_version = System.get_property('java.version')

  return java_version =~ /^#{Regexp.escape('1.8.0')}/
end

#running_jruby?Boolean

Returns:

  • (Boolean)


34
35
36
# File 'ext/jruby/extconf.rb', line 34

def running_jruby?
  RUBY_ENGINE =~ /^jruby/
end