syntax_tree_ext 0.6.2 → 0.6.3

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: 05a2cd50808bce4efb80d3b03782548221a82ce170ad4c4c76384e237782e5fe
4
- data.tar.gz: a9c7e46b6173218bc4034912bceb4ac51c475d32eed8cf780890bf6cda457fed
3
+ metadata.gz: b42ee22694c4ab32ff3e2289e1cc6f15f96f577f1fe92f2c80d60b6cae0b819a
4
+ data.tar.gz: 01fed35ee45496a496c3870dd6481d24a9b88c75cc6b2b68ae0b84dbe53ce9e9
5
5
  SHA512:
6
- metadata.gz: 2c0dccd7b1d3ec301be8597a8a2ee1d560079c095446b5a7bfbcc593e459dc727f6e8e84b2d8020d038821468b45a65d87de35a5a10fc8ae6be426288c07eef1
7
- data.tar.gz: '0586df50645994c34790843e412fd65986fbf039c87c6601a49dcd38195ba79bf9b532eb925cf1e78db0fbd28a787e7b77d19726fa938e0233424e6aae76ba32'
6
+ metadata.gz: 899e1cf672ae9fb8a80cd604353e2dabcb3b314d4052d8fb4cd4d947ea39c0b64992f714c353f108d06b1c2977cd5c15cec633cdc9b93a96389bd527f551677f
7
+ data.tar.gz: edf269d574720033fcb11a38c380902dcc364f42ebf3098684b7ba2dd5d8c546df2389593c2812600bfb3457f4f05756da0de87a71e683816871e75dfcf88341
data/CHANGELOG.md CHANGED
@@ -1,14 +1,18 @@
1
1
  # CHANGELOG
2
2
 
3
- ## 0.6.2 (2024-06-26)
3
+ ## 0.6.3 (2023-07-01)
4
+
5
+ * Support `Hash#except` for ruby 2
6
+
7
+ ## 0.6.2 (2023-06-26)
4
8
 
5
9
  * Do not flatten `deconstruct_keys`.`values`
6
10
 
7
- ## 0.6.1 (2024-06-26)
11
+ ## 0.6.1 (2023-06-26)
8
12
 
9
13
  * Use `deconstruct_key`.`values` instead of `child_nodes`
10
14
 
11
- ## 0.6.0 (2024-06-12)
15
+ ## 0.6.0 (2023-06-12)
12
16
 
13
17
  * Add `hash_assoc` and `hash_value` for hash
14
18
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- syntax_tree_ext (0.6.2)
4
+ syntax_tree_ext (0.6.3)
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.2"
4
+ VERSION = "0.6.3"
5
5
  end
@@ -4,6 +4,14 @@ require_relative "syntax_tree_ext/version"
4
4
 
5
5
  require 'syntax_tree'
6
6
 
7
+ if RUBY_VERSION.to_i < 3
8
+ class Hash
9
+ def except(*keys)
10
+ self.reject { |k, _| keys.include?(k) }
11
+ end
12
+ end
13
+ end
14
+
7
15
  module SyntaxTreeExt
8
16
  class Error < StandardError; end
9
17
  # Your code goes here...
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.2
4
+ version: 0.6.3
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-26 00:00:00.000000000 Z
11
+ date: 2023-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: syntax_tree