do 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.1.3 - August 26, 2011
2
+
3
+ * Fixed a small bug in option parser
4
+
1
5
  ## 0.1.2 - August 24, 2011
2
6
 
3
7
  * Tiny Regex change, and aliasing :on => :webserver for :in => :webserver [Thanks to Doug Johnson]
@@ -83,5 +83,6 @@ task :help do
83
83
 
84
84
  Options:
85
85
  Each task can accept multiple options
86
+
86
87
  TEXT
87
88
  end
@@ -16,8 +16,9 @@ module DO
16
16
  # --foo
17
17
  # -foo
18
18
  when /^-{1,2}(.+)/
19
- value = args[i+1] && args[i+1] != /^--/ ? args.delete_at(i+1) : true
20
- options[$1.to_sym] = value
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
 
@@ -1,3 +1,3 @@
1
1
  module DO
2
- VERSION = "0.1.2" unless defined?(DO::VERSION)
2
+ VERSION = "0.1.3" unless defined?(DO::VERSION)
3
3
  end
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: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
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-24 00:00:00 Z
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.8.8
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.