summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarol Bucek <self@kares.org>2020-07-06 13:32:09 +0200
committerKarol Bucek <self@kares.org>2020-07-06 13:32:09 +0200
commit0662debc5272186a357c16ed5164907cd97d7040 (patch)
tree3832995d687a065de65683def9f9358fab6db043
parent954c42e380d96f79b8c37eb67a4ece0b7ab14e8a (diff)
downloadjson-0662debc5272186a357c16ed5164907cd97d7040.tar.gz
unify json-java gemspec with the baseline
-rwxr-xr-xjson-java.gemspec40
-rw-r--r--json.gemspec12
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<rake>, [">= 0"])
- s.add_development_dependency(%q<test-unit>, [">= 2.0", "< 4.0"])
- else
- s.add_dependency(%q<rake>, [">= 0"])
- s.add_dependency(%q<test-unit>, [">= 2.0", "< 4.0"])
- end
- else
- s.add_dependency(%q<rake>, [">= 0"])
- s.add_dependency(%q<test-unit>, [">= 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"])