Skip to content

Commit

Permalink
Try to be compatible with ruby 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
flori committed Jan 13, 2017
1 parent 4cf6c62 commit 7f4cfd8
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
2017-01-13 (1.8.6)
* Be compatible with ancient ruby 1.8 (maybe?)
2015-09-11 (1.8.5)
* Be compatible with ruby 2.4.0
* There were still some mentions of dual GPL licensing in the source, but JSON
has just the Ruby license that itself includes an explicit dual-licensing
clause that allows covered software to be distributed under the terms of
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.8.5
1.8.6
4 changes: 4 additions & 0 deletions ext/json/ext/generator/generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
#define rb_obj_instance_variables(object) rb_funcall(object, rb_intern("instance_variables"), 0)
#endif

#ifndef RB_TYPE_P
#define RB_TYPE_P(obj, type) (rb_type(obj) == type)
#endif

#define option_given_p(opts, key) RTEST(rb_funcall(opts, i_key_p, 1, key))

/* unicode definitions */
Expand Down
Binary file modified json.gemspec
Binary file not shown.
6 changes: 3 additions & 3 deletions json_pure.gemspec
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# -*- encoding: utf-8 -*-
# stub: json_pure 1.8.5 ruby lib
# stub: json_pure 1.8.6 ruby lib

Gem::Specification.new do |s|
s.name = "json_pure".freeze
s.version = "1.8.5"
s.version = "1.8.6"

s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
s.require_paths = ["lib".freeze]
s.authors = ["Florian Frank".freeze]
s.date = "2017-01-12"
s.date = "2017-01-13"
s.description = "This is a JSON implementation in pure Ruby.".freeze
s.email = "flori@ping.de".freeze
s.extra_rdoc_files = ["README.md".freeze]
Expand Down
2 changes: 1 addition & 1 deletion lib/json/version.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module JSON
# JSON version
VERSION = '1.8.5'
VERSION = '1.8.6'
VERSION_ARRAY = VERSION.split(/\./).map { |x| x.to_i } # :nodoc:
VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
Expand Down

0 comments on commit 7f4cfd8

Please sign in to comment.