active_mailer 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c582a250039f2eb1375978b0ac7f4806f76aeba5
4
- data.tar.gz: afea275b3f1dcd0ee0504b5fde8692466435fbae
2
+ SHA256:
3
+ metadata.gz: 0fa363a0e3e879a1064a7e94d05689e1d4ca1f25d74284c03553a82debe539ca
4
+ data.tar.gz: 5841776505687009318e0bfb797ddefdff7222e1f50b1cd75cffb0e604254e69
5
5
  SHA512:
6
- metadata.gz: 6b5ea3d7a917e0c7b60e0db2a8be892917ebff778affab526fcff89d60759ca8eb9425e3ecd027f20ef05473e41565cecb5011dd9f3d7fec8a461082531090dd
7
- data.tar.gz: 0f38ecb3a9b3b1c813c6d0a4bb98c309fd5f544fe35fb91e5f755dc77624157dbd3bebb32767a285769af44cb85b29abf2f3b6bc0aa2d615e72348e57bf4c2aa
6
+ metadata.gz: f1146be624d44117c93f55c72027469f8031a779585ef770384e16ef3ef4c80e43478925f0cde88b2303af67ada0924943dee6da7427efbd3c4a868a54bb802b
7
+ data.tar.gz: 94e22e8c1be563b335300951e8c365a22acef149893d4787c1dee2a8abc226fe1bfaab8a2549c8623d87662be43e7c65a30c5a95dc9ee521d887a4f9bf6b1887
data/.gitignore CHANGED
@@ -10,6 +10,5 @@ log/*.log
10
10
  vendor/bundle
11
11
  test/log
12
12
  tmp
13
- Gemfile.lock
14
13
  pkg/
15
14
  /gemfiles/*.lock
data/Appraisals CHANGED
@@ -1,17 +1,10 @@
1
- appraise 'rails3.2' do
2
- gem 'rails', '~> 3.2.21'
3
- gem 'test-unit', '~> 3.0'
1
+ appraise 'rails_5.1.7' do
2
+ gem 'rails', '~> 5.1.7'
3
+ gem 'sqlite3', '~> 1.4.2'
4
4
  end
5
5
 
6
- appraise 'rails4.0' do
7
- gem 'rails', '~> 4.0.13'
8
- gem 'test-unit'
9
- end
10
-
11
- appraise 'rails4.1' do
12
- gem 'rails', '~> 4.1.9'
13
- end
14
-
15
- appraise 'rails4.2' do
16
- gem 'rails', '~> 4.2.0'
17
- end
6
+ # Consider adding these to a specific appraisal if you need to debug
7
+ # gem "byebug"
8
+ # gem "pry"
9
+ # gem "pry-rails"
10
+ # gem "pry-byebug"
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ### 1.1.0
2
+ * Remove support for Rails prior to 5.1
3
+ * Add support for Rails 5.1
4
+
5
+ This is an intermediate release on the way to bringing this gem up to date.
6
+
1
7
  ### 1.0.0
2
8
  * Support for Rails 3.2 to 4.2 with micro rails dummy app
3
9
 
data/Gemfile.lock ADDED
@@ -0,0 +1,172 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ active_mailer (1.1.0)
5
+ rails (>= 5.1)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actioncable (6.1.4.1)
11
+ actionpack (= 6.1.4.1)
12
+ activesupport (= 6.1.4.1)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (>= 0.6.1)
15
+ actionmailbox (6.1.4.1)
16
+ actionpack (= 6.1.4.1)
17
+ activejob (= 6.1.4.1)
18
+ activerecord (= 6.1.4.1)
19
+ activestorage (= 6.1.4.1)
20
+ activesupport (= 6.1.4.1)
21
+ mail (>= 2.7.1)
22
+ actionmailer (6.1.4.1)
23
+ actionpack (= 6.1.4.1)
24
+ actionview (= 6.1.4.1)
25
+ activejob (= 6.1.4.1)
26
+ activesupport (= 6.1.4.1)
27
+ mail (~> 2.5, >= 2.5.4)
28
+ rails-dom-testing (~> 2.0)
29
+ actionpack (6.1.4.1)
30
+ actionview (= 6.1.4.1)
31
+ activesupport (= 6.1.4.1)
32
+ rack (~> 2.0, >= 2.0.9)
33
+ rack-test (>= 0.6.3)
34
+ rails-dom-testing (~> 2.0)
35
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
36
+ actiontext (6.1.4.1)
37
+ actionpack (= 6.1.4.1)
38
+ activerecord (= 6.1.4.1)
39
+ activestorage (= 6.1.4.1)
40
+ activesupport (= 6.1.4.1)
41
+ nokogiri (>= 1.8.5)
42
+ actionview (6.1.4.1)
43
+ activesupport (= 6.1.4.1)
44
+ builder (~> 3.1)
45
+ erubi (~> 1.4)
46
+ rails-dom-testing (~> 2.0)
47
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
48
+ activejob (6.1.4.1)
49
+ activesupport (= 6.1.4.1)
50
+ globalid (>= 0.3.6)
51
+ activemodel (6.1.4.1)
52
+ activesupport (= 6.1.4.1)
53
+ activerecord (6.1.4.1)
54
+ activemodel (= 6.1.4.1)
55
+ activesupport (= 6.1.4.1)
56
+ activestorage (6.1.4.1)
57
+ actionpack (= 6.1.4.1)
58
+ activejob (= 6.1.4.1)
59
+ activerecord (= 6.1.4.1)
60
+ activesupport (= 6.1.4.1)
61
+ marcel (~> 1.0.0)
62
+ mini_mime (>= 1.1.0)
63
+ activesupport (6.1.4.1)
64
+ concurrent-ruby (~> 1.0, >= 1.0.2)
65
+ i18n (>= 1.6, < 2)
66
+ minitest (>= 5.1)
67
+ tzinfo (~> 2.0)
68
+ zeitwerk (~> 2.3)
69
+ appraisal (2.1.0)
70
+ bundler
71
+ rake
72
+ thor (>= 0.14.0)
73
+ builder (3.2.4)
74
+ coderay (1.1.3)
75
+ concurrent-ruby (1.1.9)
76
+ crass (1.0.6)
77
+ diff-lcs (1.2.5)
78
+ erubi (1.10.0)
79
+ globalid (0.5.2)
80
+ activesupport (>= 5.0)
81
+ i18n (1.8.10)
82
+ concurrent-ruby (~> 1.0)
83
+ loofah (2.12.0)
84
+ crass (~> 1.0.2)
85
+ nokogiri (>= 1.5.9)
86
+ mail (2.7.1)
87
+ mini_mime (>= 0.1.1)
88
+ marcel (1.0.2)
89
+ method_source (1.0.0)
90
+ mini_mime (1.1.2)
91
+ mini_portile2 (2.6.1)
92
+ minitest (5.14.4)
93
+ nio4r (2.5.8)
94
+ nokogiri (1.12.5)
95
+ mini_portile2 (~> 2.6.1)
96
+ racc (~> 1.4)
97
+ predicated (0.2.6)
98
+ pry (0.14.1)
99
+ coderay (~> 1.1)
100
+ method_source (~> 1.0)
101
+ racc (1.6.0)
102
+ rack (2.2.3)
103
+ rack-test (1.1.0)
104
+ rack (>= 1.0, < 3)
105
+ rails (6.1.4.1)
106
+ actioncable (= 6.1.4.1)
107
+ actionmailbox (= 6.1.4.1)
108
+ actionmailer (= 6.1.4.1)
109
+ actionpack (= 6.1.4.1)
110
+ actiontext (= 6.1.4.1)
111
+ actionview (= 6.1.4.1)
112
+ activejob (= 6.1.4.1)
113
+ activemodel (= 6.1.4.1)
114
+ activerecord (= 6.1.4.1)
115
+ activestorage (= 6.1.4.1)
116
+ activesupport (= 6.1.4.1)
117
+ bundler (>= 1.15.0)
118
+ railties (= 6.1.4.1)
119
+ sprockets-rails (>= 2.0.0)
120
+ rails-dom-testing (2.0.3)
121
+ activesupport (>= 4.2.0)
122
+ nokogiri (>= 1.6)
123
+ rails-html-sanitizer (1.4.2)
124
+ loofah (~> 2.3)
125
+ railties (6.1.4.1)
126
+ actionpack (= 6.1.4.1)
127
+ activesupport (= 6.1.4.1)
128
+ method_source
129
+ rake (>= 0.13)
130
+ thor (~> 1.0)
131
+ rake (13.0.6)
132
+ ruby2ruby (2.4.4)
133
+ ruby_parser (~> 3.1)
134
+ sexp_processor (~> 4.6)
135
+ ruby_parser (3.17.0)
136
+ sexp_processor (~> 4.15, >= 4.15.1)
137
+ sexp_processor (4.15.3)
138
+ sprockets (4.0.2)
139
+ concurrent-ruby (~> 1.0)
140
+ rack (> 1, < 3)
141
+ sprockets-rails (3.2.2)
142
+ actionpack (>= 4.0)
143
+ activesupport (>= 4.0)
144
+ sprockets (>= 3.0.0)
145
+ sqlite3 (1.4.2)
146
+ thor (1.1.0)
147
+ tzinfo (2.0.4)
148
+ concurrent-ruby (~> 1.0)
149
+ websocket-driver (0.7.5)
150
+ websocket-extensions (>= 0.1.0)
151
+ websocket-extensions (0.1.5)
152
+ wrong (0.7.1)
153
+ diff-lcs (~> 1.2.5)
154
+ predicated (~> 0.2.6)
155
+ ruby2ruby (>= 2.0.1)
156
+ ruby_parser (>= 3.0.1)
157
+ sexp_processor (>= 4.0)
158
+ zeitwerk (2.4.2)
159
+
160
+ PLATFORMS
161
+ ruby
162
+
163
+ DEPENDENCIES
164
+ active_mailer!
165
+ appraisal (~> 2.1.0)
166
+ pry
167
+ rake
168
+ sqlite3 (>= 1.3.5)
169
+ wrong (~> 0.7.0)
170
+
171
+ BUNDLED WITH
172
+ 2.1.4
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
17
17
 
18
18
  s.required_rubygems_version = "> 1.3.6"
19
19
 
20
- s.add_dependency "rails", ">= 3.2"
20
+ s.add_dependency "rails", ">= 5.1"
21
21
 
22
22
  s.add_development_dependency(%q<pry>, [">= 0"])
23
23
  s.add_development_dependency(%q<rake>, [">= 0"])
@@ -1,6 +1,6 @@
1
1
  module ActiveMailer
2
2
  class EmailUserAssociation < ActiveRecord::Base
3
3
  belongs_to :email_user
4
- belongs_to :emailable, :polymorphic => true
4
+ belongs_to :emailable, :polymorphic => true, :optional => true
5
5
  end
6
6
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "~> 4.0.13"
6
- gem "test-unit"
5
+ gem "rails", "~> 5.1.7"
6
+ gem "sqlite3", "~> 1.4.2"
7
7
 
8
8
  gemspec :path => "../"
@@ -2,6 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "~> 4.1.9"
5
+ gem "rails", "~> 5.1.7"
6
+ gem "sqlite3", "~> 1.4.2"
6
7
 
7
8
  gemspec :path => "../"
@@ -1,3 +1,3 @@
1
1
  module ActiveMailer
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
File without changes
@@ -0,0 +1,5 @@
1
+ //= link_tree ../images
2
+ //= link_directory ../stylesheets .css
3
+ //= link_tree ../javascripts .js
4
+ //= link_tree ../video .mp4
5
+ //= link_tree ../video .webm
@@ -1,4 +1,4 @@
1
- # This is a minimal Rails application with Rails 3 and 4 compatibility.
1
+ # This is a minimal Rails application
2
2
  #
3
3
  # copied with modifications from https://github.com/thoughtbot/clearance/blob/master/spec/dummy/application.rb
4
4
  require "rails/all"
@@ -16,24 +16,36 @@ module Dummy
16
16
  config.action_mailer.delivery_method = :test
17
17
  config.active_support.deprecation = :stderr
18
18
  config.active_support.test_order = :random
19
- config.assets.enabled = true
20
19
  config.cache_classes = true
21
20
  config.consider_all_requests_local = true
22
21
  config.eager_load = false
23
22
  config.encoding = "utf-8"
23
+ config.root = APP_ROOT
24
24
  config.paths["app/controllers"] << "#{APP_ROOT}/app/controllers"
25
25
  config.paths["app/models"] << "#{APP_ROOT}/app/models"
26
26
  config.paths["app/views"] << "#{APP_ROOT}/app/views"
27
+ config.paths["app/assets"] << "#{APP_ROOT}/app/assets"
27
28
  config.paths["config/database"] = "#{APP_ROOT}/config/database.yml"
28
29
  config.paths["db"] = "#{APP_ROOT}/db"
29
30
  config.paths["db/migrate"] = "#{APP_ROOT}/db/migrate"
30
31
  config.paths["log"] = "tmp/log/development.log"
31
- config.secret_token = "SECRET_TOKEN_IS_MIN_30_CHARS_LONG"
32
+ config.paths.add "config/routes.rb", with: "#{APP_ROOT}/config/routes.rb"
33
+ config.secret_key_base = "SECRET_KEY_BASE"
32
34
 
33
- if Rails::VERSION::MAJOR >= 4
34
- config.secret_key_base = "SECRET_KEY_BASE"
35
+ config.load_defaults 5.1
36
+
37
+ if config.active_record.sqlite3.respond_to?(:represent_boolean_as_integer)
38
+ if Rails::VERSION::MAJOR < 6
39
+ config.active_record.sqlite3.represent_boolean_as_integer = true
40
+ end
41
+ end
42
+
43
+ if Rails::VERSION::MAJOR >= 6
44
+ config.action_mailer.delivery_job = "ActionMailer::MailDeliveryJob"
35
45
  end
36
46
 
47
+ config.active_job.queue_adapter = :inline
48
+
37
49
  def require_environment!
38
50
  initialize!
39
51
  end
data/test/test_helper.rb CHANGED
@@ -6,7 +6,25 @@ require "rails/all"
6
6
  $: << File.join(File.dirname(__FILE__), "lib")
7
7
  require "active_mailer"
8
8
 
9
- require File.expand_path("../fixtures/dummy/application.rb", __FILE__)
9
+
10
+ # Appraisal names the generated Gemfile according to the name you
11
+ # provide in the Appraisals file. We use the name of the appraisal to
12
+ # load the correct Rails application for testing the current
13
+ # Appraisal. For example, if the Appraisals file contains
14
+ #
15
+ # appraise 'rails_5.1.7' do
16
+ # gem 'rails', '~> 5.1.7'
17
+ # gem 'sqlite3', '~> 1.4.2'
18
+ # end
19
+ #
20
+ # then we expect Appraisal to generate gemfiles/rails_5.1.7.gemfile.
21
+ appraisal_name = ENV['BUNDLE_GEMFILE'].split("/").last.chomp(".gemfile")
22
+
23
+ # Load the Rails test project that matches the appraisal name. If the
24
+ # appraisal is named 'rails_5.1.7' there should be a
25
+ # fixtures/rails_5.1.7 directory containing a valid Rails project for
26
+ # testing.
27
+ require File.expand_path("../fixtures/#{appraisal_name}/application.rb", __FILE__)
10
28
  require "rails/test_help"
11
29
 
12
30
  require "wrong"
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Gordon
8
8
  - Elijah Miller
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-12-14 00:00:00.000000000 Z
12
+ date: 2021-10-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '3.2'
20
+ version: '5.1'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: '3.2'
27
+ version: '5.1'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: pry
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -107,6 +107,7 @@ files:
107
107
  - Appraisals
108
108
  - CHANGELOG.md
109
109
  - Gemfile
110
+ - Gemfile.lock
110
111
  - MIT-LICENSE
111
112
  - README.md
112
113
  - Rakefile
@@ -114,10 +115,8 @@ files:
114
115
  - app/models/active_mailer/base.rb
115
116
  - app/models/active_mailer/email_user.rb
116
117
  - app/models/active_mailer/email_user_association.rb
117
- - gemfiles/rails3.2.gemfile
118
- - gemfiles/rails4.0.gemfile
119
- - gemfiles/rails4.1.gemfile
120
- - gemfiles/rails4.2.gemfile
118
+ - gemfiles/rails5.1.7.gemfile
119
+ - gemfiles/rails_5.1.7.gemfile
121
120
  - lib/active_mailer.rb
122
121
  - lib/active_mailer/engine.rb
123
122
  - lib/active_mailer/version.rb
@@ -127,20 +126,21 @@ files:
127
126
  - lib/generators/active_mailer/migration/templates/migration.rb
128
127
  - script/setup
129
128
  - test/active_mailer_test.rb
130
- - test/fixtures/dummy/.gitignore
131
- - test/fixtures/dummy/app/models/invitation_email.rb
132
- - test/fixtures/dummy/app/views/active_mailer/base/default_action_mailer/invitation_email.html.erb
133
- - test/fixtures/dummy/app/views/layouts/application.html.erb
134
- - test/fixtures/dummy/app/views/layouts/email.html.erb
135
- - test/fixtures/dummy/application.rb
136
- - test/fixtures/dummy/config/database.yml
137
- - test/fixtures/dummy/db/migrate/20130220200227_create_invitation_emails.rb
138
- - test/fixtures/dummy/db/migrate/20130220212407_create_active_mailer_tables.rb
129
+ - test/fixtures/rails_5.1.7/.gitignore
130
+ - test/fixtures/rails_5.1.7/app/assets/config/manifest.js
131
+ - test/fixtures/rails_5.1.7/app/models/invitation_email.rb
132
+ - test/fixtures/rails_5.1.7/app/views/active_mailer/base/default_action_mailer/invitation_email.html.erb
133
+ - test/fixtures/rails_5.1.7/app/views/layouts/application.html.erb
134
+ - test/fixtures/rails_5.1.7/app/views/layouts/email.html.erb
135
+ - test/fixtures/rails_5.1.7/application.rb
136
+ - test/fixtures/rails_5.1.7/config/database.yml
137
+ - test/fixtures/rails_5.1.7/db/migrate/20130220200227_create_invitation_emails.rb
138
+ - test/fixtures/rails_5.1.7/db/migrate/20130220212407_create_active_mailer_tables.rb
139
139
  - test/test_helper.rb
140
140
  homepage: https://github.com/expectedbehavior/active_mailer
141
141
  licenses: []
142
142
  metadata: {}
143
- post_install_message:
143
+ post_install_message:
144
144
  rdoc_options: []
145
145
  require_paths:
146
146
  - lib
@@ -155,9 +155,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  - !ruby/object:Gem::Version
156
156
  version: 1.3.6
157
157
  requirements: []
158
- rubyforge_project:
159
- rubygems_version: 2.4.8
160
- signing_key:
158
+ rubygems_version: 3.1.2
159
+ signing_key:
161
160
  specification_version: 4
162
161
  summary: Adds model-level validation to emails.
163
162
  test_files: []
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "~> 3.2.21"
6
- gem "test-unit", "~> 3.0"
7
-
8
- gemspec :path => "../"
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "~> 4.2.0"
6
-
7
- gemspec :path => "../"