openstack_activeresource 0.5.0 → 0.5.1

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.5.0
1
+ 0.5.1
@@ -278,27 +278,27 @@ module OpenStack
278
278
  end
279
279
 
280
280
  SERVER_STATUSES = {
281
- :ACTIVE => I18n.t(:active, :scope => [:openstack, :status]),
282
- :BUILD => I18n.t(:building, :scope => [:openstack, :status]),
283
- :DELETED => I18n.t(:deleted, :scope => [:openstack, :status]),
284
- :ERROR => I18n.t(:in_error, :scope => [:openstack, :status]),
285
- :HARD_REBOOT => I18n.t(:hard_rebooting, :scope => [:openstack, :status]),
286
- :PASSWORD => I18n.t(:resetting_password, :scope => [:openstack, :status]),
287
- :REBOOT => I18n.t(:soft_rebooting, :scope => [:openstack, :status]),
288
- :REBUILD => I18n.t(:rebuilding_from_image, :scope => [:openstack, :status]),
289
- :RESCUE => I18n.t(:in_rescue_mode, :scope => [:openstack, :status]),
290
- :RESIZE => I18n.t(:resizing, :scope => [:openstack, :status]),
291
- :REVERT_RESIZE => I18n.t(:revert_resizing, :scope => [:openstack, :status]),
292
- :SHUTOFF => I18n.t(:user_powered_down, :scope => [:openstack, :status]),
293
- :SUSPENDED => I18n.t(:suspended, :scope => [:openstack, :status]),
294
- :PAUSED => I18n.t(:paused, :scope => [:openstack, :status]),
295
- :UNKNOWN => I18n.t(:unknown, :scope => [:openstack, :status]),
296
- :VERIFY_RESIZE => I18n.t(:awaiting_verification, :scope => [:openstack, :status])
281
+ :ACTIVE => :active,
282
+ :BUILD => :building,
283
+ :DELETED => :deleted,
284
+ :ERROR => :in_error,
285
+ :HARD_REBOOT => :hard_rebooting,
286
+ :PASSWORD => :resetting_password,
287
+ :REBOOT => :soft_rebooting,
288
+ :REBUILD => :rebuilding_from_image,
289
+ :RESCUE => :in_rescue_mode,
290
+ :RESIZE => :resizing,
291
+ :REVERT_RESIZE => :revert_resizing,
292
+ :SHUTOFF => :user_powered_down,
293
+ :SUSPENDED => :suspended,
294
+ :PAUSED => :paused,
295
+ :UNKNOWN => :unknown,
296
+ :VERIFY_RESIZE => :awaiting_verification
297
297
  }.with_indifferent_access
298
298
 
299
299
  # Returns an extended (and localized) description for the server status
300
300
  def status_description
301
- SERVER_STATUSES[status]
301
+ I18n.t(SERVER_STATUSES[status],:scope => [:openstack, :status])
302
302
  end
303
303
 
304
304
  # Returns a localized description for the server task (if any)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "openstack_activeresource"
8
- s.version = "0.5.0"
8
+ s.version = "0.5.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Davide Guerri"]
12
- s.date = "2013-03-06"
12
+ s.date = "2013-03-15"
13
13
  s.description = "OpenStack Ruby and RoR bindings implemented with ActiveResource - See also http://www.unicloud.it"
14
14
  s.email = "d.guerri@rd.unidata.it"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstack_activeresource
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-06 00:00:00.000000000 Z
12
+ date: 2013-03-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel
@@ -239,7 +239,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
239
239
  version: '0'
240
240
  segments:
241
241
  - 0
242
- hash: 76159689674776618
242
+ hash: 4405508785107764396
243
243
  required_rubygems_version: !ruby/object:Gem::Requirement
244
244
  none: false
245
245
  requirements: