trendable 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/concerns/trendable.rb +2 -2
- data/lib/trendable/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 03460e66c631e8ed7144e8d6cf2ad7fe33535cfbd51e25709ee9ca45b2bec78a
|
4
|
+
data.tar.gz: 285845241d9f4699d93e5bb92377adf1e8dcfff3d242997a57bf11f93fd0d466
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a582ba2c81b9cec2c80bff012b9510f1257801dd15665256cbe7058486b2930e570edd34c58e2a03a0ac6106aa6d2b028510682bfb7b9740b8b8bf57c44a9914
|
7
|
+
data.tar.gz: 5486cedd9301515c95bae50d5e96c4d4a86a31cf83a8b532bbc131a50c5b28de9169c7d748c5e40cb2df22d8be2d965ebcb618848dc5cf55fde7f9af7139c835
|
data/lib/concerns/trendable.rb
CHANGED
@@ -16,7 +16,7 @@ module Trendable
|
|
16
16
|
if dont_touch
|
17
17
|
self.update_columns( trending_power: trending_power + add_value )
|
18
18
|
else
|
19
|
-
self.
|
19
|
+
self.update( trending_power: trending_power + add_value )
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
@@ -24,7 +24,7 @@ module Trendable
|
|
24
24
|
if dont_touch
|
25
25
|
self.update_columns( trending_power: trending_power * multiplier )
|
26
26
|
else
|
27
|
-
self.
|
27
|
+
self.update( trending_power: trending_power * multiplier )
|
28
28
|
end
|
29
29
|
end
|
30
30
|
end
|
data/lib/trendable/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trendable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff McFadden
|
@@ -76,8 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
78
|
requirements: []
|
79
|
-
|
80
|
-
rubygems_version: 2.5.1
|
79
|
+
rubygems_version: 3.0.3
|
81
80
|
signing_key:
|
82
81
|
specification_version: 4
|
83
82
|
summary: Organize your models by a trending popularity value
|