typesensual 0.3.0 → 0.3.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
  SHA256:
3
- metadata.gz: 16c9d2bb0a45de749680a833abf874d3f42da4190ea66b88e5d1f19a8f2d902c
4
- data.tar.gz: d4f9dc200a97e182929b8cdc6fbb48edc1da69e6444137e2f7f670197742fa2a
3
+ metadata.gz: 432d9ea014861c5f21225215e693d84d87dc2c3056b8b1b74d6e59141b3d153c
4
+ data.tar.gz: 92b1a1c633e62dab743bbebf4e456a6d9766b842bf3827667a611c1ee9cd416c
5
5
  SHA512:
6
- metadata.gz: 7d3130f6ac4d1b5d2722c4a6020fab73dc6ce1b91b7095e0f91de2d50723a60c5edb5434f651f874182c868a22e4015b12aa0eed097270562bc2bd291640a2af
7
- data.tar.gz: c1fc489fab6f2c1fc29f57a0662883115b37b1790a02eab0db6193be53fbf4174de8e464b937f42b54ee2c3098d57abc8dc529f5d081728cb63861c75b302242
6
+ metadata.gz: b3696898ec4467ba051e7178166f97b01c8ff5c3d7f3708d8670239995f642f95f7e5643d08809924259deb50943b53dcdaefc76fff99e99bcfcef7e964faaba
7
+ data.tar.gz: cd6b6e32bf1f472ff31b6ac33fc86971359f6ae2e31aea265c9af5f688c28fd254f1be9d82edf7fc488a1422c356e524c13d134765470b6e6dfcf33a5b578cb5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- typesensual (0.3.0)
4
+ typesensual (0.3.1)
5
5
  activesupport (>= 6.1.5)
6
6
  paint (>= 2.0.0)
7
7
  typesense (>= 0.13.0)
@@ -15,7 +15,7 @@ GEM
15
15
  minitest (>= 5.1)
16
16
  tzinfo (~> 2.0)
17
17
  ast (2.4.2)
18
- commonmarker (0.23.9)
18
+ commonmarker (0.23.10)
19
19
  concurrent-ruby (1.2.2)
20
20
  diff-lcs (1.5.0)
21
21
  docile (1.4.0)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Typesensual
4
- VERSION = '0.3.0'
4
+ VERSION = '0.3.1'
5
5
  end
data/lib/typesensual.rb CHANGED
@@ -19,14 +19,16 @@ require 'typesensual/railtie' if defined?(Rails)
19
19
 
20
20
  class Typesensual
21
21
  class << self
22
- attr_accessor :config
23
-
24
22
  def client
25
23
  config&.client
26
24
  end
27
25
 
28
26
  def configure(&block)
29
- self.config = Typesensual::Config.new(&block)
27
+ @config = Typesensual::Config.new(&block)
28
+ end
29
+
30
+ def config
31
+ @config ||= Typesensual::Config.new
30
32
  end
31
33
 
32
34
  # Get the collections that match the alias name
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typesensual
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emma Lejeck