elasticity 3.0.1 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- M2FiZjA3NzNkODIzZjk1NGMwYjU2NGFhYmFkNzI1YTAzYzBkY2E1ZA==
4
+ NzBhNjA2ZjIxMDRkYmM1ZDU3MTllZjNlYzcxZTViODE4YjNhMzU0ZQ==
5
5
  data.tar.gz: !binary |-
6
- OWY3ZWUzMDQ4M2M4Y2RhY2EzZGI3YjRmMDAzNzkwODhmM2YzNWVmZg==
6
+ NmM4Zjc2YzhkYjEwOTkyZTkwZTMxYjU5ODdlYTA4OTY4YWRhZDVlZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OTBhN2E2MzNmN2U5NDhkYWZjNTk1M2MyZDY0YzQ4YTRkNzExNzU1NDliZmE2
10
- ZTY0NmJiZGRiNzY4Y2JkMTFjMjA4YjllZjg4NWQ5OGY1MTU4YzkxN2Y5NTY3
11
- MmMzYWMwYzU5ZDY1ZDljYjBlMzE2YjBhNjEzYmRkMWIxNzc3NzM=
9
+ YWIxMzk4OWZjMTZkYTE3M2RjY2E3NmY1NTRjMGQ4OWUzNzBlOTQ2ZGFlYzVh
10
+ OGY3ZDljOGEwODE0OTZjN2JjYjlkZDdhYjEwMmRhNzUxNzE4YTg5YjdkZjg0
11
+ MDQ5YzVkZDQ3NzQzZjRlMWQ0MTJiYTM1MDkxN2Y3NzE0MzJhYjI=
12
12
  data.tar.gz: !binary |-
13
- NzQ2ODI0YTNiZjg0OGM0YzA5MjZlZDg4MDBlNjFkNmRjZGMyZTQ2YmY1ZmI0
14
- ZmI3YjAzZmRkMDc5MDM2NjU5OGJhM2JkZmEwM2MxYWVjMjk2OWE0YTIxYmZl
15
- NjhiZGNjNWVlOGZmZDhjOWM5M2Y0NjU2ZDk4NDhkMTI1YThiOTc=
13
+ ZTZmYmMxOGRiMzA1MGQwMjRhNTgxYzIxMTE0YjgxOWM4NjQ4NDhjMjlhOTU2
14
+ N2E5ZmNjMmM1OTIyNGYzOTI5M2RkNzYxMWI1ODk0MDk5MzEwM2FhNDIxODFm
15
+ N2Q2NjgzMzcwNmFkZDJkOWEyY2ZjMzc3MmM1M2M2NTM1MjdmYjk=
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 3.0.2 - March 26, 2014
2
+
3
+ - Second go at a fix for [Issue #60](https://github.com/rslifka/elasticity/issues/60), "Specifying a VPC subnet does not work" as placement and subnet cannot both be specified.
4
+
1
5
  ## 3.0.1 - March 26, 2014
2
6
 
3
7
  - Fix for [Issue #60](https://github.com/rslifka/elasticity/issues/60), "Specifying a VPC subnet does not work".
@@ -185,7 +185,10 @@ module Elasticity
185
185
  }
186
186
  }
187
187
  }
188
- preamble[:instances].merge!(:ec2_subnet_id => @ec2_subnet_id) if @ec2_subnet_id
188
+ if @ec2_subnet_id
189
+ preamble[:instances].merge!(:ec2_subnet_id => @ec2_subnet_id)
190
+ preamble[:instances].delete(:placement)
191
+ end
189
192
  preamble[:instances].merge!(:ec2_key_name => @ec2_key_name) if @ec2_key_name
190
193
  preamble
191
194
  end
@@ -1,3 +1,3 @@
1
1
  module Elasticity
2
- VERSION = '3.0.1'
2
+ VERSION = '3.0.2'
3
3
  end
@@ -417,10 +417,15 @@ describe Elasticity::JobFlow do
417
417
  end
418
418
 
419
419
  context 'when a VPC subnet ID is specified' do
420
- it 'should include it in the preamble' do
420
+ before do
421
421
  subject.ec2_subnet_id = 'subnet-118b9d79'
422
+ end
423
+ it 'should include it in the preamble' do
422
424
  subject.send(:jobflow_preamble)[:instances].should be_a_hash_including({:ec2_subnet_id => 'subnet-118b9d79'})
423
425
  end
426
+ it 'should not include the placement since a subnet implies a placement' do
427
+ subject.send(:jobflow_preamble)[:instances].should_not include(:placement)
428
+ end
424
429
  end
425
430
 
426
431
  context 'when jobflow visibility is modified' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticity
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Slifka