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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a2d275d97521a90922bfd87e95208fcb99cbf836
4
- data.tar.gz: d31499f6313426697c37222541c3559b91e9cc18
3
+ metadata.gz: 3bd1140de2fb31c19cae87dba5ff540263674311
4
+ data.tar.gz: 64c46445aef489b8062b7e034127206c831df550
5
5
  SHA512:
6
- metadata.gz: 524e6b44d60c2fc130f83b81eb6b200b735692ab3c6b0a05ce0f908fd30047b038c5b3623f280e8b42d64ffaa59bb25a96e197c8fc6509895e3ee5f6bf5966a7
7
- data.tar.gz: 12e3c45354a6d046a40496e0a01f4ea2fdb8be0b24f5ae0b18b3d1a13cd4eb25dbbad1d1465ef2f3742d214023cfca323355f77fda9f5f58430af4b483f4019a
6
+ metadata.gz: 6c4c88a7fc7724d942479a8742d81f4bab3eb775b14e9d3b35c3ea64a1c44609fadf9b7217d142ebfd6ea2fb1eb178324c19d352331c20da275675164b82a5e0
7
+ data.tar.gz: 742a4875170fe2383c649353649a16a92a4f4b5393e630df8b5728a10b36852d84bd79d8080e02ca7f847d1d6b823f372ac1a277daa02e1f23824b58369139f6
@@ -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 == nil
63
+ return set(route, value) if key.nil?
64
64
  route = RouteElement.convert_route(route)
65
- value = find(route) unless value
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)
@@ -1,3 +1,3 @@
1
1
  module Depth
2
- VERSION = '0.4.2'
2
+ VERSION = '0.4.3'
3
3
  end
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.2
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-03-10 00:00:00.000000000 Z
11
+ date: 2016-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler