Skip to content

Commit

Permalink
use jeweler for gem packaging (0.6.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Wiggins committed Jun 20, 2009
1 parent fd15b57 commit 581d9c9
Show file tree
Hide file tree
Showing 3 changed files with 133 additions and 85 deletions.
76 changes: 24 additions & 52 deletions Rakefile
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,28 @@
require 'rake' 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' require 'spec/rake/spectask'


desc "Run all specs" desc "Run all specs"
Expand All @@ -23,57 +47,7 @@ task :default => :spec


###################################################### ######################################################


require 'rake'
require 'rake/testtask'
require 'rake/clean'
require 'rake/gempackagetask'
require 'rake/rdoctask' 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| Rake::RDocTask.new do |t|
t.rdoc_dir = 'rdoc' t.rdoc_dir = 'rdoc'
Expand All @@ -85,5 +59,3 @@ Rake::RDocTask.new do |t|
t.rdoc_files.include('lib/rush/*.rb') t.rdoc_files.include('lib/rush/*.rb')
end end


CLEAN.include [ 'pkg', '*.gem', '.config' ]

1 change: 1 addition & 0 deletions VERSION
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1 @@
0.6.1
141 changes: 108 additions & 33 deletions rush.gemspec
Original file line number Original file line Diff line number Diff line change
@@ -1,38 +1,113 @@
# -*- encoding: utf-8 -*-

Gem::Specification.new do |s| Gem::Specification.new do |s|
s.name = "rush" s.name = %q{rush}
s.version = "0.6" s.version = "0.6.1"
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.add_dependency 'mongrel' s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.add_dependency 'session' 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 if s.respond_to? :specification_version then
s.has_rdoc = true current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION

s.specification_version = 2
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
)


s.require_path = "lib" if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
s.bindir = "bin" s.add_runtime_dependency(%q<mongrel>, [">= 0"])
s.executables = [ "rush", "rushd" ] 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 end

0 comments on commit 581d9c9

Please sign in to comment.