yaji 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/HISTORY.markdown +4 -0
- data/README.markdown +10 -10
- data/lib/yaji/version.rb +1 -1
- data/tasks/compile.rake +21 -18
- data/yaji.gemspec +1 -2
- metadata +54 -105
checksums.yaml
ADDED
@@ -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
|
data/HISTORY.markdown
CHANGED
data/README.markdown
CHANGED
@@ -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
|
-
|
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/
|
data/lib/yaji/version.rb
CHANGED
data/tasks/compile.rake
CHANGED
@@ -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 =
|
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.
|
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
|
-
|
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
|
43
|
-
sh("env RUBY_CC_VERSION=1.9.2
|
44
|
-
sh("env RUBY_CC_VERSION=
|
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
|
data/yaji.gemspec
CHANGED
@@ -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'
|
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.
|
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
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
-
|
26
|
-
|
27
|
-
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 0
|
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
|
-
|
42
|
-
|
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
|
-
|
58
|
-
|
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
|
-
|
74
|
-
|
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
|
-
|
88
|
-
|
89
|
-
|
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
|
-
|
52
|
+
|
53
|
+
extensions:
|
99
54
|
- ext/yaji/extconf.rb
|
100
55
|
extra_rdoc_files: []
|
101
|
-
|
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
|
-
|
101
|
+
|
102
|
+
require_paths:
|
144
103
|
- lib
|
145
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
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:
|
113
|
+
rubygems_version: 2.0.7
|
166
114
|
signing_key:
|
167
|
-
specification_version:
|
115
|
+
specification_version: 4
|
168
116
|
summary: Yet another JSON iterator
|
169
117
|
test_files: []
|
118
|
+
|