cyoi 0.11.2 → 0.11.3

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: 65745e0fecf89e39b10ea1637266b6d2068035e6
4
- data.tar.gz: 78bc1bb11f29d4856f806fc98b65ee7a562525bb
3
+ metadata.gz: dbb3d60d830913bbdb266c48077fbc2f344a126f
4
+ data.tar.gz: 7d9929b81ea1303b2e7f46afa1da11e25f7a41cb
5
5
  SHA512:
6
- metadata.gz: 0962060185d439a2d23b4fdf04624caeefd54a825635d0b406f343e6a019da5debec03d779babd73a95d266e136e1b036ba5f87a898ecbcdd93a3472ef078851
7
- data.tar.gz: ec0c841da483288bc33d2676f3e643e6debd596c39a42f99b43349adaf1cec08938f03d181217e77dd3925b9dc315edcef370c66baa472e46ddab5d2348d722c
6
+ metadata.gz: 3bc7825c7205cf1c36d385be9f2718a4f3199f8bcd0e6e6bc810ce59888a6aab6f8ffef259b928ba44ce540b838938679d6d1747343e72249a1e2b41d7c15295
7
+ data.tar.gz: fd834eedd839503d396f68dc1be9ecb8118dfd6b8e579cc4c09689f60f6807ecf9b147ceabbc556a245402dfa98fc58ce18d1068c5e8f230a7020018ad363b65
@@ -3,7 +3,13 @@ Change Log
3
3
 
4
4
  Cyoi (choose-your-own-infrastructure) is a library to ask an end-user to choose an infrastructure (AWS, OpenStack, etc), region, and login credentials.
5
5
 
6
+ v0.11.3
7
+ -------
8
+
9
+ - AWS - Fixed bug that turned a list of ports into a range
10
+
6
11
  v0.11
12
+ -----
7
13
 
8
14
  - AWS VPC support - choose a VPC, choose a subnet, an IP is selected.
9
15
  - AWS - Trusty AMIs if looking for an AMI [v0.11.1]
@@ -147,6 +147,11 @@ class Cyoi::Providers::Clients::FogProviderClient
147
147
  defns = defns[:ports]
148
148
  end
149
149
 
150
+ # If we are passed an array of ports, preserve that
151
+ if defns.is_a?(Hash) && defns[:ports].is_a?(Array)
152
+ defns = defns[:ports]
153
+ end
154
+
150
155
  unless defns.is_a?(Array)
151
156
  defns = [defns]
152
157
  end
@@ -1,3 +1,3 @@
1
1
  module Cyoi
2
- VERSION = "0.11.2"
2
+ VERSION = "0.11.3"
3
3
  end
@@ -111,7 +111,7 @@ describe Cyoi::Providers::Clients::AwsProviderClient do
111
111
  expect(subject).to receive(:puts).with(" -> opened foo ports TCP 443..443 from IP range 0.0.0.0/0")
112
112
  expect(subject).to receive(:puts).with(" -> opened foo ports TCP 4443..4443 from IP range 0.0.0.0/0")
113
113
 
114
- subject.create_security_group("foo", "foo", [22, 443, 4443])
114
+ subject.create_security_group("foo", "foo", {ports: [22, 443, 4443]})
115
115
  end
116
116
  end
117
- end
117
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cyoi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dr Nic Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-23 00:00:00.000000000 Z
11
+ date: 2015-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog