knife-zcloudjp 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  ChangeLog for knife-zcloudjp
2
2
  ====
3
3
 
4
+ ## v0.1.6
5
+
6
+ * Change User-Agent to Knife-Zcloudjp
7
+
8
+ ## v0.1.5
9
+
10
+ * Just add gemspec description.
4
11
 
5
12
  ## v0.1.4
6
13
 
@@ -147,7 +147,7 @@ class Chef
147
147
 
148
148
 
149
149
  locate_config_value(:zcloudjp_api_url)
150
- connection = Faraday.new(:url => locate_config_value(:zcloudjp_api_url), :ssl => {:verify => false})
150
+ connection = Faraday.new(:url => locate_config_value(:zcloudjp_api_url), :ssl => {:verify => false}, :headers => {"User-Agent" => "Knife-Zcloudjp/#{::Knife::Zcloudjp::VERSION}"})
151
151
 
152
152
  response = connection.post do |req|
153
153
  req.url '/machines.json'
@@ -10,7 +10,7 @@ class Chef
10
10
  def run
11
11
  Chef::Log.debug("Connect to Z Cloud API #{locate_config_value(:zcloudjp_api_url)}")
12
12
 
13
- connection = Faraday.new(:url => locate_config_value(:zcloudjp_api_url), :ssl => {:verify => false})
13
+ connection = Faraday.new(:url => locate_config_value(:zcloudjp_api_url), :ssl => {:verify => false}, :headers => {"User-Agent" => "Knife-Zcloudjp/#{::Knife::Zcloudjp::VERSION}"})
14
14
 
15
15
  response = connection.get do |req|
16
16
  req.url '/machines.json'
@@ -45,7 +45,7 @@ class Chef
45
45
 
46
46
 
47
47
  locate_config_value(:zcloudjp_api_url)
48
- connection = Faraday.new(:url => locate_config_value(:zcloudjp_api_url), :ssl => {:verify => false})
48
+ connection = Faraday.new(:url => locate_config_value(:zcloudjp_api_url), :ssl => {:verify => false}, :headers => {"User-Agent" => "Knife-Zcloudjp/#{::Knife::Zcloudjp::VERSION}"})
49
49
 
50
50
  def check_current_state(connection,machine_uuid)
51
51
  response = connection.get do |req|
@@ -45,7 +45,7 @@ class Chef
45
45
 
46
46
 
47
47
  locate_config_value(:zcloudjp_api_url)
48
- connection = Faraday.new(:url => locate_config_value(:zcloudjp_api_url), :ssl => {:verify => false})
48
+ connection = Faraday.new(:url => locate_config_value(:zcloudjp_api_url), :ssl => {:verify => false}, :headers => {"User-Agent" => "Knife-Zcloudjp/#{::Knife::Zcloudjp::VERSION}"})
49
49
 
50
50
  def check_current_state(connection,machine_uuid)
51
51
  response = connection.get do |req|
@@ -9,7 +9,7 @@ class Chef
9
9
 
10
10
  def run
11
11
  Chef::Log.debug("Connect to Z Cloud API #{locate_config_value(:zcloudjp_api_url)}")
12
- connection = Faraday.new(:url => locate_config_value(:zcloudjp_api_url), :ssl => {:verify => false})
12
+ connection = Faraday.new(:url => locate_config_value(:zcloudjp_api_url), :ssl => {:verify => false}, :headers => {"User-Agent" => "Knife-Zcloudjp/#{::Knife::Zcloudjp::VERSION}"})
13
13
 
14
14
  response = connection.get do |req|
15
15
  req.url '/products.json'
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Zcloudjp
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
  MAJOR, MINOR, TINY = VERSION.split('.')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-zcloudjp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
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-01-17 00:00:00.000000000 Z
12
+ date: 2013-01-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef