rye 0.9.11 → 0.9.12

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
@@ -1,5 +1,11 @@
1
1
  RYE, CHANGES
2
2
 
3
+ #### 0.9.12 (2014-02-11) #############################
4
+
5
+ * CHANGE: Bumped up sysinfo dep to 0.8.1
6
+ * CHANGE: Pass user, host, nickname to stdout_hook [crandles]
7
+
8
+
3
9
  #### 0.9.11 (2013-11-11) #############################
4
10
 
5
11
  * CHANGE: Removed Gemspec to avoid install issues
data/Rakefile CHANGED
@@ -24,7 +24,7 @@ begin
24
24
  s.homepage = "https://github.com/delano/rye"
25
25
  s.authors = ["Delano Mandelbaum"]
26
26
  s.add_dependency 'annoy'
27
- s.add_dependency 'sysinfo', '>= 0.7.3'
27
+ s.add_dependency 'sysinfo', '>= 0.8.1'
28
28
  s.add_dependency 'highline', '>= 1.5.1'
29
29
  s.add_dependency 'net-ssh', '>= 2.0.13'
30
30
  s.add_dependency 'net-scp', '>= 1.0.2'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.11
1
+ 0.9.12
@@ -90,11 +90,11 @@ module Rye
90
90
  def exception_hook=(val); @rye_exception_hook = val; end
91
91
 
92
92
  # * +host+ The hostname to connect to. Default: localhost.
93
- # * +user+ The username to connect as. Default: SSH config file or current shell user.
94
93
  # * +opts+ a hash of optional arguments.
95
94
  #
96
95
  # The +opts+ hash excepts the following keys:
97
96
  #
97
+ # * :user => the username to connect as. Default: SSH config file or current shell user.
98
98
  # * :safe => should Rye be safe? Default: true
99
99
  # * :port => remote server ssh port. Default: SSH config file or 22
100
100
  # * :keys => one or more private key file paths (passwordless login)
@@ -1069,7 +1069,7 @@ module Rye
1069
1069
  }
