jelastic 0.1.0.pre.dev → 0.1.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 +3 -2
- data/lib/jelastic/client.rb +1 -1
- data/lib/jelastic/request.rb +2 -3
- data/lib/jelastic/rest/control.rb +1 -1
- data/lib/jelastic/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 530e7a27577ec3e9998584f70760afa569f88202
|
|
4
|
+
data.tar.gz: 76ba2dd50a9df4486fdb9caa4df70c70bf4b7b80
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4e389ca1eb91fef91a29d291240e2ada46b25c142179aae998000a8b9540965436017545b0fee5a8b7d141fd74ade94c7cbc89fbcade53b57a1e075fcfaf39fd
|
|
7
|
+
data.tar.gz: 53857abd3b533fa07ecbef84519e7a2f27e64d25be02908624e3100da94db1a253ec0397ec8a056ade0c73e8e3c36319de0dbbbcae4b80d39dd624eef6880f27
|
data/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Jelastic
|
|
2
|
-
[](https://travis-ci.org/visualitypl/jelastic) [](https://codeclimate.com/github/visualitypl/jelastic) [](https://coveralls.io/github/visualitypl/jelastic?branch=master)
|
|
2
|
+
[](https://badge.fury.io/rb/jelastic) [](https://travis-ci.org/visualitypl/jelastic) [](https://codeclimate.com/github/visualitypl/jelastic) [](https://coveralls.io/github/visualitypl/jelastic?branch=master)
|
|
3
3
|
|
|
4
4
|
A Ruby wrapper for Jelastic API.
|
|
5
5
|
|
|
@@ -18,13 +18,14 @@ And then execute:
|
|
|
18
18
|
Or install it yourself as:
|
|
19
19
|
|
|
20
20
|
$ gem install jelastic
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
## Configuration
|
|
23
23
|
|
|
24
24
|
```ruby
|
|
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.jelastic.dogado.eu/1.0/
|
|
28
29
|
end
|
|
29
30
|
```
|
|
30
31
|
|
data/lib/jelastic/client.rb
CHANGED
data/lib/jelastic/request.rb
CHANGED
|
@@ -4,8 +4,7 @@ require 'jelastic/request_error'
|
|
|
4
4
|
|
|
5
5
|
module Jelastic
|
|
6
6
|
class Request
|
|
7
|
-
|
|
8
|
-
TIMEOUT = 300
|
|
7
|
+
TIMEOUT = 1200
|
|
9
8
|
|
|
10
9
|
attr_reader :client, :path, :params
|
|
11
10
|
|
|
@@ -25,7 +24,7 @@ module Jelastic
|
|
|
25
24
|
end
|
|
26
25
|
|
|
27
26
|
def send
|
|
28
|
-
uri = URI.join(
|
|
27
|
+
uri = URI.join(client.api_url, path)
|
|
29
28
|
req = Net::HTTP::Post.new(uri.path)
|
|
30
29
|
req.set_form_data(params)
|
|
31
30
|
|
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.1
|
|
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-09-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -100,9 +100,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
100
100
|
version: '0'
|
|
101
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
102
|
requirements:
|
|
103
|
-
- - "
|
|
103
|
+
- - ">="
|
|
104
104
|
- !ruby/object:Gem::Version
|
|
105
|
-
version:
|
|
105
|
+
version: '0'
|
|
106
106
|
requirements: []
|
|
107
107
|
rubyforge_project:
|
|
108
108
|
rubygems_version: 2.5.1
|