profitbricks 0.9.1 → 0.9.2

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/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
1
  source :rubygems
2
- gem 'savon'
2
+ gem 'savon', '1.2.0'
3
3
 
4
4
  group :test, :development do
5
5
  gem 'json'
data/Gemfile.lock CHANGED
@@ -2,14 +2,15 @@ GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
4
  ZenTest (4.7.0)
5
- akami (1.0.0)
5
+ akami (1.2.0)
6
6
  gyoku (>= 0.4.0)
7
+ nokogiri (>= 1.4.0)
7
8
  autotest-fsevent (0.2.8)
8
9
  sys-uname
9
- builder (3.0.0)
10
+ builder (3.1.4)
10
11
  diff-lcs (1.1.3)
11
12
  ffi (1.0.11)
12
- gyoku (0.4.4)
13
+ gyoku (0.4.6)
13
14
  builder (>= 2.1.2)
14
15
  hoe (3.0.3)
15
16
  rake (~> 0.8)
@@ -19,16 +20,16 @@ GEM
19
20
  hoe (>= 2.2.0)
20
21
  hoe-git (1.5.0)
21
22
  hoe (>= 2.2.0)
22
- httpi (0.9.6)
23
+ httpi (1.1.1)
23
24
  rack
24
25
  json (1.6.6)
25
26
  metaclass (0.0.1)
26
27
  mocha (0.10.5)
27
28
  metaclass (~> 0.0.1)
28
29
  multi_json (1.2.0)
29
- nokogiri (1.5.2)
30
- nori (1.1.0)
31
- rack (1.4.1)
30
+ nokogiri (1.5.6)
31
+ nori (1.1.4)
32
+ rack (1.4.4)
32
33
  rake (0.9.2.2)
33
34
  rspec (2.9.0)
34
35
  rspec-core (~> 2.9.0)
@@ -38,14 +39,14 @@ GEM
38
39
  rspec-expectations (2.9.1)
39
40
  diff-lcs (~> 1.1.3)
40
41
  rspec-mocks (2.9.0)
41
- savon (0.9.9)
42
- akami (~> 1.0)
42
+ savon (1.2.0)
43
+ akami (~> 1.2.0)
43
44
  builder (>= 2.1.2)
44
- gyoku (>= 0.4.0)
45
- httpi (~> 0.9)
45
+ gyoku (~> 0.4.5)
46
+ httpi (~> 1.1.0)
46
47
  nokogiri (>= 1.4.0)
47
- nori (~> 1.1)
48
- wasabi (~> 2.1)
48
+ nori (~> 1.1.0)
49
+ wasabi (~> 2.5.0)
49
50
  savon_spec (0.1.6)
50
51
  mocha (>= 0.9.8)
51
52
  rspec (>= 2.0.0)
@@ -56,7 +57,8 @@ GEM
56
57
  simplecov-html (0.5.3)
57
58
  sys-uname (0.9.0)
58
59
  ffi (>= 1.0.0)
59
- wasabi (2.1.0)
60
+ wasabi (2.5.1)
61
+ httpi (~> 1.0)
60
62
  nokogiri (>= 1.4.0)
61
63
 
62
64
  PLATFORMS
@@ -73,6 +75,6 @@ DEPENDENCIES
73
75
  json
74
76
  rake
75
77
  rspec
76
- savon
78
+ savon (= 1.2.0)
77
79
  savon_spec
78
80
  simplecov
data/Rakefile CHANGED
@@ -22,7 +22,7 @@ if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'ruby'
22
22
 
23
23
  self.readme_file = 'README.md'
24
24
  self.history_file = 'CHANGELOG.md'
25
- self.extra_deps << ["savon"]
25
+ self.extra_deps << ["savon", "1.2.0"]
26
26
  end
27
27
 
28
28
  task :prerelease => [:clobber, :check_manifest, :test]
data/lib/profitbricks.rb CHANGED
@@ -13,7 +13,7 @@ require 'profitbricks/firewall'
13
13
  require 'profitbricks/rule'
14
14
 
15
15
  module Profitbricks
16
- VERSION = '0.9.1'
16
+ VERSION = '0.9.2'
17
17
  end
18
18
 
19
19
  PB = Profitbricks
@@ -6,4 +6,12 @@ class String
6
6
  tr("-", "_").
7
7
  downcase
8
8
  end
9
+
10
+ def camelcase
11
+ return self if self !~ /_/ && self =~ /[A-Z]+.*/
12
+ split('_').map{|e| e.capitalize}.join
13
+ end
14
+ def lower_camelcase
15
+ self.split('_').inject([]){ |buffer,e| buffer.push(buffer.empty? ? e : e.capitalize) }.join
16
+ end
9
17
  end
