rake-compiler 1.2.4 → 1.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/History.md +25 -0
  3. data/lib/rake/extensiontask.rb +7 -4
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 89347c74f92c88f38e362b44957b4f3995846f9354f3462bd2774e9fab7fe2a9
4
- data.tar.gz: 0e074b3563de7228bcf09036527eb2756653e519c3493926fdfeda3b64761b92
3
+ metadata.gz: f243037733734893d8bfccf0e0ff1ec756a4c61337b2b5db1801661e1b1f3568
4
+ data.tar.gz: 3865a0acf0c3d223bf0581619d91be63c60408835f315d1764a6633ec2dc70bd
5
5
  SHA512:
6
- metadata.gz: 6d9d1a747ff0ad05422b8bf96de8f5be572f405a66ba8dbcb9a97fd6c4a343358f27de553ab02b9c5674ed52dd6697144dc2b176ec7da3d2eea99ae28f9fc5d4
7
- data.tar.gz: 9350f3c428d92e6a9b0a08ecdd0b220043d3990ffb1fcaf33aaf4e9ffd513d0001f0bcf0e9a78964392f135dd9263d45e21b2d8dbe33e74f4582fdafd8387fa4
6
+ metadata.gz: 88e96d4827f56313265d96945ddf5e26a1dd5551248af1726c72346d9d94545060efdb31044bab5e0149279d6830c8710167e6bfa82c56caf7458c0fe78f79c1
7
+ data.tar.gz: 4e12dafaf79b2bcc148ee5e16284258caa411ede99d851936beb8a462dcaeeac0b2603a9397a135cabdc585b9f2ad7e6ada13b84eb695cd5788b7c1bcab41c38
data/History.md CHANGED
@@ -1,3 +1,28 @@
1
+ ### 1.2.6 / 2024-01-23
2
+
3
+ * Improvements:
4
+ * GH-232 GH-233: Changed to use `require` instead of copying content
5
+ of `rbconfig.rb` for `__FILE__` in `rbconfig.rb`.
6
+ [Patch by ParadoxV5]
7
+
8
+ * Thanks:
9
+ * ParadoxV5
10
+
11
+ ### 1.2.5 / 2023-08-03
12
+
13
+ * Fixes:
14
+ * GH-225: Fixed a bug that `rake compile` may not work on Windows.
15
+ [Reported by Lukasz Suleja]
16
+ * GH-224 GH-226: Fixed a bug that 1.2.4 doesn't work on Ruby < 2.6.
17
+ [Reported by Ivo Anjo]
18
+ [Patch by Mike Dalessio and Akira Matsuda separately]
19
+
20
+ * Thanks:
21
+ * Lukasz Suleja
22
+ * Ivo Anjo
23
+ * Mike Dalessio
24
+ * Akira Matsuda
25
+
1
26
  ### 1.2.4 / 2023-08-01
2
27
 
3
28
  * Enhancements:
@@ -163,7 +163,7 @@ module Rake
163
163
  task "copy:#{@name}:#{platf}:#{ruby_ver}" => [lib_path, tmp_binary_path, "#{tmp_path}/Makefile"] do
164
164
  # install in lib for native platform only
165
165
  unless for_platform
166
- relative_lib_path = Pathname(lib_path).relative_path_from(tmp_path)
166
+ relative_lib_path = Pathname(lib_path).relative_path_from(Pathname.new(tmp_path))
167
167
 
168
168
  make_command_line = Shellwords.shellsplit(make)
169
169
  make_command_line << "install"
@@ -429,7 +429,7 @@ Java extension should be preferred.
429
429
  f.puts("require 'rbconfig'")
430
430
  f.puts("original_enable_shared = RbConfig::CONFIG['ENABLE_SHARED']")
431
431
  f.puts(fake_rb(for_platform, ruby_ver))
432
- f.puts(File.read(t.prerequisites.first))
432
+ f.puts("require #{t.prerequisites.first.dump}")
433
433
  f.puts("RbConfig::CONFIG['ENABLE_SHARED'] = original_enable_shared")
434
434
  end
435
435
  end
@@ -513,12 +513,15 @@ Java extension should be preferred.
513
513
  def find_make
514
514
  candidates = ["gmake", "make"]
515
515
  paths = (ENV["PATH"] || "").split(File::PATH_SEPARATOR)
516
+ paths = paths.collect do |path|
517
+ Pathname(path).cleanpath
518
+ end
516
519
 
517
520
  exeext = RbConfig::CONFIG["EXEEXT"]
518
521
  candidates.each do |candidate|
519
522
  paths.each do |path|
520
- make = File.join(path, "#{candidate}#{exeext}")
521
- return make if File.executable?(make)
523
+ make = path + "#{candidate}#{exeext}"
524
+ return make.to_s if make.executable?
522
525
  end
523
526
  end
524
527
 
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.2.4
4
+ version: 1.2.6
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: 2023-08-01 00:00:00.000000000 Z
12
+ date: 2024-01-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  - !ruby/object:Gem::Version
142
142
  version: 1.8.23
143
143
  requirements: []
144
- rubygems_version: 3.5.0.dev
144
+ rubygems_version: 3.5.1
145
145
  signing_key:
146
146
  specification_version: 4
147
147
  summary: Rake-based Ruby Extension (C, Java) task generator.