File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#!/usr/bin/env ruby
22$:. unshift ( File . expand_path ( File . join ( File . dirname ( __FILE__ ) , 'lib' ) ) )
33require 'rubygems'
4- begin
5- require 'rakefile' # @see http://github.com/bendiken/rakefile
6- rescue LoadError => e
7- end
8-
94require '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
1416end
1517
1618desc "Build etc files"
You can’t perform that action at this time.
0 commit comments