libyajl2 0.1.10 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 05cb0afa64542348cba1daa4a4ff5e93d69cfb01
4
- data.tar.gz: b2c67323b6ae3c8b81698fb569b86c0d833a30e0
3
+ metadata.gz: 29a02e90f2ed93b73b6ae8817e3a642a7a95a495
4
+ data.tar.gz: 4ae49d8a164cb4dcc0d88028f9abd7149dc2c5e4
5
5
  SHA512:
6
- metadata.gz: 7e619deb4ad1f774d4b6359f81dc31415d6413a45e8ac474d9c7d0c98e8ef1e51f4b954c578426d677c108dc93eab0248eea2532bd7b05875ef0a0a38e220d62
7
- data.tar.gz: 9932dcfa08c6f525b3aad26e1fa2162ed5dd2d51cf568710920314ab55a998cd9238bf2e2f5277bdc316921b4525c3eaf0237381adda7507bfb9987dce974ff2
6
+ metadata.gz: 444d1906930e8b87cbd464dce82343f419400f6451d8a47dda4ab9f4ed57643cc38b1ec844aa7ee52497d54a6e4280fd6b241c66360c0f4cf6101d9bb1b0ca88
7
+ data.tar.gz: 0681909336a7403320518c81194f544c97225d1a2c4f9964eeffe769fa7671b7c70c1ccefdc0b957c0dffd5aecbe6d887cca8fb269b34fbcebfa7584c5445dca
@@ -40,16 +40,9 @@ module Libyajl2Build
40
40
 
41
41
  $CFLAGS << " -DNDEBUG"
42
42
 
43
-
44
43
  # ENV vars can override everything
45
44
  $CFLAGS = ENV['CFLAGS'] if ENV['CFLAGS']
46
45
  $LDFLAGS = ENV['LDFLAGS'] if ENV['LDFLAGS']
47
-
48
- if windows?
49
- # on windows this will try to spit out a *.def that exports Init_libyajl which is wrong, we aren't a ruby lib, so we
50
- # will never export that.
51
- RbConfig::MAKEFILE_CONFIG['DLDFLAGS'].gsub!(/\$\(DEFFILE\)/, '')
52
- end
53
46
  end
54
47
 
55
48
  def self.makemakefiles
@@ -57,6 +50,14 @@ module Libyajl2Build
57
50
  dir_config("libyajl")
58
51
  create_makefile("libyajl")
59
52
 
53
+ # on windows the Makefile will try to export Init_libyajl which is wrong because we aren't a ruby lib.
54
+ # i could not figure out how to tell mkmf.rb to stop being so helpful, so instead will just patch it here.
55
+ if windows?
56
+ makefile = IO.read("Makefile")
57
+ makefile.gsub!(/\$\(DEFFILE\)/, '')
58
+ File.open("Makefile", 'w+') {|f| f.write(makefile) }
59
+ end
60
+
60
61
  # we cheat and build it right away...
61
62
  system("make V=1")
62
63
  # ...so we can hack up what install does later and copy over the include files
@@ -1,3 +1,3 @@
1
1
  module Libyajl2
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libyajl2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - lamont-granquist