json 1.5.0-java → 1.5.1-java

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of json might be problematic. Click here for more details.

@@ -4,8 +4,21 @@ module JSON
4
4
  # This module holds all the modules/classes that implement JSON's
5
5
  # functionality as C extensions.
6
6
  module Ext
7
- require 'json/ext/parser'
8
- require 'json/ext/generator'
7
+ begin
8
+ if defined?(RUBY_ENGINE) == 'constant' and RUBY_ENGINE == 'ruby' and RUBY_VERSION =~ /\A1\.9\./
9
+ require 'json/ext/1.9/parser'
10
+ require 'json/ext/1.9/generator'
11
+ elsif !defined?(RUBY_ENGINE) && RUBY_VERSION =~ /\A1\.8\./
12
+ require 'json/ext/1.8/parser'
13
+ require 'json/ext/1.8/generator'
14
+ else
15
+ require 'json/ext/parser'
16
+ require 'json/ext/generator'
17
+ end
18
+ rescue LoadError
19
+ require 'json/ext/parser'
20
+ require 'json/ext/generator'
21
+ end
9
22
  $DEBUG and warn "Using Ext extension for JSON."
10
23
  JSON.parser = Parser
11
24
  JSON.generator = Generator
Binary file
Binary file
@@ -1,6 +1,6 @@
1
1
  module JSON
2
2
  # JSON version
3
- VERSION = '1.5.0'
3
+ VERSION = '1.5.1'
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
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 5
8
- - 0
9
- version: 1.5.0
8
+ - 1
9
+ version: 1.5.1
10
10
  platform: java
11
11
  authors:
12
12
  - Daniel Luz
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-23 00:00:00 +01:00
17
+ date: 2011-01-26 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies: []
20
20