mail-logger 0.0.1 → 0.0.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 +7 -0
- data/README.md +5 -2
- data/lib/mail/logger/configuration.rb +1 -1
- data/lib/mail/logger/version.rb +1 -1
- data/lib/{mail_logger.rb → mail-logger.rb} +0 -0
- data/mail_logger.gemspec +1 -1
- data/test/mail/logger/configuration_test.rb +2 -2
- data/test/test_helper.rb +1 -1
- metadata +19 -37
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: fb01eb40e79af5aad0f5194c3ab8bc86956347d2
|
4
|
+
data.tar.gz: c61a0bc168443c3006e1aa5db87f3060b04ca8b7
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a855095857682733818906b274171ecdcfee52da3c27595dd5987c5105906657be9eec1b4fffbcb67e746abe7269a86fe607af796796a6c7c64697653f57433f
|
7
|
+
data.tar.gz: 00570a0fc7e80deb5fa4d5ccb6b719291940914381673432c5c1d8f6bab94ea553ff3b1f17069034fa96a0c4e3ea5438b89e9747a2e0dd7e74b3fca13efb53c9
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# MailLogger
|
2
2
|
|
3
|
-
[](https://travis-ci.org/joshmcarthur/mail-logger)
|
4
|
+
|
4
5
|
|
5
|
-
> Please note: There's another project around called [**mail_logger**](https://rubygems.org/gems/mail_logger), which records details of mail to the database via ActiveRecord, instead of a log file (which is what this project does). While I certainly didn't intend to infringe, the other project hasn't been updated in a few years, so I'm sticking with this name.
|
6
6
|
|
7
7
|
You know how you're looking through your logs to see how your mailing is doing, and after all that request rubbish, you just can't see that **Sent mail** stuff? Annoying, right?
|
8
8
|
|
@@ -35,6 +35,9 @@ Or install it yourself as:
|
|
35
35
|
|
36
36
|
$ gem install mail-logger
|
37
37
|
|
38
|
+
|
39
|
+
> Please note: There's another project around called [**mail_logger**](https://rubygems.org/gems/mail_logger), which records details of mail to the database via ActiveRecord, instead of a log file (which is what this project does). While I certainly didn't intend to infringe, the other project hasn't been updated in a few years, so I'm sticking with this name.
|
40
|
+
|
38
41
|
|
39
42
|
|
40
43
|
## Contributing
|
data/lib/mail/logger/version.rb
CHANGED
File without changes
|
data/mail_logger.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_development_dependency "bundler"
|
22
22
|
spec.add_development_dependency 'mocha', '~> 0.13.3'
|
23
|
-
spec.add_development_dependency 'minitest'
|
23
|
+
spec.add_development_dependency 'minitest', '~> 4.7.3'
|
24
24
|
spec.add_development_dependency "rake"
|
25
25
|
spec.add_dependency "mail"
|
26
26
|
end
|
@@ -9,7 +9,7 @@ describe Mail::Logger::Configuration do
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def self.root
|
12
|
-
"
|
12
|
+
Pathname.new(".")
|
13
13
|
end
|
14
14
|
end
|
15
15
|
end
|
@@ -23,7 +23,7 @@ describe Mail::Logger::Configuration do
|
|
23
23
|
end
|
24
24
|
|
25
25
|
it "Uses the Rails log folder as its path" do
|
26
|
-
subject.log_path.must_equal "log"
|
26
|
+
subject.log_path.to_s.must_equal "log"
|
27
27
|
end
|
28
28
|
|
29
29
|
it "Uses the Rails environment to name the file" do
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,36 +1,32 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mail-logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Josh McArthur
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-07-17 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: mocha
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -46,52 +41,46 @@ dependencies:
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: minitest
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
47
|
+
version: 4.7.3
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
54
|
+
version: 4.7.3
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: rake
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - '>='
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: '0'
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - '>='
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: '0'
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: mail
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
|
-
- -
|
73
|
+
- - '>='
|
84
74
|
- !ruby/object:Gem::Version
|
85
75
|
version: '0'
|
86
76
|
type: :runtime
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
|
-
- -
|
80
|
+
- - '>='
|
92
81
|
- !ruby/object:Gem::Version
|
93
82
|
version: '0'
|
94
|
-
description:
|
83
|
+
description: 'Lodges a callback with `Mail`, capturing all of the mail being sent,
|
95
84
|
and logging it to it''s own file, so you can simply look back through that file
|
96
85
|
to see what''s up. '
|
97
86
|
email:
|
@@ -107,11 +96,11 @@ files:
|
|
107
96
|
- MIT-LICENSE
|
108
97
|
- README.md
|
109
98
|
- Rakefile
|
99
|
+
- lib/mail-logger.rb
|
110
100
|
- lib/mail/logger/callback.rb
|
111
101
|
- lib/mail/logger/configuration.rb
|
112
102
|
- lib/mail/logger/logfile.rb
|
113
103
|
- lib/mail/logger/version.rb
|
114
|
-
- lib/mail_logger.rb
|
115
104
|
- mail_logger.gemspec
|
116
105
|
- test/mail/logger/callback_test.rb
|
117
106
|
- test/mail/logger/configuration_test.rb
|
@@ -120,33 +109,26 @@ files:
|
|
120
109
|
homepage: https://github.com/joshmcarthur/mail_logger
|
121
110
|
licenses:
|
122
111
|
- MIT
|
112
|
+
metadata: {}
|
123
113
|
post_install_message:
|
124
114
|
rdoc_options: []
|
125
115
|
require_paths:
|
126
116
|
- lib
|
127
117
|
required_ruby_version: !ruby/object:Gem::Requirement
|
128
|
-
none: false
|
129
118
|
requirements:
|
130
|
-
- -
|
119
|
+
- - '>='
|
131
120
|
- !ruby/object:Gem::Version
|
132
121
|
version: '0'
|
133
|
-
segments:
|
134
|
-
- 0
|
135
|
-
hash: 3950467139491618074
|
136
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
123
|
requirements:
|
139
|
-
- -
|
124
|
+
- - '>='
|
140
125
|
- !ruby/object:Gem::Version
|
141
126
|
version: '0'
|
142
|
-
segments:
|
143
|
-
- 0
|
144
|
-
hash: 3950467139491618074
|
145
127
|
requirements: []
|
146
128
|
rubyforge_project:
|
147
|
-
rubygems_version:
|
129
|
+
rubygems_version: 2.0.2
|
148
130
|
signing_key:
|
149
|
-
specification_version:
|
131
|
+
specification_version: 4
|
150
132
|
summary: A Rubygem to capture information about sent emails, and log them to a file
|
151
133
|
all to their own!
|
152
134
|
test_files:
|