platformos-check 0.4.2 → 0.4.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: 183ab1521db9c8eeb17f1badc9e80e4eb349d5fb1aa40ea5b48b53a8bc45fc90
4
- data.tar.gz: af54b39516f7d5476b4685b274e0020e5b110564641a5faffd5fed3697f3df40
3
+ metadata.gz: f12754f0e3326691fee2d9617ccf751a81081cbd70f96a3d28947cf11891a226
4
+ data.tar.gz: 98ac7d17842ab1d83695a4149b8e899a2a23141e15d9059c76f5f8822d385938
5
5
  SHA512:
6
- metadata.gz: fe146f2a07c952ac6b9df6f56e13b41258d3d67606e851781bfae3d67f4d12b2a3b28da6ce6f4cf2b27a04b45e89dce5a538816e1ee37b38eafa67c98bc53cfd
7
- data.tar.gz: 7dd5fd69bb9c10d814e668a2b54e4153df20b3a8af84fbf8fd19428f74a570131752ad09b08942224525daadd82bf0470032f8f0a53d0f87140cb405278ba62e
6
+ metadata.gz: b16b77525b11cf49605c930eda3d4e8e09afac0eea51600361b961075c580a599059a559853b70002fd83ee1806d9b9b748f78433d42c1e69bd3eaee0a84ed03
7
+ data.tar.gz: 584f000e09cac687570ed8688a8a30a7296f87dc14d1fbb44bc4dd616ae71ed6fa0cd9cfee11ee755019c82b5ffd33fcb15218f76a9941eed691cc539e69d97b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ v0.4.3 / 2023-09-25
2
+ ==================
3
+
4
+ * Do not remove variable if it's later used via hash_assign
5
+
1
6
  v0.4.2 / 2023-09-21
2
7
  ==================
3
8
 
@@ -12,7 +12,7 @@ module PlatformosCheck
12
12
  super
13
13
  raise Liquid::SyntaxError, "Syntax Error in 'hash_assign' - Valid syntax: hash_assign hash[key] = value" unless markup =~ SYNTAX
14
14
 
15
- @to = Regexp.last_match(1)
15
+ @to = Liquid::Variable.new(Regexp.last_match(1), options)
16
16
  @from = Liquid::Variable.new(Regexp.last_match(4), options)
17
17
  raw_keys = Regexp.last_match(3)
18
18
  raise Liquid::SyntaxError, "Syntax Error in 'hash_assign' - Valid syntax: hash_assign hash[key] = value" unless raw_keys
@@ -66,6 +66,7 @@ module PlatformosCheck
66
66
  class ParseTreeVisitor < Liquid::ParseTreeVisitor
67
67
  def children
68
68
  [
69
+ @node.to,
69
70
  @node.from
70
71
  ] + @node.keys
71
72
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PlatformosCheck
4
- VERSION = "0.4.2"
4
+ VERSION = "0.4.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: platformos-check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Bliszczyk
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2023-09-21 00:00:00.000000000 Z
13
+ date: 2023-09-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: graphql