screwcap 0.6 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest.txt +0 -1
- data/Rakefile +1 -1
- data/lib/screwcap/task.rb +10 -0
- data/lib/screwcap.rb +1 -1
- data/screwcap.gemspec +3 -3
- metadata +7 -7
- data/runrdoc +0 -1
data/Manifest.txt
CHANGED
data/Rakefile
CHANGED
@@ -11,7 +11,7 @@ Hoe.plugin :newgem
|
|
11
11
|
# Generate all the Rake tasks
|
12
12
|
# Run 'rake -T' to see list of generated tasks (from gem root directory)
|
13
13
|
$hoe = Hoe.spec 'screwcap' do
|
14
|
-
self.version = '0.6'
|
14
|
+
self.version = '0.6.1'
|
15
15
|
self.developer 'Grant Ammons', 'grant@pipelinedeals.com'
|
16
16
|
self.rubyforge_name = self.name # TODO this is default value
|
17
17
|
self.extra_deps = [['net-ssh','>= 2.0.23'],['net-ssh-gateway','>=1.0.1'], ['net-scp','>=1.0.4']]
|
data/lib/screwcap/task.rb
CHANGED
@@ -216,6 +216,16 @@ class Task < Screwcap::Base
|
|
216
216
|
def method_missing(m, *args) # :nodoc
|
217
217
|
if m.to_s[0..1] == "__" or [:run].include?(m) or m.to_s.reverse[0..0] == "="
|
218
218
|
super(m, args.first)
|
219
|
+
elsif m == :to_ary
|
220
|
+
# In Ruby 1.9, Array#flatten calls #to_ary on each of the
|
221
|
+
# array's children and only if there is a NoMethodError raised
|
222
|
+
# does it assume the object is not an array. Compare this to
|
223
|
+
# 1.8.7 where Array#flatten used #respond_to? to determine
|
224
|
+
# if the object responded to #to_ary before calling it.
|
225
|
+
#
|
226
|
+
# Therefore we need to raise this error if someone calls #to_ary
|
227
|
+
# on us
|
228
|
+
raise NoMethodError
|
219
229
|
else
|
220
230
|
self.__commands << {:command => m, :type => :unknown, :from => self.__name}
|
221
231
|
end
|
data/lib/screwcap.rb
CHANGED
data/screwcap.gemspec
CHANGED
@@ -13,9 +13,9 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.homepage = "http://github.com/gammons/screwcap"
|
14
14
|
s.summary = "Screwcap is a wrapper of Net::SSH and allows for easy configuration, organization, and management of running tasks on remote servers."
|
15
15
|
|
16
|
-
s.add_dependency(
|
17
|
-
s.add_dependency(
|
18
|
-
s.add_dependency(
|
16
|
+
s.add_dependency('net-ssh','>=2.0.23')
|
17
|
+
s.add_dependency('net-ssh-gateway','>=1.0.1')
|
18
|
+
s.add_dependency('net-scp','>=1.0.4')
|
19
19
|
s.rubyforge_project = 'screwcap'
|
20
20
|
|
21
21
|
s.files = Dir.glob("{bin,lib}/**/*") + %w(README.rdoc screwcap.gemspec)
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: screwcap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
|
9
|
+
- 1
|
10
|
+
version: 0.6.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Grant Ammons
|
@@ -14,7 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-
|
18
|
+
date: 2010-12-22 00:00:00 -05:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
@@ -92,9 +93,9 @@ dependencies:
|
|
92
93
|
hash: 19
|
93
94
|
segments:
|
94
95
|
- 2
|
95
|
-
-
|
96
|
-
-
|
97
|
-
version: 2.
|
96
|
+
- 7
|
97
|
+
- 0
|
98
|
+
version: 2.7.0
|
98
99
|
type: :development
|
99
100
|
version_requirements: *id005
|
100
101
|
description: Screwcap is a library that wraps Net::SSH and makes it easy to perform actions on remote servers.
|
@@ -124,7 +125,6 @@ files:
|
|
124
125
|
- lib/screwcap/task_manager.rb
|
125
126
|
- lib/trollop.rb
|
126
127
|
- recipes/setup_rails.rb
|
127
|
-
- runrdoc
|
128
128
|
- screwcap.gemspec
|
129
129
|
- spec/runner_spec.rb
|
130
130
|
- spec/sequence_spec.rb
|
data/runrdoc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
rdoc -x trollop -x spec -x runner -x object -x message -x tasknotfound -x runrdoc
|