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
- SHA1:
3
- metadata.gz: 99f21bd6f7bcc2f98e9a263cde7c64e653fc5260
4
- data.tar.gz: b5c118c13db75317a9af6afb25f8fbcbefc37472
2
+ SHA256:
3
+ metadata.gz: 3e891baa77a4615128b72902d7fb64d13ba5e720e00c0ef77ab7bdb38b44fefe
4
+ data.tar.gz: f659c51c94beca428695cdd5b7f041fc0ea450c1f7aef344d27f74db8c3dba34
5
5
  SHA512:
6
- metadata.gz: c168255c3cf3c7c2d0ac9cebfd3cdf20edbf441b7bdf1581cad26ee652bf358278387204452c9574c3f6d99296119110d5ee521c308da17b6feeb907d753156f
7
- data.tar.gz: 19828e4e7796b57f147d25693788ff63e0feb00cefeb202602683c6aacb7086142c403d05f7cd261d50744240964af7148d03a58a316577ff53411f17d2bfcd7
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).uniq.pluck(: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).uniq.pluck(: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).uniq.pluck(: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
@@ -1,4 +1,4 @@
1
- class CreateBestBoyEvents < ActiveRecord::Migration
1
+ class CreateBestBoyEvents < ActiveRecord::Migration[5.1]
2
2
  def change
3
3
  create_table :best_boy_events do |t|
4
4
  t.integer :owner_id
@@ -1,4 +1,4 @@
1
- class CreateBestBoyReports < ActiveRecord::Migration
1
+ class CreateBestBoyReports < ActiveRecord::Migration[5.1]
2
2
  def change
3
3
  create_table :best_boy_day_reports do |t|
4
4
  t.string :owner_type
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module BestBoy
3
- VERSION = '3.4.0'
3
+ VERSION = '3.4.1'
4
4
  end
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.0
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: 2017-10-19 00:00:00.000000000 Z
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.5.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