brocade_vrouter 0.4.5 → 0.4.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e8d74afd247d557ffac7157247d92a3067993ee3
4
- data.tar.gz: 66bd68220a1297ec008bb60cd585c2d23e30d0b1
3
+ metadata.gz: f98a6ac0013632ecc0787240521bbb2bb5b81957
4
+ data.tar.gz: 4be8f4ebe4d80449a26de5eb81a2c60f9ad8fd71
5
5
  SHA512:
6
- metadata.gz: 528ecc3bd26e6fd1131ea66bd6fcf4afb3c7c3b43334fabae06dfb1afb87df1e8bcbca8656587b4be32de6a5adb50247c8ee83f3fd1056a642106771d661ab45
7
- data.tar.gz: 7c9b2e6000cbb7f05d1d61d6481c10adc85acb61a8a1192f357420c0e9b23e2efb1bc58865af06e98735f2e2623b2d181f0aa40de6648953eaff0a813372edc5
6
+ metadata.gz: cb0f1af345376c0ee32a248fea796ecb63e8e56115b291b238d7043e0ac25285bf16331b051eb8300fa5629f228d3443cfa5a8d80da05bdfffada91bef75f1fc
7
+ data.tar.gz: 2d40bfef141a3fb82ec5ba1ad68d2af9ea08a3b8c9128342424d150d7e82bdc5460e0152592c70217caeead4508e123446dd313ebdda8a5601916f2c2ad63ddb
@@ -41,7 +41,7 @@ module BrocadeVRouter
41
41
  conf[name] ||= []
42
42
  conf[name] << value
43
43
  else
44
- conf[name] = value
44
+ conf[name] = value.empty? ? nil : value
45
45
  end
46
46
  end
47
47
  end
@@ -22,11 +22,13 @@ module BrocadeVRouter
22
22
 
23
23
  private
24
24
 
25
- def route(value, &blk)
26
- address = URI.escape value.to_s, SEPARATOR
27
- @paths << address
28
- @paths << generate_paths!(:route, address, nil, &blk)
29
- @paths.last
25
+ [:route, :allowed_network].each do |name|
26
+ define_method name do |value, &blk|
27
+ address = URI.escape value.to_s, SEPARATOR
28
+ @paths << address
29
+ @paths << generate_paths!(name, address, nil, &blk)
30
+ @paths.last
31
+ end
30
32
  end
31
33
 
32
34
  def address(value, &blk)
@@ -1,3 +1,3 @@
1
1
  module BrocadeVRouter
2
- VERSION = '0.4.5'.freeze
2
+ VERSION = '0.4.6'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brocade_vrouter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Kosmatov