acts_as_favoritor 6.0.0 → 6.0.2

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: 720e4ea66b88a043a1bcd46c702dc8aa445b20fe60517e978791d8c4bcbc90af
4
- data.tar.gz: beb07b7607a369e302816b9e39b9dae5ec8ca488ff717ff3bdb3e3b96fea1227
3
+ metadata.gz: c6c53d74f59dc8acf2361540896c5a5664d5b1b58241db15f9e1a0da93fd76d1
4
+ data.tar.gz: c0497e355fa5901ffec3eebd26c868182865f57ca165a7a3648f0a1a4393e29c
5
5
  SHA512:
6
- metadata.gz: f1dc068b8f318a7141d2d695693245aef8aaf22ffecc2cb46484308fb9c0563cd1576d855113f336871cb4a6e7a20adf867c5b0629f7a04042fbd5862615a746
7
- data.tar.gz: b736fbaa9e300ac44c9f83cbe99f780e8cfabcde661a9baf7bbef8a7fa88a28c61a022e8140d005269315b84524d8a69a549fa699da3a513221511613da28800
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActsAsFavoritor
4
- VERSION = '6.0.0'
4
+ VERSION = '6.0.2'
5
5
  end
@@ -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 ActiveRecord::Base.timestamped_migrations
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.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: 2022-04-24 00:00:00.000000000 Z
11
+ date: 2024-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -24,118 +24,6 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '5.0'
27
- - !ruby/object:Gem::Dependency
28
- name: factory_bot
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: pry
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: rails
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: rspec-rails
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: rubocop
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: rubocop-rails
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: rubocop-rspec
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: sqlite3
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
27
  description: acts_as_favoritor is a Rubygem to allow any ActiveRecord model to associate
140
28
  any other model including the option for multiple relationships per association
141
29
  with scopes. You are able to differentiate followers, favorites, watchers, votes
@@ -173,14 +61,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
173
61
  requirements:
174
62
  - - ">="
175
63
  - !ruby/object:Gem::Version
176
- version: '2.7'
64
+ version: '3.0'
177
65
  required_rubygems_version: !ruby/object:Gem::Requirement
178
66
  requirements:
179
67
  - - ">="
180
68
  - !ruby/object:Gem::Version
181
69
  version: '0'
182
70
  requirements: []
183
- rubygems_version: 3.3.7
71
+ rubygems_version: 3.3.27
184
72
  signing_key:
185
73
  specification_version: 4
186
74
  summary: A Rubygem to add Favorite, Follow, Vote, etc. functionality to ActiveRecord