Skip to content

Commit 9e8de8c

Browse files
committed
Add gem:build/release rake targets.
1 parent 759dec5 commit 9e8de8c

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

Rakefile

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
#!/usr/bin/env ruby
22
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), 'lib')))
33
require 'rubygems'
4-
begin
5-
require 'rakefile' # @see http://github.com/bendiken/rakefile
6-
rescue LoadError => e
7-
end
8-
94
require 'rdf/spec'
105

11-
desc "Build the rdf-spec-#{File.read('VERSION').chomp}.gem file"
12-
task :build do
13-
sh "gem build .gemspec"
6+
namespace :gem do
7+
desc "Build the rdf-spec-#{File.read('VERSION').chomp}.gem file"
8+
task :build => "lib/rdf/turtle/meta.rb" do
9+
sh "gem build rdf-spec.gemspec && mv rdf-spec-#{File.read('VERSION').chomp}.gem pkg/"
10+
end
11+
12+
desc "Release the rdf-spec-#{File.read('VERSION').chomp}.gem file"
13+
task :release do
14+
sh "gem push pkg/rdf-spec-#{File.read('VERSION').chomp}.gem"
15+
end
1416
end
1517

1618
desc "Build etc files"

0 commit comments

Comments
 (0)