forest_liana 9.11.2 → 9.11.3

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: ef87edd50271f66059b83ec7b2b46ca943f65bba9e434ce559a41178922ffa93
4
- data.tar.gz: 5f861a043a5674e29e985ded21a24e91c1e83dc83b43b152284739391fb1a9cb
3
+ metadata.gz: dcd40a6f023ba4a2a7eddd15891ac11743dea8fee0df3378c42e604afbfe8c7e
4
+ data.tar.gz: 61ceac08bd477c79ea3d6284114b6a9a08f2514758378f4f7a96c3845efd4f8f
5
5
  SHA512:
6
- metadata.gz: 8b2eb6642cbdaf89e8ac091a0a7550728788ebc536e77d7a93e0d166cabaa7d1e25c5d4b911318d32cf92368d78fbab44be9836d0df1b23a50e86e2190089692
7
- data.tar.gz: 22ee84aff57cb385a776de3485e880769dcaf25861fd5cbf1046cd6836ed9aaee877b5ae58f1335dfb15fb96206452e7972a6b1941c3b19c488448ee36666533
6
+ metadata.gz: e09c8a0a86cee9b238e35057b0e29e5b842fcf0a2a1380a57fb10bf00c9c2cf6cb5cf16bb9908d72fc4219966efa910742de673e5d0f9cd6696bbd83724d4f67
7
+ data.tar.gz: 24ecaa8c8a9442ec3c677bb71f47dbf8a120cba326732f202264869d1a3188265a30caa14054ffbd13c218deb6b13294ef997f60d83f0f347faccbc60d32bc98
@@ -84,7 +84,7 @@ module ForestLiana
84
84
  field_name = condition['field']
85
85
 
86
86
  if @operator_date_parser.is_date_operator?(operator)
87
- field_schema = SchemaUtils.find_column_schema_by_name(@resource.name, field_name)
87
+ field_schema = SchemaUtils.find_column_schema_by_name(ForestLiana.name_for(@resource), field_name)
88
88
  condition = @operator_date_parser.get_date_filter(operator, value, field_schema)
89
89
  return "#{parse_field_name(field_name)} #{condition}"
90
90
  end
@@ -260,7 +260,7 @@ module ForestLiana
260
260
 
261
261
  def parse_previous_interval_condition(condition)
262
262
  raise_empty_condition_in_filter_error unless condition
263
- field_schema = SchemaUtils.find_column_schema_by_name(@resource.name, condition['field'])
263
+ field_schema = SchemaUtils.find_column_schema_by_name(ForestLiana.name_for(@resource), condition['field'])
264
264
 
265
265
  parsed_condition = @operator_date_parser.get_date_filter_for_previous_interval(
266
266
  condition['operator'],
@@ -73,7 +73,7 @@ module ForestLiana
73
73
 
74
74
  def format_date(field_type, value)
75
75
  if field_type == 'Dateonly'
76
- return value.strftime('%Y-%m-%d')
76
+ return (value + @timezone_offset.hours).strftime('%Y-%m-%d')
77
77
  end
78
78
 
79
79
  value
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "9.11.2"
2
+ VERSION = "9.11.3"
3
3
  end
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: 9.11.2
4
+ version: 9.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sandro Munda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-07 00:00:00.000000000 Z
11
+ date: 2025-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails