File tree Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 1+ * Gregg Kellogg <gregg@greggkellogg.net>
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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'
You can’t perform that action at this time.
0 commit comments