elasticity 6.0 → 6.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY.md +4 -0
- data/README.md +3 -2
- data/lib/elasticity/instance_group.rb +2 -2
- data/lib/elasticity/version.rb +1 -1
- data/spec/lib/elasticity/aws_request_v4_spec.rb +1 -1
- data/spec/lib/elasticity/instance_group_spec.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fc0007bc333d20b825ba0f5c8ae04ed9475e561
|
4
|
+
data.tar.gz: 96241ed239fc3857cf68c71a68630d5f3fa620dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06ff88bee6ff7635e3372a262a10bb544345100ca41e6e1ba6492ed69d9e5c65419670390976f9a40c92a569ef839315582642228236733e1a61e0c4ff545e33
|
7
|
+
data.tar.gz: 3af02b989f196cd04d8cf11762884a243500271e3baf46b61b670c69b02f84f8f8bd51f3349d7e6a2d77dbc65001bfec52805a4ddd49d371081813f0fd956d84
|
data/HISTORY.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## 6.0.1 - July 19, 2015
|
2
|
+
|
3
|
+
- Including PR [#110](https://github.com/rslifka/elasticity/pull/110) - "Send bid price as string to aws api". Thank you [@robert2d](https://github.com/robert2d)!
|
4
|
+
|
1
5
|
## 6.0 - July 17, 2015
|
2
6
|
|
3
7
|
Amazon is in the process of transitioning from the notion of "Job Flows" to "Clusters" and is updating their APIs as such. You've already seen this in the EMR web UI as all mentions of "job flows" are gone and now you create "Clusters".
|
data/README.md
CHANGED
@@ -79,8 +79,9 @@ Job flows are the center of the EMR universe. The general order of operations i
|
|
79
79
|
|
80
80
|
```ruby
|
81
81
|
Elasticity.configure do |c|
|
82
|
-
c.access_key = ENV['AWS_ACCESS_KEY_ID']
|
83
|
-
c.secret_key = ENV['AWS_SECRET_ACCESS_KEY']
|
82
|
+
c.access_key = ENV['AWS_ACCESS_KEY_ID'] # required
|
83
|
+
c.secret_key = ENV['AWS_SECRET_ACCESS_KEY'] # required
|
84
|
+
c.security_token = ENV['AWS_SECURITY_TOKEN'] # optional, if you're using STS
|
84
85
|
end
|
85
86
|
```
|
86
87
|
|
@@ -40,7 +40,7 @@ module Elasticity
|
|
40
40
|
if bid_price < 0
|
41
41
|
raise ArgumentError, "The bid price for spot instances should be greater than 0 (#{bid_price} requested)"
|
42
42
|
end
|
43
|
-
@bid_price = bid_price
|
43
|
+
@bid_price = "#{bid_price}"
|
44
44
|
@market = 'SPOT'
|
45
45
|
end
|
46
46
|
|
@@ -62,4 +62,4 @@ module Elasticity
|
|
62
62
|
|
63
63
|
end
|
64
64
|
|
65
|
-
end
|
65
|
+
end
|
data/lib/elasticity/version.rb
CHANGED
@@ -123,7 +123,7 @@ describe Elasticity::AwsRequestV4 do
|
|
123
123
|
|
124
124
|
describe '.aws_v4_signature' do
|
125
125
|
it 'should create the proper signature' do
|
126
|
-
subject.send(:aws_v4_signature).should == '
|
126
|
+
subject.send(:aws_v4_signature).should == '8105dbe78c4198071af447357621c53d8c7b4c984b3540e918fa67c9eb299d1d'
|
127
127
|
end
|
128
128
|
end
|
129
129
|
|
@@ -74,8 +74,8 @@ describe Elasticity::InstanceGroup do
|
|
74
74
|
|
75
75
|
it 'should set the type and price' do
|
76
76
|
subject.set_spot_instances(0.25)
|
77
|
-
subject.market.
|
78
|
-
subject.bid_price.
|
77
|
+
expect(subject.market).to eq('SPOT')
|
78
|
+
expect(subject.bid_price).to eq('0.25')
|
79
79
|
end
|
80
80
|
|
81
81
|
context 'when the price is <= 0' do
|
@@ -131,7 +131,7 @@ describe Elasticity::InstanceGroup do
|
|
131
131
|
it 'should generate an AWS config' do
|
132
132
|
on_demand_instance_group.to_aws_instance_config.should == {
|
133
133
|
:market => 'SPOT',
|
134
|
-
:bid_price => 0.25,
|
134
|
+
:bid_price => '0.25',
|
135
135
|
:instance_count => 5,
|
136
136
|
:instance_type => 'c1.medium',
|
137
137
|
:instance_role => 'CORE',
|
@@ -141,4 +141,4 @@ describe Elasticity::InstanceGroup do
|
|
141
141
|
|
142
142
|
end
|
143
143
|
|
144
|
-
end
|
144
|
+
end
|
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
|
+
version: 6.0.1
|
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-07-
|
11
|
+
date: 2015-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|