rake-compiler 1.0.4 → 1.0.5

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
- SHA1:
3
- metadata.gz: cd44b9624dc0fb5e6f727017cb9a1c9ac9865672
4
- data.tar.gz: 35d69b334abd18af368c1d2f4f0c4c33a8aaf54f
2
+ SHA256:
3
+ metadata.gz: 6ec13a4776785fb8e2e60e4d9cc86c89f1cdcec0651b091a269acde63368b554
4
+ data.tar.gz: a940f9814f4592f7f390d37c4d8398a3a00f32f68e6c0f1995bff433bced525a
5
5
  SHA512:
6
- metadata.gz: 6ff91d807ddec5ce9815c07c228d26f0a7cdb83e0a76ed86d0bb66b16e29fee6fec06ab161ac3377d32f512e9e45114557150c4b4adff1104da22beee24c3027
7
- data.tar.gz: 75047010d54066c4d961cf97aea7931e351d05e2a9a77747a1897e76cf0e812147913b05ca49aed701c1d86cd7d8f286515e413d10de8a3bc2226e1832ac5cd1
6
+ metadata.gz: e230522f659107c8343c099409a5848b284805ff9ac372b5305347a099eb6d4bee0d77b6880ac6f27076403cb428915d27fd6e24fd697826768821bd4577ad72
7
+ data.tar.gz: f28686e824c86ad06fc6430f10109a9546cb5fd87c5c6cd608ccd823b59675a117ff449d55f5378e2265bd91a4a79048c72fd4d57dfef5a04e011c1e097a92ce
@@ -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.5'
33
- @target_version = '1.5'
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
- jruby_cpath = ENV['JRUBY_PARENT_CLASSPATH'] || ENV['JRUBY_HOME'] &&
215
- Dir.glob("#{File.expand_path(ENV['JRUBY_HOME'])}/lib/*.jar").
216
- join(File::PATH_SEPARATOR)
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
@@ -1,51 +1,8 @@
1
1
  require 'rubygems/package_task'
2
2
 
3
- GEM_SPEC = Gem::Specification.new do |s|
4
- # basic information
5
- s.name = "rake-compiler"
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
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: 2017-05-26 00:00:00.000000000 Z
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: 2.5.2
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.