postmaster_general 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -29,8 +29,8 @@ module PostmasterGeneral
29
29
  ActionMailer::Base.deliveries[before_index..-1].each do |mail|
30
30
  File.open(log_path, "w+") do |f|
31
31
  f << "==================\r\n"
32
- f << mail.encoded
33
- f << "==================\r\n"
32
+ f << (mail.encoded.respond_to?(:force_encoding) ? mail.encoded.force_encoding("UTF-8") : mail.encoded)
33
+ f << "\r\n==================\r\n"
34
34
  end
35
35
  end
36
36
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{postmaster_general}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dan Pickett"]
12
- s.date = %q{2011-01-23}
12
+ s.date = %q{2011-06-21}
13
13
  s.description = %q{Logs emails delivered for easy reference}
14
14
  s.email = %q{dpickett@enlightsolutions.com}
15
15
  s.extra_rdoc_files = [
@@ -34,7 +34,7 @@ Gem::Specification.new do |s|
34
34
  s.homepage = %q{http://github.com/dpickett/postmaster_general}
35
35
  s.licenses = ["MIT"]
36
36
  s.require_paths = ["lib"]
37
- s.rubygems_version = %q{1.3.7}
37
+ s.rubygems_version = %q{1.6.2}
38
38
  s.summary = %q{A mail logger for ActionMailer 3.x}
39
39
  s.test_files = [
40
40
  "spec/postmaster_general_spec.rb",
@@ -42,7 +42,6 @@ Gem::Specification.new do |s|
42
42
  ]
43
43
 
44
44
  if s.respond_to? :specification_version then
45
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
46
45
  s.specification_version = 3
47
46
 
48
47
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
@@ -38,7 +38,7 @@ describe "PostmasterGeneral" do
38
38
  it "fills the log file in with the mail's encoded value" do
39
39
  mail = perform_delivery
40
40
 
41
- File.read(TEST_LOG_PATH + "/#{log_file_name}").should =~ /#{Regexp.escape(mail.encoded)}/
41
+ File.read(TEST_LOG_PATH + "/#{log_file_name}").should =~ /#{Regexp.escape(mail.encoded.force_encoding("UTF-8"))}/
42
42
  end
43
43
  end
44
44
 
metadata CHANGED
@@ -1,171 +1,124 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: postmaster_general
3
- version: !ruby/object:Gem::Version
4
- hash: 25
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 1
9
- - 1
10
- version: 0.1.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Dan Pickett
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-01-23 00:00:00 -05:00
12
+ date: 2011-06-21 00:00:00.000000000 -04:00
19
13
  default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- prerelease: false
23
- type: :runtime
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
24
16
  name: actionmailer
25
- version_requirements: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &2157892060 !ruby/object:Gem::Requirement
26
18
  none: false
27
- requirements:
19
+ requirements:
28
20
  - - ~>
29
- - !ruby/object:Gem::Version
30
- hash: 7
31
- segments:
32
- - 3
33
- - 0
34
- version: "3.0"
35
- requirement: *id001
36
- - !ruby/object:Gem::Dependency
37
- prerelease: false
21
+ - !ruby/object:Gem::Version
22
+ version: '3.0'
38
23
  type: :runtime
24
+ prerelease: false
25
+ version_requirements: *2157892060
26
+ - !ruby/object:Gem::Dependency
39
27
  name: configatron
40
- version_requirements: &id002 !ruby/object:Gem::Requirement
28
+ requirement: &2157891580 !ruby/object:Gem::Requirement
41
29
  none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 3
46
- segments:
47
- - 0
48
- version: "0"
49
- requirement: *id002
50
- - !ruby/object:Gem::Dependency
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
51
35
  prerelease: false
52
- type: :development
36
+ version_requirements: *2157891580
37
+ - !ruby/object:Gem::Dependency
53
38
  name: rspec
54
- version_requirements: &id003 !ruby/object:Gem::Requirement
39
+ requirement: &2157890740 !ruby/object:Gem::Requirement
55
40
  none: false
56
- requirements:
41
+ requirements:
57
42
  - - ~>
58
- - !ruby/object:Gem::Version
59
- hash: 1
60
- segments:
61
- - 2
62
- - 1
63
- version: "2.1"
64
- requirement: *id003
65
- - !ruby/object:Gem::Dependency
66
- prerelease: false
43
+ - !ruby/object:Gem::Version
44
+ version: '2.1'
67
45
  type: :development
46
+ prerelease: false
47
+ version_requirements: *2157890740
48
+ - !ruby/object:Gem::Dependency
68
49
  name: yard
69
- version_requirements: &id004 !ruby/object:Gem::Requirement
50
+ requirement: &2157889600 !ruby/object:Gem::Requirement
70
51
  none: false
71
- requirements:
52
+ requirements:
72
53
  - - ~>
73
- - !ruby/object:Gem::Version
74
- hash: 7
75
- segments:
76
- - 0
77
- - 6
78
- - 0
54
+ - !ruby/object:Gem::Version
79
55
  version: 0.6.0
80
- requirement: *id004
81
- - !ruby/object:Gem::Dependency
82
- prerelease: false
83
56
  type: :development
57
+ prerelease: false
58
+ version_requirements: *2157889600
59
+ - !ruby/object:Gem::Dependency
84
60
  name: bundler
85
- version_requirements: &id005 !ruby/object:Gem::Requirement
61
+ requirement: &2157888860 !ruby/object:Gem::Requirement
86
62
  none: false
87
- requirements:
63
+ requirements:
88
64
  - - ~>
89
- - !ruby/object:Gem::Version
90
- hash: 23
91
- segments:
92
- - 1
93
- - 0
94
- - 0
65
+ - !ruby/object:Gem::Version
95
66
  version: 1.0.0
96
- requirement: *id005
97
- - !ruby/object:Gem::Dependency
98
- prerelease: false
99
67
  type: :development
68
+ prerelease: false
69
+ version_requirements: *2157888860
70
+ - !ruby/object:Gem::Dependency
100
71
  name: jeweler
101
- version_requirements: &id006 !ruby/object:Gem::Requirement
72
+ requirement: &2157887980 !ruby/object:Gem::Requirement
102
73
  none: false
103
- requirements:
74
+ requirements:
104
75
  - - ~>
105
- - !ruby/object:Gem::Version
106
- hash: 1
107
- segments:
108
- - 1
109
- - 5
110
- - 1
76
+ - !ruby/object:Gem::Version
111
77
  version: 1.5.1
112
- requirement: *id006
113
- - !ruby/object:Gem::Dependency
114
- prerelease: false
115
78
  type: :development
79
+ prerelease: false
80
+ version_requirements: *2157887980
81
+ - !ruby/object:Gem::Dependency
116
82
  name: rcov
117
- version_requirements: &id007 !ruby/object:Gem::Requirement
83
+ requirement: &2157887320 !ruby/object:Gem::Requirement
118
84
  none: false
119
- requirements:
120
- - - ">="
121
- - !ruby/object:Gem::Version
122
- hash: 3
123
- segments:
124
- - 0
125
- version: "0"
126
- requirement: *id007
127
- - !ruby/object:Gem::Dependency
128
- prerelease: false
85
+ requirements:
86
+ - - ! '>='
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
129
89
  type: :development
90
+ prerelease: false
91
+ version_requirements: *2157887320
92
+ - !ruby/object:Gem::Dependency
130
93
  name: reek
131
- version_requirements: &id008 !ruby/object:Gem::Requirement
94
+ requirement: &2157886780 !ruby/object:Gem::Requirement
132
95
  none: false
133
- requirements:
96
+ requirements:
134
97
  - - ~>
135
- - !ruby/object:Gem::Version
136
- hash: 15
137
- segments:
138
- - 1
139
- - 2
140
- - 8
98
+ - !ruby/object:Gem::Version
141
99
  version: 1.2.8
142
- requirement: *id008
143
- - !ruby/object:Gem::Dependency
144
- prerelease: false
145
100
  type: :development
101
+ prerelease: false
102
+ version_requirements: *2157886780
103
+ - !ruby/object:Gem::Dependency
146
104
  name: roodi
147
- version_requirements: &id009 !ruby/object:Gem::Requirement
105
+ requirement: &2157886260 !ruby/object:Gem::Requirement
148
106
  none: false
149
- requirements:
107
+ requirements:
150
108
  - - ~>
151
- - !ruby/object:Gem::Version
152
- hash: 11
153
- segments:
154
- - 2
155
- - 1
156
- - 0
109
+ - !ruby/object:Gem::Version
157
110
  version: 2.1.0
158
- requirement: *id009
111
+ type: :development
112
+ prerelease: false
113
+ version_requirements: *2157886260
159
114
  description: Logs emails delivered for easy reference
160
115
  email: dpickett@enlightsolutions.com
161
116
  executables: []
162
-
163
117
  extensions: []
164
-
165
- extra_rdoc_files:
118
+ extra_rdoc_files:
166
119
  - LICENSE.txt
167
120
  - README.rdoc
168
- files:
121
+ files:
169
122
  - .document
170
123
  - .rspec
171
124
  - .rvmrc
@@ -181,38 +134,33 @@ files:
181
134
  - spec/spec_helper.rb
182
135
  has_rdoc: true
183
136
  homepage: http://github.com/dpickett/postmaster_general
184
- licenses:
137
+ licenses:
185
138
  - MIT
186
139
  post_install_message:
187
140
  rdoc_options: []
188
-
189
- require_paths:
141
+ require_paths:
190
142
  - lib
191
- required_ruby_version: !ruby/object:Gem::Requirement
143
+ required_ruby_version: !ruby/object:Gem::Requirement
192
144
  none: false
193
- requirements:
194
- - - ">="
195
- - !ruby/object:Gem::Version
196
- hash: 3
197
- segments:
145
+ requirements:
146
+ - - ! '>='
147
+ - !ruby/object:Gem::Version
148
+ version: '0'
149
+ segments:
198
150
  - 0
199
- version: "0"
200
- required_rubygems_version: !ruby/object:Gem::Requirement
151
+ hash: 3149616878336385282
152
+ required_rubygems_version: !ruby/object:Gem::Requirement
201
153
  none: false
202
- requirements:
203
- - - ">="
204
- - !ruby/object:Gem::Version
205
- hash: 3
206
- segments:
207
- - 0
208
- version: "0"
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
209
158
  requirements: []
210
-
211
159
  rubyforge_project:
212
- rubygems_version: 1.3.7
160
+ rubygems_version: 1.6.2
213
161
  signing_key:
214
162
  specification_version: 3
215
163
  summary: A mail logger for ActionMailer 3.x
216
- test_files:
164
+ test_files:
217
165
  - spec/postmaster_general_spec.rb
218
166
  - spec/spec_helper.rb