Skip to content

Commit

Permalink
Release 2.7.3.rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Oct 23, 2024
1 parent fe25c6e commit a48be35
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 27 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Changes

### 2024-10-23 (2.7.3.rc1)

* Numerous performance optimizations in `JSON.generate` and `JSON.dump`.
* Limit the size of ParserError exception messages, only include up to 32 bytes of the unparseable source.
* Fix json-pure's `Object#to_json` to accept non state arguments
Expand Down
24 changes: 3 additions & 21 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ else
end

desc "Installing library (pure)"
task :install_pure => :version do
task :install_pure do
ruby 'install.rb'
end

Expand All @@ -79,24 +79,6 @@ task :install_ext => [ :compile, :install_pure, :install_ext_really ]
desc "Installing library (extension)"
task :install => :install_ext

desc m = "Writing version information for #{PKG_VERSION}"
task :version do
puts m
File.open(File.join('lib', 'json', 'version.rb'), 'w') do |v|
v.puts <<EOT
# frozen_string_literal: true
module JSON
# JSON version
VERSION = '#{PKG_VERSION}'
VERSION_ARRAY = VERSION.split(/\\./).map { |x| x.to_i } # :nodoc:
VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
VERSION_BUILD = VERSION_ARRAY[2] # :nodoc:
end
EOT
end
end

task :check_env do
ENV.key?('JSON') or fail "JSON env var is required"
end
Expand Down Expand Up @@ -246,7 +228,7 @@ if defined?(RUBY_ENGINE) and RUBY_ENGINE == 'jruby'
task :create_jar => [ :create_parser_jar, :create_generator_jar ]

desc "Build all gems and archives for a new release of the jruby extension."
task :build => [ :clean, :version, :jruby_gem ]
task :build => [ :clean, :jruby_gem ]

task :release => :build
else
Expand Down Expand Up @@ -330,7 +312,7 @@ else
end

desc "Build all gems and archives for a new release of json and json_pure."
task :build => [ :clean, :version, :package ]
task :build => [ :clean, :package ]

task :release => :build
end
Expand Down
8 changes: 2 additions & 6 deletions lib/json/version.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# frozen_string_literal: true

module JSON
# JSON version
VERSION = '2.7.2'
VERSION_ARRAY = VERSION.split(/\./).map { |x| x.to_i } # :nodoc:
VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
VERSION_BUILD = VERSION_ARRAY[2] # :nodoc:
VERSION = '2.7.3.rc1'
end

0 comments on commit a48be35

Please sign in to comment.