raca 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +4 -0
- data/lib/raca/http_client.rb +1 -1
- data/lib/raca/servers.rb +5 -2
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed3d8ca1241e7ad62f14529787dd56be720f3974
|
4
|
+
data.tar.gz: 36a05516712535a2400a005ab729a6175fa353d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e1bbed4b933d61321c410313e2cbe0f42fab7217888151f7110d111206531525d3526fef482502cbe86eea2bf3272f4fe8bcc635ae8cdd7e27dabfeb2cebdcb
|
7
|
+
data.tar.gz: 75bbd2b147548816da6b13da859a9e04bab6b0071bee7e7e81e1447781ce26f1d5e66226d3391b98e78438a967286d943f41c8792204111333253bd157ae3500
|
data/CHANGELOG
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
v0.4.1 (8th October 2014)
|
2
|
+
* Raca::Servers#create looks for an exact image name before falling back
|
3
|
+
to a fuzzy match to allow precise selection of images.
|
4
|
+
|
1
5
|
v0.4.0 (25th August 2014)
|
2
6
|
* Added Raca::Container#temp_upload_url
|
3
7
|
* Renamed Raca::Container#expiring_url to Raca::Container#temp_url
|
data/lib/raca/http_client.rb
CHANGED
@@ -95,7 +95,7 @@ module Raca
|
|
95
95
|
def cloud_request(request, &block)
|
96
96
|
cloud_http do |http|
|
97
97
|
request['X-Auth-Token'] = @account.auth_token
|
98
|
-
request['User-Agent'] = "raca 0.4.
|
98
|
+
request['User-Agent'] = "raca 0.4.1 (http://rubygems.org/gems/raca)"
|
99
99
|
http.request(request, &block)
|
100
100
|
end
|
101
101
|
end
|
data/lib/raca/servers.rb
CHANGED
@@ -140,8 +140,11 @@ module Raca
|
|
140
140
|
end
|
141
141
|
|
142
142
|
def image_name_to_id(str)
|
143
|
-
|
144
|
-
|
143
|
+
str = str.to_s.downcase
|
144
|
+
image = images.detect { |row|
|
145
|
+
row['name'].downcase == str
|
146
|
+
} || images.detect { |row|
|
147
|
+
row['name'].downcase.include?(str)
|
145
148
|
}
|
146
149
|
if image
|
147
150
|
image['id']
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raca
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Healy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08
|
11
|
+
date: 2014-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -130,4 +130,3 @@ signing_key:
|
|
130
130
|
specification_version: 4
|
131
131
|
summary: A simple wrapper for the Rackspace Cloud API with no dependencies
|
132
132
|
test_files: []
|
133
|
-
has_rdoc: true
|