typesense 2.1.0.rc1 → 2.1.0.rc2

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: bd723b92e74fe4f30b8a61293b754c955e440aaa0d7da3c3428e77cccaf73d1a
4
- data.tar.gz: 0ddf97cb4b0d821d8eef4763f42013a30e6b5a2c3f47503f5839e85e02a27040
3
+ metadata.gz: 4277bf2d4714157959fe31dd42be2ae28af0285eda20e644aeea48b18370dbb5
4
+ data.tar.gz: 5b9985aab6c88db0d7853e507676812078d87263b48e330c30cf14ea32e988d8
5
5
  SHA512:
6
- metadata.gz: 38443f587962d107f66df1b485265225b6af14a07d9cc997881ff9d8edaee1c9dd1dd1f20b35147c86fc3355b73bbe16d12bff34223bde20a36d0f5e50c4c98d
7
- data.tar.gz: 6e58d68cd9d9c36a5c2291308ff0ae62bff8bb44150f26aecab366a19e000468f2e476ad2889ddd4fcaa3750edf088fd219a23673a1957daadebcc1c2e2b2ff0
6
+ metadata.gz: c8843954b06affd11ad33b66929df395011eef4e8336037683b5fbbf72adcaa2ce00605ceb1d7f5f5f3ee777b5ab3846d907c797f81ae1130c735664afc8fb64
7
+ data.tar.gz: 52b57e91831bdb6d4599fa1d5a17d9073ec4ff2730054b66d1a8fb17211e416d5b74c0fd429550112a196789b5dd648be56afb8e368fbe1d3c761a17f414a257
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Typesense
4
4
  class Client
5
- attr_reader :configuration, :collections, :aliases, :keys, :debug, :health, :metrics, :operations,
5
+ attr_reader :configuration, :collections, :aliases, :keys, :debug, :health, :metrics, :stats, :operations,
6
6
  :multi_search, :analytics, :presets
7
7
 
8
8
  def initialize(options = {})
@@ -15,6 +15,7 @@ module Typesense
15
15
  @debug = Debug.new(@api_call)
16
16
  @health = Health.new(@api_call)
17
17
  @metrics = Metrics.new(@api_call)
18
+ @stats = Stats.new(@api_call)
18
19
  @operations = Operations.new(@api_call)
19
20
  @analytics = Analytics.new(@api_call)
20
21
  @presets = Presets.new(@api_call)
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Typesense
4
+ class Stats
5
+ RESOURCE_PATH = '/stats.json'
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 = '2.1.0.rc1'
4
+ VERSION = '2.1.0.rc2'
5
5
  end
data/lib/typesense.rb CHANGED
@@ -29,5 +29,6 @@ require_relative 'typesense/preset'
29
29
  require_relative 'typesense/debug'
30
30
  require_relative 'typesense/health'
31
31
  require_relative 'typesense/metrics'
32
+ require_relative 'typesense/stats'
32
33
  require_relative 'typesense/operations'
33
34
  require_relative 'typesense/error'
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: 2.1.0.rc1
4
+ version: 2.1.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Typesense, Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-09 00:00:00.000000000 Z
11
+ date: 2024-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj
@@ -90,6 +90,7 @@ files:
90
90
  - lib/typesense/overrides.rb
91
91
  - lib/typesense/preset.rb
92
92
  - lib/typesense/presets.rb
93
+ - lib/typesense/stats.rb
93
94
  - lib/typesense/synonym.rb
94
95
  - lib/typesense/synonyms.rb
95
96
  - lib/typesense/version.rb