acts_as_favoritor 6.0.1 → 6.0.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6c53d74f59dc8acf2361540896c5a5664d5b1b58241db15f9e1a0da93fd76d1
|
4
|
+
data.tar.gz: c0497e355fa5901ffec3eebd26c868182865f57ca165a7a3648f0a1a4393e29c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3a14b50c5935c7039fdf327bf8923bff9fc9d10da0c3ffe9e1b493737f7179982c03b62a6010936fb68f2d927a5ad434819ce84fc468408a39d6b0e3891f8f5
|
7
|
+
data.tar.gz: 48e9198c0290def553015a9f083ed9f37687edab912fee2eb8bbde46b7dbe08c3f66f380ac905f666cda2045f922795e7f5ee92d3c0e1862156408dc36dc2e7b
|
@@ -9,8 +9,8 @@ module ActsAsFavoritor
|
|
9
9
|
module ClassMethods
|
10
10
|
def acts_as_favoritable
|
11
11
|
if ActsAsFavoritor.configuration&.cache
|
12
|
-
serialize :favoritable_score, Hash
|
13
|
-
serialize :favoritable_total, Hash
|
12
|
+
serialize :favoritable_score, type: Hash
|
13
|
+
serialize :favoritable_total, type: Hash
|
14
14
|
end
|
15
15
|
|
16
16
|
has_many :favorited, as: :favoritable, dependent: :destroy,
|
@@ -9,8 +9,8 @@ module ActsAsFavoritor
|
|
9
9
|
module ClassMethods
|
10
10
|
def acts_as_favoritor
|
11
11
|
if ActsAsFavoritor.configuration&.cache
|
12
|
-
serialize :favoritor_score, Hash
|
13
|
-
serialize :favoritor_total, Hash
|
12
|
+
serialize :favoritor_score, type: Hash
|
13
|
+
serialize :favoritor_total, type: Hash
|
14
14
|
end
|
15
15
|
|
16
16
|
has_many :favorites, as: :favoritor, dependent: :destroy
|
@@ -9,8 +9,16 @@ class ActsAsFavoritorGenerator < Rails::Generators::Base
|
|
9
9
|
source_root(File.join(File.dirname(__FILE__), 'templates'))
|
10
10
|
desc 'Install acts_as_favoritor'
|
11
11
|
|
12
|
+
def self.timestamped_migrations
|
13
|
+
if ActiveRecord.respond_to?(:timestamped_migrations)
|
14
|
+
ActiveRecord.timestamped_migrations
|
15
|
+
elsif ActiveRecord::Base.respond_to?(:timestamped_migrations)
|
16
|
+
ActiveRecord::Base.timestamped_migrations
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
12
20
|
def self.next_migration_number(dirname)
|
13
|
-
if
|
21
|
+
if timestamped_migrations
|
14
22
|
Time.now.utc.strftime('%Y%m%d%H%M%S')
|
15
23
|
else
|
16
24
|
format('%<migration_number>.3d',
|
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: 6.0.
|
4
|
+
version: 6.0.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:
|
11
|
+
date: 2024-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -61,14 +61,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
61
61
|
requirements:
|
62
62
|
- - ">="
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
version: '
|
64
|
+
version: '3.0'
|
65
65
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '0'
|
70
70
|
requirements: []
|
71
|
-
rubygems_version: 3.3.
|
71
|
+
rubygems_version: 3.3.27
|
72
72
|
signing_key:
|
73
73
|
specification_version: 4
|
74
74
|
summary: A Rubygem to add Favorite, Follow, Vote, etc. functionality to ActiveRecord
|