fluent-plugin-sns 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2ecaa1209159f49ec695b72e6438a86ef91f3033
4
- data.tar.gz: ff0e75974565f7dd31ce2bb44c95d4a2ffe283b5
3
+ metadata.gz: 25868bdbbba74fbaa2650db27aec91e4ca6544b7
4
+ data.tar.gz: 556b96dc7156f93a1df4670a4892bf1e68549ea3
5
5
  SHA512:
6
- metadata.gz: bde9906ee98b8f0d9987d4dc37d63580033ed91e601ab41e1bde46269627baf38fd3fbc6a5d7b3b968a6ecc5a2628fa2083d50d6eaa74a837cfb31cbe3a1d6c2
7
- data.tar.gz: 342726dad58ab2a464efa2c00f506b361c2546b560db74480fbda0c10a69f772847c0006e6eb257eadc7786638093efa3012847ac6b7af4f6ba86456cfa21cc7
6
+ metadata.gz: a39ca521550dfd44ee20a5814b39ecbcf94a91cce0d7dc9b28612ddedf9bcb5eaeb1b2bfbb5e5bd5ffc9f0f4600925203641edcf478b23063b7ff24dbf914f29
7
+ data.tar.gz: 67c24179ce122802bad863a8d39953e6365f18622a62dc5c9f5e3eb91276aea7fcb1c569177bad517a26ebc2a1bff908be78ef114879351ebb1c98b7ab926f96
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.1
1
+ 2.1.2
@@ -66,8 +66,8 @@ module Fluent
66
66
  chain.next
67
67
  es.each {|time,record|
68
68
  record['time'] = Time.at(time).localtime
69
- body = get_body(record).force_encoding('UTF-8')
70
- subject = get_subject(record).force_encoding('UTF-8').gsub(/(\r\n|\r|\n)/, '')
69
+ body = get_body(record).to_s.force_encoding('UTF-8')
70
+ subject = get_subject(record).to_s.force_encoding('UTF-8').gsub(/(\r\n|\r|\n)/, '')
71
71
  @topic.publish( body, :subject => subject )
72
72
  }
73
73
  end
@@ -76,14 +76,14 @@ module Fluent
76
76
  unless @subject_template.nil?
77
77
  return @subject_template.result(binding)
78
78
  end
79
- subject = record[@sns_subject_key].to_s || @sns_subject.to_s || 'Fluentd-Notification'
79
+ subject = record[@sns_subject_key] || @sns_subject || 'Fluentd-Notification'
80
80
  end
81
81
 
82
82
  def get_body(record)
83
83
  unless @body_template.nil?
84
84
  return @body_template.result(binding)
85
85
  end
86
- record[@sns_body_key].to_s || @sns_body.to_s || record.to_json
86
+ record[@sns_body_key] || @sns_body || record.to_json
87
87
  end
88
88
  end
89
89
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-sns
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuri Odagiri