fog-sakuracloud 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -1
  3. data/CHANGELOG.md +5 -0
  4. data/lib/fog/sakuracloud/compute.rb +1 -1
  5. data/lib/fog/sakuracloud/dns.rb +1 -1
  6. data/lib/fog/sakuracloud/network.rb +1 -1
  7. data/lib/fog/sakuracloud/requests/compute/boot_server.rb +1 -1
  8. data/lib/fog/sakuracloud/requests/compute/create_server.rb +1 -1
  9. data/lib/fog/sakuracloud/requests/compute/delete_server.rb +1 -1
  10. data/lib/fog/sakuracloud/requests/compute/list_plans.rb +1 -1
  11. data/lib/fog/sakuracloud/requests/compute/list_servers.rb +1 -1
  12. data/lib/fog/sakuracloud/requests/compute/list_ssh_keys.rb +1 -1
  13. data/lib/fog/sakuracloud/requests/compute/list_zones.rb +1 -1
  14. data/lib/fog/sakuracloud/requests/compute/stop_server.rb +1 -1
  15. data/lib/fog/sakuracloud/requests/dns/create_zone.rb +1 -1
  16. data/lib/fog/sakuracloud/requests/dns/delete_zone.rb +1 -1
  17. data/lib/fog/sakuracloud/requests/dns/list_zones.rb +1 -1
  18. data/lib/fog/sakuracloud/requests/dns/modify_zone.rb +1 -1
  19. data/lib/fog/sakuracloud/requests/network/connect_interface_to_switch.rb +1 -1
  20. data/lib/fog/sakuracloud/requests/network/create_router.rb +1 -1
  21. data/lib/fog/sakuracloud/requests/network/create_switch.rb +1 -1
  22. data/lib/fog/sakuracloud/requests/network/delete_interface.rb +1 -1
  23. data/lib/fog/sakuracloud/requests/network/delete_router.rb +1 -1
  24. data/lib/fog/sakuracloud/requests/network/delete_switch.rb +1 -1
  25. data/lib/fog/sakuracloud/requests/network/list_interfaces.rb +1 -1
  26. data/lib/fog/sakuracloud/requests/network/list_routers.rb +1 -1
  27. data/lib/fog/sakuracloud/requests/network/list_switches.rb +1 -1
  28. data/lib/fog/sakuracloud/requests/network/regist_interface_to_server.rb +1 -1
  29. data/lib/fog/sakuracloud/requests/script/create_note.rb +1 -1
  30. data/lib/fog/sakuracloud/requests/script/delete_note.rb +1 -1
  31. data/lib/fog/sakuracloud/requests/script/list_notes.rb +1 -1
  32. data/lib/fog/sakuracloud/requests/script/modify_note.rb +1 -1
  33. data/lib/fog/sakuracloud/requests/volume/associate_ip_to_disk.rb +1 -1
  34. data/lib/fog/sakuracloud/requests/volume/attach_disk.rb +1 -1
  35. data/lib/fog/sakuracloud/requests/volume/carve_hostname_on_disk.rb +1 -1
  36. data/lib/fog/sakuracloud/requests/volume/configure_disk.rb +1 -1
  37. data/lib/fog/sakuracloud/requests/volume/create_disk.rb +1 -1
  38. data/lib/fog/sakuracloud/requests/volume/delete_disk.rb +1 -1
  39. data/lib/fog/sakuracloud/requests/volume/list_archives.rb +1 -1
  40. data/lib/fog/sakuracloud/requests/volume/list_disks.rb +1 -1
  41. data/lib/fog/sakuracloud/requests/volume/list_plans.rb +1 -1
  42. data/lib/fog/sakuracloud/requests/volume/register_note_to_disk.rb +1 -1
  43. data/lib/fog/sakuracloud/script.rb +1 -1
  44. data/lib/fog/sakuracloud/version.rb +1 -1
  45. data/lib/fog/sakuracloud/volume.rb +1 -1
  46. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f9914dd5c0e1e96a19ba3b68ac0c780d81030ca
4
- data.tar.gz: d24d0af3b1d56f84e38ead8b895f7bcce9b85f65
3
+ metadata.gz: bc87e35240b373e929ee71398d01f06ad7823e9c
4
+ data.tar.gz: 636eace3ef92c43bf63f8bd5c087333e2416f1e4
5
5
  SHA512:
