email_preview 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/email_preview.gemspec +1 -0
- data/lib/email_preview/version.rb +1 -1
- data/lib/email_preview.rb +2 -4
- metadata +25 -9
data/email_preview.gemspec
CHANGED
@@ -16,6 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
|
17
17
|
s.add_runtime_dependency(%q<mail>, [">= 2.2.3"])
|
18
18
|
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
19
|
+
s.add_development_dependency(%q<rake>, ["0.9.2"])
|
19
20
|
|
20
21
|
s.files = `git ls-files`.split("\n")
|
21
22
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
data/lib/email_preview.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
require 'mail'
|
2
2
|
require 'email_preview/engine' if defined?(Rails)
|
3
|
-
require 'active_support/secure_random'
|
4
3
|
|
5
4
|
module EmailPreview
|
6
5
|
class << self
|
@@ -11,10 +10,10 @@ module EmailPreview
|
|
11
10
|
attr_accessor :before_preview_hook
|
12
11
|
|
13
12
|
def register(description, options={}, &block)
|
14
|
-
key = self.registry.keys.length + 1
|
13
|
+
key = self.registry.keys.length + 1
|
15
14
|
options[:key] = key
|
16
15
|
options[:category] ||= 'General'
|
17
|
-
options[:description] ||= description
|
16
|
+
options[:description] ||= description.to_s
|
18
17
|
options[:block] ||= block
|
19
18
|
self.registry[key] = options
|
20
19
|
end
|
@@ -52,7 +51,6 @@ module EmailPreview
|
|
52
51
|
end
|
53
52
|
mail
|
54
53
|
end
|
55
|
-
# alias_method_chain :preview, :transaction
|
56
54
|
end
|
57
55
|
end
|
58
56
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: email_preview
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 1
|
10
|
+
version: 1.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ryan Sonnek
|
@@ -15,11 +15,11 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-10-17 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
name: mail
|
22
21
|
prerelease: false
|
22
|
+
name: mail
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
24
|
none: false
|
25
25
|
requirements:
|
@@ -31,11 +31,11 @@ dependencies:
|
|
31
31
|
- 2
|
32
32
|
- 3
|
33
33
|
version: 2.2.3
|
34
|
-
type: :runtime
|
35
34
|
version_requirements: *id001
|
35
|
+
type: :runtime
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
|
-
name: shoulda
|
38
37
|
prerelease: false
|
38
|
+
name: shoulda
|
39
39
|
requirement: &id002 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
@@ -45,8 +45,24 @@ dependencies:
|
|
45
45
|
segments:
|
46
46
|
- 0
|
47
47
|
version: "0"
|
48
|
-
type: :development
|
49
48
|
version_requirements: *id002
|
49
|
+
type: :development
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
prerelease: false
|
52
|
+
name: rake
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - "="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
hash: 63
|
59
|
+
segments:
|
60
|
+
- 0
|
61
|
+
- 9
|
62
|
+
- 2
|
63
|
+
version: 0.9.2
|
64
|
+
version_requirements: *id003
|
65
|
+
type: :development
|
50
66
|
description: render and send sample html and plain text emails to see what they will *really* look like
|
51
67
|
email:
|
52
68
|
- ryan@codecrate.com
|
@@ -105,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
121
|
requirements: []
|
106
122
|
|
107
123
|
rubyforge_project: email_preview
|
108
|
-
rubygems_version: 1.8.
|
124
|
+
rubygems_version: 1.8.5
|
109
125
|
signing_key:
|
110
126
|
specification_version: 3
|
111
127
|
summary: simple tool to preview emails in development environment
|