Permalink
Browse files

use jeweler for gem packaging (0.6.1)

  • Loading branch information...
1 parent fd15b57 commit 581d9c9e0d496f68c044d3d41f00ddc4b7b011dd @adamwiggins committed Jun 20, 2009
Showing with 133 additions and 85 deletions.
  1. +24 −52 Rakefile
  2. +1 −0 VERSION
  3. +108 −33 rush.gemspec
View
@@ -1,4 +1,28 @@
require 'rake'
+
+require 'jeweler'
+
+Jeweler::Tasks.new do |s|
+ s.name = "rush"
+ s.summary = "A Ruby replacement for bash+ssh."
+ s.description = "A Ruby replacement for bash+ssh, providing both an interactive shell and a library. Manage both local and remote unix systems from a single client."
+ s.author = "Adam Wiggins"
+ s.email = "adam@heroku.com"
+ s.homepage = "http://rush.heroku.com/"
+ s.executables = [ "rush", "rushd" ]
+ s.rubyforge_project = "ruby-shell"
+ s.has_rdoc = true
+
+ s.add_dependency 'mongrel'
+ s.add_dependency 'session'
+
+ s.files = FileList["[A-Z]*", "{bin,lib,spec}/**/*"]
+end
+
+Jeweler::RubyforgeTasks.new
+
+######################################################
+
require 'spec/rake/spectask'
desc "Run all specs"
@@ -23,57 +47,7 @@ task :default => :spec
######################################################
-require 'rake'
-require 'rake/testtask'
-require 'rake/clean'
-require 'rake/gempackagetask'
require 'rake/rdoctask'
-require 'fileutils'
-include FileUtils
-
-version = "0.6"
-name = "rush"
-
-spec = Gem::Specification.new do |s|
- s.name = name
- s.version = version
- s.summary = "A Ruby replacement for bash+ssh."
- s.description = "A Ruby replacement for bash+ssh, providing both an interactive shell and a library. Manage both local and remote unix systems from a single client."
- s.author = "Adam Wiggins"
- s.email = "adam@heroku.com"
- s.homepage = "http://rush.heroku.com/"
- s.executables = [ "rush", "rushd" ]
- s.rubyforge_project = "ruby-shell"
-
- s.add_dependency 'mongrel'
- s.add_dependency 'session'
-
- s.platform = Gem::Platform::RUBY
- s.has_rdoc = true
-
- s.files = %w(Rakefile) + Dir.glob("{bin,lib,spec}/**/*")
-
- s.require_path = "lib"
- s.bindir = "bin"
-end
-
-Rake::GemPackageTask.new(spec) do |p|
- p.need_tar = true if RUBY_PLATFORM !~ /mswin/
-end
-
-task :install => [ :package ] do
- sh %{sudo gem install pkg/#{name}-#{version}.gem}
-end
-
-task :uninstall => [ :clean ] do
- sh %{sudo gem uninstall #{name}}
-end
-
-Rake::TestTask.new do |t|
- t.libs << "spec"
- t.test_files = FileList['spec/*_spec.rb']
- t.verbose = true
-end
Rake::RDocTask.new do |t|
t.rdoc_dir = 'rdoc'
@@ -85,5 +59,3 @@ Rake::RDocTask.new do |t|
t.rdoc_files.include('lib/rush/*.rb')
end
-CLEAN.include [ 'pkg', '*.gem', '.config' ]
-
View
@@ -0,0 +1 @@
+0.6.1
View
@@ -1,38 +1,113 @@
+# -*- encoding: utf-8 -*-
+
Gem::Specification.new do |s|
- s.name = "rush"
- s.version = "0.6"
- s.summary = "A Ruby replacement for bash+ssh."
- s.description = "A Ruby replacement for bash+ssh, providing both an interactive shell and a library. Manage both local and remote unix systems from a single client."
- s.author = "Adam Wiggins"
- s.email = "adam@heroku.com"
- s.homepage = "http://rush.heroku.com/"
- s.rubyforge_project = "ruby-shell"
+ s.name = %q{rush}
+ s.version = "0.6.1"
- s.add_dependency 'mongrel'
- s.add_dependency 'session'
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Adam Wiggins"]
+ s.date = %q{2009-06-20}
+ s.description = %q{A Ruby replacement for bash+ssh, providing both an interactive shell and a library. Manage both local and remote unix systems from a single client.}
+ s.email = %q{adam@heroku.com}
+ s.executables = ["rush", "rushd"]
+ s.extra_rdoc_files = [
+ "README.rdoc"
+ ]
+ s.files = [
+ "README.rdoc",
+ "Rakefile",
+ "VERSION",
+ "bin/rush",
+ "bin/rushd",
+ "lib/rush.rb",
+ "lib/rush/access.rb",
+ "lib/rush/array_ext.rb",
+ "lib/rush/box.rb",
+ "lib/rush/commands.rb",
+ "lib/rush/config.rb",
+ "lib/rush/dir.rb",
+ "lib/rush/embeddable_shell.rb",
+ "lib/rush/entry.rb",
+ "lib/rush/exceptions.rb",
+ "lib/rush/file.rb",
+ "lib/rush/find_by.rb",
+ "lib/rush/fixnum_ext.rb",
+ "lib/rush/head_tail.rb",
+ "lib/rush/local.rb",
+ "lib/rush/process.rb",
+ "lib/rush/process_set.rb",
+ "lib/rush/remote.rb",
+ "lib/rush/search_results.rb",
+ "lib/rush/server.rb",
+ "lib/rush/shell.rb",
+ "lib/rush/ssh_tunnel.rb",
+ "lib/rush/string_ext.rb",
+ "spec/access_spec.rb",
+ "spec/array_ext_spec.rb",
+ "spec/base.rb",
+ "spec/box_spec.rb",
+ "spec/commands_spec.rb",
+ "spec/config_spec.rb",
+ "spec/dir_spec.rb",
+ "spec/embeddable_shell_spec.rb",
+ "spec/entry_spec.rb",
+ "spec/file_spec.rb",
+ "spec/find_by_spec.rb",
+ "spec/fixnum_ext_spec.rb",
+ "spec/local_spec.rb",
+ "spec/process_set_spec.rb",
+ "spec/process_spec.rb",
+ "spec/remote_spec.rb",
+ "spec/rush_spec.rb",
+ "spec/search_results_spec.rb",
+ "spec/shell_spec.rb",
+ "spec/ssh_tunnel_spec.rb",
+ "spec/string_ext_spec.rb"
+ ]
+ s.has_rdoc = true
+ s.homepage = %q{http://rush.heroku.com/}
+ s.rdoc_options = ["--charset=UTF-8"]
+ s.require_paths = ["lib"]
+ s.rubyforge_project = %q{ruby-shell}
+ s.rubygems_version = %q{1.3.1}
+ s.summary = %q{A Ruby replacement for bash+ssh.}
+ s.test_files = [
+ "spec/access_spec.rb",
+ "spec/array_ext_spec.rb",
+ "spec/base.rb",
+ "spec/box_spec.rb",
+ "spec/commands_spec.rb",
+ "spec/config_spec.rb",
+ "spec/dir_spec.rb",
+ "spec/embeddable_shell_spec.rb",
+ "spec/entry_spec.rb",
+ "spec/file_spec.rb",
+ "spec/find_by_spec.rb",
+ "spec/fixnum_ext_spec.rb",
+ "spec/local_spec.rb",
+ "spec/process_set_spec.rb",
+ "spec/process_spec.rb",
+ "spec/remote_spec.rb",
+ "spec/rush_spec.rb",
+ "spec/search_results_spec.rb",
+ "spec/shell_spec.rb",
+ "spec/ssh_tunnel_spec.rb",
+ "spec/string_ext_spec.rb"
+ ]
- s.platform = Gem::Platform::RUBY
- s.has_rdoc = true
-
- s.files = %w(
- Rakefile README.rdoc rush.gemspec
- bin/rush bin/rushd
- lib/rush.rb
- lib/rush/access.rb lib/rush/array_ext.rb lib/rush/box.rb lib/rush/commands.rb
- lib/rush/config.rb lib/rush/dir.rb lib/rush/embeddable_shell.rb lib/rush/entry.rb
- lib/rush/exceptions.rb lib/rush/file.rb lib/rush/find_by.rb lib/rush/fixnum_ext.rb
- lib/rush/head_tail.rb lib/rush/local.rb lib/rush/process.rb lib/rush/process_set.rb
- lib/rush/remote.rb lib/rush/search_results.rb lib/rush/server.rb lib/rush/shell.rb
- lib/rush/ssh_tunnel.rb lib/rush/string_ext.rb
- spec/access_spec.rb spec/array_ext_spec.rb spec/base.rb spec/box_spec.rb
- spec/commands_spec.rb spec/config_spec.rb spec/dir_spec.rb spec/embeddable_shell_spec.rb
- spec/entry_spec.rb spec/file_spec.rb spec/find_by_spec.rb spec/fixnum_ext_spec.rb
- spec/local_spec.rb spec/process_set_spec.rb spec/process_spec.rb spec/remote_spec.rb
- spec/rush_spec.rb spec/search_results_spec.rb spec/shell_spec.rb spec/ssh_tunnel_spec.rb
- spec/string_ext_spec.rb
- )
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 2
- s.require_path = "lib"
- s.bindir = "bin"
- s.executables = [ "rush", "rushd" ]
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
+ s.add_runtime_dependency(%q<mongrel>, [">= 0"])
+ s.add_runtime_dependency(%q<session>, [">= 0"])
+ else
+ s.add_dependency(%q<mongrel>, [">= 0"])
+ s.add_dependency(%q<session>, [">= 0"])
+ end
+ else
+ s.add_dependency(%q<mongrel>, [">= 0"])
+ s.add_dependency(%q<session>, [">= 0"])
+ end
end

0 comments on commit 581d9c9

Please sign in to comment.