cibuildgem 0.2.0 → 0.2.2

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: f63ab07d477bec46da85e57e2f582e85308c6764bfbb33c441f41628b49714b7
4
- data.tar.gz: f4fbff8471f384cf0c7c7eb45e2a57f53fa6a208f3d60b56df0a8fbf12034266
3
+ metadata.gz: 9a435af5eac0a64303ce3cc170330faa6d10c7baef2af54c7c7df99713766fd4
4
+ data.tar.gz: b2e59e31200a2a3490a15d033730156da13e1cf42a54ad6e175d5f8475717df3
5
5
  SHA512:
6
- metadata.gz: bcd63c9d47adbb746fa716203d14f7b778c75b8bb0dbf68450fc45334ba15c17f1fef7deffc456b327c3186a69276616310a727b0f4b0a467921657b4f29921c
7
- data.tar.gz: 6e8082155d5c8083799e76dcbe4bb77ba3e156a65ee81cd6939fa3704c93d3ddd9a65083030cb99606d70d372c64811dd65bc27801153e459967d37af2cfc3cb
6
+ metadata.gz: cf049b9d6bcbddaca238f847077dd3b3bf335df62674236b4c36a44a68931a315f32b344bc100d3871cc8fc5161c101c29cfc2e2b2195870aa18d1268cfec5ab
7
+ data.tar.gz: c7782b3afcb6f1c8a871c18f0199fb95fe9e4b77b74ab8e5b6aa2e1c75b872bd4a994077a0460bbbe40c9b4e93cc1633b6c58e11b48e4109538b65ffc22a9fe5
@@ -2,6 +2,7 @@
2
2
 
3
3
  require "thor"
4
4
  require "rake/extensiontask"
5
+ require "prism"
5
6
 
6
7
  module Cibuildgem
7
8
  class CLI < Thor
@@ -54,7 +55,7 @@ module Cibuildgem
54
55
  cibuildgem will run the test suite of the gem. It either expects a `spec` or `test` task defined.
55
56
  EOM
56
57
  def test
57
- run_rake_tasks!(:test)
58
+ run_rake_tasks!("cibuildgem:setup", :test)
58
59
  end
59
60
 
60
61
  desc "copy_from_staging_to_lib", "Copy the staging binary. For internal usage.", hide: true
@@ -92,6 +92,17 @@ module Cibuildgem
92
92
 
93
93
  File.write(task.name, makefile_content)
94
94
  end
95
+
96
+ makefile_content.match(/^ldflags\W+=(.*)/) do |match|
97
+ ldflags = match[1].split(" ")
98
+ next if ldflags.include?("-s")
99
+
100
+ ldflags << "-s"
101
+
102
+ makefile_content.gsub!(/^(ldflags\W+=)(.*)/, "\\1#{ldflags.join(" ")}")
103
+
104
+ File.write(task.name, makefile_content)
105
+ end
95
106
  end
96
107
  end
97
108
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cibuildgem
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.2"
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.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify