dot_notation 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/README.md +1 -0
- data/dot_notation.gemspec +3 -1
- data/lib/dot_notation/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5a0c0678519b297b308733a496bd2d9973ffad3b
|
|
4
|
+
data.tar.gz: 4405ff0310c869240c4a5ec48ad0831615ed14df
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a044b54ecba660ce64f0a6ed1ca50738a1953e6a63700b7686e5911c0c5f6c397e7488f62c58cf37e7492edc5743febc338addd375cbdee7812b62afaa8b1338
|
|
7
|
+
data.tar.gz: 11b7d139da98e572c096969b4fd12e5a758eac90bd58d8f76e49b149b1323491600acc221f25a512215dea9253d91e8aa21c85f1dbcaeaf0ee66c1814fb0a52a
|
data/README.md
CHANGED
data/dot_notation.gemspec
CHANGED
|
@@ -12,14 +12,16 @@ Gem::Specification.new do |spec|
|
|
|
12
12
|
spec.description = %q{Simple-ish enumberable-simplifier. Useful for APIs like Twitter, etc
|
|
13
13
|
|
|
14
14
|
If you have a hash or an array or something that quacks like one, you can do stuff
|
|
15
|
+
|
|
15
16
|
example:
|
|
17
|
+
require 'dot_notation'
|
|
16
18
|
h = {a: {b: {c: [{d: 'hi'}]}}}
|
|
17
19
|
h.extend(DotNotation)
|
|
18
20
|
h.dot('a.b.c.0.d')
|
|
19
21
|
#=> 'hi'
|
|
20
22
|
h.dot('a.b.c.foo.bar.bz.whatever.124.whocares')
|
|
21
23
|
#=> nil}
|
|
22
|
-
spec.homepage = ""
|
|
24
|
+
spec.homepage = "https://github.com/joshsz/dot_notation"
|
|
23
25
|
spec.license = "MIT"
|
|
24
26
|
|
|
25
27
|
spec.files = `git ls-files -z`.split("\x0")
|
data/lib/dot_notation/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dot_notation
|
|
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
|
- Joshua Szmajda
|
|
@@ -42,7 +42,9 @@ description: |-
|
|
|
42
42
|
Simple-ish enumberable-simplifier. Useful for APIs like Twitter, etc
|
|
43
43
|
|
|
44
44
|
If you have a hash or an array or something that quacks like one, you can do stuff
|
|
45
|
+
|
|
45
46
|
example:
|
|
47
|
+
require 'dot_notation'
|
|
46
48
|
h = {a: {b: {c: [{d: 'hi'}]}}}
|
|
47
49
|
h.extend(DotNotation)
|
|
48
50
|
h.dot('a.b.c.0.d')
|
|
@@ -63,7 +65,7 @@ files:
|
|
|
63
65
|
- dot_notation.gemspec
|
|
64
66
|
- lib/dot_notation.rb
|
|
65
67
|
- lib/dot_notation/version.rb
|
|
66
|
-
homepage:
|
|
68
|
+
homepage: https://github.com/joshsz/dot_notation
|
|
67
69
|
licenses:
|
|
68
70
|
- MIT
|
|
69
71
|
metadata: {}
|