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

Update gemspec #398

Merged
merged 4 commits into from
Dec 29, 2019
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
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
41 changes: 1 addition & 40 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
Binary file modified json.gemspec
Binary file not shown.