thincloud-postmark 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +7 -0
- data/Gemfile +4 -0
- data/README.md +114 -12
- data/lib/thincloud/postmark/configuration.rb +27 -2
- data/lib/thincloud/postmark/engine.rb +40 -15
- data/lib/thincloud/postmark/interceptor.rb +20 -0
- data/lib/thincloud/postmark/version.rb +1 -1
- data/lib/thincloud-postmark.rb +1 -0
- data/test/configuration_test.rb +29 -12
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/mailers/.gitkeep +0 -0
- data/test/dummy/app/models/.gitkeep +0 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config/application.rb +58 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +40 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/thincloud_postmark.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/seeds.rb +7 -0
- data/test/dummy/lib/assets/.gitkeep +0 -0
- data/test/dummy/log/.gitkeep +0 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/integration/configuration_test.rb +42 -0
- data/test/integration/interceptor_test.rb +13 -0
- data/test/interceptor_test.rb +49 -0
- data/test/minitest_helper.rb +5 -2
- data/thincloud-postmark.gemspec +4 -2
- metadata +83 -8
- data/lib/generators/thincloud/postmark/postmark_generator.rb +0 -30
- data/lib/generators/thincloud/postmark/templates/action_mailer.rb +0 -2
- data/lib/generators/thincloud/postmark/templates/mail_interceptor.rb +0 -7
- data/lib/generators/thincloud/postmark/templates/thincloud_postmark.rb +0 -3
metadata
CHANGED
@@ -1,16 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thincloud-postmark
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Robert Bousquet
|
9
9
|
- Phil Cohen
|
10
|
+
- Kenny Johnston
|
11
|
+
- Don Morrison
|
10
12
|
autorequire:
|
11
13
|
bindir: bin
|
12
14
|
cert_chain: []
|
13
|
-
date: 2012-
|
15
|
+
date: 2012-11-21 00:00:00.000000000 Z
|
14
16
|
dependencies:
|
15
17
|
- !ruby/object:Gem::Dependency
|
16
18
|
name: thincloud-test
|
@@ -48,6 +50,8 @@ description: Postmark configuration for Rails apps.
|
|
48
50
|
email:
|
49
51
|
- rbousquet@newleaders.com
|
50
52
|
- pcohen@newleaders.com
|
53
|
+
- kjohnston@newleaders.com
|
54
|
+
- dmorrison@newleaders.com
|
51
55
|
executables: []
|
52
56
|
extensions: []
|
53
57
|
extra_rdoc_files: []
|
@@ -58,15 +62,49 @@ files:
|
|
58
62
|
- LICENSE
|
59
63
|
- README.md
|
60
64
|
- Rakefile
|
61
|
-
- lib/generators/thincloud/postmark/postmark_generator.rb
|
62
|
-
- lib/generators/thincloud/postmark/templates/action_mailer.rb
|
63
|
-
- lib/generators/thincloud/postmark/templates/mail_interceptor.rb
|
64
|
-
- lib/generators/thincloud/postmark/templates/thincloud_postmark.rb
|
65
65
|
- lib/thincloud-postmark.rb
|
66
66
|
- lib/thincloud/postmark/configuration.rb
|
67
67
|
- lib/thincloud/postmark/engine.rb
|
68
|
+
- lib/thincloud/postmark/interceptor.rb
|
68
69
|
- lib/thincloud/postmark/version.rb
|
69
70
|
- test/configuration_test.rb
|
71
|
+
- test/dummy/README.rdoc
|
72
|
+
- test/dummy/Rakefile
|
73
|
+
- test/dummy/app/assets/javascripts/application.js
|
74
|
+
- test/dummy/app/assets/stylesheets/application.css
|
75
|
+
- test/dummy/app/controllers/application_controller.rb
|
76
|
+
- test/dummy/app/helpers/application_helper.rb
|
77
|
+
- test/dummy/app/mailers/.gitkeep
|
78
|
+
- test/dummy/app/models/.gitkeep
|
79
|
+
- test/dummy/app/views/layouts/application.html.erb
|
80
|
+
- test/dummy/config.ru
|
81
|
+
- test/dummy/config/application.rb
|
82
|
+
- test/dummy/config/boot.rb
|
83
|
+
- test/dummy/config/database.yml
|
84
|
+
- test/dummy/config/environment.rb
|
85
|
+
- test/dummy/config/environments/development.rb
|
86
|
+
- test/dummy/config/environments/production.rb
|
87
|
+
- test/dummy/config/environments/test.rb
|
88
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
89
|
+
- test/dummy/config/initializers/inflections.rb
|
90
|
+
- test/dummy/config/initializers/mime_types.rb
|
91
|
+
- test/dummy/config/initializers/secret_token.rb
|
92
|
+
- test/dummy/config/initializers/session_store.rb
|
93
|
+
- test/dummy/config/initializers/thincloud_postmark.rb
|
94
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
95
|
+
- test/dummy/config/locales/en.yml
|
96
|
+
- test/dummy/config/routes.rb
|
97
|
+
- test/dummy/db/seeds.rb
|
98
|
+
- test/dummy/lib/assets/.gitkeep
|
99
|
+
- test/dummy/log/.gitkeep
|
100
|
+
- test/dummy/public/404.html
|
101
|
+
- test/dummy/public/422.html
|
102
|
+
- test/dummy/public/500.html
|
103
|
+
- test/dummy/public/favicon.ico
|
104
|
+
- test/dummy/script/rails
|
105
|
+
- test/integration/configuration_test.rb
|
106
|
+
- test/integration/interceptor_test.rb
|
107
|
+
- test/interceptor_test.rb
|
70
108
|
- test/minitest_helper.rb
|
71
109
|
- test/thincloud-postmark_test.rb
|
72
110
|
- thincloud-postmark.gemspec
|
@@ -84,7 +122,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
84
122
|
version: '0'
|
85
123
|
segments:
|
86
124
|
- 0
|
87
|
-
hash:
|
125
|
+
hash: 2514395577322622277
|
88
126
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
127
|
none: false
|
90
128
|
requirements:
|
@@ -93,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
131
|
version: '0'
|
94
132
|
segments:
|
95
133
|
- 0
|
96
|
-
hash:
|
134
|
+
hash: 2514395577322622277
|
97
135
|
requirements: []
|
98
136
|
rubyforge_project:
|
99
137
|
rubygems_version: 1.8.24
|
@@ -102,5 +140,42 @@ specification_version: 3
|
|
102
140
|
summary: Postmark configuration for Rails apps.
|
103
141
|
test_files:
|
104
142
|
- test/configuration_test.rb
|
143
|
+
- test/dummy/README.rdoc
|
144
|
+
- test/dummy/Rakefile
|
145
|
+
- test/dummy/app/assets/javascripts/application.js
|
146
|
+
- test/dummy/app/assets/stylesheets/application.css
|
147
|
+
- test/dummy/app/controllers/application_controller.rb
|
148
|
+
- test/dummy/app/helpers/application_helper.rb
|
149
|
+
- test/dummy/app/mailers/.gitkeep
|
150
|
+
- test/dummy/app/models/.gitkeep
|
151
|
+
- test/dummy/app/views/layouts/application.html.erb
|
152
|
+
- test/dummy/config.ru
|
153
|
+
- test/dummy/config/application.rb
|
154
|
+
- test/dummy/config/boot.rb
|
155
|
+
- test/dummy/config/database.yml
|
156
|
+
- test/dummy/config/environment.rb
|
157
|
+
- test/dummy/config/environments/development.rb
|
158
|
+
- test/dummy/config/environments/production.rb
|
159
|
+
- test/dummy/config/environments/test.rb
|
160
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
161
|
+
- test/dummy/config/initializers/inflections.rb
|
162
|
+
- test/dummy/config/initializers/mime_types.rb
|
163
|
+
- test/dummy/config/initializers/secret_token.rb
|
164
|
+
- test/dummy/config/initializers/session_store.rb
|
165
|
+
- test/dummy/config/initializers/thincloud_postmark.rb
|
166
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
167
|
+
- test/dummy/config/locales/en.yml
|
168
|
+
- test/dummy/config/routes.rb
|
169
|
+
- test/dummy/db/seeds.rb
|
170
|
+
- test/dummy/lib/assets/.gitkeep
|
171
|
+
- test/dummy/log/.gitkeep
|
172
|
+
- test/dummy/public/404.html
|
173
|
+
- test/dummy/public/422.html
|
174
|
+
- test/dummy/public/500.html
|
175
|
+
- test/dummy/public/favicon.ico
|
176
|
+
- test/dummy/script/rails
|
177
|
+
- test/integration/configuration_test.rb
|
178
|
+
- test/integration/interceptor_test.rb
|
179
|
+
- test/interceptor_test.rb
|
105
180
|
- test/minitest_helper.rb
|
106
181
|
- test/thincloud-postmark_test.rb
|
@@ -1,30 +0,0 @@
|
|
1
|
-
require "rails"
|
2
|
-
|
3
|
-
module Thincloud
|
4
|
-
module Generators
|
5
|
-
class PostmarkGenerator < ::Rails::Generators::Base
|
6
|
-
source_root File.expand_path("../templates", __FILE__)
|
7
|
-
|
8
|
-
desc "Generates Postmark configuration for Rails app"
|
9
|
-
|
10
|
-
def postmark
|
11
|
-
|
12
|
-
gem "postmark-rails", "~> 0.4.1"
|
13
|
-
|
14
|
-
copy_file "action_mailer.rb", "config/initializers/action_mailer.rb"
|
15
|
-
copy_file "thincloud_postmark.rb", "config/initializers/thincloud_postmark.rb"
|
16
|
-
copy_file "mail_interceptor.rb", "lib/mail_interceptor.rb"
|
17
|
-
|
18
|
-
say_status "", ""
|
19
|
-
say_status "success", "Initial Postmark configuration has been created"
|
20
|
-
say_status "", "Don't forget to run `bundle`"
|
21
|
-
say_status "", ""
|
22
|
-
say_status "", "In application.rb, add:"
|
23
|
-
say_status "", %Q[ config.action_mailer.default_url_options = { host: "mydomain.com" } ]
|
24
|
-
say_status "", "In lib/mail_interceptor.rb:"
|
25
|
-
say_status "", "Set email address to your own pattern "
|
26
|
-
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|