mandrill-mailer-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +33 -0
  3. data/Appraisals +19 -0
  4. data/Gemfile +3 -0
  5. data/Gemfile.lock +115 -0
  6. data/LICENSE +21 -0
  7. data/README.md +35 -0
  8. data/Rakefile +4 -0
  9. data/gemfiles/rails_30.gemfile +7 -0
  10. data/gemfiles/rails_30.gemfile.lock +122 -0
  11. data/gemfiles/rails_31.gemfile +7 -0
  12. data/gemfiles/rails_31.gemfile.lock +122 -0
  13. data/gemfiles/rails_32.gemfile +7 -0
  14. data/gemfiles/rails_32.gemfile.lock +122 -0
  15. data/gemfiles/rails_40.gemfile +7 -0
  16. data/gemfiles/rails_40.gemfile.lock +116 -0
  17. data/gemfiles/rails_41.gemfile +7 -0
  18. data/gemfiles/rails_41.gemfile.lock +116 -0
  19. data/lib/mandrill-mailer-rails.rb +2 -0
  20. data/lib/mandrill_action_mailer.rb +10 -0
  21. data/lib/mandrill_action_mailer/delivery_handler.rb +54 -0
  22. data/lib/mandrill_action_mailer/railtie.rb +12 -0
  23. data/mandrill-mailer-rails.gemspec +22 -0
  24. data/spec/integration/deliver_handler_spec.rb +166 -0
  25. data/spec/rails_app/.gitignore +3 -0
  26. data/spec/rails_app/Rakefile +6 -0
  27. data/spec/rails_app/app/mailers/notifier.rb +35 -0
  28. data/spec/rails_app/app/views/notifier/multipart.html.erb +1 -0
  29. data/spec/rails_app/app/views/notifier/multipart.text.erb +1 -0
  30. data/spec/rails_app/app/views/notifier/test.text.erb +1 -0
  31. data/spec/rails_app/bin/bundle +3 -0
  32. data/spec/rails_app/bin/rails +4 -0
  33. data/spec/rails_app/bin/rake +4 -0
  34. data/spec/rails_app/config.ru +4 -0
  35. data/spec/rails_app/config/application.rb +61 -0
  36. data/spec/rails_app/config/boot.rb +5 -0
  37. data/spec/rails_app/config/environment.rb +5 -0
  38. data/spec/rails_app/config/environments/test.rb +39 -0
  39. data/spec/rails_app/config/initializers/assets.rb +8 -0
  40. data/spec/rails_app/config/initializers/cookies_serializer.rb +3 -0
  41. data/spec/rails_app/config/initializers/filter_parameter_logging.rb +4 -0
  42. data/spec/rails_app/config/initializers/session_store.rb +3 -0
  43. data/spec/rails_app/config/initializers/wrap_parameters.rb +9 -0
  44. data/spec/rails_app/config/routes.rb +56 -0
  45. data/spec/rails_app/config/secrets.yml +14 -0
  46. data/spec/spec_helper.rb +30 -0
  47. metadata +195 -0
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ test:
14
+ secret_key_base: 7f83be4f4111f77c6a4a388c6330fa88d9359ef1cb9ba30858eebc1a8b44529a704970bee9d3dc207a6e529950a5492370b79d9c8d5b90387e376297d1157d04
@@ -0,0 +1,30 @@
1
+ # This file is copied to spec/ when you run 'rails generate rspec:install'
2
+ ENV["RAILS_ENV"] = 'test'
3
+
4
+ require 'mandrill_action_mailer'
5
+
6
+ # Load the dummy app
7
+ # $:.unshift File.dirname(__FILE__)
8
+ # $:.unshift File.dirname(__FILE__.join('rails_app'))
9
+ require_relative 'rails_app/config/environment'
10
+
11
+ require 'rspec/rails'
12
+ require 'rspec/mocks'
13
+
14
+ # Requires supporting ruby files with custom matchers and macros, etc,
15
+ # in spec/support/ and its subdirectories.
16
+ Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
17
+
18
+
19
+ RSpec.configure do |config|
20
+ # If true, the base class of anonymous controllers will be inferred
21
+ # automatically. This will be the default behavior in future versions of
22
+ # rspec-rails.
23
+ # config.infer_base_class_for_anonymous_controllers = false
24
+
25
+ # Run specs in random order to surface order dependencies. If you find an
26
+ # order dependency and want to debug it, you can fix the order by providing
27
+ # the seed, which is printed after each run.
28
+ # --seed 1234
29
+ config.order = 'random'
30
+ end
metadata ADDED
@@ -0,0 +1,195 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mandrill-mailer-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Tinfoil Security, Inc.
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-10-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: mandrill-api
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>'
32
+ - !ruby/object:Gem::Version
33
+ version: '3.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>'
39
+ - !ruby/object:Gem::Version
40
+ version: '3.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec-mocks
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: appraisal
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description: Provides an ActionMailer delivery handler sending emails through Mandrill
98
+ email:
99
+ - engineers@tinfoilsecurity.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - .gitignore
105
+ - Appraisals
106
+ - Gemfile
107
+ - Gemfile.lock
108
+ - LICENSE
109
+ - README.md
110
+ - Rakefile
111
+ - gemfiles/rails_30.gemfile
112
+ - gemfiles/rails_30.gemfile.lock
113
+ - gemfiles/rails_31.gemfile
114
+ - gemfiles/rails_31.gemfile.lock
115
+ - gemfiles/rails_32.gemfile
116
+ - gemfiles/rails_32.gemfile.lock
117
+ - gemfiles/rails_40.gemfile
118
+ - gemfiles/rails_40.gemfile.lock
119
+ - gemfiles/rails_41.gemfile
120
+ - gemfiles/rails_41.gemfile.lock
121
+ - lib/mandrill-mailer-rails.rb
122
+ - lib/mandrill_action_mailer.rb
123
+ - lib/mandrill_action_mailer/delivery_handler.rb
124
+ - lib/mandrill_action_mailer/railtie.rb
125
+ - mandrill-mailer-rails.gemspec
126
+ - spec/integration/deliver_handler_spec.rb
127
+ - spec/rails_app/.gitignore
128
+ - spec/rails_app/Rakefile
129
+ - spec/rails_app/app/mailers/notifier.rb
130
+ - spec/rails_app/app/views/notifier/multipart.html.erb
131
+ - spec/rails_app/app/views/notifier/multipart.text.erb
132
+ - spec/rails_app/app/views/notifier/test.text.erb
133
+ - spec/rails_app/bin/bundle
134
+ - spec/rails_app/bin/rails
135
+ - spec/rails_app/bin/rake
136
+ - spec/rails_app/config.ru
137
+ - spec/rails_app/config/application.rb
138
+ - spec/rails_app/config/boot.rb
139
+ - spec/rails_app/config/environment.rb
140
+ - spec/rails_app/config/environments/test.rb
141
+ - spec/rails_app/config/initializers/assets.rb
142
+ - spec/rails_app/config/initializers/cookies_serializer.rb
143
+ - spec/rails_app/config/initializers/filter_parameter_logging.rb
144
+ - spec/rails_app/config/initializers/session_store.rb
145
+ - spec/rails_app/config/initializers/wrap_parameters.rb
146
+ - spec/rails_app/config/routes.rb
147
+ - spec/rails_app/config/secrets.yml
148
+ - spec/spec_helper.rb
149
+ homepage: https://www.github.com/bsedat/mandrill-mailer-rails
150
+ licenses: []
151
+ metadata: {}
152
+ post_install_message:
153
+ rdoc_options: []
154
+ require_paths:
155
+ - lib
156
+ required_ruby_version: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - '>='
159
+ - !ruby/object:Gem::Version
160
+ version: '0'
161
+ required_rubygems_version: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - '>='
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ requirements: []
167
+ rubyforge_project:
168
+ rubygems_version: 2.4.1
169
+ signing_key:
170
+ specification_version: 4
171
+ summary: Handler for Rails to send emails through Mandrill
172
+ test_files:
173
+ - spec/integration/deliver_handler_spec.rb
174
+ - spec/rails_app/.gitignore
175
+ - spec/rails_app/Rakefile
176
+ - spec/rails_app/app/mailers/notifier.rb
177
+ - spec/rails_app/app/views/notifier/multipart.html.erb
178
+ - spec/rails_app/app/views/notifier/multipart.text.erb
179
+ - spec/rails_app/app/views/notifier/test.text.erb
180
+ - spec/rails_app/bin/bundle
181
+ - spec/rails_app/bin/rails
182
+ - spec/rails_app/bin/rake
183
+ - spec/rails_app/config.ru
184
+ - spec/rails_app/config/application.rb
185
+ - spec/rails_app/config/boot.rb
186
+ - spec/rails_app/config/environment.rb
187
+ - spec/rails_app/config/environments/test.rb
188
+ - spec/rails_app/config/initializers/assets.rb
189
+ - spec/rails_app/config/initializers/cookies_serializer.rb
190
+ - spec/rails_app/config/initializers/filter_parameter_logging.rb
191
+ - spec/rails_app/config/initializers/session_store.rb
192
+ - spec/rails_app/config/initializers/wrap_parameters.rb
193
+ - spec/rails_app/config/routes.rb
194
+ - spec/rails_app/config/secrets.yml
195
+ - spec/spec_helper.rb