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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5a413768a9c65ef58447d01896f530d0120fb874
4
- data.tar.gz: 124c1ba1b47f2bbde453b4c1ecb8ca967eb8b522
3
+ metadata.gz: 530e7a27577ec3e9998584f70760afa569f88202
4
+ data.tar.gz: 76ba2dd50a9df4486fdb9caa4df70c70bf4b7b80
5
5
  SHA512:
6
- metadata.gz: bf284546c3136ff877027164a90954c15504bfdfd7a6e4fb5812d50db764f2caf5fe64263c19073a5c004f65248c86b830d6018e4482bbb01ea3d6532b642004
7
- data.tar.gz: 96f52671ef279a82aa35d16c3533f9969f57ac3f163af2c854bc773cb224f3a0c86a14355447c5539f695d306c1253d22e21165f7ceb46f260164f570e1bd7e1
6
+ metadata.gz: 4e389ca1eb91fef91a29d291240e2ada46b25c142179aae998000a8b9540965436017545b0fee5a8b7d141fd74ade94c7cbc89fbcade53b57a1e075fcfaf39fd
7
+ data.tar.gz: 53857abd3b533fa07ecbef84519e7a2f27e64d25be02908624e3100da94db1a253ec0397ec8a056ade0c73e8e3c36319de0dbbbcae4b80d39dd624eef6880f27
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Jelastic
2
- [![Build Status](https://travis-ci.org/visualitypl/jelastic.svg?branch=master)](https://travis-ci.org/visualitypl/jelastic) [![Code Climate](https://codeclimate.com/github/visualitypl/jelastic/badges/gpa.svg)](https://codeclimate.com/github/visualitypl/jelastic) [![Coverage Status](https://coveralls.io/repos/github/visualitypl/jelastic/badge.svg?branch=master)](https://coveralls.io/github/visualitypl/jelastic?branch=master)
2
+ [![Gem Version](https://badge.fury.io/rb/jelastic.svg)](https://badge.fury.io/rb/jelastic) [![Build Status](https://travis-ci.org/visualitypl/jelastic.svg?branch=master)](https://travis-ci.org/visualitypl/jelastic) [![Code Climate](https://codeclimate.com/github/visualitypl/jelastic/badges/gpa.svg)](https://codeclimate.com/github/visualitypl/jelastic) [![Coverage Status](https://coveralls.io/repos/github/visualitypl/jelastic/badge.svg?branch=master)](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
 
@@ -7,7 +7,7 @@ module Jelastic
7
7
  include REST::API
8
8
  extend Forwardable
9
9
 
10
- attr_accessor :login, :password
10
+ attr_accessor :login, :password, :api_url
11
11
  attr_reader :user
12
12
 
13
13
  def_delegator :user, :session
@@ -4,8 +4,7 @@ require 'jelastic/request_error'
4
4
 
5
5
  module Jelastic
6
6
  class Request
7
- API_URL = 'https://app.jelastic.dogado.eu/1.0/'.freeze
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(API_URL, path)
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
 
@@ -30,7 +30,7 @@ module Jelastic
30
30
  end
31
31
 
32
32
  def set_docker_env_vars(env_name:, node_id:, envs:)
33
- data = to_json(params, :envs)
33
+ data = envs.to_json
34
34
 
35
35
  send_request(
36
36
  'environment/control/rest/setdockerenvvars',
@@ -1,3 +1,3 @@
1
1
  module Jelastic
2
- VERSION = '0.1.0-dev'
2
+ VERSION = '0.1.1'
3
3
  end
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.0.pre.dev
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-08-11 00:00:00.000000000 Z
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: 1.3.1
105
+ version: '0'
106
106
  requirements: []
107
107
  rubyforge_project:
108
108
  rubygems_version: 2.5.1