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 CHANGED
@@ -1,7 +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
+ ---
2
+ SHA1:
3
+ metadata.gz: 0e5f8dae5330310fa8f1990beea4585de902164d
4
+ data.tar.gz: 9d331dd0108a45a98dae652314551ddd5f2838a7
5
+ SHA512:
6
+ metadata.gz: e83e521a5b33df3f781e858741518e8a9e9182a1c92168ce231e17f46b879a8e287f463109ea84cb4fd3404c9eb4e691b67903fa38291cfd7e21f52051dd59b2
7
+ data.tar.gz: 72e2634ae6d164fbdcfe3eab2172d4c7ade3d6d741ba4296fb56cf495a093fe03b8abe920cf6b65d896d60bb5f86766e976bcfac57dc4613d752bab22adb4c00
@@ -1,4 +1,8 @@
1
- === 0.3.4 / 2012-06-05
1
+ === 0.3.5 / 2014-01-08
2
+
3
+ * Build 64-bit versions for windows
4
+
5
+ === 0.3.4 / 2013-07-19
2
6
 
3
7
  * Build gem for ruby 2.0.0 on windows
4
8
 
@@ -18,5 +18,5 @@
18
18
  #
19
19
 
20
20
  module YAJI
21
- VERSION = "0.3.4"
21
+ VERSION = "0.3.5"
22
22
  end
@@ -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['HOST'] || "i386-mingw32"
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/{1.8,1.9,2.0}/parser_ext.so"])
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
- 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")
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.4
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
- date: 2013-08-19 00:00:00 Z
13
- dependencies:
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: *id001
25
- - !ruby/object:Gem::Dependency
26
- prerelease: false
27
- version_requirements: &id003 !ruby/object:Gem::Requirement
28
- requirements:
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: &id004 !ruby/object:Gem::Requirement
36
- requirements:
37
- - *id002
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: &id005 !ruby/object:Gem::Requirement
44
- requirements:
45
- - *id002
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: *id005
49
- description: YAJI is a ruby wrapper to YAJL providing iterator interface to streaming JSON parser
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
- - *id002
107
- required_rubygems_version: !ruby/object:Gem::Requirement
108
- requirements:
109
- - *id002
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.7
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