awspec 0.61.0 → 0.61.1

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: 7b0cbd90cac7187e2111894cadfb6414840a9cc2
4
- data.tar.gz: 0e24cde4374dcf9341873a95b4391b201b0f2921
3
+ metadata.gz: bb9c1624b848a195b373e625b4491ac40f0b4f4c
4
+ data.tar.gz: ad1af538b4aa0a8a749d8e11ccf7ae8893c1e21b
5
5
  SHA512:
6
- metadata.gz: 19233f8541ce8d531bee56ebf3db9d12b77c198f61049e9a420baef9d60702fd5c43fd71916826bc4aa0ce2bcffc141906df58a7f02de381c6373636d7b3d0a7
7
- data.tar.gz: 740db68e6ff90d90a4c18b6f5140861e6526eaee1fd5e12b38d4b803542c7785b7be9b931a433808c7b30227cfa8005f23a34e4bf86eb668808796bd00183291
6
+ metadata.gz: 8b7f895cc23c96400bdb3cade8e27f0b92e688f3e33ce9ad9080f49b4852f4eb7a36c9e6bdf854b31f8a46b547b5298a15c9cf070fdff60d66b6888b3e59b115
7
+ data.tar.gz: 501bd05b5b83abedfed33358dbbef3ff5653d8b29c7cb8d3870cc80e960701cb055aa814d89ff230329085e6684cdc68a34cecdb795d2bd09ad18a89ddeb8159
@@ -10,4 +10,3 @@ indent_style = space
10
10
  indent_size = 2
11
11
  trim_trailing_whitespace = true
12
12
  insert_final_newline = false
13
- trim_traling_whitespace = true
@@ -15,7 +15,11 @@ module Awspec::Helper
15
15
  })
16
16
  end
17
17
  # rubocop:enable Style/GuardClause
18
- res.reservations.first.instances.single_resource(id) if res.reservations.count == 1
18
+ if res.reservations.count == 1
19
+ res.reservations.first.instances.single_resource(id)
20
+ elsif res.reservations.count > 1
21
+ raise Awspec::DuplicatedResourceTypeError, "Duplicate instances matching id or tag #{id}"
22
+ end
19
23
  end
20
24
 
21
25
  def find_ec2_attribute(id, attribute)
@@ -1,3 +1,3 @@
1
1
  module Awspec
2
- VERSION = '0.61.0'
2
+ VERSION = '0.61.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.61.0
4
+ version: 0.61.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - k1LoW
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-08 00:00:00.000000000 Z
11
+ date: 2016-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec