jelastic 0.1.1 → 0.1.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.
- checksums.yaml +4 -4
- data/.travis.yml +0 -1
- data/README.md +3 -1
- data/lib/jelastic/client.rb +1 -1
- data/lib/jelastic/request.rb +9 -1
- data/lib/jelastic/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: 61cb2ea36154ab01aeaf03bf2e851fbf045121d3
|
|
4
|
+
data.tar.gz: 6f37618f955a5260722d17f0cb3e65b7c5e9017c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 32ff0506b2e23818c02042415fdaea3a957f7b02ed187e49ca73aa871339b375e549222db7c16eb668e9b002f7d2cd5114c7155e9cbf90b32afa131248bcda46
|
|
7
|
+
data.tar.gz: ccacbab148e2eaf8405eb627da79895ce27caf835c4687fe37dae27211a23185f3c71dbe2441f8436c1b5e33d93491d85369c505da1748990ec33aff717f6997
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
|
@@ -25,7 +25,9 @@ Or install it yourself as:
|
|
|
25
25
|
client = Jelastic::Client.new do |config|
|
|
26
26
|
config.login = 'LOGIN'
|
|
27
27
|
config.password = 'PASSWORD'
|
|
28
|
-
config.api_url = 'API URL HOST PROVIDER' # e.g. https://app.
|
|
28
|
+
config.api_url = 'API URL HOST PROVIDER' # e.g. https://app.j.layershift.co.uk/1.0/
|
|
29
|
+
# add unique id to have multiple connections from the same ip
|
|
30
|
+
config.user_agent = nil # e.g. Task1-UniqueID1
|
|
29
31
|
end
|
|
30
32
|
```
|
|
31
33
|
|
data/lib/jelastic/client.rb
CHANGED
data/lib/jelastic/request.rb
CHANGED
|
@@ -25,7 +25,7 @@ module Jelastic
|
|
|
25
25
|
|
|
26
26
|
def send
|
|
27
27
|
uri = URI.join(client.api_url, path)
|
|
28
|
-
req = Net::HTTP::Post.new(uri.path)
|
|
28
|
+
req = Net::HTTP::Post.new(uri.path, request_options)
|
|
29
29
|
req.set_form_data(params)
|
|
30
30
|
|
|
31
31
|
http = Net::HTTP.new(uri.host, uri.port)
|
|
@@ -54,5 +54,13 @@ module Jelastic
|
|
|
54
54
|
new_path
|
|
55
55
|
end.join('/')
|
|
56
56
|
end
|
|
57
|
+
|
|
58
|
+
def request_options
|
|
59
|
+
options = {}
|
|
60
|
+
|
|
61
|
+
options['User-Agent'] = client.user_agent unless client.user_agent.nil?
|
|
62
|
+
|
|
63
|
+
options
|
|
64
|
+
end
|
|
57
65
|
end
|
|
58
66
|
end
|
data/lib/jelastic/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jelastic
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Marcin Prokop
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-11-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|