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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0152c669046c4b9442c984d262770838d30f8b8b32018f2786d4c9e45d9c1635
|
|
4
|
+
data.tar.gz: 40bc8495a735b757edc13cef1cd8488a9bbd5bb3864445e2c76f04e22c0d426d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8ab300429f6ada154fd8254f4ea3c215c4f3531e32335b74f2f89fc54641bab4f5b7051b7501ba8e53d84f95920bdc2db48d7f8f685a0f529c7aa8678bbe8551
|
|
7
|
+
data.tar.gz: 5317dae383a829e06d32a09063638651b61ea0f422adc3faab8aa36aa2a6182564c69068adb9478f4b75b37407b3106f62ab08ee4c92f6fce7a67f4c8cf803b7
|
data/lib/cibuildgem/cli.rb
CHANGED
|
@@ -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(
|
|
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
|
|
@@ -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)
|
data/lib/cibuildgem/version.rb
CHANGED
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.
|
|
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
|