json-maglev- 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-maglev-"
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-maglev-
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:
@@ -13,7 +13,7 @@ date: 2012-05-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: permutation
16
- requirement: &70143087977160 !ruby/object:Gem::Requirement
16
+ requirement: &69919498451520 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70143087977160
24
+ version_requirements: *69919498451520
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: sdoc
27
- requirement: &70143088104760 !ruby/object:Gem::Requirement
27
+ requirement: &69919498579220 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70143088104760
35
+ version_requirements: *69919498579220
36
36
  description: This is a JSON implementation as a Ruby extension in C.
37
37
  email: flori@ping.de
38
38
  executables: []