data/profitbricks.gemspec CHANGED
@@ -2,37 +2,38 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "profitbricks"
5
- s.version = "0.0.3.20120306234014"
5
+ s.version = "0.9.2.20130121213328"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Dominik Sander"]
9
- s.date = "2012-03-06"
10
- s.description = "A Ruby client for the ProfitBricks API.\n\nBE AWARE: This software is in a very early state of development, the methods and responses will very likely change over time."
9
+ s.date = "2013-01-21"
10
+ s.description = "A Ruby client for the ProfitBricks API."
11
11
  s.email = ["git@dsander.de"]
12
12
  s.executables = ["profitbricks"]
13
13
  s.extra_rdoc_files = ["Manifest.txt"]
14
- s.files = [".autotest", ".rspec", "CHANGELOG.md", "Gemfile", "Gemfile.lock", "Manifest.txt", "README.md", "Rakefile", "bin/profitbricks", "examples/create_datacenter.rb", "lib/profitbricks.rb", "lib/profitbricks/config.rb", "lib/profitbricks/data_center.rb", "lib/profitbricks/extensions.rb", "lib/profitbricks/image.rb", "lib/profitbricks/ip_block.rb", "lib/profitbricks/model.rb", "lib/profitbricks/nic.rb", "lib/profitbricks/profitbricks.rb", "lib/profitbricks/server.rb", "lib/profitbricks/storage.rb", "profitbricks.gemspec", "spec/fixtures/add_public_ip_to_nic/success.json", "spec/fixtures/add_public_ip_to_nic/success.xml", "spec/fixtures/clear_data_center/success.json", "spec/fixtures/clear_data_center/success.xml", "spec/fixtures/connect_storage_to_server/success.json", "spec/fixtures/connect_storage_to_server/success.xml", "spec/fixtures/create_data_center/success.json", "spec/fixtures/create_data_center/success.xml", "spec/fixtures/create_nic/success.json", "spec/fixtures/create_nic/success.xml", "spec/fixtures/create_server/minimal.json", "spec/fixtures/create_server/minimal.xml", "spec/fixtures/create_storage/success.json", "spec/fixtures/create_storage/success.xml", "spec/fixtures/delete_data_center/success.json", "spec/fixtures/delete_data_center/success.xml", "spec/fixtures/delete_nic/success.json", "spec/fixtures/delete_nic/success.xml", "spec/fixtures/delete_server/success.json", "spec/fixtures/delete_server/success.xml", "spec/fixtures/delete_storage/failture.json", "spec/fixtures/delete_storage/failture.xml", "spec/fixtures/delete_storage/success.json", "spec/fixtures/delete_storage/success.xml", "spec/fixtures/disconnect_storage_from_server/failture.json", "spec/fixtures/disconnect_storage_from_server/failture.xml", "spec/fixtures/disconnect_storage_from_server/success.json", "spec/fixtures/disconnect_storage_from_server/success.xml", "spec/fixtures/get_all_data_centers/empty.json", "spec/fixtures/get_all_data_centers/empty.xml", "spec/fixtures/get_all_data_centers/test_datacenter.json", "spec/fixtures/get_all_data_centers/test_datacenter.xml", "spec/fixtures/get_all_images/success.json", "spec/fixtures/get_all_images/success.xml", "spec/fixtures/get_all_public_ip_blocks/success.json", "spec/fixtures/get_all_public_ip_blocks/success.xml", "spec/fixtures/get_data_center/create.json", "spec/fixtures/get_data_center/create.xml", "spec/fixtures/get_data_center/two_servers_with_storage.json", "spec/fixtures/get_data_center/two_servers_with_storage.xml", "spec/fixtures/get_data_center_state/in_process.json", "spec/fixtures/get_data_center_state/in_process.xml", "spec/fixtures/get_data_center_state/success.json", "spec/fixtures/get_data_center_state/success.xml", "spec/fixtures/get_image/success.json", "spec/fixtures/get_image/success.xml", "spec/fixtures/get_nic/success.json", "spec/fixtures/get_nic/success.xml", "spec/fixtures/get_nic/two_ips.json", "spec/fixtures/get_nic/two_ips.xml", "spec/fixtures/get_server/after_create.json", "spec/fixtures/get_server/after_create.xml", "spec/fixtures/get_server/connected_storage.json", "spec/fixtures/get_server/connected_storage.xml", "spec/fixtures/get_storage/success.json", "spec/fixtures/get_storage/success.xml", "spec/fixtures/reboot_server/success.json", "spec/fixtures/reboot_server/success.xml", "spec/fixtures/release_public_ip_block/success.json", "spec/fixtures/release_public_ip_block/success.xml", "spec/fixtures/remove_public_ip_from_nic/success.json", "spec/fixtures/remove_public_ip_from_nic/success.xml", "spec/fixtures/reserve_public_ip_block/success.json", "spec/fixtures/reserve_public_ip_block/success.xml", "spec/fixtures/set_image_os_type/success.json", "spec/fixtures/set_image_os_type/success.xml", "spec/fixtures/set_internet_access/success.json", "spec/fixtures/set_internet_access/success.xml", "spec/fixtures/update_data_center/success.json", "spec/fixtures/update_data_center/success.xml", "spec/fixtures/update_nic/success.json", "spec/fixtures/update_nic/success.xml", "spec/fixtures/update_server/basic.json", "spec/fixtures/update_server/basic.xml", "spec/fixtures/update_storage/success.json", "spec/fixtures/update_storage/success.xml", "spec/profitbricks/data_center_spec.rb", "spec/profitbricks/image_spec.rb", "spec/profitbricks/ip_block_spec.rb", "spec/profitbricks/model_spec.rb", "spec/profitbricks/nic_spec.rb", "spec/profitbricks/server_spec.rb", "spec/profitbricks/storage_spec.rb", "spec/spec_helper.rb", ".gemtest"]
14
+ s.files = [".autotest", ".rspec", ".travis.yml", "CHANGELOG.md", "Gemfile", "Gemfile.lock", "Manifest.txt", "README.md", "Rakefile", "bin/profitbricks", "examples/create_datacenter.rb", "lib/profitbricks.rb", "lib/profitbricks/cli.rb", "lib/profitbricks/config.rb", "lib/profitbricks/data_center.rb", "lib/profitbricks/extensions.rb", "lib/profitbricks/firewall.rb", "lib/profitbricks/image.rb", "lib/profitbricks/ip_block.rb", "lib/profitbricks/load_balancer.rb", "lib/profitbricks/model.rb", "lib/profitbricks/nic.rb", "lib/profitbricks/profitbricks.rb", "lib/profitbricks/rule.rb", "lib/profitbricks/server.rb", "lib/profitbricks/storage.rb", "profitbricks.gemspec", "spec/fixtures/activate_firewalls/success.json", "spec/fixtures/activate_firewalls/success.xml", "spec/fixtures/activate_load_balancing_on_servers/success.json", "spec/fixtures/activate_load_balancing_on_servers/success.xml", "spec/fixtures/add_firewall_rules_to_load_balancer/success.json", "spec/fixtures/add_firewall_rules_to_load_balancer/success.xml", "spec/fixtures/add_firewall_rules_to_nic/success.json", "spec/fixtures/add_firewall_rules_to_nic/success.xml", "spec/fixtures/add_public_ip_to_nic/success.json", "spec/fixtures/add_public_ip_to_nic/success.xml", "spec/fixtures/clear_data_center/success.json", "spec/fixtures/clear_data_center/success.xml", "spec/fixtures/connect_storage_to_server/success.json", "spec/fixtures/connect_storage_to_server/success.xml", "spec/fixtures/create_data_center/success.json", "spec/fixtures/create_data_center/success.xml", "spec/fixtures/create_load_balancer/success.json", "spec/fixtures/create_load_balancer/success.xml", "spec/fixtures/create_nic/success.json", "spec/fixtures/create_nic/success.xml", "spec/fixtures/create_server/minimal.json", "spec/fixtures/create_server/minimal.xml", "spec/fixtures/create_storage/success.json", "spec/fixtures/create_storage/success.xml", "spec/fixtures/deactivate_firewalls/success.json", "spec/fixtures/deactivate_firewalls/success.xml", "spec/fixtures/deactivate_load_balancing_on_servers/success.json", "spec/fixtures/deactivate_load_balancing_on_servers/success.xml", "spec/fixtures/delete_data_center/success.json", "spec/fixtures/delete_data_center/success.xml", "spec/fixtures/delete_firewalls/success.json", "spec/fixtures/delete_firewalls/success.xml", "spec/fixtures/delete_load_balancer/success.json", "spec/fixtures/delete_load_balancer/success.xml", "spec/fixtures/delete_nic/success.json", "spec/fixtures/delete_nic/success.xml", "spec/fixtures/delete_server/success.json", "spec/fixtures/delete_server/success.xml", "spec/fixtures/delete_storage/failture.json", "spec/fixtures/delete_storage/failture.xml", "spec/fixtures/delete_storage/success.json", "spec/fixtures/delete_storage/success.xml", "spec/fixtures/deregister_servers_on_load_balancer/success.json", "spec/fixtures/deregister_servers_on_load_balancer/success.xml", "spec/fixtures/disconnect_storage_from_server/failture.json", "spec/fixtures/disconnect_storage_from_server/failture.xml", "spec/fixtures/disconnect_storage_from_server/success.json", "spec/fixtures/disconnect_storage_from_server/success.xml", "spec/fixtures/get_all_data_centers/empty.json", "spec/fixtures/get_all_data_centers/empty.xml", "spec/fixtures/get_all_data_centers/test_datacenter.json", "spec/fixtures/get_all_data_centers/test_datacenter.xml", "spec/fixtures/get_all_images/success.json", "spec/fixtures/get_all_images/success.xml", "spec/fixtures/get_all_public_ip_blocks/success.json", "spec/fixtures/get_all_public_ip_blocks/success.xml", "spec/fixtures/get_data_center/create.json", "spec/fixtures/get_data_center/create.xml", "spec/fixtures/get_data_center/firewall.json", "spec/fixtures/get_data_center/firewall.xml", "spec/fixtures/get_data_center/two_servers_with_storage.json", "spec/fixtures/get_data_center/two_servers_with_storage.xml", "spec/fixtures/get_data_center_state/in_process.json", "spec/fixtures/get_data_center_state/in_process.xml", "spec/fixtures/get_data_center_state/success.json", "spec/fixtures/get_data_center_state/success.xml", "spec/fixtures/get_firewall/success.json", "spec/fixtures/get_firewall/success.xml", "spec/fixtures/get_image/success.json", "spec/fixtures/get_image/success.xml", "spec/fixtures/get_load_balancer/success.json", "spec/fixtures/get_load_balancer/success.xml", "spec/fixtures/get_nic/success.json", "spec/fixtures/get_nic/success.xml", "spec/fixtures/get_nic/two_ips.json", "spec/fixtures/get_nic/two_ips.xml", "spec/fixtures/get_server/after_create.json", "spec/fixtures/get_server/after_create.xml", "spec/fixtures/get_server/connected_storage.json", "spec/fixtures/get_server/connected_storage.xml", "spec/fixtures/get_storage/success.json", "spec/fixtures/get_storage/success.xml", "spec/fixtures/reboot_server/success.json", "spec/fixtures/reboot_server/success.xml", "spec/fixtures/register_servers_on_load_balancer/success.json", "spec/fixtures/register_servers_on_load_balancer/success.xml", "spec/fixtures/release_public_ip_block/success.json", "spec/fixtures/release_public_ip_block/success.xml", "spec/fixtures/remove_firewall_rules/success.json", "spec/fixtures/remove_firewall_rules/success.xml", "spec/fixtures/remove_public_ip_from_nic/success.json", "spec/fixtures/remove_public_ip_from_nic/success.xml", "spec/fixtures/reserve_public_ip_block/success.json", "spec/fixtures/reserve_public_ip_block/success.xml", "spec/fixtures/set_image_os_type/success.json", "spec/fixtures/set_image_os_type/success.xml", "spec/fixtures/set_internet_access/success.json", "spec/fixtures/set_internet_access/success.xml", "spec/fixtures/update_data_center/success.json", "spec/fixtures/update_data_center/success.xml", "spec/fixtures/update_load_balancer/success.json", "spec/fixtures/update_load_balancer/success.xml", "spec/fixtures/update_nic/success.json", "spec/fixtures/update_nic/success.xml", "spec/fixtures/update_server/basic.json", "spec/fixtures/update_server/basic.xml", "spec/fixtures/update_storage/success.json", "spec/fixtures/update_storage/success.xml", "spec/profitbricks/cli_spec.rb", "spec/profitbricks/data_center_spec.rb", "spec/profitbricks/firewall_spec.rb", "spec/profitbricks/image_spec.rb", "spec/profitbricks/ip_block_spec.rb", "spec/profitbricks/load_balancer_spec.rb", "spec/profitbricks/model_spec.rb", "spec/profitbricks/nic_spec.rb", "spec/profitbricks/server_spec.rb", "spec/profitbricks/storage_spec.rb", "spec/spec_helper.rb", ".gemtest"]
15
+ s.homepage = "http://github.com/dsander/profitbricks"
15
16
  s.rdoc_options = ["--main", "README.md"]
