alerty-plugin-amazon_sns 0.0.2 → 0.0.3

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: b10782987172886c102770de810fd39083247f7c
4
- data.tar.gz: 59340dd1b1b65bd6910b3b5e2f8c552fd50f552c
3
+ metadata.gz: d04674a6f81356f06ab46be77416d30c9351a3b7
4
+ data.tar.gz: 733fcfd97577c27f50cd36838f71e7e3ff47d844
5
5
  SHA512:
6
- metadata.gz: 6528895a468154cd4b06a92bfa6c6b0ad109c9093a8031a4199de13d6f7aa9be486635a14252267c5cedeb55259037cdc66b993223e13f66f26f28b07719a193
7
- data.tar.gz: a259fa8a00c2a95ea761cbdc7fb8302e4bf03431be6ea63f50783b5f3e0d31e3d6e193ae13638ff645d90cd4860f2f4b75faf55bcb117cb6c4be9c5a78e636e7
6
+ metadata.gz: 3737bca15eec4c808df8e05fad01dc19b6878439f2d28684c6a461c1921c33f0f55ba96f025b2914aefbb362ff941b38a859574332aa73c6268065b2f2577173
7
+ data.tar.gz: ab17ca34ffd68b66ae40165964794506f642e369bb4c1681b5bfd750795f30477377b10c1509500c2cc2a02bd56dcf7e0f84e0883a37b6f59300b0987a7d0613
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.0.3 (2015/08/17)
2
+
3
+ Fixes:
4
+
5
+ * Subject must be less than 100 character long
6
+
1
7
  # 0.0.2 (2015/08/17)
2
8
 
3
9
  Fixes:
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "alerty-plugin-amazon_sns"
5
- spec.version = "0.0.2"
5
+ spec.version = "0.0.3"
6
6
  spec.authors = ["Naotoshi Seo"]
7
7
  spec.email = ["sonots@gmail.com"]
8
8
 
@@ -24,6 +24,7 @@ class Alerty
24
24
  def alert(record)
25
25
  message = record[:output]
26
26
  subject = expand_placeholder(@subject, record)
27
+ subject = subject[0..98] # SNS constraint, must be less than 100 character long
27
28
  retries = 0
28
29
  begin
29
30
  @client.publish(topic_arn: @topic_arn, message: message, subject: subject)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alerty-plugin-amazon_sns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naotoshi Seo