do 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.md +4 -0
- data/lib/do/common.rb +1 -0
- data/lib/do/parser.rb +3 -2
- data/lib/do/version.rb +1 -1
- metadata +7 -5
data/CHANGES.md
CHANGED
data/lib/do/common.rb
CHANGED
data/lib/do/parser.rb
CHANGED
@@ -16,8 +16,9 @@ module DO
|
|
16
16
|
# --foo
|
17
17
|
# -foo
|
18
18
|
when /^-{1,2}(.+)/
|
19
|
-
|
20
|
-
|
19
|
+
key = $1.to_sym
|
20
|
+
value = args[i+1] && args[i+1] !~ /^-{1,2}/ ? args.delete_at(i+1) : true
|
21
|
+
options[key] = value
|
21
22
|
end
|
22
23
|
end
|
23
24
|
|
data/lib/do/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: do
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Davide D'Agostino
|
@@ -15,7 +15,8 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-08-
|
18
|
+
date: 2011-08-27 00:00:00 +02:00
|
19
|
+
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: net-ssh
|
@@ -83,6 +84,7 @@ files:
|
|
83
84
|
- spec/spec_helper.rb
|
84
85
|
- spec/tasks_spec.rb
|
85
86
|
- spec/utils_spec.rb
|
87
|
+
has_rdoc: true
|
86
88
|
homepage: https://github.com/daddye/do
|
87
89
|
licenses: []
|
88
90
|
|
@@ -115,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
117
|
requirements: []
|
116
118
|
|
117
119
|
rubyforge_project:
|
118
|
-
rubygems_version: 1.
|
120
|
+
rubygems_version: 1.6.2
|
119
121
|
signing_key:
|
120
122
|
specification_version: 3
|
121
123
|
summary: DO is a thin framework useful to manage remote servers through ssh.
|