From 0662debc5272186a357c16ed5164907cd97d7040 Mon Sep 17 00:00:00 2001 From: Karol Bucek Date: Mon, 6 Jul 2020 13:32:09 +0200 Subject: unify json-java gemspec with the baseline --- json-java.gemspec | 40 +++++++++++++++++++++------------------- json.gemspec | 12 ++++++------ 2 files changed, 27 insertions(+), 25 deletions(-) diff --git a/json-java.gemspec b/json-java.gemspec index 1bcd639..78cf9c9 100755 --- a/json-java.gemspec +++ b/json-java.gemspec @@ -1,33 +1,35 @@ -#!/usr/bin/env jruby -require "rubygems" +# -*- encoding: utf-8 -*- spec = Gem::Specification.new do |s| s.name = "json" s.version = File.read("VERSION").chomp - s.summary = "JSON implementation for JRuby" + + s.summary = "JSON Implementation for Ruby" s.description = "A JSON implementation as a JRuby extension." + s.licenses = ["Ruby"] s.author = "Daniel Luz" s.email = "dev+ruby@mernen.com" - s.homepage = "http://flori.github.com/json" - s.platform = 'java' s.licenses = ["Ruby"] + s.platform = 'java' + s.files = Dir["{docs,lib,tests}/**/*"] - if s.respond_to? :specification_version then - s.specification_version = 4 - - if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then - s.add_development_dependency(%q, [">= 0"]) - s.add_development_dependency(%q, [">= 2.0", "< 4.0"]) - else - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, [">= 2.0", "< 4.0"]) - end - else - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, [">= 2.0", "< 4.0"]) - end + s.homepage = "http://flori.github.com/json" + s.metadata = { + 'bug_tracker_uri' => 'https://github.com/flori/json/issues', + 'changelog_uri' => 'https://github.com/flori/json/blob/master/CHANGES.md', + 'documentation_uri' => 'http://flori.github.io/json/doc/index.html', + 'homepage_uri' => 'http://flori.github.io/json/', + 'source_code_uri' => 'https://github.com/flori/json', + 'wiki_uri' => 'https://github.com/flori/json/wiki' + } + + s.required_ruby_version = Gem::Requirement.new(">= 2.0") + s.test_files = ["tests/test_helper.rb"] + + s.add_development_dependency("rake", [">= 0"]) + s.add_development_dependency("test-unit", [">= 2.0", "< 4.0"]) end if $0 == __FILE__ diff --git a/json.gemspec b/json.gemspec index 0c72e82..8870f88 100644 --- a/json.gemspec +++ b/json.gemspec @@ -4,13 +4,15 @@ Gem::Specification.new do |s| s.name = "json" 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"] - s.authors = ["Florian Frank"] + s.summary = "JSON Implementation for Ruby" s.description = "This is a JSON implementation as a Ruby extension in C." + s.licenses = ["Ruby"] + s.authors = ["Florian Frank"] s.email = "flori@ping.de" + s.extensions = ["ext/json/ext/generator/extconf.rb", "ext/json/ext/parser/extconf.rb", "ext/json/extconf.rb"] s.extra_rdoc_files = ["README.md"] + s.rdoc_options = ["--title", "JSON implemention for Ruby", "--main", "README.md"] s.files = [ ".gitignore", ".travis.yml", @@ -128,10 +130,8 @@ Gem::Specification.new do |s| 'source_code_uri' => 'https://github.com/flori/json', 'wiki_uri' => 'https://github.com/flori/json/wiki' } - s.licenses = ["Ruby"] - s.rdoc_options = ["--title", "JSON implemention for Ruby", "--main", "README.md"] + s.required_ruby_version = Gem::Requirement.new(">= 2.0") - s.summary = "JSON Implementation for Ruby" s.test_files = ["tests/test_helper.rb"] s.add_development_dependency("rake", [">= 0"]) -- cgit v1.2.1