Skip to content

Commit 7bd884e

Browse files
committed
Add some missing files.
1 parent dc5791c commit 7bd884e

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* Gregg Kellogg <gregg@greggkellogg.net>

Rakefile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/usr/bin/env ruby
2+
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), 'lib')))
3+
require 'rubygems'
4+
5+
namespace :gem do
6+
desc "Build the json-canonicalization-#{File.read('VERSION').chomp}.gem file"
7+
task :build do
8+
sh "gem build json-canonicalization.gemspec && mv json-canonicalization-#{File.read('VERSION').chomp}.gem pkg/"
9+
end
10+
11+
desc "Release the json-canonicalization-#{File.read('VERSION').chomp}.gem file"
12+
task :release do
13+
sh "gem push pkg/json-canonicalization-#{File.read('VERSION').chomp}.gem"
14+
end
15+
end
16+
17+
desc 'Default: run specs.'
18+
task default: :spec
19+
task specs: :spec
20+
21+
require 'rspec/core/rake_task'
22+
desc 'Run specifications'
23+
RSpec::Core::RakeTask.new do |spec|
24+
spec.rspec_opts = %w(--options spec/spec.opts) if File.exists?('spec/spec.opts')
25+
end
26+
27+
desc "Run specifications for continuous integration"
28+
RSpec::Core::RakeTask.new("spec:ci") do |spec|
29+
spec.rspec_opts = %w(--options spec/spec.opts) if File.exists?('spec/spec.opts')
30+
end

json-canonicalization.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
1414
gem.authors = ['Gregg Kellogg']
1515

1616
gem.platform = Gem::Platform::RUBY
17-
gem.files = %w(AUTHORS README.md UNLICENSE VERSION) + Dir.glob('lib/**/*.rb')
17+
gem.files = %w(AUTHORS README.md LICENSE VERSION) + Dir.glob('lib/**/*.rb')
1818
gem.test_files = Dir.glob('spec/**/*.rb') + Dir.glob('spec/**/*.json')
1919

2020
gem.required_ruby_version = '>= 2.2.2'

0 commit comments

Comments
 (0)