best_boy 3.4.0 → 3.4.1
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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3e891baa77a4615128b72902d7fb64d13ba5e720e00c0ef77ab7bdb38b44fefe
|
4
|
+
data.tar.gz: f659c51c94beca428695cdd5b7f041fc0ea450c1f7aef344d27f74db8c3dba34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83e03b4e4c8c7b0946467eefbbddafc15925835e5963c6736524673ce60b6ce499bc7a077d1f59e119f96c75fc63b2a924778b7a4387d9d3ef3d89642ea007cb
|
7
|
+
data.tar.gz: fad04a1c4003ac94d21853b98eeabe213af0941540f0b6adf114bbe072a6f5226a2150e7e60d7a14bf41c2cb2c50527bc3a7c41e5c26b22b350d0bbdf45da546
|
data/README.md
CHANGED
@@ -136,6 +136,9 @@ Changelog
|
|
136
136
|
---------
|
137
137
|
#### HEAD (not released yet)
|
138
138
|
|
139
|
+
#### 3.4.1
|
140
|
+
* Fix display awkward display of event sources (they occurred multiple times) and its impact on summed values in admin area
|
141
|
+
|
139
142
|
#### 3.4.0
|
140
143
|
* Drop support for Rails below v5.0
|
141
144
|
* Add support for Rails 5.1
|
@@ -209,12 +209,12 @@ module BestBoy
|
|
209
209
|
end
|
210
210
|
|
211
211
|
def available_events
|
212
|
-
@available_events ||= BestBoy::MonthReport.where(owner_type: current_owner_type).order(:event).
|
212
|
+
@available_events ||= BestBoy::MonthReport.where(owner_type: current_owner_type).order(:event).distinct.pluck(:event)
|
213
213
|
end
|
214
214
|
|
215
215
|
def available_event_sources
|
216
216
|
@available_event_sources ||= (
|
217
|
-
BestBoy::MonthReport.where(owner_type: current_owner_type).where('event_source IS NOT NULL').order(:event_source).
|
217
|
+
BestBoy::MonthReport.where(owner_type: current_owner_type).where('event_source IS NOT NULL').order(:event_source).distinct.pluck(:event_source)
|
218
218
|
)
|
219
219
|
end
|
220
220
|
|
@@ -227,7 +227,7 @@ module BestBoy
|
|
227
227
|
end
|
228
228
|
|
229
229
|
def available_owner_types
|
230
|
-
@available_owner_types ||= BestBoy::MonthReport.where(event_source: nil).order(:owner_type).
|
230
|
+
@available_owner_types ||= BestBoy::MonthReport.where(event_source: nil).order(:owner_type).distinct.pluck(:owner_type)
|
231
231
|
end
|
232
232
|
|
233
233
|
def detail_count
|
data/lib/best_boy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: best_boy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.4.
|
4
|
+
version: 3.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christoph Seydel, Carsten Zimmermann, Robin Neumann, Daniel Schoppmann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -190,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
190
190
|
version: '0'
|
191
191
|
requirements: []
|
192
192
|
rubyforge_project:
|
193
|
-
rubygems_version: 2.
|
193
|
+
rubygems_version: 2.7.3
|
194
194
|
signing_key:
|
195
195
|
specification_version: 4
|
196
196
|
summary: a simple event driven logging for models
|