profitbricks-sdk-ruby 3.0.0 → 3.0.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: ded40a3bb0dee26ff94bb75c2b0968bf27c57970
4
- data.tar.gz: d5eae2c53e57474a58cbda96aa0a50091aaebf1a
3
+ metadata.gz: 2fd6100c1cd59054d6e0f5a055f4cedd7db4100b
4
+ data.tar.gz: 36a6f4aca067424672714cb23edcc2a46132affc
5
5
  SHA512:
6
- metadata.gz: 9fb02363620776975baa7e900223a1933751c98201712fb18d72d827a5e7eee208133685cd72ece20b234f919f1a56ff8cca2738e4ddc42e2e82e1ff6c3bbf37
7
- data.tar.gz: 951573541547d713c0bb306d025a9e56808846018360165b2ff45c1145df937332ac36f06212dbb2c21dd5fecb68b5666f7288178964590ff5d14316f497a746
6
+ metadata.gz: 2f48403e195b2a66ad9e4ab671e4e7496a2b1d07984bdd74afbfab0478e18c5a0673b200e684fd5ff488ca2185d388224f4b4ad2be7e03f2bb6f586cd5cc3b99
7
+ data.tar.gz: b9272cf5323edd25e91278deb62110b12a670dd96be301c01607c94bf37a7c91685d660073e92b79b778d1184212531174a63277040cf30a0aa37f13471e8e69
data/README.md CHANGED
@@ -19,7 +19,7 @@ Or install it yourself as:
19
19
  ## Documentation and Support
20
20
 
21
21
  * A guide and reference documentation can be found in the repo docs/ directory.
22
- * [ProfitBricks SDK for Ruby](https://devops.profitbricks.com/libraries/profitbricks-sdk-ruby/) guide.
22
+ * [ProfitBricks SDK for Ruby](https://devops.profitbricks.com/libraries/ruby/) guide.
23
23
  * [ProfitBricks REST API](https://devops.profitbricks.com/api/rest/) documentation.
24
24
  * Ask a question or discuss at [ProfitBricks DevOps Central](https://devops.profitbricks.com/community).
25
25
  * Report an [issue here](https://github.com/profitbricks/profitbricks-sdk-ruby/issues).
data/docs/guide.md CHANGED
@@ -251,6 +251,6 @@ The sample below shows you how to add a second NIC to an existing server and LAN
251
251
 
252
252
  Further documentation can be found in the project repository on GitHub.
253
253
 
254
- [https://github.com/StackPointCloud/profitbricks-sdk-ruby](https://github.com/StackPointCloud/profitbricks-sdk-ruby)
254
+ [https://github.com/profitbricks/profitbricks-sdk-ruby](https://github.com/profitbricks/profitbricks-sdk-ruby)
255
255
 
256
256
  Questions and discussions can be directed to [ProfitBricks DevOps Central](https://devops.profitbricks.com/) site.
@@ -88,8 +88,14 @@ module ProfitBricks
88
88
 
89
89
  def self.add_headers(params)
90
90
  params[:headers] ||= {}
91
- params[:headers]["User-Agent"] ||= "profitbricks-ruby-sdk/#{ProfitBricks::VERSION}"
92
91
  params[:headers].merge!(ProfitBricks::Config.headers) if ProfitBricks::Config.headers
92
+
93
+ if params[:headers]["User-Agent"]
94
+ params[:headers]["User-Agent"] = "profitbricks-ruby-sdk/#{ProfitBricks::VERSION} " + params[:headers]["User-Agent"]
95
+ else
96
+ params[:headers]["User-Agent"] = "profitbricks-ruby-sdk/#{ProfitBricks::VERSION}"
97
+ end
98
+
93
99
  unless params[:headers].key?('Content-Type')
94
100
  params[:headers]['Content-Type'] = content_type(params[:method])
95
101
  end
@@ -1,3 +1,3 @@
1
1
  module ProfitBricks
2
- VERSION = '3.0.0'
2
+ VERSION = '3.0.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: profitbricks-sdk-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan Devenport
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-19 00:00:00.000000000 Z
11
+ date: 2016-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon