effective_datatables 4.35.5 → 4.35.7

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: 135dde3a6bf09197271c331e5ac21ef321b42dae4862065939743b2c1ec9085a
4
- data.tar.gz: 7aafef44ed1e4bc2621e1a113cd910752cea694f5d60646b7d21496492ac5a4b
3
+ metadata.gz: ae823103d326ec830fd7dc31bab97a82de73857501741671af1a08802c37c444
4
+ data.tar.gz: 782d83cf2df3553ce0afb8fbc1c75ae830aa969755f03b306a600cf32c96fc37
5
5
  SHA512:
6
- metadata.gz: c2f28de41678a7c37c77fb9d81f32282b4b3833d4f72656f6db10fe6b5a06c9aeebc7148706cfcbc749b95b533d0fb39b0ea5ba16bfa34e4d0bc4acd0effbda0
7
- data.tar.gz: c2beb62fe8839639bb40b73abc4c748fe05b13649d3b9668dc058660ba08461caba318c460131fdece006006fada5e32403dd02debf64634f3c1d40725c015d9
6
+ metadata.gz: 8e756e4d82e7b6f075886ad4949ae3f237da5c3874787b71fe49f7fd4b08e6229510c992b86ef3373f3994e86a01f3b52cdd92931801b11d196ef482c2caad57
7
+ data.tar.gz: 716b530ec0b35768954e6a7197caf264110bfc9b3907b89a43c3ec044088f6cc774b52c5225c242aea15f865d1e86f5cb3ab5c2a0a5d14cf5e7633940b1d0e09
@@ -235,9 +235,9 @@ module Effective
235
235
  when :current_year
236
236
  (now.beginning_of_year..now.end_of_day)
237
237
  when :month
238
- (start_date || now).all_month
238
+ (start_date || now).in_time_zone.all_month
239
239
  when :year
240
- (start_date || now).all_year
240
+ (start_date || now).in_time_zone.all_year
241
241
  when :custom
242
242
  (start_date&.beginning_of_day..end_date&.end_of_day)
243
243
  when :all
@@ -29,6 +29,8 @@ module Effective
29
29
  end
30
30
 
31
31
  def csv_file
32
+ view.lookup_context.formats = [:html]
33
+
32
34
  CSV.generate do |csv|
33
35
  csv << csv_header()
34
36
 
@@ -60,6 +62,8 @@ module Effective
60
62
  end
61
63
 
62
64
  def csv_stream
65
+ view.lookup_context.formats = [:html]
66
+
63
67
  EffectiveResources.with_resource_enumerator do |lines|
64
68
  lines << CSV.generate_line(csv_header)
65
69
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '4.35.5'.freeze
2
+ VERSION = '4.35.7'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_datatables
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.35.5
4
+ version: 4.35.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-01-14 00:00:00.000000000 Z
11
+ date: 2026-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails