typesense 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec69deb240d0c343346d128161aa74fe12ab18e7f79007dfa24ac16738c46237
4
- data.tar.gz: e681fcd5f9b1241054f3c786ee5e6eebad45c1ddc1705311bf7a45ea6551a23f
3
+ metadata.gz: '01816d2288d2368c04508b224d54570d993d3c4388368a4538426aa6bd9fa059'
4
+ data.tar.gz: b784907e7daf269117568c3c9fa0c96dc90e9d23b1e760a322a54acaaf90a647
5
5
  SHA512:
6
- metadata.gz: f6dd0dfd751499e1ec32cfd45935038df7ad219c498f433745fd8855439ef5136a7df7c47491f37fa9940d8bc1f1d02cfcc5aa77f6c4a154256f6ebe4dcb5c32
7
- data.tar.gz: 7ef2d64aa701054a756222bc18dc19c9b3e282dbb6cc8789a47fe901d5716d67faaacf0c8fe1ed5b3de7cf1f06a1af11621e77ec633a4dfb6722e5bb0ed6908f
6
+ metadata.gz: 34f902768512e76f2f18fee4eb70b4a28ae2b5ab54c408a361cfe94f88d3e0b892d77e2bd7e17c1f0d831e7d09d0158e66c22c8a62850138de27d1a09dc5e79a
7
+ data.tar.gz: 40c9c0fe34bd652a2ec99b8e5b26740a65a85806ce027a704b8bbab290773f8f2dd792e9ae1376cb9b4009d49836d1c15966fce3d59ec7ed3d0fef975a8add7b
@@ -14,3 +14,6 @@ Metrics/BlockLength:
14
14
 
15
15
  Style/Documentation:
16
16
  Enabled: false
17
+
18
+ RSpec/ExampleLength:
19
+ Enabled: false
@@ -44,23 +44,6 @@ Metrics/MethodLength:
44
44
  Metrics/PerceivedComplexity:
45
45
  Max: 11
46
46
 
47
- # Offense count: 25
48
- # Configuration parameters: Max.
49
- RSpec/ExampleLength:
50
- Exclude:
51
- - 'spec/typesense/alias_spec.rb'
52
- - 'spec/typesense/aliases_spec.rb'
53
- - 'spec/typesense/key_spec.rb'
54
- - 'spec/typesense/keys_spec.rb'
55
- - 'spec/typesense/api_call_spec.rb'
56
- - 'spec/typesense/collection_spec.rb'
57
- - 'spec/typesense/collections_spec.rb'
58
- - 'spec/typesense/debug_spec.rb'
59
- - 'spec/typesense/document_spec.rb'
60
- - 'spec/typesense/documents_spec.rb'
61
- - 'spec/typesense/override_spec.rb'
62
- - 'spec/typesense/overrides_spec.rb'
63
-
64
47
  # Offense count: 10
65
48
  RSpec/MultipleExpectations:
66
49
  Max: 5
@@ -18,4 +18,5 @@ require_relative 'typesense/alias'
18
18
  require_relative 'typesense/keys'
19
19
  require_relative 'typesense/key'
20
20
  require_relative 'typesense/debug'
21
+ require_relative 'typesense/health'
21
22
  require_relative 'typesense/error'
@@ -7,6 +7,7 @@ module Typesense
7
7
  attr_reader :aliases
8
8
  attr_reader :keys
9
9
  attr_reader :debug
10
+ attr_reader :health
10
11
 
11
12
  def initialize(options = {})
12
13
  @configuration = Configuration.new(options)
@@ -15,6 +16,7 @@ module Typesense
15
16
  @aliases = Aliases.new(@api_call)
16
17
  @keys = Keys.new(@api_call)
17
18
  @debug = Debug.new(@api_call)
19
+ @health = Health.new(@api_call)
18
20
  end
19
21
  end
20
22
  end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Typesense
4
+ class Health
5
+ RESOURCE_PATH = '/health'
6
+
7
+ def initialize(api_call)
8
+ @api_call = api_call
9
+ end
10
+
11
+ def retrieve
12
+ @api_call.get(RESOURCE_PATH)
13
+ end
14
+ end
15
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Typesense
4
- VERSION = '0.5.0'
4
+ VERSION = '0.5.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typesense
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Typesense, Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-31 00:00:00.000000000 Z
11
+ date: 2020-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print
@@ -244,6 +244,7 @@ files:
244
244
  - lib/typesense/document.rb
245
245
  - lib/typesense/documents.rb
246
246
  - lib/typesense/error.rb
247
+ - lib/typesense/health.rb
247
248
  - lib/typesense/key.rb
248
249
  - lib/typesense/keys.rb
249
250
  - lib/typesense/override.rb