acts_as_favoritor 2.1.1 → 2.1.2

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: 30781714c67378af58887aafea858cbde652a85473654e114550ecff6242d31b
4
- data.tar.gz: 38d762ecfbace438d672b9a17d14550185fc837bbc96b5f88af1555f20a76598
3
+ metadata.gz: b2875795f7875bb8dee5c728af27a406a6808b0eda78a42f0349824362ac3e26
4
+ data.tar.gz: 1dc45485b56e56d9df9a20f61e1044bbe1dbcf83731dbdf5beeb621aa768cc2e
5
5
  SHA512:
6
- metadata.gz: 34fc997d31e4255f91902c94c98b7872c9108f35c8331b9c8fd00ca26be2a302fe80348f63e87ef849b23c56e50986b7f6633fa98b06b557f7c6c1d3f669b63d
7
- data.tar.gz: d4f4d4949d1f569f1eb4c00967a26ed2e3abeae2ab561fe98d491010dfcbd183a5720dfb07a32971c013681d177aa1d3530787c75465ed906765d7c28f4e7c4f
6
+ metadata.gz: bb5ba1b48c7c76ec581ae6b3c65bde08ed91a2946f01a51c5da3c9daf8d744d461ee2973ebae4baf2fdc39f695498f58eeddf8d7a95e9a14d86aeb71e48c6589
7
+ data.tar.gz: 203b76be7a03c1d133345165e7d014164d2910d326991939e3314951b3f3e15d88a37118f2ece835d7a74906ab7ce1f692c94e1983179b994c3e3c4f4bc6917f
@@ -13,7 +13,8 @@ module ActsAsFavoritor
13
13
  include ActsAsFavoritor::Favoritable::InstanceMethods
14
14
  include ActsAsFavoritor::FavoritorLib
15
15
 
16
- return unless ActsAsFavoritor.configuration.cache
16
+ return unless ActsAsFavoritor.configuration&.cache
17
+
17
18
  serialize :favoritable_score, Hash
18
19
  serialize :favoritable_total, Hash
19
20
  end
@@ -13,6 +13,7 @@ module ActsAsFavoritor
13
13
  include ActsAsFavoritor::FavoritorLib
14
14
 
15
15
  return unless ActsAsFavoritor.configuration&.cache
16
+
16
17
  serialize :favoritor_score, Hash
17
18
  serialize :favoritor_total, Hash
18
19
  end
@@ -132,6 +133,7 @@ module ActsAsFavoritor
132
133
  favoritable.save!
133
134
  end
134
135
  next unless self != favoritable && scope != 'all'
136
+
135
137
  params = {
136
138
  favoritable_id: favoritable.id,
137
139
  favoritable_type: parent_class_name(favoritable),
@@ -11,6 +11,7 @@ module ActsAsFavoritor
11
11
  unless parent_classes.include? obj.class.superclass
12
12
  return obj.class.base_class.name
13
13
  end
14
+
14
15
  obj.class.name
15
16
  end
16
17
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActsAsFavoritor
4
- VERSION = '2.1.1'
4
+ VERSION = '2.1.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_favoritor
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Hübotter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-09 00:00:00.000000000 Z
11
+ date: 2019-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -152,8 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  - !ruby/object:Gem::Version
153
153
  version: '0'
154
154
  requirements: []
155
- rubyforge_project:
156
- rubygems_version: 2.7.6
155
+ rubygems_version: 3.0.3
157
156
  signing_key:
158
157
  specification_version: 4
159
158
  summary: A Rubygem to add Favorite, Follow, Vote, etc. functionality to ActiveRecord