speaky 0.1.4 → 0.1.5

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: b6be1d021d8ebe259d6aa37fe46dc536e8be03b0e4b19309ad06733625bb91ff
4
- data.tar.gz: 5a5b658cd9ea7878362d436cee77b322be437e0a6bca88db844eb56cd06719af
3
+ metadata.gz: 06f3d5c76d75de0c05238c26dfc83d3707d7cc5448f83ef474249b0bd5df185b
4
+ data.tar.gz: 64cac48f6f8fcdd88512940ae3888d736f7b52890dd6cf92a7f91f6716ffee48
5
5
  SHA512:
6
- metadata.gz: 28e149649e103d758b87dbb73b3417f1fbdf8e0e73838b24f602fc17204fc2a972fee798eed57aa9c0b92d30ffbeae18047eaa845e248af1355dce1f72b006ed
7
- data.tar.gz: ca90c2c737d2f2e151c2f35a8b2b429f116aeb386c02951aa87e119635d0f06cf86fbd1ab9dc4764014d5c830998d6fd9299dee00d4877282fcaa567f4e961dd
6
+ metadata.gz: 104878c920e7de1c268e727b2ff774f8a6f8c0e240be6cc5b252ee054beeb3f9ae37b36bf7f57ae5491e8d26b3af670b229304885d21f7b0bd63c3686eea5cf4
7
+ data.tar.gz: 20a27ca58c2f0184d153e5652e9a71058335a9ba1ebd1fd9281f542d95df1c38a8ac5345976f93dd9a824f89b58bdec35440eb441dbf7b443b0a7347db1ad142
@@ -13,7 +13,7 @@ module Speaky
13
13
 
14
14
  def save_for_speaky
15
15
  begin
16
- Speaky.vectorstore.add(self.id, self.as_speaky)
16
+ Speaky.vectorstore.add("#{self.class.name}_#{self.id}", self.as_speaky)
17
17
  rescue StandardError => e
18
18
  Rails.logger.error(e)
19
19
  errors.add(:base, 'Failed to create for speaky')
@@ -23,7 +23,7 @@ module Speaky
23
23
 
24
24
  def destroy_for_speaky
25
25
  begin
26
- Speaky.vectorstore.remove(self.id)
26
+ Speaky.vectorstore.remove("#{self.class.name}_#{self.id}")
27
27
  rescue StandardError => e
28
28
  Rails.logger.error(e)
29
29
  errors.add(:base, 'Failed to destroy for speaky')
@@ -1,3 +1,3 @@
1
1
  module Speaky
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: speaky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregorio Galante