Skip to content

Commit 7f4cfd8

Browse files
committed
Try to be compatible with ruby 1.8
1 parent 4cf6c62 commit 7f4cfd8

File tree

6 files changed

+12
-5
lines changed

6 files changed

+12
-5
lines changed

CHANGES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
2017-01-13 (1.8.6)
2+
* Be compatible with ancient ruby 1.8 (maybe?)
13
2015-09-11 (1.8.5)
4+
* Be compatible with ruby 2.4.0
25
* There were still some mentions of dual GPL licensing in the source, but JSON
36
has just the Ruby license that itself includes an explicit dual-licensing
47
clause that allows covered software to be distributed under the terms of

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.8.5
1+
1.8.6

ext/json/ext/generator/generator.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
#define rb_obj_instance_variables(object) rb_funcall(object, rb_intern("instance_variables"), 0)
2222
#endif
2323

24+
#ifndef RB_TYPE_P
25+
#define RB_TYPE_P(obj, type) (rb_type(obj) == type)
26+
#endif
27+
2428
#define option_given_p(opts, key) RTEST(rb_funcall(opts, i_key_p, 1, key))
2529

2630
/* unicode definitions */

json.gemspec

0 Bytes
Binary file not shown.

json_pure.gemspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# -*- encoding: utf-8 -*-
2-
# stub: json_pure 1.8.5 ruby lib
2+
# stub: json_pure 1.8.6 ruby lib
33

44
Gem::Specification.new do |s|
55
s.name = "json_pure".freeze
6-
s.version = "1.8.5"
6+
s.version = "1.8.6"
77

88
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
99
s.require_paths = ["lib".freeze]
1010
s.authors = ["Florian Frank".freeze]
11-
s.date = "2017-01-12"
11+
s.date = "2017-01-13"
1212
s.description = "This is a JSON implementation in pure Ruby.".freeze
1313
s.email = "[email protected]".freeze
1414
s.extra_rdoc_files = ["README.md".freeze]

lib/json/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module JSON
22
# JSON version
3-
VERSION = '1.8.5'
3+
VERSION = '1.8.6'
44
VERSION_ARRAY = VERSION.split(/\./).map { |x| x.to_i } # :nodoc:
55
VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
66
VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:

0 commit comments

Comments
 (0)