6
- metadata.gz: 30a9a3e076a8077f1f11b8a056b945e1fb89609a46883d54889ce7c447b06d356a78f9239528c554f376f72cd1da7a1e3124942cb245d72ab06d41b9be97ba97
7
- data.tar.gz: e415fc4f2443bee85680c43c37bf9baae2a6907bda02fded340485dee295aa5def82f77c289408744a194936dd1a43b3f4677fad90306858f2e2a3bb611aded5
6
+ metadata.gz: f0b3d8c49c7fa7dc74fe291c8272672a8ac655979743cd94388f7603f110c0c03fb2b059d672fc6658938b21775d8e8cdb9a656f31781c990cab6ed5c652982b
7
+ data.tar.gz: 37e9719543fa6a7f990c7d4fff6ef330b0ec899d995659a9fbb68ebfd35bcd0c79525b41eb96e2ddcbcb5ea4e7e9b76c68bd4141bc2c585e5b06f6ba4a21aa82
@@ -3,8 +3,8 @@ language: ruby
3
3
  script: bundle exec rake travis
4
4
 
5
5
  rvm:
6
+ - 2.2
6
7
  - 2.1
7
8
  - 2.0.0
8
- - 1.9.3
9
9
  gemfile:
10
10
  - Gemfile
@@ -1,5 +1,10 @@
1
1
  # Changelog of fog-sakuracloud
2
2
 
3
+ ## v1.3.3
4
+
5
+ - Typo: Fix typo ( auth_encord -> auth_encode ) #16 HT: @mazgi
6
+ - Drop support ruby 1.9, add 2.2
7
+
3
8
  ## v1.3.2
4
9
 
