rest_connection 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -111,6 +111,7 @@ class Array
111
111
  end
112
112
  end
113
113
 
114
+ alias :old_multiply :*
114
115
  def *(second)
115
116
  if second.is_a?(Integer)
116
117
  ret = []
@@ -121,7 +122,7 @@ class Array
121
122
  each { |x| second.each { |y| ret << [x,y].flatten } }
122
123
  return ret
123
124
  else
124
- raise TypeError.new("can't convert #{second.class} into Integer")
125
+ old_multiply(second)
125
126
  end
126
127
  end
127
128
 
@@ -78,7 +78,7 @@ module SshHax
78
78
  # Test for ability to connect; Net::SSH.start sometimes hangs under certain server-side sshd configs
79
79
  test_ssh = ""
80
80
  [5, 15, 60].each { |timeout_max|
81
- test_ssh = `ssh -ttq -o \"BatchMode=yes\" -o \"StrictHostKeyChecking=no\" -o \"ConnectTimeout #{timeout_max}\" rightscale@#{host_dns} -C \"exit\" 2>&1`.chomp
81
+ test_ssh = `ssh -o \"BatchMode=yes\" -o \"StrictHostKeyChecking=no\" -o \"ConnectTimeout #{timeout_max}\" rightscale@#{host_dns} -C \"exit\" 2>&1`.chomp
82
82
  break if test_ssh =~ /permission denied/i or test_ssh.empty?
83
83
  }
84
84
  raise test_ssh unless test_ssh =~ /permission denied/i or test_ssh.empty?
@@ -1,4 +1,4 @@
1
1
  # This gem is versioned with the usual X.Y.Z notation
2
2
  module RestConnection
3
- VERSION = '1.0.6'
3
+ VERSION = '1.0.7'
4
4
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest_connection
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 6
10
- version: 1.0.6
9
+ - 7
10
+ version: 1.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - RightScale, Inc.
@@ -15,10 +15,9 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-04-20 00:00:00 Z
18
+ date: 2013-05-21 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
- prerelease: false
22
21
  version_requirements: &id001 !ruby/object:Gem::Requirement
23
22
  none: false
24
23
  requirements:
@@ -28,11 +27,11 @@ dependencies:
28
27
  segments:
29
28
  - 0
30
29
  version: "0"
30
+ type: :runtime
31
31
  requirement: *id001
32
+ prerelease: false
32
33
  name: activesupport
33
- type: :runtime
34
34
  - !ruby/object:Gem::Dependency
35
- prerelease: false
36
35
  version_requirements: &id002 !ruby/object:Gem::Requirement
37
36
  none: false
38
37
  requirements:
@@ -42,11 +41,11 @@ dependencies:
42
41
  segments:
43
42
  - 0
44
43
  version: "0"
44
+ type: :runtime
45
45
  requirement: *id002
46
+ prerelease: false
46
47
  name: net-ssh
47
- type: :runtime
48
48
  - !ruby/object:Gem::Dependency
49
- prerelease: false
50
49
  version_requirements: &id003 !ruby/object:Gem::Requirement
51
50
  none: false
52
51
  requirements:
@@ -56,11 +55,11 @@ dependencies:
56
55
  segments:
57
56
  - 0
58
57
  version: "0"
58
+ type: :runtime
59
59
  requirement: *id003
60
+ prerelease: false
60
61
  name: json
61
- type: :runtime
62
62
  - !ruby/object:Gem::Dependency
63
- prerelease: false
64
63
  version_requirements: &id004 !ruby/object:Gem::Requirement
65
64
  none: false
66
65
  requirements:
@@ -70,11 +69,11 @@ dependencies:
70
69
  segments:
71
70
  - 0
72
71
  version: "0"
72
+ type: :runtime
73
73
  requirement: *id004
74
+ prerelease: false
74
75
  name: highline
75
- type: :runtime
76
76
  - !ruby/object:Gem::Dependency
77
- prerelease: false
78
77
  version_requirements: &id005 !ruby/object:Gem::Requirement
79
78
  none: false
80
79
  requirements:
@@ -84,11 +83,11 @@ dependencies:
84
83
  segments:
85
84
  - 0
86
85
  version: "0"
86
+ type: :runtime
87
87
  requirement: *id005
88
+ prerelease: false
88
89
  name: rest-client
89
- type: :runtime
90
90
  - !ruby/object:Gem::Dependency
91
- prerelease: false
92
91
  version_requirements: &id006 !ruby/object:Gem::Requirement
93
92
  none: false
94
93
  requirements:
@@ -98,11 +97,11 @@ dependencies:
98
97
  segments:
99
98
  - 0
100
99
  version: "0"
100
+ type: :runtime
101
101
  requirement: *id006
102
+ prerelease: false
102
103
  name: nokogiri
103
- type: :runtime
104
104
  - !ruby/object:Gem::Dependency
105
- prerelease: false
106
105
  version_requirements: &id007 !ruby/object:Gem::Requirement
107
106
  none: false
108
107
  requirements:
@@ -114,11 +113,11 @@ dependencies:
114
113
  - 8
115
114
  - 7
116
115
  version: 0.8.7
116
+ type: :development
117
117
  requirement: *id007
118
+ prerelease: false
118
119
  name: rake
119
- type: :development
120
120
  - !ruby/object:Gem::Dependency
121
- prerelease: false
122
121
  version_requirements: &id008 !ruby/object:Gem::Requirement
123
122
  none: false
124
123
  requirements:
@@ -128,11 +127,11 @@ dependencies:
128
127
  segments:
129
128
  - 0
130
129
  version: "0"
130
+ type: :development
131
131
  requirement: *id008
132
+ prerelease: false
132
133
  name: bundler
133
- type: :development
134
134
  - !ruby/object:Gem::Dependency
135
- prerelease: false
136
135
  version_requirements: &id009 !ruby/object:Gem::Requirement
137
136
  none: false
138
137
  requirements:
@@ -144,11 +143,11 @@ dependencies:
144
143
  - 3
145
144
  - 0
146
145
  version: 1.3.0
146
+ type: :development
147
147
  requirement: *id009
148
+ prerelease: false
148
149
  name: rspec
149
- type: :development
150
150
  - !ruby/object:Gem::Dependency
151
- prerelease: false
152
151
  version_requirements: &id010 !ruby/object:Gem::Requirement
153
152
  none: false
154
153
  requirements:
@@ -158,9 +157,10 @@ dependencies:
158
157
  segments:
159
158
  - 0
160
159
  version: "0"
160
+ type: :development
161
161
  requirement: *id010
162
+ prerelease: false
162
163
  name: ruby-debug
163
- type: :development
164
164
  description: "\n\
165
165
  The rest_connection gem simplifies the use of RESTful APIs.\n\
166
166
  It currently has support for RightScale API 1.0 and 1.5.\n "