etre-client 0.8.5 → 0.8.6

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
  SHA256:
3
- metadata.gz: 7bb4311536146ce0c48e5a7c29ebdaac1b5280774c9b82b7f93e7be0bde54802
4
- data.tar.gz: a991b597c0a26848422e358dd7ac1d949d61b4edd4e8b0b2d0590db66115d63c
3
+ metadata.gz: 4a00b1a3963aabc7289f9c3bc6b5a26ae0c1184aaa068ce44f999fb238b41366
4
+ data.tar.gz: 0344444b0a5bea0596a3b8ccbcd9031c0b67d0f589508c1633d196785f82f0a7
5
5
  SHA512:
6
- metadata.gz: 901d1d3f2e8692c6ccea5dea15a2f3e60fbcc86105c25124725369a14b68f57192e18a211b254d913afd6e9973f5286a7413be3dd50f40541e5074a8689336c7
7
- data.tar.gz: 3cd429236b2b6dc3d79ef504cc3e637ba18681f7ff1966513f1ee25a970bd492b37adbc55cbead4d569d551d06a48f71d523c58bb3870f691b1ac877c2f32497
6
+ metadata.gz: 4b19650c25db22a5d501753900441eddca53f0a3322b51a60450e75c173fd9c605cb27b3e31e57841e6f2ea2f50d4c54764ed1950bd5283cf1d58e40f5d4a67f
7
+ data.tar.gz: 8457352ca44a551d2e2fb62f63ff9d8946d02d8c510aac905a11c23bb6a0d6a605a1512767b68b3fff9481755ee8432a33ec700bea9bdd64f4791d9232ffe7b8
@@ -11,7 +11,7 @@ module Etre
11
11
  META_LABEL_ID = "_id"
12
12
  META_LABEL_TYPE = "_type"
13
13
 
14
- def initialize(entity_type:, url:, query_timeout: 5, retry_count: 0, retry_wait: 1, options: {})
14
+ def initialize(entity_type:, url:, query_timeout: '5s', retry_count: 0, retry_wait: 1, options: {})
15
15
  @entity_type = entity_type
16
16
  @url = url
17
17
  @query_timeout = query_timeout # http request timeout in seconds
@@ -1,5 +1,5 @@
1
1
  module Etre
2
2
  class Client
3
- VERSION = "0.8.5"
3
+ VERSION = "0.8.6"
4
4
  end
5
5
  end
data/spec/client_spec.rb CHANGED
@@ -3,7 +3,7 @@ require 'ostruct'
3
3
 
4
4
  describe Etre::Client do
5
5
  let(:etre_client) { Etre::Client.new(entity_type: "node", url: "http://localhost:3000") }
6
- let(:get_headers) { {:accept => "application/json", :x_etre_query_timeout => 5} }
6
+ let(:get_headers) { {:accept => "application/json", :x_etre_query_timeout => '5s'} }
7
7
  let(:post_headers) { get_headers.merge({:content_type => "application/json"}) }
8
8
  let(:put_headers) { post_headers }
9
9
  let(:delete_headers) { get_headers }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: etre-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.5
4
+ version: 0.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Finch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-23 00:00:00.000000000 Z
11
+ date: 2021-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  - !ruby/object:Gem::Version
114
114
  version: '0'
115
115
  requirements: []
116
- rubygems_version: 3.0.3
116
+ rubygems_version: 3.0.6
117
117
  signing_key:
118
118
  specification_version: 4
119
119
  summary: Client gem for interacting with Etre