syntax_tree_ext 0.6.3 → 0.6.4

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: b42ee22694c4ab32ff3e2289e1cc6f15f96f577f1fe92f2c80d60b6cae0b819a
4
- data.tar.gz: 01fed35ee45496a496c3870dd6481d24a9b88c75cc6b2b68ae0b84dbe53ce9e9
3
+ metadata.gz: 6983ce67c837c77fb232bcb11b8319e1f358126b746fdceb9bb586c01eaad408
4
+ data.tar.gz: 9cda7bf847292a641816b4ff5d6b2167e3717b9534aa0c1eaa16565ef6022204
5
5
  SHA512:
6
- metadata.gz: 899e1cf672ae9fb8a80cd604353e2dabcb3b314d4052d8fb4cd4d947ea39c0b64992f714c353f108d06b1c2977cd5c15cec633cdc9b93a96389bd527f551677f
7
- data.tar.gz: edf269d574720033fcb11a38c380902dcc364f42ebf3098684b7ba2dd5d8c546df2389593c2812600bfb3457f4f05756da0de87a71e683816871e75dfcf88341
6
+ metadata.gz: 1d504bd7d7f7609bd7bd26726bf2e4dfd1035ee9a16462430e32251225a867894a46d6422c0021e469a317fb2dd6b900d700fc43238bb22c6fde456e83e4cad4
7
+ data.tar.gz: 85c22b4a59294845ff959cc40f0667475405fde09e4a53fcc39331320f557dff2c037dc713b2bd4be8b8601023fc96e8c885a83770f22e008973bbf61f48f68e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.6.4 (2023-08-17)
4
+
5
+ * `to_value` supports for empty array
6
+
3
7
  ## 0.6.3 (2023-07-01)
4
8
 
5
9
  * Support `Hash#except` for ruby 2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- syntax_tree_ext (0.6.3)
4
+ syntax_tree_ext (0.6.4)
5
5
  syntax_tree
6
6
 
7
7
  GEM
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SyntaxTreeExt
4
- VERSION = "0.6.3"
4
+ VERSION = "0.6.4"
5
5
  end
@@ -110,7 +110,7 @@ module SyntaxTree
110
110
  when Const, Label, TStringContent, Ident
111
111
  value
112
112
  when ArrayLiteral
113
- contents.parts.map { |part| part.to_value }
113
+ contents ? contents.parts.map { |part| part.to_value } : []
114
114
  else
115
115
  self
116
116
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: syntax_tree_ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Huang
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-30 00:00:00.000000000 Z
11
+ date: 2023-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: syntax_tree
@@ -61,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  requirements: []
64
- rubygems_version: 3.4.13
64
+ rubygems_version: 3.4.18
65
65
  signing_key:
66
66
  specification_version: 4
67
67
  summary: extend syntax_tree