yaji 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -7
- data/HISTORY.markdown +5 -1
- data/lib/yaji/version.rb +1 -1
- data/tasks/compile.rake +38 -6
- metadata +75 -54
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
|
4
|
-
|
5
|
-
SHA512:
|
6
|
-
|
7
|
-
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0e5f8dae5330310fa8f1990beea4585de902164d
|
4
|
+
data.tar.gz: 9d331dd0108a45a98dae652314551ddd5f2838a7
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e83e521a5b33df3f781e858741518e8a9e9182a1c92168ce231e17f46b879a8e287f463109ea84cb4fd3404c9eb4e691b67903fa38291cfd7e21f52051dd59b2
|
7
|
+
data.tar.gz: 72e2634ae6d164fbdcfe3eab2172d4c7ade3d6d741ba4296fb56cf495a093fe03b8abe920cf6b65d896d60bb5f86766e976bcfac57dc4613d752bab22adb4c00
|
data/HISTORY.markdown
CHANGED
data/lib/yaji/version.rb
CHANGED
data/tasks/compile.rake
CHANGED
@@ -18,17 +18,46 @@ version_router = lambda do |t|
|
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
|
+
class Platform
|
22
|
+
attr_reader :name, :host, :versions
|
23
|
+
|
24
|
+
def initialize(params)
|
25
|
+
@name = params[:name]
|
26
|
+
@host = params[:host]
|
27
|
+
@versions = params[:versions]
|
28
|
+
end
|
29
|
+
|
30
|
+
def each_version
|
31
|
+
@versions.each do |v|
|
32
|
+
yield(v, v[/\d\.\d\.\d/])
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
def short_versions
|
37
|
+
res = []
|
38
|
+
each_version do |long, short|
|
39
|
+
res << short
|
40
|
+
end
|
41
|
+
res
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
recent = "2.0.0-p353"
|
46
|
+
CROSS_PLATFORMS = [
|
47
|
+
Platform.new(:name => 'x64-mingw32', :host => 'x86_64-w64-mingw32', :versions => %w(1.9.3-p484 2.0.0-p353 2.1.0)),
|
48
|
+
Platform.new(:name => 'x86-mingw32', :host => 'i686-w64-mingw32', :versions => %w(1.8.7-p374 1.9.3-p484 2.0.0-p353 2.1.0)),
|
49
|
+
]
|
21
50
|
Rake::ExtensionTask.new("parser_ext", gemspec) do |ext|
|
22
51
|
ext.ext_dir = File.join('ext', 'yaji')
|
23
52
|
|
24
53
|
ext.cross_compile = true
|
25
|
-
ext.cross_platform = ENV['
|
54
|
+
ext.cross_platform = ENV['TARGET']
|
26
55
|
if ENV['RUBY_CC_VERSION']
|
27
56
|
ext.lib_dir = "lib/yaji"
|
28
57
|
end
|
29
58
|
ext.cross_compiling do |spec|
|
30
59
|
spec.files.delete("lib/yaji/parser_ext.so")
|
31
|
-
spec.files.push("lib/parser_ext.rb", Dir["lib/yaji
|
60
|
+
spec.files.push("lib/parser_ext.rb", Dir["lib/yaji/*/parser_ext.so"])
|
32
61
|
file "#{ext.tmp_dir}/#{ext.cross_platform}/stage/lib/parser_ext.rb", &version_router
|
33
62
|
end
|
34
63
|
|
@@ -41,8 +70,11 @@ task :cross => "lib/parser_ext.rb"
|
|
41
70
|
|
42
71
|
desc "Package gem for windows"
|
43
72
|
task "package:windows" => :package do
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
73
|
+
CROSS_PLATFORMS.each do |platform|
|
74
|
+
ENV['TARGET'] = platform.name
|
75
|
+
platform.each_version do |long, short|
|
76
|
+
sh("env RUBY_CC_VERSION=#{short} RBENV_VERSION=#{long} rbenv exec rake cross compile")
|
77
|
+
end
|
78
|
+
sh("env RUBY_CC_VERSION=#{platform.short_versions.join(":")} RBENV_VERSION=#{recent} rbenv exec rake cross native gem")
|
79
|
+
end
|
48
80
|
end
|
metadata
CHANGED
@@ -1,60 +1,79 @@
|
|
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
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
6
|
+
authors:
|
7
7
|
- Couchbase
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
prerelease: false
|
16
|
-
version_requirements: &id001 !ruby/object:Gem::Requirement
|
17
|
-
requirements:
|
18
|
-
- &id002
|
19
|
-
- ">="
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: "0"
|
22
|
-
type: :development
|
11
|
+
date: 2014-01-08 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
23
14
|
name: rake
|
24
|
-
requirement:
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
- *id002
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
30
20
|
type: :development
|
31
|
-
name: rake-compiler
|
32
|
-
requirement: *id003
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
21
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
-
requirements:
|
37
|
-
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake-compiler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
38
34
|
type: :development
|
39
|
-
name: minitest
|
40
|
-
requirement: *id004
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
35
|
prerelease: false
|
43
|
-
version_requirements:
|
44
|
-
requirements:
|
45
|
-
-
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
46
48
|
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
47
56
|
name: curb
|
48
|
-
requirement:
|
49
|
-
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: YAJI is a ruby wrapper to YAJL providing iterator interface to streaming
|
70
|
+
JSON parser
|
50
71
|
email: info@couchbase.com
|
51
72
|
executables: []
|
52
|
-
|
53
|
-
extensions:
|
73
|
+
extensions:
|
54
74
|
- ext/yaji/extconf.rb
|
55
75
|
extra_rdoc_files: []
|
56
|
-
|
57
|
-
files:
|
76
|
+
files:
|
58
77
|
- .gitignore
|
59
78
|
- .travis.yml
|
60
79
|
- Gemfile
|
@@ -92,27 +111,29 @@ files:
|
|
92
111
|
- test/test_parser.rb
|
93
112
|
- yaji.gemspec
|
94
113
|
homepage: https://github.com/avsej/yaji
|
95
|
-
licenses:
|
114
|
+
licenses:
|
96
115
|
- ASL-2
|
97
116
|
metadata: {}
|
98
|
-
|
99
117
|
post_install_message:
|
100
118
|
rdoc_options: []
|
101
|
-
|
102
|
-
require_paths:
|
119
|
+
require_paths:
|
103
120
|
- lib
|
104
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
105
|
-
requirements:
|
106
|
-
-
|
107
|
-
|
108
|
-
|
109
|
-
|
121
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - '>='
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
110
131
|
requirements: []
|
111
|
-
|
112
132
|
rubyforge_project: yaji
|
113
|
-
rubygems_version: 2.0.
|
133
|
+
rubygems_version: 2.0.14
|
114
134
|
signing_key:
|
115
135
|
specification_version: 4
|
116
136
|
summary: Yet another JSON iterator
|
117
|
-
test_files:
|
118
|
-
|
137
|
+
test_files:
|
138
|
+
- test/fixture.json
|
139
|
+
- test/test_parser.rb
|