rake-compiler 1.1.7 → 1.1.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: 02cad822f10b4321127ce0c91ecb9ce1b7465897be75cb63864598f67a0862f9
4
- data.tar.gz: e892ced800adc8b779b7a248f726590d2a9967c6efb95817778af4b51f650d4a
3
+ metadata.gz: 56dcf0e1f328862dc1b7b48d04288ee04cc36faab9d1a598b1bafa242673314c
4
+ data.tar.gz: 8283eec481c7d7adb3589de86a205c9747f4a428e3a2a8d9485c930f1ac58d17
5
5
  SHA512:
6
- metadata.gz: b773ca5038495c9301561f7f093dd292a90c8987d71964234359e742e159e3dcceba66762a12c161a79b60c0d8eb55b2fc1d65dfb186a64b8905ea75148090f5
7
- data.tar.gz: 281a93c3f8e00a01ede2150bff92f8898406fef693192d1a83710eb7e40c07e53229f91aeee8c661489a4901e81c702e8d55f667858f59ddeb47f8f93da75ab3
6
+ metadata.gz: '08f90e5666ece41d70892f20cbc06ff42d8d2ef3f46ad1669ed1e75d3b6e96f2867c4072481a20656b8aaa90208df2a34cfc14e16a9510bba320829aa683b2c3'
7
+ data.tar.gz: 69426e3024fcb826bed92b86a9a63ad4b6b1203dd202758decb2e93a73f76cb7d7724492f56be61bb33dfb18b11cdbae796da87e1b02557c9bc32b59412a70f1
data/History.md CHANGED
@@ -1,3 +1,9 @@
1
+ ### 1.1.8 / 2022-01-18
2
+
3
+ * Fixes:
4
+ * Fix wrong `required_ruby_version` when some `RUBY_CC_VERSION`s are missing.
5
+ [#198](https://github.com/rake-compiler/rake-compiler/issues/198) [Patch by Lars Kanis]
6
+
1
7
  ### 1.1.7 / 2022-01-04
2
8
 
3
9
  * Fixes:
@@ -377,9 +377,6 @@ Java extension should be preferred.
377
377
  @lib_dir = "#{@lib_dir}/#{$1}"
378
378
  end
379
379
 
380
- # Update cross compiled platform/version combinations
381
- @ruby_versions_per_platform[for_platform] << version
382
-
383
380
  define_cross_platform_tasks_with_version(for_platform, version)
384
381
 
385
382
  # restore lib_dir
@@ -456,14 +456,17 @@ describe Rake::ExtensionTask do
456
456
 
457
457
  it "should set required_ruby_version from RUBY_CC_VERSION, set platform, clear extensions but keep metadata" do
458
458
  platforms = ["x86-mingw32", "x64-mingw32"]
459
- ruby_cc_versions = ["1.8.6", "2.1.10", "2.2.6", "2.3.3", "2.10.1"]
459
+ ruby_cc_versions = ["1.8.6", "2.1.10", "2.2.6", "2.3.3", "2.10.1", "2.11.0"]
460
460
  ENV["RUBY_CC_VERSION"] = ruby_cc_versions.join(":")
461
461
  config = Hash.new
462
462
  ruby_cc_versions.each do |ruby_cc_version|
463
463
  platforms.each do |platform|
464
+ unless platform == "x64-mingw32" && ruby_cc_version == "2.11.0"
465
+ rbconf = "/rubies/#{ruby_cc_version}/rbconfig.rb"
466
+ end
464
467
  allow(config).to receive(:[]).
465
468
  with("rbconfig-#{platform}-#{ruby_cc_version}").
466
- and_return("/rubies/#{ruby_cc_version}/rbconfig.rb")
469
+ and_return(rbconf)
467
470
  end
468
471
  end
469
472
  allow(YAML).to receive(:load_file).and_return(config)
@@ -490,7 +493,7 @@ describe Rake::ExtensionTask do
490
493
  end
491
494
 
492
495
  expected_required_ruby_versions = [
493
- Gem::Requirement.new([">= 1.8", "< 2.11.dev"]),
496
+ Gem::Requirement.new([">= 1.8", "< 2.12.dev"]),
494
497
  Gem::Requirement.new([">= 1.8", "< 2.11.dev"]),
495
498
  ]
496
499
  cross_specs.collect(&:required_ruby_version).should == expected_required_ruby_versions
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.7
4
+ version: 1.1.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: 2022-01-03 00:00:00.000000000 Z
12
+ date: 2022-01-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake