awspec 0.1.0 → 0.1.1

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: 174d933837b6f18c123157d8d39636cc8151f2a1
4
- data.tar.gz: 80eb495b6e34d683d09122f2f3235b95e60ddf91
3
+ metadata.gz: df207790f4376bc443bf955cd3431d61a5944f0e
4
+ data.tar.gz: 2318f61037e3b4b1133f79ffcb75840ce61595fe
5
5
  SHA512:
6
- metadata.gz: 699c01823b05271e2ac4a1c91e9f0e83edaf3f169a16d8a5fd1a54b9fc121e1e7219c0fd29903a3bd36eb598b24c0a9fd16fa58fef4b7dbc0760f0d2596e1d53
7
- data.tar.gz: 101535a6b96aad8949196bc35e865ca0980c019d01411a6240ffa3ca876ec8f934ba54c6cd57002975818d3d14ebb3a5dd56236e08caca9b82ae8a8f118ba45a
6
+ metadata.gz: 2efb966dd21639c1dc2fb8d1e909430e5b1250fcc626897eea88031fba0cbe9423d646ae64b144caec88da1d5183eb22ae70cb8eefc6d8c7f3d8ca37cab9f28d
7
+ data.tar.gz: 4864b9b8d31aa4d4224b8b8ae4510e3650ff238c5ac0411a03443135b6d313b095d084e8358727d621b5261a86dae0c09050478d3b22e8cde90cc9de3c1161c3
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # awspec [![Gem](https://img.shields.io/gem/v/awspec.svg)](https://rubygems.org/gems/awspec) [![Travis](https://img.shields.io/travis/k1LoW/awspec.svg)](https://travis-ci.org/k1LoW/awspec)
2
2
 
3
- RSpec tests for your AWS resources.
3
+ RSpec tests for your AWS resources inspired by Serverspec.
4
4
 
5
5
  ## Installation
6
6
 
@@ -27,7 +27,7 @@ Or install it yourself as:
27
27
  ### 2. Write *_spec.rb
28
28
 
29
29
  ```ruby
30
- describe ec2('i-ec12345a') do
30
+ describe ec2('my-ec2-tag-name') do
31
31
  it { should be_running }
32
32
  its(:instance_id) { should eq 'i-ec12345a' }
33
33
  its(:image_id) { should eq 'ami-abc12def' }
@@ -55,6 +55,11 @@ end
55
55
  - [ ] AutoScaling
56
56
  - ...
57
57
 
58
+ ## TODO
59
+
60
+ - [ ] Comment format for Document generation
61
+ - [ ] Spec generator
62
+
58
63
  ## Contributing
59
64
 
60
65
  1. Fork it ( https://github.com/k1LoW/awspec/fork )
@@ -84,5 +84,15 @@ module Awspec::Type
84
84
  @inbound = false
85
85
  self
86
86
  end
87
+
88
+ def ip_permissions_count
89
+ @sg[:ip_permissions].count
90
+ end
91
+ alias_method :inbound_permissions_count, :ip_permissions_count
92
+
93
+ def ip_permissions_egress_count
94
+ @sg[:ip_permissions_egress].count
95
+ end
96
+ alias_method :outbound_permissions_count, :ip_permissions_egress_count
87
97
  end
88
98
  end
@@ -1,3 +1,3 @@
1
1
  module Awspec
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - k1LoW
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-07-31 00:00:00.000000000 Z
11
+ date: 2015-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec