cibuildgem 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a6ca48cd13e58e435ed741c47d67b9b0772008e902128875ec82cbe677e7b6e7
4
- data.tar.gz: 0a34bcc61e03828865ffa3473bb8128f76b5a0a1692a94e1e78cf6f2e76840d0
3
+ metadata.gz: 0152c669046c4b9442c984d262770838d30f8b8b32018f2786d4c9e45d9c1635
4
+ data.tar.gz: 40bc8495a735b757edc13cef1cd8488a9bbd5bb3864445e2c76f04e22c0d426d
5
5
  SHA512:
6
- metadata.gz: 60b8d5004718e6a7e3620146b63b4e10f9e4e4f4ed935c84cc2cc74c4b649aa2da44f7efae3ebae84daa82c6d6f034ff4ea569d27514ef40b1b401234b7eaac8
7
- data.tar.gz: 4c9006ba6871f12b2b0bbf88f65a2fe739f27f4968e530d9ae7ca33d59fa010f4cb7fad746b2d072c734fc41b4203e71f51aba58409cb26e3a6b51a8d3ab4398
6
+ metadata.gz: 8ab300429f6ada154fd8254f4ea3c215c4f3531e32335b74f2f89fc54641bab4f5b7051b7501ba8e53d84f95920bdc2db48d7f8f685a0f529c7aa8678bbe8551
7
+ data.tar.gz: 5317dae383a829e06d32a09063638651b61ea0f422adc3faab8aa36aa2a6182564c69068adb9478f4b75b37407b3106f62ab08ee4c92f6fce7a67f4c8cf803b7
@@ -137,8 +137,13 @@ module Cibuildgem
137
137
  rake_path = rake_specs.full_require_paths
138
138
  prism_path = Gem.loaded_specs["prism"].full_require_paths
139
139
  load_paths = (rake_compiler_path + rake_path + prism_path).join(File::PATH_SEPARATOR)
140
+ patch = File.expand_path("../extension_patch.rb", __FILE__)
140
141
 
141
- system({ "RUBYLIB" => load_paths }, "bundle exec #{RbConfig.ruby} #{rake_executable} #{all_tasks} -R#{rakelibdir}", exception: true)
142
+ system(
143
+ { "RUBYLIB" => load_paths },
144
+ "bundle exec #{RbConfig.ruby} #{rake_executable} #{all_tasks} -R#{rakelibdir} -r #{patch}",
145
+ exception: true,
146
+ )
142
147
  end
143
148
 
144
149
  def compilation_task
@@ -17,6 +17,8 @@ module Cibuildgem
17
17
  end
18
18
 
19
19
  def setup
20
+ Rake::ExtensionTask.enable!
21
+
20
22
  gemspec.extensions.each do |path|
21
23
  binary_name = parse_extconf(path)
22
24
  define_task(path, binary_name)
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rake/extensiontask"
4
+
5
+ module Cibuildgem
6
+ module ExtensionPatch
7
+ class << self
8
+ def prepended(mod)
9
+ class << mod
10
+ attr_accessor :enabled
11
+
12
+ def enable!
13
+ @enabled = true
14
+ end
15
+ end
16
+ end
17
+ end
18
+
19
+ def define
20
+ super if self.class.enabled
21
+ end
22
+ end
23
+ end
24
+
25
+ Rake::ExtensionTask.prepend(Cibuildgem::ExtensionPatch)
@@ -82,6 +82,7 @@ jobs:
82
82
  with:
83
83
  step: "install"
84
84
  release:
85
+ environment: release
85
86
  permissions:
86
87
  id-token: write
87
88
  contents: read
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cibuildgem
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cibuildgem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify
@@ -73,6 +73,7 @@ files:
73
73
  - lib/cibuildgem/compilation_tasks.rb
74
74
  - lib/cibuildgem/create_makefile_finder.rb
75
75
  - lib/cibuildgem/errors.rb
76
+ - lib/cibuildgem/extension_patch.rb
76
77
  - lib/cibuildgem/ruby_series.rb
77
78
  - lib/cibuildgem/tasks/wrapper.rake
78
79
  - lib/cibuildgem/templates/github/workflows/cibuildgem.yaml.tt