rake-compiler 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/History.txt +8 -0
- data/lib/rake/javaextensiontask.rb +9 -6
- data/tasks/gem.rake +3 -46
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6ec13a4776785fb8e2e60e4d9cc86c89f1cdcec0651b091a269acde63368b554
|
4
|
+
data.tar.gz: a940f9814f4592f7f390d37c4d8398a3a00f32f68e6c0f1995bff433bced525a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e230522f659107c8343c099409a5848b284805ff9ac372b5305347a099eb6d4bee0d77b6880ac6f27076403cb428915d27fd6e24fd697826768821bd4577ad72
|
7
|
+
data.tar.gz: f28686e824c86ad06fc6430f10109a9546cb5fd87c5c6cd608ccd823b59675a117ff449d55f5378e2265bd91a4a79048c72fd4d57dfef5a04e011c1e097a92ce
|
data/History.txt
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
=== 1.0.5 / 2018-08-31
|
2
|
+
|
3
|
+
* Enhancements:
|
4
|
+
* Improve JRuby class pass detection.
|
5
|
+
#147 [Patch by Prashant Vithani]
|
6
|
+
* Update the default source and target versions to Java 6.
|
7
|
+
#148 [Patch by Prashant Vithani]
|
8
|
+
|
1
9
|
=== 1.0.4 / 2017-05-27
|
2
10
|
|
3
11
|
* Enhancements:
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require "rbconfig"
|
2
|
+
|
1
3
|
require 'rake/baseextensiontask'
|
2
4
|
|
3
5
|
# Define a series of tasks to aid in the compilation of Java extensions for
|
@@ -29,8 +31,8 @@ module Rake
|
|
29
31
|
@classpath = nil
|
30
32
|
@java_compiling = nil
|
31
33
|
@debug = false
|
32
|
-
@source_version = '1.
|
33
|
-
@target_version = '1.
|
34
|
+
@source_version = '1.6'
|
35
|
+
@target_version = '1.6'
|
34
36
|
end
|
35
37
|
|
36
38
|
def define
|
@@ -211,11 +213,12 @@ execute the Rake compilation task using the JRuby interpreter.
|
|
211
213
|
end
|
212
214
|
end
|
213
215
|
unless jruby_cpath
|
214
|
-
|
215
|
-
|
216
|
-
|
216
|
+
libdir = RbConfig::CONFIG['libdir']
|
217
|
+
if libdir.start_with? "classpath:"
|
218
|
+
raise 'Cannot build with jruby-complete'
|
219
|
+
end
|
220
|
+
jruby_cpath = File.join(libdir, "jruby.jar")
|
217
221
|
end
|
218
|
-
raise "JRUBY_HOME or JRUBY_PARENT_CLASSPATH are not set" unless jruby_cpath
|
219
222
|
jruby_cpath += File::PATH_SEPARATOR + args.join(File::PATH_SEPARATOR) unless args.empty?
|
220
223
|
jruby_cpath ? "-cp \"#{jruby_cpath}\"" : ""
|
221
224
|
end
|
data/tasks/gem.rake
CHANGED
@@ -1,51 +1,8 @@
|
|
1
1
|
require 'rubygems/package_task'
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
s.version = "1.0.4"
|
7
|
-
s.platform = Gem::Platform::RUBY
|
8
|
-
|
9
|
-
# description and details
|
10
|
-
s.summary = 'Rake-based Ruby Extension (C, Java) task generator.'
|
11
|
-
s.description = "Provide a standard and simplified way to build and package\nRuby extensions (C, Java) using Rake as glue."
|
12
|
-
|
13
|
-
# requirements
|
14
|
-
s.required_ruby_version = ">= 1.8.7"
|
15
|
-
s.required_rubygems_version = ">= 1.8.23"
|
16
|
-
|
17
|
-
# dependencies
|
18
|
-
s.add_dependency 'rake'
|
19
|
-
|
20
|
-
# development dependencies
|
21
|
-
s.add_development_dependency 'rspec', '~> 2.8.0'
|
22
|
-
s.add_development_dependency 'cucumber', '~> 1.1.4'
|
23
|
-
|
24
|
-
# components, files and paths
|
25
|
-
s.files = FileList["features/**/*.{feature,rb}", "bin/rake-compiler",
|
26
|
-
"lib/**/*.rb", "spec/spec.opts", "spec/**/*.rb",
|
27
|
-
"tasks/**/*.rake", "Rakefile", "Gemfile",
|
28
|
-
"*.{rdoc,txt,yml}"]
|
29
|
-
|
30
|
-
s.bindir = 'bin'
|
31
|
-
s.executables = ['rake-compiler']
|
32
|
-
|
33
|
-
s.require_path = 'lib'
|
34
|
-
|
35
|
-
# documentation
|
36
|
-
s.rdoc_options << '--main' << 'README.rdoc' << '--title' << 'rake-compiler -- Documentation'
|
37
|
-
|
38
|
-
s.extra_rdoc_files = %w(README.rdoc LICENSE.txt History.txt)
|
39
|
-
|
40
|
-
# project information
|
41
|
-
s.homepage = 'https://github.com/rake-compiler/rake-compiler'
|
42
|
-
s.rubyforge_project = 'rake-compiler'
|
43
|
-
s.licenses = ['MIT']
|
44
|
-
|
45
|
-
# author and contributors
|
46
|
-
s.authors = ['Kouhei Sutou', 'Luis Lavena']
|
47
|
-
s.email = ['kou@cozmixng.org', 'luislavena@gmail.com']
|
48
|
-
end
|
3
|
+
gemspec_path = File.join(__dir__, "..", "rake-compiler.gemspec")
|
4
|
+
gemspec_path = File.expand_path(gemspec_path)
|
5
|
+
GEM_SPEC = eval(File.read(gemspec_path), TOPLEVEL_BINDING, gemspec_path)
|
49
6
|
|
50
7
|
gem_package = Gem::PackageTask.new(GEM_SPEC) do |pkg|
|
51
8
|
pkg.need_tar = false
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake-compiler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-08-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
134
|
version: 1.8.23
|
135
135
|
requirements: []
|
136
136
|
rubyforge_project: rake-compiler
|
137
|
-
rubygems_version:
|
137
|
+
rubygems_version: 3.0.0.beta1
|
138
138
|
signing_key:
|
139
139
|
specification_version: 4
|
140
140
|
summary: Rake-based Ruby Extension (C, Java) task generator.
|