Permalink
Browse files

Switch to bundler for gem management

  • Loading branch information...
1 parent 53c429e commit 8664f8f613ecdceb5f8589ce55a09da5bd852bb4 @mitchellh committed Jan 7, 2011
Showing with 30 additions and 28 deletions.
  1. +1 −0 .gitignore
  2. +3 −0 Gemfile
  3. +3 −28 Rakefile
  4. +23 −0 net-ssh-shell.gemspec
View
@@ -1,3 +1,4 @@
*.swp
pkg
doc
+Gemfile.lock
View
@@ -0,0 +1,3 @@
+source "http://rubygems.org"
+
+gem "net-ssh-shell", :path => '.'
View
@@ -1,28 +1,3 @@
-require './lib/net/ssh/shell/version'
-
-begin
- require 'echoe'
-rescue LoadError
- abort "You'll need to have `echoe' installed to use Net::SSH::Shell's Rakefile"
-end
-
-version = Net::SSH::Shell::Version::STRING.dup
-if ENV['SNAPSHOT'].to_i == 1
- version << "." << Time.now.utc.strftime("%Y%m%d%H%M%S")
-end
-
-Echoe.new('net-ssh-shell', version) do |p|
- p.changelog = "CHANGELOG.rdoc"
-
- p.author = "Jamis Buck"
- p.email = "jamis@jamisbuck.org"
- p.summary = "A simple library to aid with stateful shell interactions"
- p.url = "http://net-ssh.rubyforge.org/shell"
-
- p.dependencies = ["net-ssh >=2.0.9"]
-
- p.need_zip = true
- p.include_rakefile = true
-
- p.rdoc_pattern = /^(lib|README.rdoc|CHANGELOG.rdoc)/
-end
+require 'rubygems'
+require 'bundler/setup'
+Bundler::GemHelper.install_tasks
View
@@ -0,0 +1,23 @@
+require File.expand_path("../lib/net/ssh/shell/version", __FILE__)
+
+Gem::Specification.new do |s|
+ s.name = "net-ssh-shell"
+ s.version = Net::SSH::Shell::Version::STRING
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Jamis Buck"]
+ s.email = ["jamis@jamisbuck.org"]
+ s.homepage = "http://github.com/mitchellh/net-ssh-shell"
+ s.summary = "A simple library to aid with stateful shell interactions"
+ s.description = "A simple library to aid with stateful shell interactions"
+
+ s.required_rubygems_version = ">= 1.3.6"
+ s.rubyforge_project = "net-ssh-shell"
+
+ s.add_dependency "net-ssh", "~> 2.0.23"
+
+ s.add_development_dependency "rake"
+
+ s.files = `git ls-files`.split("\n")
+ s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
+ s.require_path = 'lib'
+end

0 comments on commit 8664f8f

Please sign in to comment.