libyajl2 0.1.8 → 0.1.9

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: 8028bb72d9eda5086ef18768f4444a3dc299aa82
4
- data.tar.gz: 8c7317e5cc2435faef7f4e26769f25c3ad12f74c
3
+ metadata.gz: 47a29269f0f6fe28123a2d647ec6dd6921f728f1
4
+ data.tar.gz: f953d9cd19d856c4d0ef56e0bae79d8ee14572e3
5
5
  SHA512:
6
- metadata.gz: 3de59bac81dfd143dd84c48718f42412bd0dcb4fe34c2a6dc9f402cd1adaca0e0eef20422fa03437ee21b0ef47edeb991ba97a8ddccbd60099e5c6d67820f090
7
- data.tar.gz: c06bdfc24eab3de0a4800e59b73d48e96c607f84937ff022a3fd2f942aa32eaeca5288677bef1e6624df87d4447183ccb073a9aefa60ee8721657b12d406f61b
6
+ metadata.gz: 6d73f4d3b669da8e16589359d9e5de815258d41c37b48a1979e65781070745d658bff014ea821cdbffee96a2e0dde0b3c5603d89d44fc788b31438306bdd1d65
7
+ data.tar.gz: ef13acbbeb0a20cee3e0ee85c553ab727788ba910d17746cee719992ccf1900b6563acc395b401068b88e2d2abba5d5d5772057b50fac82df1d0d6ed201f4685
data/Rakefile CHANGED
@@ -102,9 +102,14 @@ task :prep do
102
102
  generate_yajl_version
103
103
  end
104
104
 
105
+ #
105
106
  # FIXME: need a rake task to update the git submodule and need to do that before shipping
106
- desc "Build it and ship it"
107
- #task :ship => [:clean, :prep, :gem] do
107
+ #
108
+ # to ship, update lib/libyajl2/version.rb and commit that, then:
109
+ #
110
+ # git push && rake clean && rake prep && rake gem && rake ship
111
+ #
112
+ desc "Ship it"
108
113
  task :ship do
109
114
  sh("git tag #{Libyajl2::VERSION}")
110
115
  sh("git push --tags")
@@ -44,6 +44,12 @@ module Libyajl2Build
44
44
  # ENV vars can override everything
45
45
  $CFLAGS = ENV['CFLAGS'] if ENV['CFLAGS']
46
46
  $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['EXTDLDFLAGS'] = ''
52
+ end
47
53
  end
48
54
 
49
55
  def self.makemakefiles
@@ -51,11 +57,6 @@ module Libyajl2Build
51
57
  dir_config("libyajl")
52
58
  create_makefile("libyajl")
53
59
 
54
- # ruby on windows helpfully drops a *.def file to export Init_libyajl which we don't need because this isn't really a ruby extension
55
- FileUtils.rm_f(Dir["*.def"])
56
- # and we need to surgically remove it from the LDFLAGS
57
- $LDFLAGS.gsub!(/\S+.def/, ' ')
58
-
59
60
  # we cheat and build it right away...
60
61
  system("make V=1")
61
62
  # ...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.8"
2
+ VERSION = "0.1.9"
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.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - lamont-granquist