16
17
  s.require_paths = ["lib"]
17
18
  s.rubyforge_project = "profitbricks"
18
- s.rubygems_version = "1.8.11"
19
- s.summary = "A Ruby client for the ProfitBricks API"
19
+ s.rubygems_version = "1.8.24"
20
+ s.summary = "A Ruby client for the ProfitBricks API."
20
21
 
21
22
  if s.respond_to? :specification_version then
22
23
  s.specification_version = 3
23
24
 
24
25
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
25
- s.add_runtime_dependency(%q<savon>, [">= 0"])
26
+ s.add_runtime_dependency(%q<savon>, ["= 1.2.0"])
26
27
  s.add_development_dependency(%q<rdoc>, ["~> 3.10"])
27
- s.add_development_dependency(%q<hoe>, ["~> 2.14"])
28
+ s.add_development_dependency(%q<hoe>, ["~> 3.4"])
28
29
  else
29
- s.add_dependency(%q<savon>, [">= 0"])
30
+ s.add_dependency(%q<savon>, ["= 1.2.0"])
30
31
  s.add_dependency(%q<rdoc>, ["~> 3.10"])
31
- s.add_dependency(%q<hoe>, ["~> 2.14"])
32
+ s.add_dependency(%q<hoe>, ["~> 3.4"])
32
33
  end