1070
1070
  channel.on_data { |ch, data|
1071
1071
  channel[:handler] = ":on_data"
1072
- @rye_stdout_hook.call(data) if !@rye_pty && !@rye_quiet && @rye_stdout_hook.kind_of?(Proc)
1072
+ @rye_stdout_hook.call(data, user, host, nickname) if !@rye_pty && !@rye_quiet && @rye_stdout_hook.kind_of?(Proc)
1073
1073
  if rye_pty && data =~ /password/i
1074
1074
  channel[:prompt] = data
1075
1075
  channel[:state] = :await_input
@@ -11,7 +11,7 @@ module Rye;
11
11
  # with mixins.
12
12
  #
13
13
  # require 'rye'
14
- # module Rye::Box::Cmd
14
+ # module Rye::Cmd
15
15
  # def special(*args); run_command("/your/special/command", args); end
16
16
  # end
17
17
  #
@@ -176,7 +176,7 @@ module Rye;
176
176
  #
177
177
  # Returns a String containing the content of all remote *paths*.
178
178
  def string_download(*paths)
179
- net_scp_transfer!(:download, *paths).string
179
+ net_scp_transfer!(:download, false, *paths).string
180
180
  end
181
181
  alias_method :str_download, :string_download
182
182
 
@@ -184,7 +184,7 @@ module Rye;
184
184
  #
185
185
  # Uploads the content of the String +str+ to +remote_path+. Returns nil
186
186
  def string_upload(str, remote_path)
187
- net_scp_transfer!(:upload, StringIO.new(str), remote_path)
187
+ net_scp_transfer!(:upload, false, StringIO.new(str), remote_path)
188
188
  end
189
189
  alias_method :str_upload, :string_upload
190
190
 
@@ -5,12 +5,12 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "rye"
8
- s.version = "0.9.11"
8
+ s.version = "0.9.12"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Delano Mandelbaum"]
12
12
  s.cert_chain = ["gem-public_cert.pem"]
13
- s.date = "2013-11-11"
13
+ s.date = "2014-02-13"
14
14
  s.description = "Run SSH commands on a bunch of machines at the same time (from Ruby)."
15
15
  s.email = "delano@solutious.com"
16
16
  s.extra_rdoc_files = [
@@ -76,14 +76,14 @@ Gem::Specification.new do |s|
76
76
 
77
77
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
78
78
  s.add_runtime_dependency(%q<annoy>, [">= 0"])
79
- s.add_runtime_dependency(%q<sysinfo>, [">= 0.7.3"])
79
+ s.add_runtime_dependency(%q<sysinfo>, [">= 0.8.1"])
80
80
  s.add_runtime_dependency(%q<highline>, [">= 1.5.1"])
81
81
  s.add_runtime_dependency(%q<net-ssh>, [">= 2.0.13"])
82
82
  s.add_runtime_dependency(%q<net-scp>, [">= 1.0.2"])
83
83
  s.add_runtime_dependency(%q<docile>, [">= 1.0.1"])
84
84
  else
85
85
  s.add_dependency(%q<annoy>, [">= 0"])
86
- s.add_dependency(%q<sysinfo>, [">= 0.7.3"])
86
+ s.add_dependency(%q<sysinfo>, [">= 0.8.1"])
87
87
  s.add_dependency(%q<highline>, [">= 1.5.1"])
88
88
  s.add_dependency(%q<net-ssh>, [">= 2.0.13"])
89
89
  s.add_dependency(%q<net-scp>, [">= 1.0.2"])
@@ -91,7 +91,7 @@ Gem::Specification.new do |s|
91
91
  end
92
92
  else
93
93
  s.add_dependency(%q<annoy>, [">= 0"])
94
- s.add_dependency(%q<sysinfo>, [">= 0.7.3"])
94
+ s.add_dependency(%q<sysinfo>, [">= 0.8.1"])
95
95
  s.add_dependency(%q<highline>, [">= 1.5.1"])
96
96
  s.add_dependency(%q<net-ssh>, [">= 2.0.13"])
97
97
  s.add_dependency(%q<net-scp>, [">= 1.0.2"])
@@ -1,8 +1,6 @@
1
1
  require "rye"
2
2
 
3
- # May need to update this in the future with a
4
- # different free SSH provider
5
- @hostname = "shellmix.com"
3
+ @hostname = "onetimesecret.com"
6
4
 
7
5
  ## Don't prompt for password if "publickey" is the only :auth_method
8
6
  box = Rye::Box.new(
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rye
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.11
4
+ version: 0.9.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -37,7 +37,7 @@ cert_chain:
37
37
  MlhLZnFnOVI3NEtLbVI0aDIyZTc0b3ZqMXZ0b1l2SVRGT1pwQ1FmNDZJdXcr
38
38
  V3pEQTNmegptNG44WUlKSmVyMG5zZz09Ci0tLS0tRU5EIENFUlRJRklDQVRF
39
39
  LS0tLS0K
40
- date: 2013-11-11 00:00:00.000000000 Z
40
+ date: 2014-02-13 00:00:00.000000000 Z
41
41
  dependencies:
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: annoy
@@ -62,7 +62,7 @@ dependencies:
62
62
  requirements:
63
63
  - - ! '>='
64
64
  - !ruby/object:Gem::Version
65
- version: 0.7.3
65
+ version: 0.8.1
66
66
  type: :runtime
67
67
  prerelease: false
68
68
  version_requirements: !ruby/object:Gem::Requirement
@@ -70,7 +70,7 @@ dependencies:
70
70
  requirements:
71
71
  - - ! '>='
72
72
  - !ruby/object:Gem::Version
73
- version: 0.7.3
73
+ version: 0.8.1
74
74
  - !ruby/object:Gem::Dependency
75
75
  name: highline
76
76
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
@@ -1,2 +1 @@
1
- !Qⲇj֡��\Q�����&�Ѧ0S�A.
2
- '00�-o�
1
+ ���rI������LDj�8�tYhk