hash_extensions 1.0.0 → 1.0.1
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 +4 -4
- data/lib/hash_extensions.rb +2 -2
- metadata +19 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0ae798c2db1701d37fbb158b8fcd145f111ab36
|
4
|
+
data.tar.gz: dc402ed4420df4803b13f9955f2d2d9d2bb6f55b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ad3fb52fdd47d2df9d5286736cb1d802481fbd57a8601dc2854a5bb915b5f25ab5f5276c90fd9c8f328d9550b4df55890a4b9b553eb8a83c595b0749c374eaa
|
7
|
+
data.tar.gz: 4f4ad5640800412c9e6c0ae4c0035b8f11256bb896d3088a23607226569f8dc6a1389531361c89e368ccaddfe1035bb73c3dd6d2aa012b2fab93ced1ecf4aeca
|
data/lib/hash_extensions.rb
CHANGED
@@ -3,7 +3,7 @@ require 'active_support/all'
|
|
3
3
|
class Hash
|
4
4
|
# Search for key path in hash
|
5
5
|
#
|
6
|
-
#
|
6
|
+
# Examples
|
7
7
|
#
|
8
8
|
# { a: { b: :c } }.dig(:a, :b) # => :c
|
9
9
|
# { a: { 'b' => :c } }.dig(:a, :b) # => :c
|
@@ -16,7 +16,7 @@ class Hash
|
|
16
16
|
|
17
17
|
# Search the Hash deeply for all values matching the +key+.
|
18
18
|
#
|
19
|
-
#
|
19
|
+
# Examples
|
20
20
|
#
|
21
21
|
# { a: :b, c: { a: '1', d: :e } }.values_for('a') # => [:b, '1']
|
22
22
|
def values_for(key)
|
metadata
CHANGED
@@ -1,29 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hash_extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emil Kampp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '4.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '4.2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.3'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.3'
|
27
41
|
description: Some common, practical hash hash_extensions
|
28
42
|
email: emil@kampp.me
|
29
43
|
executables: []
|
@@ -51,9 +65,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
51
65
|
version: '0'
|
52
66
|
requirements: []
|
53
67
|
rubyforge_project:
|
54
|
-
rubygems_version: 2.4.5
|
68
|
+
rubygems_version: 2.4.5.1
|
55
69
|
signing_key:
|
56
70
|
specification_version: 4
|
57
71
|
summary: Some common, practical hash hash_extensions
|
58
72
|
test_files: []
|
59
|
-
has_rdoc:
|