yaji 0.3.4-x86-mingw32 → 0.3.5-x86-mingw32

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: 19f59d651042624fb13bc072062927ae2bb5c9f2
4
- data.tar.gz: df67a99c5caae29c93a1c52b8b0261dd796070b5
3
+ metadata.gz: 263c651ab68fe37c3bb72d91ee17816286367e5b
4
+ data.tar.gz: 2e4850e26e2e61d3d40bfeb62681c8c5e85623fe
5
5
  SHA512:
6
- metadata.gz: 389eda49510ecc977015cceb9f0e65e257773e17e5ab5a566f585a6152e9687308691421c5b757ce684e447b3949f144f6abcd7d66c236b4f9eb16755fed8a7c
7
- data.tar.gz: b5ad0c638084e1356c100d3125def2ed35472ce8bf587a3e81d9b81b0f7f97941192dd53c58377e33955b9a1321ffd8f4875f22e28d0b35c7e4ebcabc430d06b
6
+ metadata.gz: dc32cb0d9d1770dc28e6962f2e7435e1612526d9c754b22288a7bf37be6328525ff08df4d47db33627d4577813c9de03109b787761fdb3df0cfa1f011e2a699c
7
+ data.tar.gz: 01a642d3757112477a44fe5448bb10022aeaf320c6d7c999c248acd4a0f6694164bcf94d61e6712788a868d6fcbe9d48c86bccfbb1ca47776ec01303b4ab946f
@@ -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,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaji
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Couchbase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-19 00:00:00.000000000 Z
11
+ date: 2014-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake-compiler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: curb
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ! '>='
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ! '>='
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description: YAJI is a ruby wrapper to YAJL providing iterator interface to streaming
@@ -112,6 +112,7 @@ files:
112
112
  - lib/yaji/1.8/parser_ext.so
113
113
  - lib/yaji/1.9/parser_ext.so
114
114
  - lib/yaji/2.0/parser_ext.so
115
+ - lib/yaji/2.1/parser_ext.so
115
116
  - lib/parser_ext.rb
116
117
  homepage: https://github.com/avsej/yaji
117
118
  licenses:
@@ -123,18 +124,20 @@ require_paths:
123
124
  - lib
124
125
  required_ruby_version: !ruby/object:Gem::Requirement
125
126
  requirements:
126
- - - ! '>='
127
+ - - '>='
127
128
  - !ruby/object:Gem::Version
128
129
  version: '0'
129
130
  required_rubygems_version: !ruby/object:Gem::Requirement
130
131
  requirements:
131
- - - ! '>='
132
+ - - '>='
132
133
  - !ruby/object:Gem::Version
133
134
  version: '0'
134
135
  requirements: []
135
136
  rubyforge_project: yaji
136
- rubygems_version: 2.0.7
137
+ rubygems_version: 2.0.14
137
138
  signing_key:
138
139
  specification_version: 4
139
140
  summary: Yet another JSON iterator
140
- test_files: []
141
+ test_files:
142
+ - test/fixture.json
143
+ - test/test_parser.rb