rdf-jena 0.2.0-java → 0.2.1-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: baf793382f28bf290975dbd688aeb28d9c30a8d0
4
- data.tar.gz: e6c37ac80c1c9cb30e9a918275630d3e72bb05dc
3
+ metadata.gz: 868cb1f5af1be2c1578939d36e2b2b0fa6f58b09
4
+ data.tar.gz: c5f6457533f403117219df97644a64c4fb24686a
5
5
  SHA512:
6
- metadata.gz: 267d29c639c877ded8bbe4cdaa623585de12f001432c08c73221b4a626c97e4223ae6d013fa30b132c3ca456d757ad19553352ea4df3805df100925c40a94627
7
- data.tar.gz: e44215e25039a9c988eb150a8061a51696173fb04f2995577c56f24837123fd546b6c867351d1d16ff8a9a8ad24b4451961b234e985f0ceb86564ee30e07c737
6
+ metadata.gz: 9543b9416c71273941352d1a3095f962956c2524002104ad27adda61c722cd32e034dc4a04a50f01bccf4761ff6e921c23976260c8bea012da6372a01b5b28f9
7
+ data.tar.gz: 9cf3ec05d98dcdddc67be3e075560770912f49073b4a30e99d2f89c05244b923b32e1c8c8a01f7de08336af25403b686072c8b8ae09759815dc141dcf1ac2fd2
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ All notable changes to rdf-jena will be documented in this file. The curated log
4
4
 
5
5
  This project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## [0.2.1][0.2.1] - 2015-12-03
8
+ ### Added
9
+ - Included install-time checks that JRuby is running on Java 8.
10
+
7
11
  ## 0.2.0 - 2015-12-01
8
12
  ### Fixed
9
13
  - Alias `each_statement` to `each`. The java method iterateStatements is now provided as both ruby methods.
@@ -22,3 +26,4 @@ This project adheres to [Semantic Versioning](http://semver.org/).
22
26
  - Supporting boolean flag on RDF::Repository to union named graphs with the default when retrieved (see `each_graph`).
23
27
 
24
28
  [RDF.rb]: https://github.com/ruby-rdf/rdf
29
+ [0.2.1]: https://github.com/abargnesi/rdf-jena/compare/0.2.0...0.2.1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -0,0 +1,67 @@
1
+ # Check that Java and JRuby requirements are met.
2
+ #
3
+ # Requirements
4
+ # - JRuby as the current ruby engine.
5
+ # - Java 8.
6
+
7
+ # Definitions
8
+
9
+ JRUBY_MESSAGE = %Q{
10
+ The rdf-jena gem only runs on JRuby due to dependency on Apache Jena.
11
+
12
+ Requirements
13
+ - Java 8 (http://www.oracle.com/technetwork/java/javase/downloads/)
14
+ - JRuby 1.7 or 9k series (http://jruby.org/download)
15
+
16
+ Steps
17
+ - Install Java 8 or set as the default Java for your system.
18
+ - Install JRuby.
19
+ - Run "gem install rdf-jena" using JRuby.
20
+ }
21
+
22
+ JAVA8_MESSAGE = %Q{
23
+ The rdf-jena gem only runs on Java 8 due to dependency on Apache Jena 3.x series.
24
+
25
+ Requirements
26
+ - Java 8 (http://www.oracle.com/technetwork/java/javase/downloads/)
27
+ - JRuby 1.7 or 9k series (http://jruby.org/download)
28
+
29
+ Steps
30
+ - Install Java 8 or set as the default Java for your system.
31
+ - Run "gem install rdf-jena" using JRuby.
32
+ }
33
+
34
+ def running_jruby?
35
+ RUBY_ENGINE =~ /^jruby/
36
+ end
37
+
38
+ def running_java8?
39
+ return false if not running_jruby?
40
+
41
+ java_import 'java.lang.System'
42
+ java_version = System.get_property('java.version')
43
+
44
+ return java_version =~ /^#{Regexp.escape('1.8.0')}/
45
+ end
46
+
47
+ # Checks
48
+
49
+ if not running_jruby?
50
+ $stderr.puts JRUBY_MESSAGE
51
+ exit 10
52
+ end
53
+
54
+ if not running_java8?
55
+ $stderr.puts JAVA8_MESSAGE
56
+ exit 20
57
+ end
58
+
59
+ # Checks passed, return empty success Makefile to tell JRuby that
60
+ # all is well.
61
+ File.open('Makefile', 'w') do |f|
62
+ f.puts "all:"
63
+ f.puts "\t@true"
64
+ f.puts "install:"
65
+ f.puts "\t@true"
66
+ end
67
+ exit 0
Binary file
data/rdf-jena.gemspec CHANGED
@@ -33,11 +33,13 @@ Gem::Specification.new do |spec|
33
33
  'VERSION',
34
34
  ]
35
35
 
36
+ spec.extensions << 'ext/jruby/extconf.rb'
36
37
  spec.platform = 'java'
37
38
  spec.add_runtime_dependency 'rdf', '1.99.0'
38
39
 
39
40
  # development gems
40
41
  spec.add_development_dependency 'rdf-spec', '1.99.0'
42
+ spec.add_development_dependency 'rdf-vocab', '~> 0.8.7'
41
43
  spec.add_development_dependency 'minitest', '~> 5.7'
42
44
  spec.add_development_dependency 'rake', '~> 10.4'
43
45
  spec.add_development_dependency 'rake-compiler', '~> 0.9'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-jena
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: java
6
6
  authors:
7
7
  - Anthony Bargnesi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-01 00:00:00.000000000 Z
11
+ date: 2015-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.99.0
41
+ - !ruby/object:Gem::Dependency
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: 0.8.7
47
+ name: rdf-vocab
48
+ prerelease: false
49
+ type: :development
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.8.7
41
55
  - !ruby/object:Gem::Dependency
42
56
  requirement: !ruby/object:Gem::Requirement
43
57
  requirements:
@@ -126,12 +140,14 @@ description: " Implements an RDF.rb repository for Apache Jena running on JRuby.
126
140
  email:
127
141
  - abargnesi@gmail.com
128
142
  executables: []
129
- extensions: []
143
+ extensions:
144
+ - ext/jruby/extconf.rb
130
145
  extra_rdoc_files: []
131
146
  files:
132
147
  - CHANGELOG.md
133
148
  - README.md
134
149
  - VERSION
150
+ - ext/jruby/extconf.rb
135
151
  - lib/rdf/jena.rb
136
152
  - lib/rdf/jena/jars/rdf-jena-0.2.0.jar
137
153
  - lib/rdf/jena/version.rb