forest_liana 6.3.5 → 6.3.6
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 66dacaf5711daa88a6e891ce835dec5836041016e955f5272666ad45093a18c3
|
|
4
|
+
data.tar.gz: 8c3796af1284b52b6c49b08e9e56ecb6be11034db62b0bee45e82959c67c8265
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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|
|
data/lib/forest_liana/version.rb
CHANGED
|
@@ -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
|
|
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(
|
|
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.
|
|
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-
|
|
11
|
+
date: 2021-05-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|