forest_liana 6.3.5 → 6.3.6

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
2
  SHA256:
3
- metadata.gz: 834c9124265c1aee37c5dfcb4bf61bf47f9e874b7491fc746d77f4a8ce2844e2
4
- data.tar.gz: 469622daee20e8211a8808a2a1c6c574f130c9035c6d45cd1b4e6b462696e7f8
3
+ metadata.gz: 66dacaf5711daa88a6e891ce835dec5836041016e955f5272666ad45093a18c3
4
+ data.tar.gz: 8c3796af1284b52b6c49b08e9e56ecb6be11034db62b0bee45e82959c67c8265
5
5
  SHA512:
6
- metadata.gz: 5b1530018ef75a9621156626e13af9b7f0b41b0b555a9dbb6c4e7bafa2cdab1abe6641bc51e45f9c13fc29fe11ba6007f6d2f697f9f9763fe11c5e7120e4db05
7
- data.tar.gz: 3c4e5fcce7f49d40e4e0ca18b385bf152df88675408add741acca22180c773e446730107fc5c1adf09cc70db5da98f978068267fbeddef1ff8b8627c18c36346
6
+ metadata.gz: c9d131b0ad9e5bd30699359e5cdab2d8be407addd55f9f60071758d07e92c9edf45c9d22ae8fcbd52012060888b2b7fb06a12dccc8dae98a5f9a0b288bfcacfd
7
+ data.tar.gz: 3c004eaaceaa30ad859eaea39f56b61d00de855d67b9d9dca3ad1218e227423f85fb0be2df903acfb1c25876003fce83bcfb56fc11fe08708bf9bda1404aed1b
@@ -5,7 +5,7 @@ module ForestLiana
5
5
  def client_timezone
6
6
  # As stated here https://github.com/ankane/groupdate#for-sqlite
7
7
  # groupdate does not handle timezone for SQLite
8
- return nil if 'SQLite' == ActiveRecord::Base.connection.adapter_name
8
+ return false if 'SQLite' == ActiveRecord::Base.connection.adapter_name
9
9
  @params[:timezone]
10
10
  end
11
11
 
@@ -31,9 +31,7 @@ module ForestLiana
31
31
 
32
32
  Groupdate.week_start = :monday
33
33
 
34
- value = value.send(time_range, group_by_date_field, {
35
- time_zone: client_timezone
36
- })
34
+ value = value.send(time_range, group_by_date_field, time_zone: client_timezone)
37
35
 
38
36
  value = value.send(@params[:aggregate].downcase, @params[:aggregate_field])
39
37
  .map do |k, v|
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "6.3.5"
2
+ VERSION = "6.3.6"
3
3
  end
@@ -2,11 +2,11 @@ module ForestLiana
2
2
  describe LineStatGetter do
3
3
  describe 'Check client_timezone function' do
4
4
  describe 'with a SQLite database' do
5
- it 'should return nil' do
5
+ it 'should return false' do
6
6
  expect(LineStatGetter.new(Owner, {
7
7
  timezone: "Europe/Paris",
8
8
  aggregate: "Count",
9
- }).client_timezone).to eq(nil)
9
+ }).client_timezone).to eq(false)
10
10
  end
11
11
  end
12
12
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_liana
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.3.5
4
+ version: 6.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sandro Munda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-12 00:00:00.000000000 Z
11
+ date: 2021-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails