fluent-plugin-ses 0.0.3 → 0.0.4

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: 535d82c43a262bf277d9369c08fcb208ae4cabae
4
- data.tar.gz: 8be14724afac983e5be367909aaa992abc438c57
3
+ metadata.gz: 2d2c5fc7c878533f022a32ae59da6476135af2a4
4
+ data.tar.gz: a05f12f71b5afc52db88432e15ce14a8794d1612
5
5
  SHA512:
6
- metadata.gz: d51affff44639d062f6500c3904bf6ad0bd6264f41d1c67fb6079955706205e6f0dac04998f58e2eda3c3057df39547505367b0d9d5356d88447f9b778fd4362
7
- data.tar.gz: e34fdb34da8f486a967b1c683e7dfa01aafee7849d2d7a1e6727e9e011a3dad571ee70f5379b44ecf2e7726336f0b2d39557f82527f9ce27a8cd03cf9c208954
6
+ metadata.gz: b462886260fff3031a880c8190a7dc540510d472cc674358e4b999e5f4c55c56ba50940691c43c4a3421a550c1fdc7476ad7cea1cc5870767f63176bd4aef049
7
+ data.tar.gz: 274aa3120f237dc7604aec5553ad79a7d4d95884ae6ff7c623baaf8624c83696970f74013fd8d366dc76b76622ac33b97d8c02f4a390b50a943bc0dde2110310
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "fluent-plugin-ses"
7
- gem.version = "0.0.3"
7
+ gem.version = "0.0.4"
8
8
  gem.authors = ["Spring_MT"]
9
9
  gem.email = ["today.is.sky.blue.sky@gmail.com"]
10
10
  gem.summary = %q{Fluent output plugin for AWS SES}
@@ -54,7 +54,7 @@ module Fluent
54
54
  end
55
55
 
56
56
  def write(chunk)
57
- body_text = chunk.read
57
+ body_text = chunk.read.force_encoding "utf-8"
58
58
 
59
59
  options = {
60
60
  :source => @from,
@@ -34,8 +34,6 @@ TEST_CONFIG = %[
34
34
  aws_sec_key
35
35
  from
36
36
  to
37
- cc
38
- reply_to_addresses
39
37
  subject test
40
38
  ]
41
39
 
@@ -99,8 +97,15 @@ describe Fluent::SESOutput do
99
97
  pending 'If sending email actually, remove pending' do
100
98
  d = create_driver TEST_CONFIG
101
99
  time = Time.parse("2013-03-19 00:00:00 UTC").to_i
102
- d.emit({"a"=>1}, time)
103
- d.emit({"a"=>2}, time)
100
+ d.emit({"a" => 1}, time)
101
+ d.emit({"a" => "test"}, time)
102
+ d.emit({"a" => "テスト"}, time)
103
+ d.emit({"a" => nil}, time)
104
+ d.emit({"a" => true}, time)
105
+ d.emit({a: "テスト"}, time)
106
+ d.emit({a: :test}, time)
107
+ d.emit({a: :"テスト"}, time)
108
+ d.emit({:"テスト" => :"テスト"}, time)
104
109
  d.run
105
110
  end
106
111
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-ses
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spring_MT
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-09 00:00:00.000000000 Z
11
+ date: 2013-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd