rake-compiler 1.1.3 → 1.1.4

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 +8 -2
  3. data/lib/rake/extensiontask.rb +15 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a440a2d8c83bb1c19ded360f560ed350a7872385ac1ecb3c00eed20243824a37
4
- data.tar.gz: fb1a76fa0de52441b3307fb6a228b363581b1a10f1ead12340be380c88a21030
3
+ metadata.gz: 2df6d32ecd0f965fa8cc4bcf0e9f759bfe8e73ec5bf63f87999c1eef85bbb5b9
4
+ data.tar.gz: 3d2667098cfec7225cdb964a3a583057cde8e4b4567bf0f55fa3ea536274c1ae
5
5
  SHA512:
6
- metadata.gz: 3af072dc0c061056c366876d13a57fbaa9d219cf80b20733c6aecabd23cfeb99d174a8028fb06db0fb7190c51e7beb37c4731227553293b720ed0c2524856ce3
7
- data.tar.gz: 827b37a381927c52dbf53e132aef924801339c6b441283f09a5708d0d80e234073cb7c0dc1957239ab65fc4ab59bafdccb95f7b3d08a212056f3cd2e19baea40
6
+ metadata.gz: f43f6999c6303f0b7bae2557aed5491c3d075a85708fc03df61012c345f7bfdc5388c85570d23d30a50d43d21243704f0b4d0041e251920e73471ff8a62d810c
7
+ data.tar.gz: 826c274c9cf1a6d5bb4a7e8c46e933e0aa144c18a02f8c5fe42b7f845ee346d150cfd6111a6073d5d98bcd18d645f2632a6dd640d4bb882d7153a5fee9073f00
data/History.md CHANGED
@@ -1,7 +1,13 @@
1
- ### 1.1.3/ 2021-12-08
1
+ ### 1.1.4 / 2021-12-11
2
2
 
3
3
  * Fixes:
4
- * Fix a bug that wrong install location is used.
4
+ * Fix a regression bug that installed gem can't be found on cross compile.
5
+ [#195](https://github.com/rake-compiler/rake-compiler/issues/195) [Reported by Mike Dalessio]
6
+
7
+ ### 1.1.3 / 2021-12-08
8
+
9
+ * Fixes:
10
+ * Fix a regression bug that wrong install location is used.
5
11
  [#194](https://github.com/rake-compiler/rake-compiler/issues/194) [Reported by Andrew Kane]
6
12
 
7
13
  ### 1.1.2 / 2021-12-07
@@ -416,8 +416,21 @@ Java extension should be preferred.
416
416
  # genearte fake.rb for different ruby versions
417
417
  file "#{tmp_path}/fake.rb" => [rbconfig_file] do |t|
418
418
  File.open(t.name, 'w') do |f|
419
- f.write fake_rb(for_platform, ruby_ver)
420
- f.write File.read(t.prerequisites.first)
419
+ # Keep the original RbConfig::CONFIG["ENABLE_SHARED"] to use
420
+ # the same RubyGems extension directory. See also
421
+ # Gem::BasicSpecificaion#extenions_dir and
422
+ # Gem.extension_api_version.
423
+ #
424
+ # if RbConfig::CONFIG["ENABLE_SHARED"] == "no"
425
+ # "extensions/x86_64-linux/2.5.0-static"
426
+ # else
427
+ # "extensions/x86_64-linux/2.5.0"
428
+ # end
429
+ f.puts("require 'rbconfig'")
430
+ f.puts("original_enable_shared = RbConfig::CONFIG['ENABLE_SHARED']")
431
+ f.puts(fake_rb(for_platform, ruby_ver))
432
+ f.puts(File.read(t.prerequisites.first))
433
+ f.puts("RbConfig::CONFIG['ENABLE_SHARED'] = original_enable_shared")
421
434
  end
422
435
  end
423
436
 
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.1.3
4
+ version: 1.1.4
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: 2021-12-07 00:00:00.000000000 Z
12
+ date: 2021-12-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake