depth 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/depth/actions.rb +2 -2
- data/lib/depth/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bd1140de2fb31c19cae87dba5ff540263674311
|
4
|
+
data.tar.gz: 64c46445aef489b8062b7e034127206c831df550
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c4c88a7fc7724d942479a8742d81f4bab3eb775b14e9d3b35c3ea64a1c44609fadf9b7217d142ebfd6ea2fb1eb178324c19d352331c20da275675164b82a5e0
|
7
|
+
data.tar.gz: 742a4875170fe2383c649353649a16a92a4f4b5393e630df8b5728a10b36852d84bd79d8080e02ca7f847d1d6b823f372ac1a277daa02e1f23824b58369139f6
|
data/lib/depth/actions.rb
CHANGED
@@ -60,9 +60,9 @@ module Depth
|
|
60
60
|
end
|
61
61
|
|
62
62
|
def alter(route, key: nil, value: nil)
|
63
|
-
return set(route, value) if key
|
63
|
+
return set(route, value) if key.nil?
|
64
64
|
route = RouteElement.convert_route(route)
|
65
|
-
value = find(route)
|
65
|
+
value = find(route) if value.nil?
|
66
66
|
new_route = (route[0 ... -1] << RouteElement.convert(key))
|
67
67
|
# ensure it exists
|
68
68
|
set(new_route, value)
|
data/lib/depth/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: depth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Max
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|