exception_no 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTc5YjE1YzBkNmYxMjg1ODM2NDAxMjQwNzdlODcxMmMxZDA2MWI1Zg==
4
+ YTZiMDg4ODU0MjRhY2IzYWJmYTk1OTU5ZjczY2IzMGQxYTYxMTM1YQ==
5
5
  data.tar.gz: !binary |-
6
- ODNmYTNmOTBmYjYyMmIyZTE2MDc2NzhmYzBmNzk5ZDI2NTM3NzAyZg==
6
+ Zjc4N2IxYTQ1YWI5OWI1ZTA5ZTE4MzQ2Yzc3NTZhN2Q2YjQxMjNhOA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- OGRmOGQ2ZjI3MmYyNDdlMjUzOGJkZGE1MjBjMDcwN2Y0MTdhOWRjNzI5ZGIw
10
- MDQ0ZDFhZGExMGUzOGJiZDQ4ZTI0MWI1NmJiMGUyNDBkZDc2ZDQyNzNhOTUy
11
- YzZmZGFmMTNlZTgyMThiOTliY2UyODkwNTViNmE4M2I1NWQzMGQ=
9
+ YmE4NDYxZjdmZjFiMjNlNjZmZThjZDU2Y2Q4ODZjZjNjYjJiMGE0OTJmOGJj
10
+ ZWMzZGUyZGVhMjBmNzBiNmQ4ZjlkNWM5ZGIyNGM2Y2E5OGM4N2IzZWE3ZmEz
11
+ MzNkNmYzOTZhZWI5NGI5MjJlMmVmYmY4ZTg1Y2MyNmI4NzFhMWI=
12
12
  data.tar.gz: !binary |-
13
- ZTMyZTllNjY0OGJiYzdmZmVkYzVjNzJkOTZkNzEwZTAxNTEyNDAzOWQwODVi
14
- Zjk1NzIwNWIwZmM4Yzk3MDNjMTRhOWI1NWE4ODExYTM5YTFkZDc5NTBkY2Nj
15
- MGI5ZWNlNGU4MDllYTIwYzFkYTU4NjIwMTAwNGM0ZGI3NzRkMTU=
13
+ MTJkMmI3M2UzYmRlMDU1MjZlZDcyMzUzMTliYmMwZWNhZDdjMTJlY2Y0OWFm
14
+ MmEwNjIzMmUyODdkMTIzOTVhZDEzZWIzMDJmMmE1YTNlMTg1ZGU0YzUzYWEz
15
+ NmFhY2UzZDgxNDY4ZGQ0M2FhM2FjODQ5YWQxNWY3ODA3Y2RjMWE=
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ 0.0.7 - 2014-09-12
2
+ ==================
3
+
4
+ * By default, assume UTF-8 encoding for the email body.
5
+
1
6
  0.0.6 - 2014-09-11
2
7
  ==================
3
8
 
data/lib/exception_no.rb CHANGED
@@ -1,9 +1,11 @@
1
+ # encoding: utf-8
2
+
1
3
  require "net/smtp"
2
4
  require "erb"
3
5
  require "pp"
4
6
 
5
7
  class ExceptionNo
6
- VERSION = "0.0.6"
8
+ VERSION = "0.0.7"
7
9
 
8
10
  attr_accessor :backtrace_filter
9
11
  attr_accessor :behaviors
data/test/exception_no.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  require_relative "prelude"
2
4
 
3
5
  setup do
@@ -120,3 +122,11 @@ test "block with environment" do |notifier|
120
122
 
121
123
  assert body.include?("Foo: Bar")
122
124
  end
125
+
126
+ test "UTF-8 encoding" do |notifier|
127
+ ex = ArgumentError.new("Aló")
128
+
129
+ notifier.notify(ex)
130
+
131
+ assert $smtp.outbox.pop
132
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exception_no
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Educabilia
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-09-11 00:00:00.000000000 Z
12
+ date: 2014-09-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cutest