rake-compiler 1.0.7 → 1.0.8

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
  SHA256:
3
- metadata.gz: 696eb29e8948609214395ddd4f48dc06dbb543699028810d1c971b421685beaa
4
- data.tar.gz: 9c0947de89692e13350adee50106bdf5234d22a1c477a674e1a832a259b8c5f8
3
+ metadata.gz: 196b8e433ab869ede009a6b0691c86e228e929143102558f7bc7ba30d7c33a32
4
+ data.tar.gz: 23d6a72c3bfbd1cded05b7b58d5ccac030209da10b7f214392584520743f4c39
5
5
  SHA512:
6
- metadata.gz: e610e8f25275813ac474c116dd2d0767b53fd5bd4f1e3cd45004a4b0749708850cca8f3da4c1658f0b71c71b3298ad15ec620b55a17434dd520c4071c948395d
7
- data.tar.gz: de264d6dcf8c7f95e7a47a8f8c74d7422cb6b9f95727e42f1590d1e361ccee1b6b505214880211306efb6a161dde0be4666e7d1fd0cffbdb040af9726211a677
6
+ metadata.gz: 704df0198fbeb45b4d1f033e43e49a440088ca7b34107d93e1d11f818f4d2307a63614d480f707ca39ba44b74e153a913bc6bb568ea8debfd6882529ba567868
7
+ data.tar.gz: a90fd28b0b81f88ede892c914676acb1f2ac6791df8ba443800b5e9ad281b62104d8e000d6eae0863c44ea9cb313bb4d7b27cf146007c4f6f22e3b003773efbf
@@ -1,3 +1,14 @@
1
+ === 1.0.8 / 2019-09-21
2
+
3
+ * Enhancements:
4
+ * Added Rake::JavaExtensionTask#encoding= to pass the -encoding option to
5
+ javac.
6
+ #157 [Patch by Tiago Dias]
7
+
8
+ * Bugfixes:
9
+ * Drop EOL'd rubyforge_project directive from .gemspec.
10
+ #155 [Patch by Olle Jonsson]
11
+
1
12
  === 1.0.7 / 2019-01-04
2
13
 
3
14
  * Bugfixes:
@@ -17,6 +17,8 @@ module Rake
17
17
  # Generate class files for specific VM version
18
18
  attr_accessor :target_version
19
19
 
20
+ attr_accessor :encoding
21
+
20
22
  def platform
21
23
  @platform ||= 'java'
22
24
  end
@@ -29,10 +31,11 @@ module Rake
29
31
  super
30
32
  @source_pattern = '**/*.java'
31
33
  @classpath = nil
32
- @java_compiling = nil
33
34
  @debug = false
34
35
  @source_version = '1.6'
35
36
  @target_version = '1.6'
37
+ @encoding = nil
38
+ @java_compiling = nil
36
39
  end
37
40
 
38
41
  def define
@@ -95,7 +98,7 @@ execute the Rake compilation task using the JRuby interpreter.
95
98
  classpath_arg = java_classpath_arg(@classpath)
96
99
  debug_arg = @debug ? '-g' : ''
97
100
 
98
- sh "javac #{java_extdirs_arg} -target #{@target_version} -source #{@source_version} -Xlint:unchecked #{debug_arg} #{classpath_arg} -d #{tmp_path} #{source_files.join(' ')}"
101
+ sh "javac #{java_encoding_arg} #{java_extdirs_arg} -target #{@target_version} -source #{@source_version} -Xlint:unchecked #{debug_arg} #{classpath_arg} -d #{tmp_path} #{source_files.join(' ')}"
99
102
 
100
103
  # Checkpoint file
101
104
  touch "#{tmp_path}/.build"
@@ -193,6 +196,13 @@ execute the Rake compilation task using the JRuby interpreter.
193
196
  java_extdir = extdirs.nil? ? "" : "-extdirs \"#{extdirs}\""
194
197
  end
195
198
 
199
+ #
200
+ # Build an encoding argument
201
+ #
202
+ def java_encoding_arg
203
+ @encoding.nil? ? "" : "-encoding \"#{@encoding}\""
204
+ end
205
+
196
206
  #
197
207
  # Discover the Java/JRuby classpath and build a classpath argument
198
208
  #
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.7
4
+ version: 1.0.8
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: 2019-01-03 00:00:00.000000000 Z
12
+ date: 2019-09-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -145,7 +145,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  - !ruby/object:Gem::Version
146
146
  version: 1.8.23
147
147
  requirements: []
148
- rubygems_version: 3.0.2
148
+ rubyforge_project:
149
+ rubygems_version: 2.7.6.2
149
150
  signing_key:
150
151
  specification_version: 4
151
152
  summary: Rake-based Ruby Extension (C, Java) task generator.