From ac92b79038ba1c161d6dadbba8c94763a2f15aa6 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sun, 29 Dec 2019 18:58:27 +0800 Subject: [PATCH 1/4] Restore json.gemspec from 619a85865db3714b989cbc8bc097af631cad9a9f --- json.gemspec | Bin 5439 -> 4425 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/json.gemspec b/json.gemspec index 7af20558d8c8aec7bb3dd18726f6885ea873481b..c29431a09d66c0387ac201062fe20c40690b112a 100644 GIT binary patch literal 4425 zcma)AZExE)5dNNDL1XWXz%!9EzC0t1F2XlPc64+J)!Es+hKv;~qnZgGarl?y zf_zusj|fo_rxlQM65J`l11os|sSs#{N%S&04vwr?!qM@GY6=E zYh&bD@b;V>2hRyB(2N9C3!bN1{6fw~Rh{ozN^7cD3f=e;lxz{)+BMqfm5@&Qu@sU~ zPCiP?@7wj9Y8y^+d~zBdCt-5pg33Wvs;5o#7@ z7$$+W25#A4oV<^mE~qFgjh4bV@N12vM>(`>-3I3(?vD+#v3Xbm2T8S%=2s?o5y?gH zf&_b@no0#zh;F0f1NTar%3Ne=!AfveXBY22e7cCLyd|YyK?(^8q9xO8$%TaAMJqui z4@^ays_aDXe}8v0a0)jnp@pH`3T^S^8C5l4(GP0P}rUgy~zeW0 zQ~EQ$n+gjP$jE>?@}6$E>|TyTai0JyL9Pyk&p|%03=W24De!@BY&lUgp#Jdwvahwr zdJEbn;VDfHa#%34hHF;A6)%Lx@LWqQVjtj;L^X`aUmw#>2TRdn}|?jbT^O8$CGL59U~Y|XToskPLQ zJ_dkw2KLyD0ff@B$@JJVzD~b!{aHubV&ny!3|Qjbid#h=md*Xh`krFy%~5 zm72`H1xyBP5t9*H#AL_@F?qx+z-weEwWbuL*u(IOjt{07?9>)l8!W_?&y;ZuvY;7E zK)cCs3bNKXZkfqr0@PKl2}pnY^)ZqKH&~Y1UR)G~d4MYOz9O4ckB`c5~TER8Z5Uokdq#*Jp8Tr$sY+t(rxI z>9aQ&H#L@cGv%tA-f)&`2RA#{33tu3gK!vXrp*jSg8jkO%(aD(c4{@NVTeO2H&5GH z%z3sqd>=ByC-@2AIkspV;-60b0e&Ee5*LMPs*1{unT)M-SNl_S@1E6VsqY8VU@#xI z?#lzd4QUP!P>R~j==f|#J3Q5!XMx1Q5~KX$J~rGsKc_YrLt(=ic4XZ3-&s_7GgMOSv}D_Dzk%PzkNr_ zlBL*^m>{tg-p9M+-RX{Z&xrGrLm&-!$kOG6b1c$B2~VakXy-9GImegVgOUaiRYUcpAB4@k0ZVQ6Zs~yxlSwTtG6J%rgjB!~&`qPu&#$ zB_Su@<@W(0(oJasz+gUxYmHBNjuU%53`n!{@1+giY)Y;Cc$AlIGK2L7aiW04>p|pu1#> zEmJP4BkM&Jb*o5`zw&f=3K~%TozU^2l6^-L& zh~CnB>PZpolJ4&t1)rEyUodk>OyU^S8dS6E{+^36Q9l9t88BOg@(DZUAnsWJPuYRl z$^w6FlAfFawL0xzrs(vmvBfo9v~RltWqr0;o+_5WWg78*4dzN<%KZSAZYzm}zV!&c;k*8#9ex+gRX@4ammeHhSBrZKL(i z7E0S3%;sEual{vr$DqJB?^KUs8I`gxR1Bui3I^0?1_SD|g9h~lroq@qYY76KXMC)( z*vR06PBYE)RU{sRDl)gvQUxNS0d%9w0YMLHt+3gI0&tI9<;)#q^(cRMc;pm=N26iIsZokvcf}LP=+cY; zR!U_P&okY*ZdOT5B) zG6Se$q3H9E2u`E+5YI<0+UfZbsRU_J`11Q9+(XPWJ^sOG-M{1OyLs{Bw_gO#65eg+ zWiN3kWu{y=M@EbO-P%@8o-$Qu@!vZf4jvD;Odyte5T}1iU7jw#zQaal8luQb@>As= M!uLu=n-28f|1f)FrvLx| From 1920653013a26394a5102b6203205222dee2566d Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sun, 29 Dec 2019 18:59:55 +0800 Subject: [PATCH 2/4] Gem::Specification#date is set automatically by RubyGems.org. --- json.gemspec | 1 - 1 file changed, 1 deletion(-) diff --git a/json.gemspec b/json.gemspec index c29431a09..1a23eb6de 100644 --- a/json.gemspec +++ b/json.gemspec @@ -7,7 +7,6 @@ Gem::Specification.new do |s| s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.require_paths = ["lib"] s.authors = ["Florian Frank"] - s.date = "2019-02-21" s.description = "This is a JSON implementation as a Ruby extension in C." s.email = "flori@ping.de" s.extensions = ["ext/json/ext/generator/extconf.rb", "ext/json/ext/parser/extconf.rb", "ext/json/extconf.rb"] From cc2b5d18ac016eead0722531bcd343054500e223 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sun, 29 Dec 2019 19:05:54 +0800 Subject: [PATCH 3/4] Removed gemspec_ext from gemspec task because it always add control char to gemspec. --- Rakefile | 41 +---------------------------------------- json.gemspec | 2 +- 2 files changed, 2 insertions(+), 41 deletions(-) diff --git a/Rakefile b/Rakefile index c75f5bbca..12938c7ad 100644 --- a/Rakefile +++ b/Rakefile @@ -115,47 +115,8 @@ if defined?(Gem) and defined?(Gem::PackageTask) pkg.package_files = PKG_FILES end - spec_ext = Gem::Specification.new do |s| - s.name = 'json' - s.version = PKG_VERSION - s.summary = PKG_TITLE - s.description = "This is a JSON implementation as a Ruby extension in C." - - s.files = PKG_FILES - - s.extensions = FileList['ext/**/extconf.rb'] - - s.require_path = 'lib' - s.add_development_dependency 'rake' - s.add_development_dependency 'test-unit', '~> 2.0' - - s.extra_rdoc_files << 'README.md' - s.rdoc_options << - '--title' << 'JSON implemention for Ruby' << '--main' << 'README.md' - s.test_files.concat Dir['./tests/test_*.rb'] - - s.author = "Florian Frank" - s.email = "flori@ping.de" - s.homepage = "http://flori.github.com/#{PKG_NAME}" - s.license = 'Ruby' - s.required_ruby_version = '>= 1.9' - end - - desc 'Creates a json.gemspec file' - task :gemspec_ext => :version do - File.open('json.gemspec', 'w') do |gemspec| - gemspec.write spec_ext.to_ruby - end - end - - Gem::PackageTask.new(spec_ext) do |pkg| - pkg.need_tar = true - pkg.package_files = PKG_FILES - end - - desc 'Create all gemspec files' - task :gemspec => [ :gemspec_pure, :gemspec_ext ] + task :gemspec => [ :gemspec_pure ] end desc m = "Writing version information for #{PKG_VERSION}" diff --git a/json.gemspec b/json.gemspec index 1a23eb6de..0156355a8 100644 --- a/json.gemspec +++ b/json.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |s| s.name = "json" - s.version = "2.3.0" + s.version = File.read('VERSION').chomp s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.require_paths = ["lib"] From e1a816db83b6ff000064b7afb71ad243b934968f Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sun, 29 Dec 2019 19:08:25 +0800 Subject: [PATCH 4/4] Added instruction to Relase section --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index af1ed68ea..682db2f25 100644 --- a/README.md +++ b/README.md @@ -391,8 +391,11 @@ Here are the median comparisons for completeness' sake: ``` ## Development + ### Release +Update the json.gemspec and json-java.gemspec. + ``` rbenv shell 2.6.5 rake build