yaji 0.3.3-x86-mingw32 → 0.3.4-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 19f59d651042624fb13bc072062927ae2bb5c9f2
4
+ data.tar.gz: df67a99c5caae29c93a1c52b8b0261dd796070b5
5
+ SHA512:
6
+ metadata.gz: 389eda49510ecc977015cceb9f0e65e257773e17e5ab5a566f585a6152e9687308691421c5b757ce684e447b3949f144f6abcd7d66c236b4f9eb16755fed8a7c
7
+ data.tar.gz: b5ad0c638084e1356c100d3125def2ed35472ce8bf587a3e81d9b81b0f7f97941192dd53c58377e33955b9a1321ffd8f4875f22e28d0b35c7e4ebcabc430d06b
data/HISTORY.markdown CHANGED
@@ -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
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
- 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/
data/lib/yaji/version.rb CHANGED
@@ -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
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 = [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
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', '~> 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,36 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaji
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
5
- prerelease:
4
+ version: 0.3.4
6
5
  platform: x86-mingw32
7
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
11
+ date: 2013-08-19 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rake
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ~>
20
- - !ruby/object:Gem::Version
21
- version: 0.8.7
22
- type: :development
23
- 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
16
  requirements:
35
17
  - - ! '>='
36
18
  - !ruby/object:Gem::Version
@@ -38,15 +20,13 @@ dependencies:
38
20
  type: :development
39
21
  prerelease: false
40
22
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
23
  requirements:
43
24
  - - ! '>='
44
25
  - !ruby/object:Gem::Version
45
26
  version: '0'
46
27
  - !ruby/object:Gem::Dependency
47
- name: minitest
28
+ name: rake-compiler
48
29
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
30
  requirements:
51
31
  - - ! '>='
52
32
  - !ruby/object:Gem::Version
@@ -54,15 +34,13 @@ dependencies:
54
34
  type: :development
55
35
  prerelease: false
56
36
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
37
  requirements:
59
38
  - - ! '>='
60
39
  - !ruby/object:Gem::Version
61
40
  version: '0'
62
41
  - !ruby/object:Gem::Dependency
63
- name: curb
42
+ name: minitest
64
43
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
44
  requirements:
67
45
  - - ! '>='
68
46
  - !ruby/object:Gem::Version
@@ -70,15 +48,13 @@ dependencies:
70
48
  type: :development
71
49
  prerelease: false
72
50
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
51
  requirements:
75
52
  - - ! '>='
76
53
  - !ruby/object:Gem::Version
77
54
  version: '0'
78
55
  - !ruby/object:Gem::Dependency
79
- name: ruby-debug19
56
+ name: curb
80
57
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
58
  requirements:
83
59
  - - ! '>='
84
60
  - !ruby/object:Gem::Version
@@ -86,7 +62,6 @@ dependencies:
86
62
  type: :development
87
63
  prerelease: false
88
64
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
65
  requirements:
91
66
  - - ! '>='
92
67
  - !ruby/object:Gem::Version
@@ -136,36 +111,30 @@ files:
136
111
  - yaji.gemspec
137
112
  - lib/yaji/1.8/parser_ext.so
138
113
  - lib/yaji/1.9/parser_ext.so
114
+ - lib/yaji/2.0/parser_ext.so
139
115
  - lib/parser_ext.rb
140
116
  homepage: https://github.com/avsej/yaji
141
117
  licenses:
142
118
  - ASL-2
119
+ metadata: {}
143
120
  post_install_message:
144
121
  rdoc_options: []
145
122
  require_paths:
146
123
  - lib
147
124
  required_ruby_version: !ruby/object:Gem::Requirement
148
- none: false
149
125
  requirements:
150
126
  - - ! '>='
151
127
  - !ruby/object:Gem::Version
152
128
  version: '0'
153
- segments:
154
- - 0
155
- hash: 1471412921083308582
156
129
  required_rubygems_version: !ruby/object:Gem::Requirement
157
- none: false
158
130
  requirements:
159
131
  - - ! '>='
160
132
  - !ruby/object:Gem::Version
161
133
  version: '0'
162
- segments:
163
- - 0
164
- hash: 1471412921083308582
165
134
  requirements: []
166
135
  rubyforge_project: yaji
167
- rubygems_version: 1.8.24
136
+ rubygems_version: 2.0.7
168
137
  signing_key:
169
- specification_version: 3
138
+ specification_version: 4
170
139
  summary: Yet another JSON iterator
171
140
  test_files: []