Browse files

gemspec + rakefile + 0.3.0

  • Loading branch information...
1 parent d872add commit e4f239414a936f1d4f6bd013566e629309a83666 @defunkt committed May 14, 2010
Showing with 32 additions and 22 deletions.
  1. +6 −22 Rakefile
  2. +3 −0 lib/repl/version.rb
  3. +23 −0 repl.gemspec
View
28 Rakefile
@@ -1,31 +1,14 @@
-module Repl
- Version = '0.2.1'
-end
+$LOAD_PATH.unshift 'lib'
+require "repl/version"
def version
- Repl::Version
+ Repl::VERSION
end
def git(command)
system("git #{command}")
end
-
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gemspec|
- gemspec.name = "repl"
- gemspec.summary = gemspec.description = "repl tenderly wraps another program"
- gemspec.homepage = "http://github.com/defunkt/repl"
- gemspec.version = version
- gemspec.authors = ["Chris Wanstrath"]
- gemspec.email = "chris@ozmm.org"
- end
-rescue LoadError
- puts "Jeweler not available."
- puts "Install it with: gem install jeweler"
-end
-
desc "Build manual"
task :build_man do
sh "ron -br5 --organization=DEFUNKT man/*.ron"
@@ -37,12 +20,13 @@ task :man => :build_man do
end
desc "Push a new version to Gemcutter"
-task :publish => [ :gemspec, :build ] do
+task :publish do
git "tag v#{version}"
git "push origin v#{version}"
git "push origin master"
git "push origin master:latest"
- system "gem push pkg/repl-#{version}.gem"
+ sh "gem build repl.gemspec"
+ sh "gem push repl-#{version}.gem"
git "clean -fd"
exec "rake pages"
end
View
3 lib/repl/version.rb
@@ -0,0 +1,3 @@
+module Repl
+ VERSION = "0.3.0"
+end
View
23 repl.gemspec
@@ -0,0 +1,23 @@
+$LOAD_PATH.unshift 'lib'
+require "repl/version"
+
+Gem::Specification.new do |s|
+ s.name = "repl"
+ s.version = Repl::VERSION
+ s.date = Time.now.strftime('%Y-%m-%d')
+ s.summary = "sometimes you need a repl"
+ s.homepage = "http://github.com/defunkt/repl"
+ s.email = "chris@ozmm.org"
+ s.authors = [ "Chris Wanstrath" ]
+ s.has_rdoc = false
+
+ s.files = %w( README.md Rakefile LICENSE )
+ s.files += Dir.glob("bin/**/*")
+ s.files += Dir.glob("man/**/*")
+
+ s.executables = %w( repl )
+ s.description = <<desc
+repl is an interactive program which tenderly wraps another,
+non-interactive program, providing you with a repl shell.
+desc
+end

0 comments on commit e4f2394

Please sign in to comment.