elasticity 4.0.5 → 5.0

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: 4c42ab2ad995aa5ff7f21a3d35a280022e11efdf
4
- data.tar.gz: 1d6fa511f56d8bda40c56dd3a84ba856400835c0
3
+ metadata.gz: e0f03b6f19c745e3dba221b6c758d09a684e9996
4
+ data.tar.gz: 688f198e1385cd13d47e6c974560e9162bdc795c
5
5
  SHA512:
6
- metadata.gz: d6984f4255ac2b9c5436e51ef70c64559cb5e8ff6fdbf7dbfc7f6a913d279042620d5ecbff2662d5a3134ae791f37e808c34b623005bdee881e72ee1b2645bbf
7
- data.tar.gz: 9f505e99006bf579353ef44482ee2558f636d6797368cee482e8da1841fc3609a1acd1d60c66de0e74b3d2a5d962704aae8a9f43718867776ff9d35d839b3f77
6
+ metadata.gz: 209fb20aa9563f401be0f58be8e6ac2199890d0854cff8aa7da8b11cdfac6a18ae027bbdb5a7ddb3c2abe11ec4ffa97efebe196187910739223bca422acb178e
7
+ data.tar.gz: 24d77bf764a8aecd7616f75991538373eb539f5d7a3bb9591769a136fdc60b190963c61a5ee8632299ff4717003e87bbfa9308ad7948f2374d0d5bc30d3b3bba
data/HISTORY.md CHANGED
@@ -1,14 +1,10 @@
1
- ## 5.0 - March 28, 2015
1
+ ## 5.0 - March 28, 2014
2
2
 
3
3
  - Major version bump as there are language support implications.
4
4
  - Now supporting only the latest version of the 2.x minors (e.g. 2.0.x, 2.1.x, etc.) versus specific minor-minor releases. This was an oversight on my part in how I both configured Travis and communicated support for the 2.x line.
5
5
  - Removed support for Ruby 1.9.3 as it has been [unsupported since 2/23/2015](https://www.ruby-lang.org/en/news/2014/01/10/ruby-1-9-3-will-end-on-2015/).
6
6
  - Removed "support" for JRuby. It was in poor form that I originally claimed to support JRuby as I do not have the time to dedicate to such an endeavor. Compatibility is merely coincidental and it would not be responsible for me to continue communicating ongoing support when that is not my intention. Apologies to those this may inconvenience.
7
7
 
8
- ## 4.0.5 - April 9, 2015
9
-
10
- - Thanks to @alexanderdean, pull request [#82](https://github.com/rslifka/elasticity/pull/82) adds support for profile roles.
11
-
12
8
  ## 4.0.4 - November 20, 2014
13
9
 
14
10
  - Thanks to @jshafton, pull request [#79](https://github.com/rslifka/elasticity/pull/79) adds support for job flow roles.
@@ -23,7 +23,6 @@ module Elasticity
23
23
  attr_accessor :visible_to_all_users
24
24
  attr_accessor :enable_debugging
25
25
  attr_accessor :job_flow_role
26
- attr_accessor :service_role
27
26
 
28
27
  attr_reader :access_key
29
28
  attr_reader :secret_key
@@ -188,7 +187,6 @@ module Elasticity
188
187
  config[:steps] = steps
189
188
  config[:log_uri] = @log_uri if @log_uri
190
189
  config[:job_flow_role] = @job_flow_role if @job_flow_role
191
- config[:service_role] = @service_role if @service_role
192
190
  config[:bootstrap_actions] = @bootstrap_actions.map{|a| a.to_aws_bootstrap_action} unless @bootstrap_actions.empty?
193
191
  config
194
192
  end
@@ -1,3 +1,3 @@
1
1
  module Elasticity
2
- VERSION = '4.0.5'
2
+ VERSION = '5.0'
3
3
  end
@@ -4,25 +4,22 @@ describe Elasticity::JobFlow do
4
4
  Elasticity::JobFlow.new('access', 'secret')
5
5
  end
6
6
 
7
+ its(:access_key) { should == 'access' }
8
+ its(:secret_key) { should == 'secret' }
7
9
  its(:action_on_failure) { should == 'TERMINATE_JOB_FLOW' }
8
10
  its(:ec2_key_name) { should == nil }
9
- its(:name) { should == 'Elasticity Job Flow' }
11
+ its(:ec2_subnet_id) { should == nil }
10
12
  its(:instance_count) { should == 2 }
11
13
  its(:log_uri) { should == nil }
12
14
  its(:master_instance_type) { should == 'm1.small' }
15
+ its(:name) { should == 'Elasticity Job Flow' }
13
16
  its(:slave_instance_type) { should == 'm1.small' }
14
17
  its(:ami_version) { should == 'latest' }
15
18
  its(:keep_job_flow_alive_when_no_steps) { should == false }
16
- its(:ec2_subnet_id) { should == nil }
17
19
  its(:placement) { should == 'us-east-1a' }
18
- its(:region) { should == 'us-east-1' }
19
20
  its(:visible_to_all_users) { should == false }
20
21
  its(:enable_debugging) { should == false }
21
- its(:job_flow_role) { should == nil }
22
- its(:service_role) { should == nil }
23
-
24
- its(:access_key) { should == 'access' }
25
- its(:secret_key) { should == 'secret' }
22
+ its(:region) { should == 'us-east-1' }
26
23
 
27
24
  describe '.initialize' do
28
25
  it 'should set the access and secret keys to nil by default' do
@@ -360,7 +357,7 @@ describe Elasticity::JobFlow do
360
357
  end
361
358
  end
362
359
 
363
- context 'when a job flow role is not specified' do
360
+ context 'when a log URI is not specified' do
364
361
  let(:jobflow_with_no_job_flow_role) do
365
362
  Elasticity::JobFlow.new('_', '_').tap do |jf|
366
363
  jf.job_flow_role = nil
@@ -373,32 +370,6 @@ describe Elasticity::JobFlow do
373
370
 
374
371
  end
375
372
 
376
- describe 'service role' do
377
-
378
- context 'when a service role is specified' do
379
- let(:jobflow_with_service_role) do
380
- Elasticity::JobFlow.new('_', '_').tap do |jf|
381
- jf.service_role = 'SERVICE_ROLE'
382
- end
383
- end
384
- it 'should incorporate it into the jobflow config' do
385
- jobflow_with_service_role.send(:jobflow_config).should be_a_hash_including({:service_role => 'SERVICE_ROLE'})
386
- end
387
- end
388
-
389
- context 'when a service role is not specified' do
390
- let(:jobflow_with_no_service_role) do
391
- Elasticity::JobFlow.new('_', '_').tap do |jf|
392
- jf.service_role = nil
393
- end
394
- end
395
- it 'should not make space for it in the jobflow config' do
396
- jobflow_with_no_service_role.send(:jobflow_config).should_not have_key(:service_role)
397
- end
398
- end
399
-
400
- end
401
-
402
373
  describe 'bootstrap actions' do
403
374
 
404
375
  context 'when bootstrap actions are specified' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticity
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.5
4
+ version: '5.0'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Slifka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-13 00:00:00.000000000 Z
11
+ date: 2015-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client