Skip to content

Commit 8664f8f

Browse files
committed
Switch to bundler for gem management
1 parent 53c429e commit 8664f8f

File tree

4 files changed

+30
-28
lines changed

4 files changed

+30
-28
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.swp
22
pkg
33
doc
4+
Gemfile.lock

Diff for: Gemfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source "http://rubygems.org"
2+
3+
gem "net-ssh-shell", :path => '.'

Diff for: Rakefile

+3-28
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,3 @@
1-
require './lib/net/ssh/shell/version'
2-
3-
begin
4-
require 'echoe'
5-
rescue LoadError
6-
abort "You'll need to have `echoe' installed to use Net::SSH::Shell's Rakefile"
7-
end
8-
9-
version = Net::SSH::Shell::Version::STRING.dup
10-
if ENV['SNAPSHOT'].to_i == 1
11-
version << "." << Time.now.utc.strftime("%Y%m%d%H%M%S")
12-
end
13-
14-
Echoe.new('net-ssh-shell', version) do |p|
15-
p.changelog = "CHANGELOG.rdoc"
16-
17-
p.author = "Jamis Buck"
18-
p.email = "[email protected]"
19-
p.summary = "A simple library to aid with stateful shell interactions"
20-
p.url = "http://net-ssh.rubyforge.org/shell"
21-
22-
p.dependencies = ["net-ssh >=2.0.9"]
23-
24-
p.need_zip = true
25-
p.include_rakefile = true
26-
27-
p.rdoc_pattern = /^(lib|README.rdoc|CHANGELOG.rdoc)/
28-
end
1+
require 'rubygems'
2+
require 'bundler/setup'
3+
Bundler::GemHelper.install_tasks

Diff for: net-ssh-shell.gemspec

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
require File.expand_path("../lib/net/ssh/shell/version", __FILE__)
2+
3+
Gem::Specification.new do |s|
4+
s.name = "net-ssh-shell"
5+
s.version = Net::SSH::Shell::Version::STRING
6+
s.platform = Gem::Platform::RUBY
7+
s.authors = ["Jamis Buck"]
8+
s.email = ["[email protected]"]
9+
s.homepage = "http://github.com/mitchellh/net-ssh-shell"
10+
s.summary = "A simple library to aid with stateful shell interactions"
11+
s.description = "A simple library to aid with stateful shell interactions"
12+
13+
s.required_rubygems_version = ">= 1.3.6"
14+
s.rubyforge_project = "net-ssh-shell"
15+
16+
s.add_dependency "net-ssh", "~> 2.0.23"
17+
18+
s.add_development_dependency "rake"
19+
20+
s.files = `git ls-files`.split("\n")
21+
s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
22+
s.require_path = 'lib'
23+
end

0 commit comments

Comments
 (0)