do 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 0.1.2 - August 24, 2011
2
+
3
+ * Tiny Regex change, and aliasing :on => :webserver for :in => :webserver [Thanks to Doug Johnson]
4
+ * :on is now an alias for :in [Thanks to Doug Johnson]
5
+ * Removed trailing colon from /password:/ regex [Thanks to Doug Johnson]
6
+ * Updated net-ssh dependency to latest version
7
+
1
8
  ## 0.1.1 - August 14, 2011
2
9
 
3
10
  * Remove rake dependency
data/README.md CHANGED
@@ -152,7 +152,7 @@ plugin :vim, 'https://raw.github.com/DAddYE/.do/master/vim.rake'
152
152
  However we have a `doit` command for that:
153
153
 
154
154
  ```sh
155
- $ doit download --url https://raw.github.com/DAddYE/.do/master/l.rake
155
+ $ doit download --url https://raw.github.com/DAddYE/.do/master/vim.rake
156
156
  ```
157
157
 
158
158
  This command add for you a new line in your `~/.do/dorc` and perform:
data/do.gemspec CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
14
14
  gem.name = "do"
15
15
  gem.require_paths = ['lib']
16
16
  gem.version = DO::VERSION
17
- gem.add_dependency "net-ssh", "~>2.1.4"
17
+ gem.add_dependency "net-ssh", "~>2.2.0"
18
18
  gem.add_dependency "net-sftp", "~>2.0.5"
19
19
 
20
20
  gem.post_install_message = "\e[32m" + ("*" * 60) + "\n"
data/lib/do/server.rb CHANGED
@@ -87,11 +87,11 @@ module DO
87
87
  result << data
88
88
  DO_LOGGER.print(data) unless options[:silent]
89
89
  if options[:input]
90
- match = options[:match] || /password:/i
90
+ match = options[:match] || /password/i
91
91
  if data =~ match
92
92
  options[:input] += "\n" if options[:input][-1] != ?\n
93
93
  channel.send_data(options[:input])
94
- DO_LOGGER.puts(options[:input]) unless options[:silent] || data =~ /password:/i
94
+ DO_LOGGER.puts(options[:input]) unless options[:silent] || data =~ /password/i
95
95
  end
96
96
  end
97
97
  end
data/lib/do/tasks.rb CHANGED
@@ -34,7 +34,7 @@ module DO
34
34
  :deps => Array(deps),
35
35
  :namespace => @_namespace.to_s,
36
36
  :block => block,
37
- :in => Array(options[:in])
37
+ :in => Array(options[:in] ? options[:in] : options[:on])
38
38
  }))
39
39
  tasks[-1]
40
40
  ensure
data/lib/do/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module DO
2
- VERSION = "0.1.1" unless defined?(DO::VERSION)
2
+ VERSION = "0.1.2" unless defined?(DO::VERSION)
3
3
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: do
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 31
5
+ prerelease:
5
6
  segments:
6
7
  - 0
7
8
  - 1
8
- - 1
9
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
10
11
  platform: ruby
11
12
  authors:
12
13
  - Davide D'Agostino
@@ -14,30 +15,33 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2011-08-15 00:00:00 +02:00
18
- default_executable:
18
+ date: 2011-08-24 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: net-ssh
22
22
  prerelease: false
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
24
25
  requirements:
25
26
  - - ~>
26
27
  - !ruby/object:Gem::Version
28
+ hash: 7
27
29
  segments:
28
30
  - 2
29
- - 1
30
- - 4
31
- version: 2.1.4
31
+ - 2
32
+ - 0
33
+ version: 2.2.0
32
34
  type: :runtime
33
35
  version_requirements: *id001
34
36
  - !ruby/object:Gem::Dependency
35
37
  name: net-sftp
36
38
  prerelease: false
37
39
  requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
38
41
  requirements:
39
42
  - - ~>
40
43
  - !ruby/object:Gem::Version
44
+ hash: 5
41
45
  segments:
42
46
  - 2
43
47
  - 0
@@ -79,7 +83,6 @@ files:
79
83
  - spec/spec_helper.rb
80
84
  - spec/tasks_spec.rb
81
85
  - spec/utils_spec.rb
82
- has_rdoc: true
83
86
  homepage: https://github.com/daddye/do
84
87
  licenses: []
85
88
 
@@ -92,23 +95,27 @@ rdoc_options: []
92
95
  require_paths:
93
96
  - lib
94
97
  required_ruby_version: !ruby/object:Gem::Requirement
98
+ none: false
95
99
  requirements:
96
100
  - - ">="
97
101
  - !ruby/object:Gem::Version
102
+ hash: 3
98
103
  segments:
99
104
  - 0
100
105
  version: "0"
101
106
  required_rubygems_version: !ruby/object:Gem::Requirement
107
+ none: false
102
108
  requirements:
103
109
  - - ">="
104
110
  - !ruby/object:Gem::Version
111
+ hash: 3
105
112
  segments:
106
113
  - 0
107
114
  version: "0"
108
115
  requirements: []
109
116
 
110
117
  rubyforge_project:
111
- rubygems_version: 1.3.6
118
+ rubygems_version: 1.8.8
112
119
  signing_key:
113
120
  specification_version: 3
114
121
  summary: DO is a thin framework useful to manage remote servers through ssh.