nx 0.1.0 → 0.1.1
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 +2 -2
- data/lib/templates/version.rb +1 -1
- data/nx-0.1.0.gem +0 -0
- data/nx.gemspec +1 -2
- metadata +10 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81f8fad223bcd77c7f8f079bfdf73154341ec8d33557880912e6dc8fca0a5eea
|
4
|
+
data.tar.gz: 9d385b8eca2cd8170ad5629b1eb8a3005a3e02d91a92226ef7f625850114ffb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dda8bd5667c28ed94b54e8a12c4ad6f9ca914def906858c13bace09be06b38cff2508fea725f068417ea6b3847f7e66d940733970a018fa8ddfe167f3616a862
|
7
|
+
data.tar.gz: 77d1a8dbaf81dd4cc9057cc9587bc04f89f5c65715ff197961ea166caa06cb06a40dc6d669e5bb963f2696262abad3d6b72421bfaa2d48394489b1e1dcd7d8fa
|
data/lib/nx.rb
CHANGED
@@ -9,7 +9,7 @@ module Nx
|
|
9
9
|
keys << (part.include?("]") ? part.to_i : part)
|
10
10
|
end
|
11
11
|
end
|
12
|
-
|
12
|
+
|
13
13
|
# set by path:
|
14
14
|
keys[0..-2].each_with_index do |key, index|
|
15
15
|
me = me[key] = me[key] || (keys[index + 1].class == String ? {} : [])
|
@@ -18,7 +18,7 @@ module Nx
|
|
18
18
|
me[keys[-1]] = value
|
19
19
|
end
|
20
20
|
|
21
|
-
def get(
|
21
|
+
def get(path)
|
22
22
|
result = self
|
23
23
|
path.split(".").each do |dot_part|
|
24
24
|
dot_part.split("[").each do |part|
|
data/lib/templates/version.rb
CHANGED
data/nx-0.1.0.gem
ADDED
Binary file
|
data/nx.gemspec
CHANGED
@@ -29,7 +29,6 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.bindir = "exe"
|
30
30
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
31
31
|
spec.require_paths = ["lib"]
|
32
|
-
|
33
32
|
spec.add_development_dependency "bundler", "~> 1.14"
|
34
|
-
spec.add_development_dependency "rake", "~>
|
33
|
+
spec.add_development_dependency "rake", "~> 12.3", ">= 12.3.3"
|
35
34
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- afeiship
|
@@ -30,14 +30,20 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '12.3'
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 12.3.3
|
34
37
|
type: :development
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
41
|
- - "~>"
|
39
42
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
43
|
+
version: '12.3'
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 12.3.3
|
41
47
|
description: Next core for ruby gem.
|
42
48
|
email:
|
43
49
|
- 1290657123@qq.com
|
@@ -54,6 +60,7 @@ files:
|
|
54
60
|
- bin/setup
|
55
61
|
- lib/nx.rb
|
56
62
|
- lib/templates/version.rb
|
63
|
+
- nx-0.1.0.gem
|
57
64
|
- nx.gemspec
|
58
65
|
homepage: https://github.com/afeiship/nx
|
59
66
|
licenses:
|