send_grid_mailer 1.2.1 → 2.0.0

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.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +102 -0
  3. data/.circleci/setup-rubygems.sh +3 -0
  4. data/.rubocop.yml +19 -579
  5. data/.ruby-version +1 -1
  6. data/CHANGELOG.md +10 -0
  7. data/README.md +33 -1
  8. data/lib/send_grid_mailer/definition.rb +32 -14
  9. data/lib/send_grid_mailer/dev_deliverer.rb +11 -2
  10. data/lib/send_grid_mailer/logger.rb +6 -1
  11. data/lib/send_grid_mailer/mailer_base_ext.rb +2 -0
  12. data/lib/send_grid_mailer/version.rb +1 -1
  13. data/send_grid_mailer.gemspec +12 -7
  14. data/spec/dummy/Rakefile +1 -1
  15. data/spec/dummy/app/assets/config/manifest.js +3 -0
  16. data/spec/dummy/app/assets/stylesheets/application.css +3 -3
  17. data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
  18. data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
  19. data/spec/dummy/app/controllers/application_controller.rb +0 -3
  20. data/spec/dummy/app/{assets/javascripts → javascript/packs}/application.js +3 -1
  21. data/spec/dummy/app/jobs/application_job.rb +7 -0
  22. data/spec/dummy/app/mailers/application_mailer.rb +1 -1
  23. data/spec/dummy/app/mailers/test_mailer.rb +6 -0
  24. data/spec/dummy/app/models/application_record.rb +3 -0
  25. data/spec/dummy/app/views/layouts/application.html.erb +10 -9
  26. data/spec/dummy/bin/rails +3 -3
  27. data/spec/dummy/bin/rake +2 -2
  28. data/spec/dummy/bin/setup +18 -14
  29. data/spec/dummy/config.ru +3 -1
  30. data/spec/dummy/config/application.rb +12 -22
  31. data/spec/dummy/config/boot.rb +3 -3
  32. data/spec/dummy/config/cable.yml +10 -0
  33. data/spec/dummy/config/database.yml +2 -2
  34. data/spec/dummy/config/environment.rb +1 -1
  35. data/spec/dummy/config/environments/development.rb +48 -18
  36. data/spec/dummy/config/environments/production.rb +63 -22
  37. data/spec/dummy/config/environments/test.rb +29 -12
  38. data/spec/dummy/config/initializers/application_controller_renderer.rb +8 -0
  39. data/spec/dummy/config/initializers/assets.rb +4 -3
  40. data/spec/dummy/config/initializers/backtrace_silencers.rb +4 -3
  41. data/spec/dummy/config/initializers/content_security_policy.rb +28 -0
  42. data/spec/dummy/config/initializers/cookies_serializer.rb +2 -0
  43. data/spec/dummy/config/initializers/filter_parameter_logging.rb +3 -1
  44. data/spec/dummy/config/initializers/permissions_policy.rb +11 -0
  45. data/spec/dummy/config/initializers/wrap_parameters.rb +2 -2
  46. data/spec/dummy/config/locales/en.yml +11 -1
  47. data/spec/dummy/config/puma.rb +43 -0
  48. data/spec/dummy/config/routes.rb +1 -54
  49. data/spec/dummy/config/storage.yml +34 -0
  50. data/spec/dummy/public/404.html +6 -6
  51. data/spec/dummy/public/422.html +6 -6
  52. data/spec/dummy/public/500.html +6 -6
  53. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  54. data/spec/dummy/public/apple-touch-icon.png +0 -0
  55. data/spec/dummy/spec/lib/send_grid_mailer/definition_spec.rb +52 -23
  56. data/spec/dummy/spec/mailers/test_mailer_spec.rb +84 -46
  57. data/spec/rails_helper.rb +3 -5
  58. metadata +142 -71
  59. data/.hound.yml +0 -4
  60. data/.travis.yml +0 -15
  61. data/spec/dummy/bin/bundle +0 -3
  62. data/spec/dummy/config/initializers/session_store.rb +0 -3
  63. data/spec/dummy/config/secrets.yml +0 -22
  64. data/spec/dummy/db/schema.rb +0 -16
  65. data/spec/dummy/spec/support/test_helpers.rb +0 -5
data/.hound.yml DELETED
@@ -1,4 +0,0 @@
1
- ---
2
- ruby:
3
- enabled: true
4
- config_file: ".rubocop.yml"
data/.travis.yml DELETED
@@ -1,15 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.3.1
4
- before_install: gem install bundler -v 1.12.5
5
- script:
6
- - RAILS_ENV=test bundle exec rake db:create db:migrate
7
- - bundle exec rspec spec
8
- deploy:
9
- provider: rubygems
10
- api_key:
11
- secure: jz96HPqztppwVFcy2j7W+82dGfZC4XlQ+8A/Lgzkc2l1Xkdnq8ZeWG+WLpTra5ufRTOFNUTDoFy8Un3zg0UPzRZUnrQciWegYUAodyJXlUECLXT7ARwecaHfJC8cpsKpnKRsn8uD27J9fFPKpYnab4ch7aChmfx5vJuPw2aAJPJWmj/FjwFcOx1E7aAz3LsHbrFd3eT8RL1fQBevuCv4ZFIvJfYl+OxjnlGPdwlW4Rx8ZUIfLwa9PfRBKKsWhyYYipPwhsimPbqPd2VszkVDvBIfFikAIRRLAiP1Vx4DbNhO7VQkqtdYi8DRrHAEJ3tJEfA5+UGB/jVAzRqSKAHde8PDvjNbrPtepK+891Laly5r7/BjtAq5eyyVmQYDAvvZYZseaclUcu2JqdA1H3A0+8xb17QWTQbdNs0016OBdznDQuPGDo6GO0iKrlFkSYoadee6l1DWEnfLzMz7CPEr/mnFcJL4gPGkE5GYwWTN72yG5Y+ryzmoKkWwr/TcBKITDCGRoHS7BBrzxzxwVWAUqojnsM4F+LcWV47V4/bwFAVXt0oPPGak7RVR4Fvh42Mpjik+JS31QeEKZDB0m/17w/wfWjsgYw2xyJXznu1nr+RMrrZVPfAC9Qpq/j0zQlTWif+81G+CjT/ENDCRX9++waAXurY+VZ0STbfMEJNYxdU=
12
- gem: send_grid_mailer
13
- on:
14
- tags: true
15
- repo: platanus/send_grid_mailer
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
- load Gem.bin_path('bundler', 'bundle')
@@ -1,3 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -1,22 +0,0 @@
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
- development:
14
- secret_key_base: cbe852cea02deaf75409d502746a62f8df2978e031119e2e464cb43ef9e6cd59d9cfdddedda3a05a2bb8b86f61bf79d24e65b6f3514d4c1343dbb1935251f8e4
15
-
16
- test:
17
- secret_key_base: 5119a7f201842cd4bd31a735702146c23bd502088bccf9f3dd51e6e23a5615c1918d1b5b7df92d8e894b408198ca291eb57b4e1de7944f11254fa4800671c81f
18
-
19
- # Do not keep production secrets in the repository,
20
- # instead read values from the environment.
21
- production:
22
- secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -1,16 +0,0 @@
1
- # encoding: UTF-8
2
- # This file is auto-generated from the current state of the database. Instead
3
- # of editing this file, please use the migrations feature of Active Record to
4
- # incrementally modify your database, and then regenerate this schema definition.
5
- #
6
- # Note that this schema.rb definition is the authoritative source for your
7
- # database schema. If you need to create the application database on another
8
- # system, you should be using db:schema:load, not running all the migrations
9
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
- # you'll amass, the slower it'll run and the greater likelihood for issues).
11
- #
12
- # It's strongly recommended that you check this file into your version control system.
13
-
14
- ActiveRecord::Schema.define(version: 0) do
15
-
16
- end
@@ -1,5 +0,0 @@
1
- module TestHelpers
2
- def helper_example
3
- puts "Add your custom helpers here: #{File.dirname(__FILE__)}"
4
- end
5
- end