hash-json-path 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hash-json-path.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f074b1d75a31c8bd3903d6ce5bc74bed6b8fdd9ec384e207cf603cc3c870af79
4
- data.tar.gz: 98bb8da9a7c02e3d5c6bfc97b6390d1a9edc99400b18756ab163c1909e548e6f
3
+ metadata.gz: 3047615d11da1debef5b36bf0f43aab70d54d7b3d7a31e3f870625e644058d27
4
+ data.tar.gz: c645fb0e6ae2fd43cc070e3149353dd1b80961e6505cf257c4e9f3f6b0e0b3f6
5
5
  SHA512:
6
- metadata.gz: ed7df49847f3e8eeef50ec76a08150bff19bdc0a118031cfe01492d0ec6f3d868e8a426fac489e32255caddc83d55e6b8f6be93168862e68fb62a42d35ac74f3
7
- data.tar.gz: 31f020cc4370b49635c02fe23174240de5fdc019f3cab1fc7dc4a398da1ae2b607ee51f445090a2659fbbaff7533ca51d702e626126f9fb51b3c0c85afcadf3a
6
+ metadata.gz: 434e6ab2b2b7238b5444647b70609ba1559e6e59ea463a236762a4caba01dc1d909d7b14f116f14ad3e65660b4ada276bb78fcdabf54f45527d4d28970e897de
7
+ data.tar.gz: d6c6bfc6e7723f864b27922557477cf1ecf1eb1800251d7ab949c235db54d2905c1d6d4386018956a6dd37aaaeadf93fb1521d7cb1a1e6ca79d94bf760e097e1
@@ -1,11 +1,11 @@
1
1
  class HashJsonPath
2
- SEPERATOR_REGEX = /[^\[|^\]]+/ # e.g. local_results[0][1] => ["local_results", "0", "1"]
2
+ SEPARATOR_REGEX = /[^\[|^\]|^\.]+/ # e.g. local_results[0][1] => ["local_results", "0", "1"]
3
3
 
4
4
  def self.on(hash)
5
5
  new(hash)
6
6
  end
7
7
 
8
- def initialize(hash, separator_regex = SEPERATOR_REGEX)
8
+ def initialize(hash, separator_regex = SEPARATOR_REGEX)
9
9
  @hash = hash
10
10
  @separator_regex = separator_regex
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hash-json-path
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terry Tan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-09 00:00:00.000000000 Z
11
+ date: 2023-06-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: HashJsonPath is a simple gem to access hash and set hash value using
14
14
  json path.