enveloperb 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/ext/Rakefile +8 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ba53e0a6672ecc675655f6d0e4d6fbee843d335c58a65a4af4ad8d4eaa66f73
4
- data.tar.gz: 290a0c2823e0ac04ccef3327d373d3705e2e030829106b7ab24587117a9258aa
3
+ metadata.gz: 0cbf9bca661a49920a4253d26b53558a0b24230bfdc1cc899999b6a8e833fdfa
4
+ data.tar.gz: aad2ec02767d93e9960f155b61f921bd81986c5536eaa0bbe2f50c14c9afb35f
5
5
  SHA512:
6
- metadata.gz: a8ef6e0b3a551e1a6f8a7baff17498529f42ba63864539035e49d121b11f569363d28285e92f23a7d955d2e7a9dd77c8c05918fd5c001094b687bfee7c4e5092
7
- data.tar.gz: cc563953876a6690d9ccf859e2bc6329a6cf1711c71972e107031a9245d74a3ed26c548c221ca7869e123f5e4fae025e67e25baefe9c207d60465d630cf3daad
6
+ metadata.gz: 4d693d44a7b3aedffdc7c2f64677f94b819e38304a8ae72723699e023b2769b2718655ff2b632a1e4c2785fdbe145da93b7df542d1cb82e3805c15e91615b35a
7
+ data.tar.gz: a8f4c7a5c759469ed45c29e0734966f9ac5db36428dac3a6cabd9870eb9afe3597f1aebaa21089962918b37ee7c61a51d0643b29856c753433dedd2a7a9c9c74
data/ext/Rakefile CHANGED
@@ -1,6 +1,12 @@
1
1
  task :build do
2
- sh "cargo build --release"
3
- mv "../target/release/libenveloperb.#{RbConfig::CONFIG["SOEXT"]}", "../lib"
2
+ extra_flags = if RbConfig::CONFIG["SOEXT"] == "dylib"
3
+ ["--", "-C", "link-args=-flat_namespace -undefined suppress"]
4
+ else
5
+ []
6
+ end
7
+
8
+ sh *(["cargo", "rustc", "--release"] + extra_flags)
9
+ mv "../target/release/libenveloperb.#{RbConfig::CONFIG["SOEXT"]}", "../lib" rescue nil
4
10
  end
5
11
 
6
12
  task default: :build
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enveloperb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Palmer