json_pure 1.7.2 → 1.7.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,3 +1,5 @@
1
+ 2012-05-12 (1.7.3)
2
+ * Work around Rubinius encoding issues using iconv for conversion instead.
1
3
  2012-05-11 (1.7.2)
2
4
  * Fix some encoding issues, that cause problems for the pure and the
3
5
  extension variant in jruby 1.9 mode.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.2
1
+ 1.7.3
data/json.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "json"
5
- s.version = "1.7.2"
5
+ s.version = "1.7.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Florian Frank"]
data/json_pure.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "json_pure"
5
- s.version = "1.7.2"
5
+ s.version = "1.7.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Florian Frank"]
data/lib/json/common.rb CHANGED
@@ -405,7 +405,10 @@ module JSON
405
405
  end
406
406
 
407
407
  # Shortuct for iconv.
408
- if ::String.method_defined?(:encode)
408
+ if ::String.method_defined?(:encode) &&
409
+ # XXX Rubinius doesn't support ruby 1.9 encoding yet
410
+ defined?(RUBY_ENGINE) && RUBY_ENGINE != 'rbx'
411
+ then
409
412
  # Encodes string using Ruby's _String.encode_
410
413
  def self.iconv(to, from, string)
411
414
  string.encode(to, from)
data/lib/json/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module JSON
2
2
  # JSON version
3
- VERSION = '1.7.2'
3
+ VERSION = '1.7.3'
4
4
  VERSION_ARRAY = VERSION.split(/\./).map { |x| x.to_i } # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_pure
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.2
4
+ version: 1.7.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -199,7 +199,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
199
199
  version: '0'
200
200
  segments:
201
201
  - 0
202
- hash: 3438040522195116142
202
+ hash: -431368956158651635
203
203
  required_rubygems_version: !ruby/object:Gem::Requirement
204
204
  none: false
205
205
  requirements: