Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup gemspec #415

Merged
merged 4 commits into from
Jun 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ if defined?(Gem) and defined?(Gem::PackageTask)

s.require_path = 'lib'
s.add_development_dependency 'rake'
s.add_development_dependency 'test-unit', '~> 2.0'
s.add_development_dependency 'test-unit', '>= 2.0', '< 4.0'

s.extra_rdoc_files << 'README.md'
s.rdoc_options <<
Expand All @@ -106,7 +106,10 @@ if defined?(Gem) and defined?(Gem::PackageTask)
desc 'Creates a json_pure.gemspec file'
task :gemspec_pure => :version do
File.open('json_pure.gemspec', 'w') do |gemspec|
gemspec.write spec_pure.to_ruby
src = spec_pure.to_ruby
src.gsub!(/# stub:.*/, "# This gemspec is generated automatically using `rake gemspec`.\n" \
"# Do not modify directly.")
gemspec.write src
end
end

Expand All @@ -115,7 +118,7 @@ if defined?(Gem) and defined?(Gem::PackageTask)
pkg.package_files = PKG_FILES
end

desc 'Create all gemspec files'
desc 'Alias for gemspec_pure'
task :gemspec => [ :gemspec_pure ]
end

Expand Down
6 changes: 3 additions & 3 deletions json-java.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ spec = Gem::Specification.new do |s|

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"])
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"])
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"])
s.add_dependency(%q<test-unit>, [">= 2.0", "< 4.0"])
end
end

Expand Down
2 changes: 1 addition & 1 deletion json.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,5 @@ Gem::Specification.new do |s|
s.test_files = ["tests/test_helper.rb"]

s.add_development_dependency("rake", [">= 0"])
s.add_development_dependency("test-unit", ["~> 2.0"])
s.add_development_dependency("test-unit", [">= 2.0", "< 4.0"])
end
22 changes: 10 additions & 12 deletions json_pure.gemspec
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- encoding: utf-8 -*-
# stub: json_pure 2.3.0 ruby lib
# This gemspec is generated automatically using `rake gemspec`.
# Do not modify directly.

