eipmap 0.1.1 → 0.1.2

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: 0c2e09d888f693e2ff73513b1632f34cc3787a67
4
- data.tar.gz: 13a1ab89aaa0a6364549fd21377ad4bc54f52efe
3
+ metadata.gz: 2b797b883bba8b05a7635dcf21d81b855378445f
4
+ data.tar.gz: 3aad0fded7ef3093aec2c2dbb9542e3c5abc23b1
5
5
  SHA512:
6
- metadata.gz: 6435276c495116ff0db70e7afdc44cf9538183e822133a552d4f742316171d8d95fb5a265598fd8db9370052d54f2d55d9f08cd6840cf5a4a258b767f11d25eb
7
- data.tar.gz: 0db786e666503f67ac238031dcf75be58dd6cbea246eaa5e339a0155da1cceb57a2712fc9c66d69ecc58bd544cefc46256a1b34358427c88163674cbc516a192
6
+ metadata.gz: 89b1b96c68661dab0b66c31f022ff2938409e5034f8aaeae0b26580db3c90c77fe7c1615c240d43277ddd6f254088e3fce6ae74fa2847bc2ac1606f38c58c880
7
+ data.tar.gz: ed34b5947280670023db95762b6aa29284bf0caf7c8b7f075074fcc866ef93602f06a1127a27b60fc490ad8e9ba59e7a1be4718c88a1879560bec7ada38b3dcf
@@ -29,6 +29,7 @@ class Eipmap::DSL::Context
29
29
  end
30
30
 
31
31
  def domain(name, &block)
32
+ name = name.to_s
32
33
  @result[name] ||= {}
33
34
 
34
35
  Eipmap::DSL::Context::Domain.new(name, &block).result.each do |ip, attrs|
@@ -10,6 +10,8 @@ class Eipmap::DSL::Context::Domain
10
10
  private
11
11
 
12
12
  def ip(ip_address, options = {})
13
+ ip_address = ip_address.to_s
14
+
13
15
  if @result[ip_address]
14
16
  raise "#{@domain} > #{ip_address}: already defined"
15
17
  end
@@ -1,3 +1,3 @@
1
1
  module Eipmap
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eipmap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara