aws_email_bounce 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +13 -0
  3. data/CODE_OF_CONDUCT.md +49 -0
  4. data/Gemfile +53 -0
  5. data/Gemfile.lock +207 -0
  6. data/LICENSE.txt +21 -0
  7. data/README.md +41 -0
  8. data/README.rdoc +28 -0
  9. data/Rakefile +6 -0
  10. data/app/assets/images/.keep +0 -0
  11. data/app/assets/javascripts/application.js +16 -0
  12. data/app/assets/javascripts/email_responses.coffee +3 -0
  13. data/app/assets/stylesheets/application.css +15 -0
  14. data/app/assets/stylesheets/email_responses.scss +3 -0
  15. data/app/controllers/application_controller.rb +5 -0
  16. data/app/controllers/concerns/.keep +0 -0
  17. data/app/controllers/email_responses_controller.rb +78 -0
  18. data/app/helpers/application_helper.rb +2 -0
  19. data/app/helpers/email_responses_helper.rb +2 -0
  20. data/app/mailers/.keep +0 -0
  21. data/app/mailers/application_mailer.rb +4 -0
  22. data/app/mailers/user_mailer.rb +6 -0
  23. data/app/models/.keep +0 -0
  24. data/app/models/concerns/.keep +0 -0
  25. data/app/models/email_response.rb +3 -0
  26. data/app/views/layouts/application.html.erb +14 -0
  27. data/app/views/layouts/mailer.html.erb +5 -0
  28. data/app/views/layouts/mailer.text.erb +1 -0
  29. data/app/views/user_mailer/welcome.html.erb +0 -0
  30. data/aws_email_bounce.gemspec +32 -0
  31. data/bin/bundle +3 -0
  32. data/bin/console +14 -0
  33. data/bin/rails +9 -0
  34. data/bin/rake +9 -0
  35. data/bin/setup +29 -0
  36. data/bin/spring +15 -0
  37. data/config.ru +4 -0
  38. data/config/application.rb +36 -0
  39. data/config/boot.rb +3 -0
  40. data/config/database.yml +54 -0
  41. data/config/environment.rb +5 -0
  42. data/config/environments/development.rb +41 -0
  43. data/config/environments/production.rb +79 -0
  44. data/config/environments/test.rb +42 -0
  45. data/config/initializers/assets.rb +11 -0
  46. data/config/initializers/backtrace_silencers.rb +7 -0
  47. data/config/initializers/cookies_serializer.rb +3 -0
  48. data/config/initializers/filter_parameter_logging.rb +4 -0
  49. data/config/initializers/inflections.rb +16 -0
  50. data/config/initializers/invalid_email_interceptor.rb +9 -0
  51. data/config/initializers/mime_types.rb +4 -0
  52. data/config/initializers/session_store.rb +3 -0
  53. data/config/initializers/wrap_parameters.rb +14 -0
  54. data/config/locales/en.yml +23 -0
  55. data/config/routes.rb +58 -0
  56. data/config/secrets.yml +22 -0
  57. data/db/migrate/20160830102515_create_email_responses.rb +10 -0
  58. data/db/schema.rb +24 -0
  59. data/db/seeds.rb +7 -0
  60. data/lib/assets/.keep +0 -0
  61. data/lib/aws_email_bounce.rb +5 -0
  62. data/lib/aws_email_bounce/version.rb +3 -0
  63. data/lib/tasks/.keep +0 -0
  64. data/log/.keep +0 -0
  65. data/public/404.html +67 -0
  66. data/public/422.html +67 -0
  67. data/public/500.html +66 -0
  68. data/public/favicon.ico +0 -0
  69. data/public/robots.txt +5 -0
  70. data/vendor/assets/javascripts/.keep +0 -0
  71. data/vendor/assets/stylesheets/.keep +0 -0
  72. metadata +142 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7e7b44efcda23951c2101309029ebf27daf655ad
