ahoy_panel 0.0.21 → 0.0.22

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6538d11adf1b049eaac5bc5bbb7fe702ee0dd53da0e469666b965bbea4e01cd4
4
- data.tar.gz: 5a282d6d577d9a4157fe3b38a30aaf57238384c9819f9c9b3a405202b6aa487a
3
+ metadata.gz: 51a6423550318c44c2f786e38f4a6b6c8c6fd4ab8dfa620da235aa6981dbf132
4
+ data.tar.gz: 1b0f68c413192d28152eabb60216dd303b6f2304b908fc22db0ec6802eb5d254
5
5
  SHA512:
6
- metadata.gz: c7b2c01449300afe2c4305878c0c66850f654ebd53694bcaaf67496d7a1ac5969adba3ac3572752fca0cdb83f73e132cd247427e21b38bb3d23769bb113c70ed
7
- data.tar.gz: 9d60a554a92a50131f96b598e3baa32dc8efb6f5f512da5c4df381499693ed9537dbb6dcaf9f393180d09014f38fa021f2f59ed11acec8830eb6aee3aef88529
6
+ metadata.gz: 747c4419583cc3e7b0ed0e2de10f4ff117d170764b8efc5339ff40371e52ffee5b5566933a6351e3a657877555b018da23d701c99ba2e6629fb5e6f6232333ba
7
+ data.tar.gz: 48b6d15b2fe23c4974b1efdf959cc173e619f4baac20ba69345c6c32b79d268885b2d0929ee0faa2c8621e49ac35c101e8a04b5ba6cbfc52cd8a79537f2ceac7
@@ -4,6 +4,7 @@ module AhoyPanel
4
4
  @start_date = params[:start_date].to_date.beginning_of_day
5
5
  @end_date = params[:end_date].blank? ? nil : params[:end_date].to_date.end_of_day
6
6
  @page = params[:page]
7
+ @filtering_params = params[:filtering_params]
7
8
 
8
9
  @date_range = if @end_date.blank?
9
10
  @start_date..params[:start_date].to_date.end_of_day
@@ -12,6 +13,9 @@ module AhoyPanel
12
13
  end
13
14
 
14
15
  @visits = ::Ahoy::Visit.where(started_at: @date_range).order(:id)
16
+ filtering_params.each do |key, value|
17
+ @visits = @visits.where("#{key} ilike ?", "%#{value.downcase}%")
18
+ end
15
19
 
16
20
  if @page.present?
17
21
  @visits = @visits.page(@page)
@@ -1,3 +1,3 @@
1
1
  module AhoyPanel
2
- VERSION = "0.0.21"
2
+ VERSION = "0.0.22"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ahoy_panel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Jeon
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-31 00:00:00.000000000 Z
10
+ date: 2025-04-01 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails