best_boy 2.2.2 → 2.2.3
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 +4 -4
- data/README.md +6 -0
- data/lib/best_boy/models/active_record/best_boy/eventable.rb +3 -3
- data/lib/best_boy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 00c48525e82d4a49337c3940ecf10eb160d8dd1a
|
|
4
|
+
data.tar.gz: 412a38e42807d9fe19fa22667bc668feff7833c3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 43395b950a37ae16e7ae958e4c252b37d4651cdcb828bfdbd092d1542e2f7122202e1541e53effd78ec457af1920b0b8e84cffe7b5e66f92135bf0f9db76c91c
|
|
7
|
+
data.tar.gz: d687c76b054a487e8f27a8f165dc8ad30c205d284971526c97e89447a8ea56599f83b301910fc62a0b91c775b58384a85314873ae9ee1514213b64ac23ea2a85
|
data/README.md
CHANGED
|
@@ -62,6 +62,12 @@ Run the migration
|
|
|
62
62
|
|
|
63
63
|
Changelog
|
|
64
64
|
---------
|
|
65
|
+
#### 2.2.3
|
|
66
|
+
* Rename ``report``method to a more best_boy specific ``trigger_best_boy_event_report`
|
|
67
|
+
|
|
68
|
+
#### 2.2.2
|
|
69
|
+
* Fix dependency bug with kaminari
|
|
70
|
+
|
|
65
71
|
#### 2.2.1
|
|
66
72
|
* flexibilized report creation method to create reports for a specific date
|
|
67
73
|
* no compatibility with Ruby 1.9.3
|
|
@@ -28,7 +28,7 @@ module BestBoy
|
|
|
28
28
|
create_best_boy_event_with_type(type, source)
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
def
|
|
31
|
+
def trigger_best_boy_event_report(klass: self.class.to_s, type: '', source: nil, date: Time.zone.now)
|
|
32
32
|
BestBoy::MonthReport.current_or_create_for(klass, type, source, date).increment!(:occurrences)
|
|
33
33
|
BestBoy::DayReport.current_or_create_for(klass, type, source, date).increment!(:occurrences)
|
|
34
34
|
end
|
|
@@ -54,8 +54,8 @@ module BestBoy
|
|
|
54
54
|
end
|
|
55
55
|
best_boy_event.save
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
trigger_best_boy_event_report(type: type, source: source) if source.present?
|
|
58
|
+
trigger_best_boy_event_report(type: type, source: nil)
|
|
59
59
|
end
|
|
60
60
|
|
|
61
61
|
end
|
data/lib/best_boy/version.rb
CHANGED