yaji 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ data.tar.gz: 6ddfe6f9729133f80c96e5ac612e5205f8f755b4
4
+ metadata.gz: 25851b5682ae696c24bbedd44cae92f8e78edb9c
5
+ SHA512:
6
+ data.tar.gz: baec4d3c875fd6b9356d0051d944bb4ebbe6850231a1b0cb06eaf3b1c453c26cc2def4ee303608031d7e231ac32405d2965bce5448c5b3efd740872b161858c1
7
+ metadata.gz: 7e8cb24d2229f6b2edbcfa057652da586077d493755c6c2ddc59e8e71b9b1bd545512712255c4ee12a707f5eb2a8e3cc04584cea2dba061914bd0e827215d022
@@ -1,3 +1,7 @@
1
+ === 0.3.4 / 2012-06-05
2
+
3
+ * Build gem for ruby 2.0.0 on windows
4
+
1
5
  === 0.3.3 / 2012-06-05
2
6
 
3
7
  * Fix load path for windows gem
@@ -130,19 +130,19 @@ Output:
130
130
  LICENSE
131
131
  -------
132
132
 
133
- Copyright 2011 Couchbase, Inc.
133
+ Copyright 2011 Couchbase, Inc.
134
134
 
135
- Licensed under the Apache License, Version 2.0 (the "License");
136
- you may not use this file except in compliance with the License.
137
- You may obtain a copy of the License at
135
+ Licensed under the Apache License, Version 2.0 (the "License");
136
+ you may not use this file except in compliance with the License.
137
+ You may obtain a copy of the License at
138
138
 
139
- http://www.apache.org/licenses/LICENSE-2.0
139
+ http://www.apache.org/licenses/LICENSE-2.0
140
140
 
141
- Unless required by applicable law or agreed to in writing, software
142
- distributed under the License is distributed on an "AS IS" BASIS,
143
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
144
- See the License for the specific language governing permissions and
145
- limitations under the License.
141
+ Unless required by applicable law or agreed to in writing, software
142
+ distributed under the License is distributed on an "AS IS" BASIS,
143
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
144
+ See the License for the specific language governing permissions and
145
+ limitations under the License.
146
146
 
147
147
  [1]: http://lloyd.github.com/yajl/
148
148
  [2]: https://rubygems.org/gems/curb/
@@ -18,5 +18,5 @@
18
18
  #
19
19
 
20
20
  module YAJI
21
- VERSION = "0.3.3"
21
+ VERSION = "0.3.4"
22
22
  end
@@ -5,41 +5,44 @@ def gemspec
5
5
  @clean_gemspec ||= eval(File.read(File.expand_path('../../yaji.gemspec', __FILE__)))
6
6
  end
7
7
 
8
+ require 'rubygems/package_task'
9
+ Gem::PackageTask.new(gemspec) do |pkg|
10
+ pkg.need_tar = true
11
+ end
12
+
13
+ version_router = lambda do |t|
14
+ File.open(t.name, 'wb') do |f|
15
+ f.write <<-RUBY
16
+ require "yaji/\#{RUBY_VERSION.sub(/\\.\\d+$/, '')}/parser_ext"
17
+ RUBY
18
+ end
19
+ end
20
+
8
21
  Rake::ExtensionTask.new("parser_ext", gemspec) do |ext|
9
22
  ext.ext_dir = File.join('ext', 'yaji')
10
23
 
11
24
  ext.cross_compile = true
12
- ext.cross_platform = [ENV['HOST'] || "i386-mingw32"]
25
+ ext.cross_platform = ENV['HOST'] || "i386-mingw32"
13
26
  if ENV['RUBY_CC_VERSION']
14
27
  ext.lib_dir = "lib/yaji"
15
28
  end
16
29
  ext.cross_compiling do |spec|
17
30
  spec.files.delete("lib/yaji/parser_ext.so")
18
- spec.files.push("lib/parser_ext.rb", Dir["lib/yaji/1.{8,9}/parser_ext.so"])
31
+ spec.files.push("lib/parser_ext.rb", Dir["lib/yaji/{1.8,1.9,2.0}/parser_ext.so"])
32
+ file "#{ext.tmp_dir}/#{ext.cross_platform}/stage/lib/parser_ext.rb", &version_router
19
33
  end
20
34
 
21
35
  # clean compiled extension
22
36
  CLEAN.include "#{ext.lib_dir}/*.#{RbConfig::CONFIG['DLEXT']}"
23
37
  end
24
38
 
25
- require 'rubygems/package_task'
26
- Gem::PackageTask.new(gemspec) do |pkg|
27
- pkg.need_tar = true
28
- end
29
-
30
- file "lib/parser_ext.rb" do
31
- File.open("lib/parser_ext.rb", 'wb') do |f|
32
- f.write <<-RUBY
33
- require "yaji/\#{RUBY_VERSION.sub(/\\.\\d+$/, '')}/parser_ext"
34
- RUBY
35
- end
36
- end
37
-
39
+ file "lib/parser_ext.rb", &version_router
38
40
  task :cross => "lib/parser_ext.rb"
39
41
 
40
42
  desc "Package gem for windows"
41
43
  task "package:windows" => :package do
