cibuildgem 0.2.1 → 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: 99cac230a997ce3d919879ca0efd36eab30f2f986180e98a323ff3b071612061
4
- data.tar.gz: 695a15ca392fa0eff89f3a2296e76d7a9f74a4adb16471d39d1d951d4d118076
3
+ metadata.gz: 9a435af5eac0a64303ce3cc170330faa6d10c7baef2af54c7c7df99713766fd4
4
+ data.tar.gz: b2e59e31200a2a3490a15d033730156da13e1cf42a54ad6e175d5f8475717df3
5
5
  SHA512:
6
- metadata.gz: 942a473c81416014f2c4e37442ca035d4a28af007b93b83199bde026288b14f857e0bf3e770f5f1339d003dbe38bc76a69e3718991e3ebe3ea29ffbbc4267eee
7
- data.tar.gz: 6eae16529e1501441099024045e812519402d47aa8d80532ea55a464f6b6fbddb22cb2604942ad3faecc1835128498cf927100356b2a7dd591698b27c775b015
6
+ metadata.gz: cf049b9d6bcbddaca238f847077dd3b3bf335df62674236b4c36a44a68931a315f32b344bc100d3871cc8fc5161c101c29cfc2e2b2195870aa18d1268cfec5ab
7
+ data.tar.gz: c7782b3afcb6f1c8a871c18f0199fb95fe9e4b77b74ab8e5b6aa2e1c75b872bd4a994077a0460bbbe40c9b4e93cc1633b6c58e11b48e4109538b65ffc22a9fe5
@@ -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.1"
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.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify