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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e941f8aeb1ac9f4a298aa8bf39d9de49cfeeced0
4
- data.tar.gz: cbbb18973fd14aed6dbf03d277229a47668a3019
3
+ metadata.gz: ed3d8ca1241e7ad62f14529787dd56be720f3974
4
+ data.tar.gz: 36a05516712535a2400a005ab729a6175fa353d6
5
5
  SHA512:
6
- metadata.gz: ff7704021fa4e079271978663d322553e99bcfc7fad5036a5f62381c71d77150df410f42d436c700dbcf7f7f430d4ffba3f35eb606aea90895b17ccf9f4aa9c4
7
- data.tar.gz: 07b80eb013f6e8ab98db0b502b382169746d82dd7d4d5981f1f5384a5241e36867e8e1aad4faeec2376c43a7050dfeb403cde1e22110ae7d5a3177d92cb1bc31
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
@@ -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.0 (http://rubygems.org/gems/raca)"
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
- image = images.detect {|row|
144
- row['name'].downcase.include?(str.to_s.downcase)
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.0
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-25 00:00:00.000000000 Z
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