42
- sh("env RUBY_CC_VERSION=1.8.7 rvm 1.8.7 do bundle exec rake cross compile")
43
- sh("env RUBY_CC_VERSION=1.9.2 rvm 1.9.2 do bundle exec rake cross compile")
44
- sh("env RUBY_CC_VERSION=1.8.7:1.9.2 rvm 1.9.2 do bundle exec rake cross native gem")
44
+ sh("env RUBY_CC_VERSION=1.8.7 RBENV_VERSION=1.8.7-p370 rbenv exec bundle exec rake cross compile")
45
+ sh("env RUBY_CC_VERSION=1.9.2 RBENV_VERSION=1.9.2-p320 rbenv exec bundle exec rake cross compile")
46
+ sh("env RUBY_CC_VERSION=2.0.0 RBENV_VERSION=2.0.0-p247 rbenv exec bundle exec rake cross compile")
47
+ sh("env RUBY_CC_VERSION=1.8.7:1.9.2:2.0.0 RBENV_VERSION=1.9.2-p320 rbenv exec bundle exec rake cross native gem")
45
48
  end
@@ -20,9 +20,8 @@ Gem::Specification.new do |s|
20
20
  s.extensions = `git ls-files -- ext/**/extconf.rb`.split("\n")
21
21
  s.require_paths = ["lib"]
22
22
 
23
- s.add_development_dependency 'rake', '~> 0.8.7'
23
+ s.add_development_dependency 'rake'
24
24
  s.add_development_dependency 'rake-compiler'
25
25
  s.add_development_dependency 'minitest'
26
26
  s.add_development_dependency 'curb'
27
- s.add_development_dependency RUBY_VERSION =~ /^1\.9/ ? 'ruby-debug19' : 'ruby-debug'
28
27
  end
metadata CHANGED
@@ -1,104 +1,60 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: yaji
3
- version: !ruby/object:Gem::Version
4
- version: 0.3.3
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.4
6
5
  platform: ruby
7
- authors:
6
+ authors:
8
7
  - Couchbase
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-06-05 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: rake
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ~>
20
- - !ruby/object:Gem::Version
21
- version: 0.8.7
22
- type: :development
11
+
12
+ date: 2013-08-19 00:00:00 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
23
15
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ~>
28
- - !ruby/object:Gem::Version
29
- version: 0.8.7
30
- - !ruby/object:Gem::Dependency
31
- name: rake-compiler
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
16
+ version_requirements: &id001 !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - &id002
19
+ - ">="
20
+ - !ruby/object:Gem::Version
21
+ version: "0"
38
22
  type: :development
23
+ name: rake
24
+ requirement: *id001
25
+ - !ruby/object:Gem::Dependency
39
26
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
- - !ruby/object:Gem::Dependency
47
- name: minitest
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
27
+ version_requirements: &id003 !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - *id002
54
30
  type: :development
31
+ name: rake-compiler
32
+ requirement: *id003
33
+ - !ruby/object:Gem::Dependency
55
34
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- - !ruby/object:Gem::Dependency
63
- name: curb
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
35
+ version_requirements: &id004 !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - *id002
70
38
  type: :development
39
+ name: minitest
40
+ requirement: *id004
41
+ - !ruby/object:Gem::Dependency
71
42
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
- - !ruby/object:Gem::Dependency
79
- name: ruby-debug19
80
- requirement: !ruby/object:Gem::Requirement
81
- none: false
82
- requirements:
83
- - - ! '>='
84
- - !ruby/object:Gem::Version
85
- version: '0'
43
+ version_requirements: &id005 !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - *id002
86
46
  type: :development
87
- prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ! '>='
92
- - !ruby/object:Gem::Version
93
- version: '0'
94
- description: YAJI is a ruby wrapper to YAJL providing iterator interface to streaming
95
- JSON parser
47
+ name: curb
48
+ requirement: *id005
49
+ description: YAJI is a ruby wrapper to YAJL providing iterator interface to streaming JSON parser
96
50
  email: info@couchbase.com
97
51
  executables: []
98
- extensions:
52
+
53
+ extensions:
99
54
  - ext/yaji/extconf.rb
100
55
  extra_rdoc_files: []
101
- files:
56
+
57
+ files:
102
58
  - .gitignore
103
59
  - .travis.yml
104
60
  - Gemfile
@@ -136,34 +92,27 @@ files:
136
92
  - test/test_parser.rb
137
93
  - yaji.gemspec
138
94
  homepage: https://github.com/avsej/yaji
139
- licenses:
95
+ licenses:
140
96
  - ASL-2
97
+ metadata: {}
98
+
141
99
  post_install_message:
142
100
  rdoc_options: []
143
- require_paths:
101
+
102
+ require_paths:
144
103
  - lib
145
- required_ruby_version: !ruby/object:Gem::Requirement
146
- none: false
147
- requirements:
148
- - - ! '>='
149
- - !ruby/object:Gem::Version
150
- version: '0'
151
- segments:
152
- - 0
153
- hash: 1178375539553459598
154
- required_rubygems_version: !ruby/object:Gem::Requirement
155
- none: false
156
- requirements:
157
- - - ! '>='
158
- - !ruby/object:Gem::Version
159
- version: '0'
160
- segments:
161
- - 0
162
- hash: 1178375539553459598
104
+ required_ruby_version: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - *id002
107
+ required_rubygems_version: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - *id002
163
110
  requirements: []
111
+
164
112
  rubyforge_project: yaji
165
- rubygems_version: 1.8.24
113
+ rubygems_version: 2.0.7
166
114
  signing_key:
167
- specification_version: 3
115
+ specification_version: 4
168
116
  summary: Yet another JSON iterator
169
117
  test_files: []
118
+