profitbricks-sdk-ruby 3.0.0 → 3.0.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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/docs/guide.md +1 -1
- data/lib/profitbricks/profitbricks.rb +7 -1
- data/lib/profitbricks/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2fd6100c1cd59054d6e0f5a055f4cedd7db4100b
|
|
4
|
+
data.tar.gz: 36a6f4aca067424672714cb23edcc2a46132affc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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/
|
|
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
|
-
|
|
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
|
data/lib/profitbricks/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2016-12-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: excon
|