nx 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nx.rb +5 -2
- data/lib/templates/version.rb +1 -1
- data/nx-0.1.3.gem +0 -0
- metadata +3 -3
- data/nx-0.1.2.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aed1a5183b1c6cb573ace7c09bafb8a17794d37a0f4654750f46e9051e512904
|
4
|
+
data.tar.gz: 14e6da7bd750f8d61584170722f7ec2815329694006f3cc3a40f71fb0eda7d40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51a2e10ffe0e7266514382ac75fe8282881c4771f0e6b181de5f80e2021ce9b373d87fcfd619fc25664e49a69cd2ed34980ffbc8d233952418042d0a4559aef7
|
7
|
+
data.tar.gz: e0151e81d8ed4e6d7d3cf32c212dc5c34ae0ea718c00e56df61c44160eccec72b92ecbd3f410fa7332a76018744e41e22da104cc868566d6b4878696db7de18a
|
data/lib/nx.rb
CHANGED
@@ -12,11 +12,14 @@ module Nx
|
|
12
12
|
|
13
13
|
# set by path:
|
14
14
|
keys[0..-2].each_with_index do |key, index|
|
15
|
-
the_key = key
|
15
|
+
the_key = key
|
16
|
+
the_key = yeild(the_key) if block_given?
|
16
17
|
me = me[the_key] = me[the_key] || (keys[index + 1].class == String ? {} : [])
|
17
18
|
end
|
18
19
|
|
19
|
-
|
20
|
+
the_key = keys[-1]
|
21
|
+
the_key = yeild(the_key) if block_given?
|
22
|
+
me[the_key] = value
|
20
23
|
end
|
21
24
|
|
22
25
|
def get(path)
|
data/lib/templates/version.rb
CHANGED
data/nx-0.1.3.gem
ADDED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- afeiship
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -60,7 +60,7 @@ files:
|
|
60
60
|
- bin/setup
|
61
61
|
- lib/nx.rb
|
62
62
|
- lib/templates/version.rb
|
63
|
-
- nx-0.1.
|
63
|
+
- nx-0.1.3.gem
|
64
64
|
- nx.gemspec
|
65
65
|
- package.json
|
66
66
|
homepage: https://github.com/afeiship/nx
|
data/nx-0.1.2.gem
DELETED
Binary file
|