5
10
  - Feature: Set hostname (Disk#carve_hostname_on_disk)
@@ -28,7 +28,7 @@ module Fog
28
28
 
29
29
  class Real
30
30
  def initialize(options = {})
31
- @auth_encord = Base64.strict_encode64([
31
+ @auth_encode = Base64.strict_encode64([
32
32
  options[:sakuracloud_api_token],
33
33
  options[:sakuracloud_api_token_secret]
34
34
  ].join(':'))
@@ -18,7 +18,7 @@ module Fog
18
18
 
19
19
  class Real
20
20
  def initialize(options = {})
21
- @auth_encord = Base64.strict_encode64([
21
+ @auth_encode = Base64.strict_encode64([
22
22
  options[:sakuracloud_api_token],
23
23
  options[:sakuracloud_api_token_secret]
24
24
  ].join(':'))
@@ -28,7 +28,7 @@ module Fog
28
28
 
29
29
  class Real
30
30
  def initialize(options = {})
31
- @auth_encord = Base64.strict_encode64([
31
+ @auth_encode = Base64.strict_encode64([
32
32
  options[:sakuracloud_api_token],
33
33
  options[:sakuracloud_api_token_secret]
34
34
  ].join(':'))
@@ -7,7 +7,7 @@ module Fog
7
7
  def boot_server( id )
8
8
  request(
9
9
  :headers => {
10
- 'Authorization' => "Basic #{@auth_encord}"
10
+ 'Authorization' => "Basic #{@auth_encode}"
11
11
  },
12
12
  :expects => [200],
13
13
  :method => 'PUT',
@@ -28,7 +28,7 @@ module Fog
28
28
 
29
29
  request(
30
30
  :headers => {
31
- 'Authorization' => "Basic #{@auth_encord}"
31
+ 'Authorization' => "Basic #{@auth_encode}"
32
32
  },
33
33
  :expects => [201],
34
34
  :method => 'POST',
@@ -9,7 +9,7 @@ module Fog
9
9
 
10
10
  request(
11
11
  :headers => {
12
- 'Authorization' => "Basic #{@auth_encord}"
12
+ 'Authorization' => "Basic #{@auth_encode}"
13
13
  },
14
14
  :expects => [200],
15
15
  :method => 'DELETE',
@@ -7,7 +7,7 @@ module Fog
7
7
  def list_plans(options = {})
8
8
  request(
9
9
  :headers => {
10
- 'Authorization' => "Basic #{@auth_encord}"
10
+ 'Authorization' => "Basic #{@auth_encode}"
11
11
  },
12
12
  :method => 'GET',
13
13
  :path => "#{Fog::SakuraCloud::SAKURACLOUD_API_ENDPOINT}/product/server"
@@ -7,7 +7,7 @@ module Fog
7
7
  def list_servers(options = {})
8
8
  request(
9
9
  :headers => {
10
- 'Authorization' => "Basic #{@auth_encord}"
10
+ 'Authorization' => "Basic #{@auth_encode}"
11
11
  },
12
12
  :method => 'GET',
13
13
  :path => "#{Fog::SakuraCloud::SAKURACLOUD_API_ENDPOINT}/server"
@@ -7,7 +7,7 @@ module Fog
7
7
  def list_ssh_keys(options = {})
8
8
  request(
9
9
  :headers => {
10
- 'Authorization' => "Basic #{@auth_encord}"
10
+ 'Authorization' => "Basic #{@auth_encode}"
11
11
  },
12
12
  :method => 'GET',
13
13
  :path => "#{Fog::SakuraCloud::SAKURACLOUD_API_ENDPOINT}/sshkey"
@@ -7,7 +7,7 @@ module Fog
7
7
  def list_zones(options = {})
8
8
  request(
9
9
  :headers => {
10
- 'Authorization' => "Basic #{@auth_encord}"
10
+ 'Authorization' => "Basic #{@auth_encode}"
11
11
  },
12
12
  :method => 'GET',
13
13
  :path => "#{Fog::SakuraCloud::SAKURACLOUD_API_ENDPOINT}/zone"
@@ -12,7 +12,7 @@ module Fog
12
12
  end
13
13
  request(
14
14
  :headers => {
15
- 'Authorization' => "Basic #{@auth_encord}"
15
+ 'Authorization' => "Basic #{@auth_encode}"
16
16
  },
17
17
  :expects => [200,202],
18
18
  :method => 'DELETE',
@@ -22,7 +22,7 @@ module Fog
22
22
 
23
23
  request(
24
24
  :headers => {
25
- 'Authorization' => "Basic #{@auth_encord}"
25
+ 'Authorization' => "Basic #{@auth_encode}"
26
26
  },
27
27
  :expects => 201,
28
28
  :method => 'POST',
@@ -7,7 +7,7 @@ module Fog
7
7
  def delete_zone( id )
8
8
  request(
9
9
  :headers => {
10
- 'Authorization' => "Basic #{@auth_encord}"
10
+ 'Authorization' => "Basic #{@auth_encode}"
11
11
  },
12
12
  :expects => [200],
13
13
  :method => 'DELETE',
@@ -12,7 +12,7 @@ module Fog
12
12
  }
13
13
  request(
14
14
  :headers => {
15
- 'Authorization' => "Basic #{@auth_encord}"
15
+ 'Authorization' => "Basic #{@auth_encode}"
16
16
  },
17
17
  :method => 'GET',
18
18
  :path => "#{Fog::SakuraCloud::SAKURACLOUD_API_ENDPOINT}/commonserviceitem",
@@ -13,7 +13,7 @@ module Fog
13
13
 
14
14
  request(
15
15
  :headers => {
16
- 'Authorization' => "Basic #{@auth_encord}"
16
+ 'Authorization' => "Basic #{@auth_encode}"
17
17
  },
18
18
  :expects => 200,
19
19
  :method => 'PUT',
@@ -7,7 +7,7 @@ module Fog
7
7
  def connect_interface_to_switch( id, switch_id )
8
8
  response = request(
9
9
  :headers => {
10
- 'Authorization' => "Basic #{@auth_encord}"
10
+ 'Authorization' => "Basic #{@auth_encode}"
11
11
  },
12
12
  :expects => [200],
13
13
  :method => 'PUT',
@@ -17,7 +17,7 @@ module Fog
17
17
 
18
18
  request(
19
19
  :headers => {
20
- 'Authorization' => "Basic #{@auth_encord}"
20
+ 'Authorization' => "Basic #{@auth_encode}"
21
21
  },
22
22
  :expects => 202,
23
23
  :method => 'POST',
@@ -13,7 +13,7 @@ module Fog
13
13
 
14
14
  request(
15
15
  :headers => {
16
- 'Authorization' => "Basic #{@auth_encord}"
16
+ 'Authorization' => "Basic #{@auth_encode}"
17
17
  },
18
18
  :expects => 201,
19
19
  :method => 'POST',
@@ -7,7 +7,7 @@ module Fog
7
7
  def delete_interface( id )
8
8
  request(
9
9
  :headers => {
10
- 'Authorization' => "Basic #{@auth_encord}"
10
+ 'Authorization' => "Basic #{@auth_encode}"
11
11
  },
12
12
  :expects => [200],
13
13
  :method => 'DELETE',
@@ -7,7 +7,7 @@ module Fog
7
7
  def delete_router( id )
8
8
  request(
9
9
  :headers => {
10
- 'Authorization' => "Basic #{@auth_encord}"
10
+ 'Authorization' => "Basic #{@auth_encode}"
11
11
  },
12
12
  :expects => [200],
13
13
  :method => 'DELETE',
@@ -7,7 +7,7 @@ module Fog
7
7
  def delete_switch( id )
8
8
  request(
9
9
  :headers => {
10
- 'Authorization' => "Basic #{@auth_encord}"
10
+ 'Authorization' => "Basic #{@auth_encode}"
11
11
  },
12
12
  :expects => [200],
13
13
  :method => 'DELETE',
@@ -16,7 +16,7 @@ module Fog
16
16
  }
17
17
  request(
18
18
  :headers => {
19
- 'Authorization' => "Basic #{@auth_encord}"
19
+ 'Authorization' => "Basic #{@auth_encode}"
20
20
  },
21
21
  :method => 'GET',
22
22
  :path => "#{Fog::SakuraCloud::SAKURACLOUD_API_ENDPOINT}/interface",
@@ -7,7 +7,7 @@ module Fog
7
7
  def list_routers(options = {})
8
8
  request(
9
9
  :headers => {
10
- 'Authorization' => "Basic #{@auth_encord}"
10
+ 'Authorization' => "Basic #{@auth_encode}"
11
11
  },
12
12
  :method => 'GET',
13
13
  :path => "#{Fog::SakuraCloud::SAKURACLOUD_API_ENDPOINT}/internet"
@@ -7,7 +7,7 @@ module Fog
7
7
  def list_switches(options = {})
8
8
  request(
9
9
  :headers => {
10
- 'Authorization' => "Basic #{@auth_encord}"
10
+ 'Authorization' => "Basic #{@auth_encode}"
11
11
  },
12
12
  :method => 'GET',
13
13
  :path => "#{Fog::SakuraCloud::SAKURACLOUD_API_ENDPOINT}/switch"
@@ -15,7 +15,7 @@ module Fog
15
15
 
16
16
  response = request(
17
17
  :headers => {
18
- 'Authorization' => "Basic #{@auth_encord}"
18
+ 'Authorization' => "Basic #{@auth_encode}"
19
19
  },
20
20
  :expects => [201],
21
21
  :method => 'POST',
@@ -14,7 +14,7 @@ module Fog
14
14
 
15
15
  request(
16
16
  :headers => {
17
- 'Authorization' => "Basic #{@auth_encord}"
17
+ 'Authorization' => "Basic #{@auth_encode}"
18
18
  },
19
19
  :expects => 201,
20
20
  :method => 'POST',
@@ -7,7 +7,7 @@ module Fog
7
7
  def delete_note( id )
8
8
  request(
9
9
  :headers => {
10
- 'Authorization' => "Basic #{@auth_encord}"
10
+ 'Authorization' => "Basic #{@auth_encode}"
11
11
  },
12
12
  :expects => [200],
13
13
  :method => 'DELETE',
@@ -7,7 +7,7 @@ module Fog
7
7
  def list_notes(options = {})
8
8
  request(
9
9
  :headers => {
10
- 'Authorization' => "Basic #{@auth_encord}"
10
+ 'Authorization' => "Basic #{@auth_encode}"
11
11
  },
12
12
  :method => 'GET',
13
13
  :path => "#{Fog::SakuraCloud::SAKURACLOUD_API_ENDPOINT}/note"
@@ -14,7 +14,7 @@ module Fog
14
14
 
15
15
  request(
16
16
  :headers => {
17
- 'Authorization' => "Basic #{@auth_encord}"
17
+ 'Authorization' => "Basic #{@auth_encode}"
18
18
  },
19
19
  :expects => [200],
20
20
  :method => 'PUT',
@@ -15,7 +15,7 @@ module Fog
15
15
 
16
16
  request(
17
17
  :headers => {
18
- 'Authorization' => "Basic #{@auth_encord}"
18
+ 'Authorization' => "Basic #{@auth_encode}"
19
19
  },
20
20
  :expects => [200],
21
21
  :method => 'PUT',
@@ -7,7 +7,7 @@ module Fog
7
7
  def attach_disk( disk_id, server_id )
8
8
  request(
9
9
  :headers => {
10
- 'Authorization' => "Basic #{@auth_encord}"
10
+ 'Authorization' => "Basic #{@auth_encode}"
11
11
  },
12
12
  :expects => [200],
13
13
  :method => 'PUT',
@@ -11,7 +11,7 @@ module Fog
11
11
 
12
12
  request(
13
13
  :headers => {
14
- 'Authorization' => "Basic #{@auth_encord}"
14
+ 'Authorization' => "Basic #{@auth_encode}"
15
15
  },
16
16
  :expects => [200],
17
17
  :method => 'PUT',
@@ -11,7 +11,7 @@ module Fog
11
11
 
12
12
  request(
13
13
  :headers => {
14
- 'Authorization' => "Basic #{@auth_encord}"
14
+ 'Authorization' => "Basic #{@auth_encode}"
15
15
  },
16
16
  :expects => [200],
17
17
  :method => 'PUT',
@@ -19,7 +19,7 @@ module Fog
19
19
 
20
20
  request(
21
21
  :headers => {
22
- 'Authorization' => "Basic #{@auth_encord}"
22
+ 'Authorization' => "Basic #{@auth_encode}"
23
23
  },
24
24
  :expects => [202],
25
25
  :method => 'POST',
@@ -7,7 +7,7 @@ module Fog
7
7
  def delete_disk( id )
8
8
  request(
9
9
  :headers => {
10
- 'Authorization' => "Basic #{@auth_encord}"
10
+ 'Authorization' => "Basic #{@auth_encode}"
11
11
  },
12
12
  :expects => [200],
13
13
  :method => 'DELETE',
@@ -7,7 +7,7 @@ module Fog
7
7
  def list_archives(options = {})
8
8
  request(
9
9
  :headers => {
10
- 'Authorization' => "Basic #{@auth_encord}"
10
+ 'Authorization' => "Basic #{@auth_encode}"
11
11
  },
12
12
  :method => 'GET',
13
13
  :path => "#{Fog::SakuraCloud::SAKURACLOUD_API_ENDPOINT}/archive"
@@ -7,7 +7,7 @@ module Fog
7
7
  def list_disks(options = {})
8
8
  request(
9
9
  :headers => {
10
- 'Authorization' => "Basic #{@auth_encord}"
10
+ 'Authorization' => "Basic #{@auth_encode}"
11
11
  },
12
12
  :method => 'GET',
13
13
  :path => "#{Fog::SakuraCloud::SAKURACLOUD_API_ENDPOINT}/disk"
@@ -7,7 +7,7 @@ module Fog
7
7
  def list_plans(options = {})
8
8
  request(
9
9
  :headers => {
10
- 'Authorization' => "Basic #{@auth_encord}"
10
+ 'Authorization' => "Basic #{@auth_encode}"
11
11
  },
12
12
  :method => 'GET',
13
13
  :path => "#{Fog::SakuraCloud::SAKURACLOUD_API_ENDPOINT}/product/disk"
@@ -11,7 +11,7 @@ module Fog
11
11
 
12
12
  request(
13
13
  :headers => {
14
- 'Authorization' => "Basic #{@auth_encord}"
14
+ 'Authorization' => "Basic #{@auth_encode}"
15
15
  },
16
16
  :expects => [200],
17
17
  :method => 'PUT',
@@ -18,7 +18,7 @@ module Fog
18
18
 
19
19
  class Real
20
20
  def initialize(options = {})
21
- @auth_encord = Base64.strict_encode64([
21
+ @auth_encode = Base64.strict_encode64([
22
22
  options[:sakuracloud_api_token],
23
23
  options[:sakuracloud_api_token_secret]
24
24
  ].join(':'))
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Sakuracloud
3
- VERSION = "1.3.2"
3
+ VERSION = "1.3.3"
4
4
  end
5
5
  end
@@ -28,7 +28,7 @@ module Fog
28
28
 
29
29
  class Real
30
30
  def initialize(options = {})
31
- @auth_encord = Base64.strict_encode64([
31
+ @auth_encode = Base64.strict_encode64([
32
32
  options[:sakuracloud_api_token],
33
33
  options[:sakuracloud_api_token_secret]
34
34
  ].join(':'))
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-sakuracloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - sawanoboly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-22 00:00:00.000000000 Z
11
+ date: 2015-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-core