piculet 0.2.8.beta3 → 0.2.8.beta4

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: 3e27db097afa57b9ded7f386bdde87e816af288d
4
- data.tar.gz: bdee57b2d15c5e418495defe5935b95a593304c4
3
+ metadata.gz: 5c6382fdec7d92923f9c9e2f56972ca6b82739cd
4
+ data.tar.gz: 9b8582487993b4a796a07565058529db248ffed3
5
5
  SHA512:
6
- metadata.gz: 422a43d0348b00488fa9c9c4ab0c57dd516c4aacfbe113ee577458bcc4b52eb58929da5bbb5de63bbed2eda6dbf7248b0af10e2193f866bb5f1cd1af29798e67
7
- data.tar.gz: 3abffc5e634e856b7621199639bbde2a955d3165bedcee1e53bf5a43ddcff7989f2c2aa8cdbb46387015e077df1dde4acaa9d5a3b913182803ebbc9fa5cfb6dd
6
+ metadata.gz: 533df535ffbcaf7c0f456991f2e3016d03dbe2a7fa1f4275bef133b101e90c4d7af52d2c1f6cdb2ab528388f604ffe69978a73c8ced0b6eeafcd6c96386b6c4e
7
+ data.tar.gz: 1f3a0c281a3719b960199bc31003e32d18a547bf88b15089f1ee1574700fb2167137d47f1d3b0298ff7e897cdf3f812b267d0760a79d66861f5109eb9beeef1d
data/README.md CHANGED
@@ -4,7 +4,7 @@ Piculet is a tool to manage EC2 Security Group.
4
4
 
5
5
  It defines the state of EC2 Security Group using DSL, and updates EC2 Security Group according to DSL.
6
6
 
7
- [![Gem Version](https://badge.fury.io/rb/piculet.png)](http://badge.fury.io/rb/piculet)
7
+ [![Gem Version](https://badge.fury.io/rb/piculet.svg)](http://badge.fury.io/rb/piculet)
8
8
  [![Build Status](https://travis-ci.org/winebarrel/piculet.svg?branch=master)](https://travis-ci.org/winebarrel/piculet)
9
9
 
10
10
  ## Installation
@@ -184,21 +184,21 @@ module Piculet
184
184
  perm_list_dsl = collect_to_hash(permissions_dsl, :protocol, :port_range)
185
185
  perm_list_aws = collect_to_hash(permissions_aws, :protocol, :port_range)
186
186
 
187
- perm_list_dsl.each do |key, perm_dsl|
188
- protocol, port_range = key
189
- perm_aws = perm_list_aws.delete(key)
187
+ perm_list_aws.each do |key, perm_aws|
188
+ perm_dsl = perm_list_dsl.delete(key)
190
189
 
191
- if perm_aws
190
+ if perm_dsl
192
191
  unless perm_aws.eql?(perm_dsl)
193
192
  perm_aws.update(perm_dsl)
194
193
  end
195
194
  else
196
- permissions_aws.create(protocol, port_range, perm_dsl)
195
+ perm_aws.delete
197
196
  end
198
197
  end
199
198
 
200
- perm_list_aws.each do |key, perm_aws|
201
- perm_aws.delete
199
+ perm_list_dsl.each do |key, perm_dsl|
200
+ protocol, port_range = key
201
+ permissions_aws.create(protocol, port_range, perm_dsl)
202
202
  end
203
203
  end
204
204
 
@@ -1,3 +1,3 @@
1
1
  module Piculet
2
- VERSION = "0.2.8.beta3"
2
+ VERSION = "0.2.8.beta4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: piculet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8.beta3
4
+ version: 0.2.8.beta4
5
5
  platform: ruby
6
6
  authors:
7
7
  - winebarrel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-13 00:00:00.000000000 Z
11
+ date: 2015-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-v1