cloudstrap 0.49.0.pre → 0.49.1.pre

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cloudstrap/network.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a40c0dbcbcd4d1c36beac0f3dbc65c0215a0712
4
- data.tar.gz: f18335993d1119cc36388d23d8bf5729a24080e7
3
+ metadata.gz: fe2a6aecc992dba7d8ae3e7cea153ed4697b112f
4
+ data.tar.gz: 82e307e1cb7911b2a99f7e744df211f66918b982
5
5
  SHA512:
6
- metadata.gz: 49b8c4a1ff684337421602893fce727ee6b7f60c77e6468a6624ba324a8d94329046fad93ed92deda1acfdcdbadf8043496785bcb84a8bafd18f17bbc56b63d5
7
- data.tar.gz: 2d2a652d1eed6f569317be9fdd93b74b6fa38de637fa0cbaed034e28c239c803281fb9c7eaa4901be6f637e2857a9416a472bf474a76fbb00daa841466b68447
6
+ metadata.gz: 24ba59a8b14d156b3936199aceb4be819c1a1949d773b8b2a20630e0b9e10985e96378e111abc778d15a84dde5fc8b3062bfc8d37050e787cb072a9df8c64c65
7
+ data.tar.gz: 9cb5aa5f40d1cc0f2bf086338bb5c7c6256c86f97dbdfeb94cccdcd10d20fec42c470d71f6f4518a2ee8fb0f7608d5a8ce3a168b221ff9ed1cfb9f712fb9e354
@@ -15,11 +15,11 @@ module Cloudstrap
15
15
  end
16
16
 
17
17
  def public
18
- @public ||= subnets.select { |subnet| subnet.octet(2).even? }
18
+ @public ||= subnets.each_with_index.select { |_subnet, index| index.even? }.map(&:first)
19
19
  end
20
20
 
21
21
  def private
22
- @private ||= subnets.select { |subnet| subnet.octet(2).odd? }
22
+ @private ||= subnets.each_with_index.select { |_subnet, index| index.odd? }.map(&:first)
23
23
  end
24
24
 
25
25
  def public_layout(*zones)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.49.0.pre
4
+ version: 0.49.1.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Olstrom