Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Switch to bundler for gem management
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Jan 7, 2011
1 parent 53c429e commit 8664f8f
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 28 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.swp
pkg
doc
Gemfile.lock
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source "http://rubygems.org"

gem "net-ssh-shell", :path => '.'
31 changes: 3 additions & 28 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -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
23 changes: 23 additions & 0 deletions net-ssh-shell.gemspec
Original file line number Diff line number Diff line change
@@ -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.