33
34
  else
34
- s.add_dependency(%q<savon>, [">= 0"])
35
+ s.add_dependency(%q<savon>, ["= 1.2.0"])
35
36
  s.add_dependency(%q<rdoc>, ["~> 3.10"])
36
- s.add_dependency(%q<hoe>, ["~> 2.14"])
37
+ s.add_dependency(%q<hoe>, ["~> 3.4"])
37
38
  end
38
39
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: profitbricks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,41 +9,56 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-16 00:00:00.000000000 Z
12
+ date: 2013-01-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: savon
16
- requirement: &21861220 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - '='
20
18
  - !ruby/object:Gem::Version
21
- version: '0'
19
+ version: 1.2.0
20
+ none: false
22
21
  type: :runtime
22
+ name: savon
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - '='
26
+ - !ruby/object:Gem::Version
27
+ version: 1.2.0
28
+ none: false
23
29
  prerelease: false
24
- version_requirements: *21861220
25
30
  - !ruby/object:Gem::Dependency
26
- name: rdoc
27
- requirement: &21860740 !ruby/object:Gem::Requirement
28
- none: false
31
+ requirement: !ruby/object:Gem::Requirement
29
32
  requirements:
30
33
  - - ~>
31
34
  - !ruby/object:Gem::Version
32
35
  version: '3.10'
