summaryrefslogtreecommitdiff
path: root/ext/json/json.gemspec
diff options
context:
space:
mode:
Diffstat (limited to 'ext/json/json.gemspec')
-rw-r--r--ext/json/json.gemspec23
1 files changed, 9 insertions, 14 deletions
diff --git a/ext/json/json.gemspec b/ext/json/json.gemspec
index d5f0a4de1d..64d0c81391 100644
--- a/ext/json/json.gemspec
+++ b/ext/json/json.gemspec
@@ -1,8 +1,10 @@
-# -*- encoding: utf-8 -*-
+version = File.foreach(File.join(__dir__, "lib/json/version.rb")) do |line|
+ /^\s*VERSION\s*=\s*'(.*)'/ =~ line and break $1
+end rescue nil
Gem::Specification.new do |s|
s.name = "json"
- s.version = File.read(File.expand_path('../VERSION', __FILE__)).chomp
+ s.version = version
s.summary = "JSON Implementation for Ruby"
s.description = "This is a JSON implementation as a Ruby extension in C."
@@ -15,10 +17,8 @@ Gem::Specification.new do |s|
s.rdoc_options = ["--title", "JSON implementation for Ruby", "--main", "README.md"]
s.files = [
"CHANGES.md",
- "Gemfile",
"LICENSE",
"README.md",
- "VERSION",
"ext/json/ext/fbuffer/fbuffer.h",
"ext/json/ext/generator/depend",
"ext/json/ext/generator/extconf.rb",
@@ -48,26 +48,21 @@ Gem::Specification.new do |s|
"lib/json/add/time.rb",
"lib/json/common.rb",
"lib/json/ext.rb",
- "lib/json/ext/.keep",
"lib/json/generic_object.rb",
"lib/json/pure.rb",
"lib/json/pure/generator.rb",
"lib/json/pure/parser.rb",
"lib/json/version.rb",
- ] + Dir["tests/**/*"]
- s.homepage = "http://flori.github.com/json"
+ ]
+ s.homepage = "https://flori.github.io/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/',
+ 'documentation_uri' => 'https://flori.github.io/json/doc/index.html',
+ 'homepage_uri' => s.homepage,
'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"
- s.add_development_dependency "test-unit"
+ s.required_ruby_version = Gem::Requirement.new(">= 2.3")
end