4
+ data.tar.gz: 3fe6e21ce210bce1cc27d0020d85e27411e7b642
5
+ SHA512:
6
+ metadata.gz: 2374f127b2c83c606495dbe404f29467b4959cdbc40d05f782c7b838b525e6b0bfaf3f17de64decaafa6c927de26c10d42a4910f70463726b2a36fa99f43939e
7
+ data.tar.gz: 9fba124f0298e37e524c23e7c0d18de026a00b26ea6d8bb91a47958a2094f2bb4036b1667bfcd7a42d8d32154b61935846bd2162ddd9df74e04be7d3ce715721
@@ -0,0 +1,13 @@
1
+ # See https://help.github.com/articles/ignoring-files for more about ignoring files.
2
+ #
3
+ # If you find yourself ignoring temporary files generated by your text editor
4
+ # or operating system, you probably want to add a global ignore instead:
5
+ # git config --global core.excludesfile '~/.gitignore_global'
6
+
7
+ # Ignore bundler config.
8
+ /.bundle
9
+
10
+ # Ignore all logfiles and tempfiles.
11
+ /log/*
12
+ !/log/.keep
13
+ /tmp
@@ -0,0 +1,49 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of
4
+ fostering an open and welcoming community, we pledge to respect all people who
5
+ contribute through reporting issues, posting feature requests, updating
6
+ documentation, submitting pull requests or patches, and other activities.
7
+
8
+ We are committed to making participation in this project a harassment-free
9
+ experience for everyone, regardless of level of experience, gender, gender
10
+ identity and expression, sexual orientation, disability, personal appearance,
11
+ body size, race, ethnicity, age, religion, or nationality.
12
+
13
+ Examples of unacceptable behavior by participants include:
14
+
15
+ * The use of sexualized language or imagery
16
+ * Personal attacks
17
+ * Trolling or insulting/derogatory comments
18
+ * Public or private harassment
19
+ * Publishing other's private information, such as physical or electronic
20
+ addresses, without explicit permission
21
+ * Other unethical or unprofessional conduct
22
+
23
+ Project maintainers have the right and responsibility to remove, edit, or
24
+ reject comments, commits, code, wiki edits, issues, and other contributions
25
+ that are not aligned to this Code of Conduct, or to ban temporarily or
26
+ permanently any contributor for other behaviors that they deem inappropriate,
27
+ threatening, offensive, or harmful.
28
+
29
+ By adopting this Code of Conduct, project maintainers commit themselves to
30
+ fairly and consistently applying these principles to every aspect of managing
31
+ this project. Project maintainers who do not follow or enforce the Code of
32
+ Conduct may be permanently removed from the project team.
33
+
34
+ This code of conduct applies both within project spaces and in public spaces
35
+ when an individual is representing the project or its community.
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
+ reported by contacting a project maintainer at sunil@ascratech.com. All
39
+ complaints will be reviewed and investigated and will result in a response that
40
+ is deemed necessary and appropriate to the circumstances. Maintainers are
41
+ obligated to maintain confidentiality with regard to the reporter of an
42
+ incident.
43
+
44
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
+ version 1.3.0, available at
46
+ [http://contributor-covenant.org/version/1/3/0/][version]
47
+
48
+ [homepage]: http://contributor-covenant.org
49
+ [version]: http://contributor-covenant.org/version/1/3/0/
data/Gemfile ADDED
@@ -0,0 +1,53 @@
1
+ source 'https://rubygems.org'
2
+
3
+
4
+ # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
5
+ gem 'rails', '4.2.6'
6
+ # Use mysql as the database for Active Record
7
+ gem 'mysql2', '>= 0.3.13', '< 0.5'
8
+ # Use SCSS for stylesheets
9
+ gem 'sass-rails', '~> 5.0'
10
+ # Use Uglifier as compressor for JavaScript assets
11
+ gem 'uglifier', '>= 1.3.0'
12
+ # Use CoffeeScript for .coffee assets and views
13
+ gem 'coffee-rails', '~> 4.1.0'
14
+ # See https://github.com/rails/execjs#readme for more supported runtimes
15
+ # gem 'therubyracer', platforms: :ruby
16
+
17
+ # Use jquery as the JavaScript library
18
+ gem 'jquery-rails'
19
+ # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
20
+ gem 'turbolinks'
21
+ # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
22
+ gem 'jbuilder', '~> 2.0'
23
+ # bundle exec rake doc:rails generates the API under doc/api.
24
+ gem 'sdoc', '~> 0.4.0', group: :doc
25
+ gem 'aws-sdk', '~> 2.5', '>= 2.5.5'
26
+ gem 'aws-ses'
27
+ gem 'qoobaa-aws-sqs', '~> 0.1.5'
28
+ gem 'pry'
29
+ gem 'respec', '~> 0.9.0'
30
+ gem 'vcr', '~> 3.0', '>= 3.0.3'
31
+ gem 'bounce_email_records', '~> 0.1.0'
32
+ # Use ActiveModel has_secure_password
33
+ # gem 'bcrypt', '~> 3.1.7'
34
+
35
+ # Use Unicorn as the app server
36
+ # gem 'unicorn'
37
+
38
+ # Use Capistrano for deployment
39
+ # gem 'capistrano-rails', group: :development
40
+
41
+ group :development, :test do
42
+ # Call 'byebug' anywhere in the code to stop execution and get a debugger console
43
+ gem 'byebug'
44
+ end
45
+
46
+ group :development do
47
+ # Access an IRB console on exception pages or by using <%= console %> in views
48
+ gem 'web-console', '~> 2.0'
49
+
50
+ # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
51
+ gem 'spring'
52
+ end
53
+
@@ -0,0 +1,207 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ actionmailer (4.2.6)
5
+ actionpack (= 4.2.6)
6
+ actionview (= 4.2.6)
7
+ activejob (= 4.2.6)
8
+ mail (~> 2.5, >= 2.5.4)
9
+ rails-dom-testing (~> 1.0, >= 1.0.5)
10
+ actionpack (4.2.6)
11
+ actionview (= 4.2.6)
12
+ activesupport (= 4.2.6)
13
+ rack (~> 1.6)
14
+ rack-test (~> 0.6.2)
15
+ rails-dom-testing (~> 1.0, >= 1.0.5)
16
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
17
+ actionview (4.2.6)
18
+ activesupport (= 4.2.6)
19
+ builder (~> 3.1)
20
+ erubis (~> 2.7.0)
21
+ rails-dom-testing (~> 1.0, >= 1.0.5)
22
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
23
+ activejob (4.2.6)
24
+ activesupport (= 4.2.6)
25
+ globalid (>= 0.3.0)
26
+ activemodel (4.2.6)
27
+ activesupport (= 4.2.6)
28
+ builder (~> 3.1)
29
+ activerecord (4.2.6)
30
+ activemodel (= 4.2.6)
31
+ activesupport (= 4.2.6)
32
+ arel (~> 6.0)
33
+ activesupport (4.2.6)
34
+ i18n (~> 0.7)
35
+ json (~> 1.7, >= 1.7.7)
36
+ minitest (~> 5.1)
37
+ thread_safe (~> 0.3, >= 0.3.4)
38
+ tzinfo (~> 1.1)
39
+ arel (6.0.3)
40
+ aws-sdk (2.5.6)
41
+ aws-sdk-resources (= 2.5.6)
42
+ aws-sdk-core (2.5.6)
43
+ jmespath (~> 1.0)
44
+ aws-sdk-resources (2.5.6)
45
+ aws-sdk-core (= 2.5.6)
46
+ aws-ses (0.6.0)
47
+ builder
48
+ mail (> 2.2.5)
49
+ mime-types
50
+ xml-simple
51
+ binding_of_caller (0.7.2)
52
+ debug_inspector (>= 0.0.1)
53
+ builder (3.2.2)
54
+ byebug (9.0.5)
55
+ coderay (1.1.1)
56
+ coffee-rails (4.1.1)
57
+ coffee-script (>= 2.2.0)
58
+ railties (>= 4.0.0, < 5.1.x)
59
+ coffee-script (2.4.1)
60
+ coffee-script-source
61
+ execjs
62
+ coffee-script-source (1.10.0)
63
+ concurrent-ruby (1.0.2)
64
+ debug_inspector (0.0.2)
65
+ diff-lcs (1.2.5)
66
+ erubis (2.7.0)
67
+ execjs (2.7.0)
68
+ globalid (0.3.7)
69
+ activesupport (>= 4.1.0)
70
+ i18n (0.7.0)
71
+ jbuilder (2.6.0)
72
+ activesupport (>= 3.0.0, < 5.1)
73
+ multi_json (~> 1.2)
74
+ jmespath (1.3.1)
75
+ jquery-rails (4.2.1)
76
+ rails-dom-testing (>= 1, < 3)
77
+ railties (>= 4.2.0)
78
+ thor (>= 0.14, < 2.0)
79
+ json (1.8.3)
80
+ loofah (2.0.3)
81
+ nokogiri (>= 1.5.9)
82
+ mail (2.6.4)
83
+ mime-types (>= 1.16, < 4)
84
+ method_source (0.8.2)
85
+ mime-types (3.1)
86
+ mime-types-data (~> 3.2015)
87
+ mime-types-data (3.2016.0521)
88
+ mini_portile2 (2.1.0)
89
+ minitest (5.9.0)
90
+ multi_json (1.12.1)
91
+ mysql2 (0.4.4)
92
+ nokogiri (1.6.8)
93
+ mini_portile2 (~> 2.1.0)
94
+ pkg-config (~> 1.1.7)
95
+ pkg-config (1.1.7)
96
+ pry (0.10.4)
97
+ coderay (~> 1.1.0)
98
+ method_source (~> 0.8.1)
99
+ slop (~> 3.4)
100
+ qoobaa-aws-sqs (0.1.5)
101
+ rack (1.6.4)
102
+ rack-test (0.6.3)
103
+ rack (>= 1.0)
104
+ rails (4.2.6)
105
+ actionmailer (= 4.2.6)
106
+ actionpack (= 4.2.6)
107
+ actionview (= 4.2.6)
108
+ activejob (= 4.2.6)
109
+ activemodel (= 4.2.6)
110
+ activerecord (= 4.2.6)
111
+ activesupport (= 4.2.6)
112
+ bundler (>= 1.3.0, < 2.0)
113
+ railties (= 4.2.6)
114
+ sprockets-rails
115
+ rails-deprecated_sanitizer (1.0.3)
116
+ activesupport (>= 4.2.0.alpha)
117
+ rails-dom-testing (1.0.7)
118
+ activesupport (>= 4.2.0.beta, < 5.0)
119
+ nokogiri (~> 1.6.0)
120
+ rails-deprecated_sanitizer (>= 1.0.1)
121
+ rails-html-sanitizer (1.0.3)
122
+ loofah (~> 2.0)
123
+ railties (4.2.6)
124
+ actionpack (= 4.2.6)
125
+ activesupport (= 4.2.6)
126
+ rake (>= 0.8.7)
127
+ thor (>= 0.18.1, < 2.0)
128
+ rake (11.2.2)
129
+ rdoc (4.2.2)
130
+ json (~> 1.4)
131
+ respec (0.9.0)
132
+ rspec (>= 2.11)
133
+ rspec (3.5.0)
134
+ rspec-core (~> 3.5.0)
135
+ rspec-expectations (~> 3.5.0)
136
+ rspec-mocks (~> 3.5.0)
137
+ rspec-core (3.5.2)
138
+ rspec-support (~> 3.5.0)
139
+ rspec-expectations (3.5.0)
140
+ diff-lcs (>= 1.2.0, < 2.0)
141
+ rspec-support (~> 3.5.0)
142
+ rspec-mocks (3.5.0)
143
+ diff-lcs (>= 1.2.0, < 2.0)
144
+ rspec-support (~> 3.5.0)
145
+ rspec-support (3.5.0)
146
+ sass (3.4.22)
147
+ sass-rails (5.0.6)
148
+ railties (>= 4.0.0, < 6)
149
+ sass (~> 3.1)
150
+ sprockets (>= 2.8, < 4.0)
151
+ sprockets-rails (>= 2.0, < 4.0)
152
+ tilt (>= 1.1, < 3)
153
+ sdoc (0.4.1)
154
+ json (~> 1.7, >= 1.7.7)
155
+ rdoc (~> 4.0)
156
+ slop (3.6.0)
157
+ spring (1.7.2)
158
+ sprockets (3.7.0)
159
+ concurrent-ruby (~> 1.0)
160
+ rack (> 1, < 3)
161
+ sprockets-rails (3.1.1)
162
+ actionpack (>= 4.0)
163
+ activesupport (>= 4.0)
164
+ sprockets (>= 3.0.0)
165
+ thor (0.19.1)
166
+ thread_safe (0.3.5)
167
+ tilt (2.0.5)
168
+ turbolinks (5.0.1)
169
+ turbolinks-source (~> 5)
170
+ turbolinks-source (5.0.0)
171
+ tzinfo (1.2.2)
172
+ thread_safe (~> 0.1)
173
+ uglifier (3.0.2)
174
+ execjs (>= 0.3.0, < 3)
175
+ vcr (3.0.3)
176
+ web-console (2.3.0)
177
+ activemodel (>= 4.0)
178
+ binding_of_caller (>= 0.7.2)
179
+ railties (>= 4.0)
180
+ sprockets-rails (>= 2.0, < 4.0)
181
+ xml-simple (1.1.5)
182
+
183
+ PLATFORMS
184
+ ruby
185
+
186
+ DEPENDENCIES
187
+ aws-sdk (~> 2.5, >= 2.5.5)
188
+ aws-ses
189
+ byebug
190
+ coffee-rails (~> 4.1.0)
191
+ jbuilder (~> 2.0)
192
+ jquery-rails
193
+ mysql2 (>= 0.3.13, < 0.5)
194
+ pry
195
+ qoobaa-aws-sqs (~> 0.1.5)
196
+ rails (= 4.2.6)
197
+ respec (~> 0.9.0)
198
+ sass-rails (~> 5.0)
199
+ sdoc (~> 0.4.0)
200
+ spring
201
+ turbolinks
202
+ uglifier (>= 1.3.0)
203
+ vcr (~> 3.0, >= 3.0.3)
204
+ web-console (~> 2.0)
205
+
206
+ BUNDLED WITH
207
+ 1.12.5
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Sunil Kumar
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,41 @@
1
+ # AwsEmailBounce
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/aws_email_bounce`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'aws_email_bounce'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install aws_email_bounce
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/aws_email_bounce. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
+
@@ -0,0 +1,28 @@
1
+ == README
2
+
3
+ This README would normally document whatever steps are necessary to get the
4
+ application up and running.
5
+
6
+ Things you may want to cover:
7
+
8
+ * Ruby version
9
+
10
+ * System dependencies
11
+
12
+ * Configuration
13
+
14
+ * Database creation
15
+
16
+ * Database initialization
17
+
18
+ * How to run the test suite
19
+
20
+ * Services (job queues, cache servers, search engines, etc.)
21
+
22
+ * Deployment instructions
23
+
24
+ * ...
25
+
26
+
27
+ Please feel free to use a different markup language if you do not plan to run
28
+ <tt>rake doc:app</tt>.
@@ -0,0 +1,6 @@
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+
4
+ require File.expand_path('../config/application', __FILE__)
5
+
6
+ Rails.application.load_tasks
File without changes
@@ -0,0 +1,16 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require jquery
14
+ //= require jquery_ujs
15
+ //= require turbolinks
16
+ //= require_tree .