rest_connection 0.0.20 → 0.0.21
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/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.21
|
@@ -34,6 +34,8 @@ class Ec2ServerArray
|
|
34
34
|
def instances
|
35
35
|
serv_href = URI.parse(self.href)
|
36
36
|
connection.get("#{serv_href.path}/instances")
|
37
|
+
rescue
|
38
|
+
[] # raise an error on self.href which we want, it'll just rescue on rackspace and return an empty array.
|
37
39
|
end
|
38
40
|
|
39
41
|
def terminate_all
|
@@ -21,6 +21,9 @@ class Tag
|
|
21
21
|
result = connection.get("tags/search", :resource_type => resource_name.to_s, :tags => tags )
|
22
22
|
end
|
23
23
|
|
24
|
+
def self.search_by_href(resource_href)
|
25
|
+
connection.get("tags/search", :resource_href => resource_href)
|
26
|
+
end
|
24
27
|
#TAGGABLE_RESOURCES = [ 'Server', 'Ec2EbsSnapshot', 'Ec2EbsVolume', 'Ec2Image', 'Image', 'ServerArray', 'Ec2Instance',
|
25
28
|
# 'Instance', 'Deployment', 'ServerTemplate', 'Ec2ServerTemplate' ]
|
26
29
|
#
|
data/rest_connection.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rest_connection}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.21"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jeremy Deininger"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-05-20}
|
13
13
|
s.description = %q{provides rest_connection}
|
14
14
|
s.email = %q{jeremy@rubyonlinux.org}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -76,7 +76,7 @@ Gem::Specification.new do |s|
|
|
76
76
|
]
|
77
77
|
s.homepage = %q{http://github.com/jeremyd/rest_connection}
|
78
78
|
s.require_paths = ["lib"]
|
79
|
-
s.rubygems_version = %q{1.
|
79
|
+
s.rubygems_version = %q{1.7.2}
|
80
80
|
s.summary = %q{lib for restful connections to the rightscale api}
|
81
81
|
s.test_files = [
|
82
82
|
"examples/console.rb",
|
@@ -100,7 +100,6 @@ Gem::Specification.new do |s|
|
|
100
100
|
]
|
101
101
|
|
102
102
|
if s.respond_to? :specification_version then
|
103
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
104
103
|
s.specification_version = 3
|
105
104
|
|
106
105
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rest_connection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 20
|
10
|
-
version: 0.0.20
|
4
|
+
prerelease:
|
5
|
+
version: 0.0.21
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Jeremy Deininger
|
@@ -15,8 +10,7 @@ autorequire:
|
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date: 2011-
|
19
|
-
default_executable:
|
13
|
+
date: 2011-05-20 00:00:00 Z
|
20
14
|
dependencies:
|
21
15
|
- !ruby/object:Gem::Dependency
|
22
16
|
name: activesupport
|
@@ -26,11 +20,6 @@ dependencies:
|
|
26
20
|
requirements:
|
27
21
|
- - "="
|
28
22
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 23
|
30
|
-
segments:
|
31
|
-
- 2
|
32
|
-
- 3
|
33
|
-
- 10
|
34
23
|
version: 2.3.10
|
35
24
|
type: :runtime
|
36
25
|
version_requirements: *id001
|
@@ -42,9 +31,6 @@ dependencies:
|
|
42
31
|
requirements:
|
43
32
|
- - ">="
|
44
33
|
- !ruby/object:Gem::Version
|
45
|
-
hash: 3
|
46
|
-
segments:
|
47
|
-
- 0
|
48
34
|
version: "0"
|
49
35
|
type: :runtime
|
50
36
|
version_requirements: *id002
|
@@ -56,9 +42,6 @@ dependencies:
|
|
56
42
|
requirements:
|
57
43
|
- - ">="
|
58
44
|
- !ruby/object:Gem::Version
|
59
|
-
hash: 3
|
60
|
-
segments:
|
61
|
-
- 0
|
62
45
|
version: "0"
|
63
46
|
type: :runtime
|
64
47
|
version_requirements: *id003
|
@@ -128,7 +111,6 @@ files:
|
|
128
111
|
- spec/server_template_internal.rb
|
129
112
|
- spec/spec_helper.rb
|
130
113
|
- spec/tag_spec.rb
|
131
|
-
has_rdoc: true
|
132
114
|
homepage: http://github.com/jeremyd/rest_connection
|
133
115
|
licenses: []
|
134
116
|
|
@@ -142,23 +124,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
142
124
|
requirements:
|
143
125
|
- - ">="
|
144
126
|
- !ruby/object:Gem::Version
|
145
|
-
hash: 3
|
146
|
-
segments:
|
147
|
-
- 0
|
148
127
|
version: "0"
|
149
128
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
150
129
|
none: false
|
151
130
|
requirements:
|
152
131
|
- - ">="
|
153
132
|
- !ruby/object:Gem::Version
|
154
|
-
hash: 3
|
155
|
-
segments:
|
156
|
-
- 0
|
157
133
|
version: "0"
|
158
134
|
requirements: []
|
159
135
|
|
160
136
|
rubyforge_project:
|
161
|
-
rubygems_version: 1.
|
137
|
+
rubygems_version: 1.7.2
|
162
138
|
signing_key:
|
163
139
|
specification_version: 3
|
164
140
|
summary: lib for restful connections to the rightscale api
|