hash_at_path 0.1.4 → 0.1.5

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
  SHA1:
3
- metadata.gz: 2c04db7d7172f566e5ed0d5bea24adf87eaeb654
4
- data.tar.gz: c64f2bb7e9c99fa06fb741ccc571e7894a919c78
3
+ metadata.gz: 26693c09d948e6a93da8583d20d8d6e9497601ea
4
+ data.tar.gz: 8d65f436207117e4d02514bbca08d64506ffff77
5
5
  SHA512:
6
- metadata.gz: 0c904bb4cb986cf123053fca3225be136afe688d2b3373c3e8bcb480c6144c9296cd8ecc90227112b8801656d27dc96d39ffb042ae59aa8df089c18e83a6c2d4
7
- data.tar.gz: 6476d9bd98105bf92f1db338e3c2ede76bf4c128ba0419c704d21e1a5f675a7576429d28f9fe87112a7bcf664ec969cbe700978719b8927c711f207ebb8a7169
6
+ metadata.gz: 932438e198e00d32537ff2310a50e8095bd87e8eb6f57b54ddca4de82fe8acf64fa7b0cd409871f80081464aef78e55b591427c89d112f53000531bc77dd5b7c
7
+ data.tar.gz: 49b8c7191b94e3d6a593f95273dbc655c2f7ca8feafd457e37f78d0c8234754908f51b75c23e97603528a6168bb2886ca4a5b3c7003fcc85c355a6109a1bcf30
data/.travis.yml CHANGED
@@ -3,6 +3,6 @@ cache: bundler
3
3
  rvm:
4
4
  - 2.2.2
5
5
  - 2.1.0
6
- - rbx-2.2.10
6
+ - rbx-2
7
7
  - jruby-head
8
8
  - ruby-head
@@ -4,7 +4,6 @@ module HashAtPath
4
4
  module AtPath
5
5
  # Returns a value at the end of an xpath-like/lite path
6
6
  def at_path(path)
7
- out = {}
8
7
  if path == '/'
9
8
  self
10
9
  else
@@ -3,7 +3,7 @@ module HashAtPath
3
3
  class << self
4
4
  def parse(path_string)
5
5
  path_string = replace_predicates(path_string)
6
- vals = extract_path_data(path_string)
6
+ extract_path_data(path_string)
7
7
  end
8
8
 
9
9
  def replace_predicates(path_string)
@@ -1,3 +1,3 @@
1
1
  module HashAtPath
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hash_at_path
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - chadfennell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-08-26 00:00:00.000000000 Z
11
+ date: 2017-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  version: '0'
80
80
  requirements: []
81
81
  rubyforge_project:
82
- rubygems_version: 2.2.2
82
+ rubygems_version: 2.5.1
83
83
  signing_key:
84
84
  specification_version: 4
85
85
  summary: Extends Hash with xpath like syntax for retrieving hash values.