Gem::Specification.new do |s|
s.name = "json_pure".freeze
Expand All @@ -8,31 +9,28 @@ Gem::Specification.new do |s|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
s.require_paths = ["lib".freeze]
s.authors = ["Florian Frank".freeze]
s.date = "2019-12-11"
s.date = "2020-06-25"
s.description = "This is a JSON implementation in pure Ruby.".freeze
s.email = "[email protected]".freeze
s.extra_rdoc_files = ["README.md".freeze]
s.files = ["./tests/test_helper.rb".freeze, ".gitignore".freeze, ".travis.yml".freeze, "CHANGES.md".freeze, "Gemfile".freeze, "LICENSE".freeze, "README-json-jruby.md".freeze, "README.md".freeze, "Rakefile".freeze, "VERSION".freeze, "diagrams/.keep".freeze, "ext/json/ext/fbuffer/fbuffer.h".freeze, "ext/json/ext/generator/depend".freeze, "ext/json/ext/generator/extconf.rb".freeze, "ext/json/ext/generator/generator.c".freeze, "ext/json/ext/generator/generator.h".freeze, "ext/json/ext/parser/depend".freeze, "ext/json/ext/parser/extconf.rb".freeze, "ext/json/ext/parser/parser.c".freeze, "ext/json/ext/parser/parser.h".freeze, "ext/json/ext/parser/parser.rl".freeze, "ext/json/extconf.rb".freeze, "install.rb".freeze, "java/src/json/ext/ByteListTranscoder.java".freeze, "java/src/json/ext/Generator.java".freeze, "java/src/json/ext/GeneratorMethods.java".freeze, "java/src/json/ext/GeneratorService.java".freeze, "java/src/json/ext/GeneratorState.java".freeze, "java/src/json/ext/OptionsReader.java".freeze, "java/src/json/ext/Parser.java".freeze, "java/src/json/ext/Parser.rl".freeze, "java/src/json/ext/ParserService.java".freeze, "java/src/json/ext/RuntimeInfo.java".freeze, "java/src/json/ext/StringDecoder.java".freeze, "java/src/json/ext/StringEncoder.java".freeze, "java/src/json/ext/Utils.java".freeze, "json-java.gemspec".freeze, "json.gemspec".freeze, "json_pure.gemspec".freeze, "lib/json.rb".freeze, "lib/json/add/bigdecimal.rb".freeze, "lib/json/add/complex.rb".freeze, "lib/json/add/core.rb".freeze, "lib/json/add/date.rb".freeze, "lib/json/add/date_time.rb".freeze, "lib/json/add/exception.rb".freeze, "lib/json/add/ostruct.rb".freeze, "lib/json/add/range.rb".freeze, "lib/json/add/rational.rb".freeze, "lib/json/add/regexp.rb".freeze, "lib/json/add/set.rb".freeze, "lib/json/add/struct.rb".freeze, "lib/json/add/symbol.rb".freeze, "lib/json/add/time.rb".freeze, "lib/json/common.rb".freeze, "lib/json/ext.rb".freeze, "lib/json/ext/.keep".freeze, "lib/json/generic_object.rb".freeze, "lib/json/pure.rb".freeze, "lib/json/pure/generator.rb".freeze, "lib/json/pure/parser.rb".freeze, "lib/json/version.rb".freeze, "references/rfc7159.txt".freeze, "tests/fixtures/fail10.json".freeze, "tests/fixtures/fail11.json".freeze, "tests/fixtures/fail12.json".freeze, "tests/fixtures/fail13.json".freeze, "tests/fixtures/fail14.json".freeze, "tests/fixtures/fail18.json".freeze, "tests/fixtures/fail19.json".freeze, "tests/fixtures/fail2.json".freeze, "tests/fixtures/fail20.json".freeze, "tests/fixtures/fail21.json".freeze, "tests/fixtures/fail22.json".freeze, "tests/fixtures/fail23.json".freeze, "tests/fixtures/fail24.json".freeze, "tests/fixtures/fail25.json".freeze, "tests/fixtures/fail27.json".freeze, "tests/fixtures/fail28.json".freeze, "tests/fixtures/fail3.json".freeze, "tests/fixtures/fail4.json".freeze, "tests/fixtures/fail5.json".freeze, "tests/fixtures/fail6.json".freeze, "tests/fixtures/fail7.json".freeze, "tests/fixtures/fail8.json".freeze, "tests/fixtures/fail9.json".freeze, "tests/fixtures/obsolete_fail1.json".freeze, "tests/fixtures/pass1.json".freeze, "tests/fixtures/pass15.json".freeze, "tests/fixtures/pass16.json".freeze, "tests/fixtures/pass17.json".freeze, "tests/fixtures/pass2.json".freeze, "tests/fixtures/pass26.json".freeze, "tests/fixtures/pass3.json".freeze, "tests/json_addition_test.rb".freeze, "tests/json_common_interface_test.rb".freeze, "tests/json_encoding_test.rb".freeze, "tests/json_ext_parser_test.rb".freeze, "tests/json_fixtures_test.rb".freeze, "tests/json_generator_test.rb".freeze, "tests/json_generic_object_test.rb".freeze, "tests/json_parser_test.rb".freeze, "tests/json_string_matching_test.rb".freeze, "tests/test_helper.rb".freeze, "tools/diff.sh".freeze, "tools/fuzz.rb".freeze, "tools/server.rb".freeze]
s.homepage = "http://flori.github.com/json".freeze
s.licenses = ["Ruby".freeze]
s.rdoc_options = ["--title".freeze, "JSON implemention for ruby".freeze, "--main".freeze, "README.md".freeze]
s.required_ruby_version = Gem::Requirement.new(">= 1.9".freeze)
s.rubygems_version = "3.0.3".freeze
s.required_ruby_version = Gem::Requirement.new(">= 2.0".freeze)
s.rubygems_version = "3.1.2".freeze
s.summary = "JSON Implementation for Ruby".freeze
s.test_files = ["./tests/test_helper.rb".freeze]

if s.respond_to? :specification_version then
s.specification_version = 4
end

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_development_dependency(%q<rake>.freeze, [">= 0"])
s.add_development_dependency(%q<test-unit>.freeze, ["~> 2.0"])
else
s.add_dependency(%q<rake>.freeze, [">= 0"])
s.add_dependency(%q<test-unit>.freeze, ["~> 2.0"])
end
if s.respond_to? :add_runtime_dependency then
s.add_development_dependency(%q<rake>.freeze, [">= 0"])
s.add_development_dependency(%q<test-unit>.freeze, [">= 2.0", "< 4.0"])
else
s.add_dependency(%q<rake>.freeze, [">= 0"])
s.add_dependency(%q<test-unit>.freeze, ["~> 2.0"])
s.add_dependency(%q<test-unit>.freeze, [">= 2.0", "< 4.0"])
end
end