dynamo-autoscale 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ v0.3.4
2
+
3
+ - Fixed a bug in the scaling event emails where the scaling direction was being determined incorrectly.
4
+
1
5
  v0.3.3
2
6
 
3
7
  - Fixed a bug in the scaling event emails if only one metric was adjusted in the event, rather than both reads and writes being adjusted at the same time.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dynamo-autoscale (0.3.1)
4
+ dynamo-autoscale (0.3.4)
5
5
  activesupport
6
6
  aws-sdk
7
7
  colored
@@ -19,7 +19,7 @@ GEM
19
19
  thread_safe (~> 0.1)
20
20
  tzinfo (~> 0.3.37)
21
21
  atomic (1.1.10)
22
- aws-sdk (1.11.3)
22
+ aws-sdk (1.12.0)
23
23
  json (~> 1.4)
24
24
  nokogiri (< 1.6.0)
25
25
  uuidtools (~> 2.1)
@@ -52,10 +52,11 @@ module DynamoAutoscale
52
52
  ['reads', 'writes'].map do |type|
53
53
  next unless scale_event.has_key? "#{type}_from".to_sym
54
54
 
55
+ direction = scale_direction( scale_event["#{type}_from".to_sym], scale_event["#{type}_to".to_sym] )
55
56
  type_from = scale_event["#{type}_from".to_sym].to_s.rjust(max_length)
56
57
  type_to = scale_event["#{type}_to".to_sym].to_s.rjust(max_length)
57
58
 
58
- "#{type.capitalize.rjust(6)}: #{scale_direction(type_from, type_to)} from #{type_from} to #{type_to}"
59
+ "#{type.capitalize.rjust(6)}: #{direction} from #{type_from} to #{type_to}"
59
60
  end.compact
60
61
  end
61
62
 
@@ -1,3 +1,3 @@
1
1
  module DynamoAutoscale
2
- VERSION = '0.3.3'
2
+ VERSION = '0.3.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynamo-autoscale
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir:
11
11
  - bin
12
12
  cert_chain: []
13
- date: 2013-07-15 00:00:00.000000000 Z
13
+ date: 2013-07-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: aws-sdk
@@ -194,6 +194,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
194
  - - ! '>='
195
195
  - !ruby/object:Gem::Version
196
196
  version: '0'
197
+ segments:
198
+ - 0
199
+ hash: -2090560989914151908
197
200
  requirements:
198
201
  - If you want to graph your tables, you'll need R with the ggplot and reshape packages
199
202
  installed.