36
+ none: false
33
37
  type: :development
38
+ name: rdoc
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: '3.10'
44
+ none: false
34
45
  prerelease: false
35
- version_requirements: *21860740
36
46
  - !ruby/object:Gem::Dependency
37
- name: hoe
38
- requirement: &21860300 !ruby/object:Gem::Requirement
39
- none: false
47
+ requirement: !ruby/object:Gem::Requirement
40
48
  requirements:
41
49
  - - ~>
42
50
  - !ruby/object:Gem::Version
43
51
  version: '3.0'
52
+ none: false
44
53
  type: :development
54
+ name: hoe
55
+ version_requirements: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ~>
58
+ - !ruby/object:Gem::Version
59
+ version: '3.0'
60
+ none: false
45
61
  prerelease: false
46
- version_requirements: *21860300
47
62
  description: A Ruby client for the ProfitBricks API.
48
63
  email:
49
64
  - git@dsander.de
@@ -209,20 +224,23 @@ rdoc_options:
209
224
  require_paths:
210
225
  - lib
211
226
  required_ruby_version: !ruby/object:Gem::Requirement
212
- none: false
213
227
  requirements:
214
228
  - - ! '>='
215
229
  - !ruby/object:Gem::Version
230
+ hash: -836053368831027153
216
231
  version: '0'
217
- required_rubygems_version: !ruby/object:Gem::Requirement
232
+ segments:
233
+ - 0
218
234
  none: false
235
+ required_rubygems_version: !ruby/object:Gem::Requirement
219
236
  requirements:
220
237
  - - ! '>='
221
238
  - !ruby/object:Gem::Version
222
239
  version: '0'
240
+ none: false
223
241
  requirements: []
224
242
  rubyforge_project: profitbricks
225
- rubygems_version: 1.8.11
243
+ rubygems_version: 1.8.24
226
244
  signing_key:
227
245
  specification_version: 3
228
246
  summary: A Ruby client for the ProfitBricks API.