datavirtuality_rest 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/datavirtuality/rest.rb +2 -1
  3. metadata +16 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4472c398087483906413dab58918157ccc11a430
4
- data.tar.gz: fe5d4f9277c9fff790744d46ab9d1a60dcee324e
3
+ metadata.gz: c0e9343989549a8ac12e2727bd13c3d927ff189d
4
+ data.tar.gz: c528558182ed2f6576d33a7d0db54974bcad8e4f
5
5
  SHA512:
6
- metadata.gz: 3c8af863c25768a5cbac4402ed614cbbdf34c7970f1f0683f8c244cad550f6a474e5d450497fc1b64ccae24dceceedba75eab04b344d8ad0b749a3897d0df62b
7
- data.tar.gz: 8b6b95b2775f908e9d34f0c53f38ef1210a66e58a0f19becddb6b114e1facebbe6206695a02b3f7b485624a2841694047ce07148c43ea8379aa4a1a0ec64b1ef
6
+ metadata.gz: 512f7b701faa878d7fc5ac098b2ce9b5189ec5ec7b2cfd16d2604ff2432e44c163777eafd71bee2698bb554e1a3c1d7135d623085b8a835f696629e6e8b351b0
7
+ data.tar.gz: df16b2a2e5610ee2cdd36e4704b62d78e11fe80b2d35396d85f3159245bafca9aff824654cba34a83b81d2ff4e46516431db61f28dae3a95ba6457c4ff72a6f6
@@ -7,13 +7,14 @@ require 'json/ext'
7
7
  module DataVirtuality
8
8
  # DataVirtuality REST client
9
9
  class Rest
10
- def initialize(host, username, password)
10
+ def initialize(host, username, password, receive_timeout = 0)
11
11
  @host = host
12
12
  @username = username
13
13
  @password = password
14
14
 
15
15
  @http_client = HTTPClient.new
16
16
  @http_client.set_auth(host, username, password)
17
+ @http_client.receive_timeout = receive_timeout
17
18
  end
18
19
 
19
20
  def status
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datavirtuality_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - DataVirtuality GmbH
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-26 00:00:00.000000000 Z
11
+ date: 2017-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop-rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
83
97
  description: Enables easy access to DataVirtuality via its REST API
84
98
  email: support@datavirtuality.com
85
99
  executables: []