dynamo-autoscale 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - "1.9.3"
4
+ - "2.0.0"
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ v0.3.3
2
+
3
+ - 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.
4
+
1
5
  v0.3.2
2
6
 
3
7
  - Improved formatting in the scaling event emails, to try and make them
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # DynamoDB Autoscaling
2
+ [![Build Status](https://travis-ci.org/invisiblehand/dynamo-autoscale.png?branch=master)](https://travis-ci.org/invisiblehand/dynamo-autoscale)
2
3
 
3
4
  **IMPORTANT**: It's highly recommended that you read this README before
4
5
  continuing. This project, if used incorrectly, has a lot of potential to cost
@@ -48,12 +48,15 @@ module DynamoAutoscale
48
48
 
49
49
  def formatted_scale_event(scale_event)
50
50
  max_length = max_metric_length(scale_event)
51
+
51
52
  ['reads', 'writes'].map do |type|
53
+ next unless scale_event.has_key? "#{type}_from".to_sym
54
+
52
55
  type_from = scale_event["#{type}_from".to_sym].to_s.rjust(max_length)
53
56
  type_to = scale_event["#{type}_to".to_sym].to_s.rjust(max_length)
54
57
 
55
58
  "#{type.capitalize.rjust(6)}: #{scale_direction(type_from, type_to)} from #{type_from} to #{type_to}"
56
- end
59
+ end.compact
57
60
  end
58
61
 
59
62
  def max_metric_length(scale_event)
@@ -1,3 +1,3 @@
1
1
  module DynamoAutoscale
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.3'
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.2
4
+ version: 0.3.3
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-12 00:00:00.000000000 Z
13
+ date: 2013-07-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: aws-sdk
@@ -117,6 +117,7 @@ extra_rdoc_files: []
117
117
  files:
118
118
  - .gitignore
119
119
  - .ruby-version
120
+ - .travis.yml
120
121
  - CHANGELOG
121
122
  - Gemfile
122
123
  - Gemfile.lock