sanitize_email 2.0.3 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +3 -0
- data/CHANGELOG.md +82 -12
- data/CODE_OF_CONDUCT.md +84 -0
- data/CONTRIBUTING.md +47 -0
- data/{LICENSE → LICENSE.txt} +1 -1
- data/README.md +371 -58
- data/SECURITY.md +15 -0
- data/lib/sanitize_email/bleach.rb +13 -8
- data/lib/sanitize_email/config.rb +20 -20
- data/lib/sanitize_email/deprecation.rb +6 -6
- data/lib/sanitize_email/engine.rb +1 -1
- data/lib/sanitize_email/mail_ext.rb +2 -0
- data/lib/sanitize_email/mail_header_tools.rb +19 -15
- data/lib/sanitize_email/overridden_addresses.rb +77 -19
- data/lib/sanitize_email/railtie.rb +1 -1
- data/lib/sanitize_email/rspec_matchers.rb +55 -31
- data/lib/sanitize_email/test_helpers.rb +6 -6
- data/lib/sanitize_email/version.rb +4 -2
- data/lib/sanitize_email.rb +28 -18
- data.tar.gz.sig +0 -0
- metadata +70 -90
- metadata.gz.sig +0 -0
- data/.coveralls.yml +0 -1
- data/.gitignore +0 -12
- data/.pryrc +0 -11
- data/.reek +0 -9
- data/.rspec +0 -2
- data/.rubocop.yml +0 -73
- data/.rubocop_rspec.yml +0 -35
- data/.rubocop_todo.yml +0 -21
- data/.ruby-gemset +0 -1
- data/.ruby-version +0 -1
- data/.travis.yml +0 -71
- data/Appraisals +0 -29
- data/Gemfile +0 -22
- data/REEK +0 -2
- data/Rakefile +0 -52
- data/gemfiles/rails_4_2.gemfile +0 -17
- data/gemfiles/rails_5_0.gemfile +0 -17
- data/gemfiles/rails_5_1.gemfile +0 -17
- data/gemfiles/rails_5_2.gemfile +0 -17
- data/init.rb +0 -3
- data/sanitize_email.gemspec +0 -49
- data/spec/sanitize_email_spec.rb +0 -944
- data/spec/spec_helper.rb +0 -28
data/Rakefile
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
# !/usr/bin/env rake
|
5
|
-
require 'rubygems'
|
6
|
-
require 'bundler/setup'
|
7
|
-
require 'bundler/gem_tasks'
|
8
|
-
require 'rake'
|
9
|
-
|
10
|
-
begin
|
11
|
-
require 'wwtd/tasks'
|
12
|
-
require 'rspec/core/rake_task'
|
13
|
-
RSpec::Core::RakeTask.new(:spec)
|
14
|
-
task :default => :spec
|
15
|
-
task :test => :spec
|
16
|
-
rescue LoadError
|
17
|
-
warn 'Failed to load rspec or wwtd'
|
18
|
-
end
|
19
|
-
|
20
|
-
begin
|
21
|
-
require 'reek/rake/task'
|
22
|
-
Reek::Rake::Task.new do |t|
|
23
|
-
t.fail_on_error = true
|
24
|
-
t.verbose = false
|
25
|
-
t.source_files = 'lib/**/*.rb'
|
26
|
-
end
|
27
|
-
rescue LoadError
|
28
|
-
warn 'Failed to load reek'
|
29
|
-
end
|
30
|
-
|
31
|
-
begin
|
32
|
-
require 'roodi'
|
33
|
-
require 'roodi_task'
|
34
|
-
RoodiTask.new do |t|
|
35
|
-
t.verbose = false
|
36
|
-
end
|
37
|
-
rescue LoadError
|
38
|
-
warn 'Failed to load roodi'
|
39
|
-
end
|
40
|
-
|
41
|
-
require File.expand_path('lib/sanitize_email/version', __dir__)
|
42
|
-
require 'rdoc'
|
43
|
-
require 'rdoc/task'
|
44
|
-
RDoc::Task.new do |rdoc|
|
45
|
-
rdoc.rdoc_dir = 'rdoc'
|
46
|
-
rdoc.title = "SanitizeEmail #{SanitizeEmail::VERSION}"
|
47
|
-
rdoc.options << '--line-numbers'
|
48
|
-
rdoc.rdoc_files.include('README*')
|
49
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
50
|
-
end
|
51
|
-
|
52
|
-
Bundler::GemHelper.install_tasks
|
data/gemfiles/rails_4_2.gemfile
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "actionmailer", "~> 4.2.0"
|
6
|
-
gem "railties", "~> 4.2.0"
|
7
|
-
gem "json", "~> 2.0"
|
8
|
-
gem "rake", "~> 11.0"
|
9
|
-
|
10
|
-
group :test do
|
11
|
-
# Travis-CI does not support C-extensions on JRuby
|
12
|
-
gem "rubocop", "~> 0.58.0", platforms: :mri
|
13
|
-
gem "rubocop-rspec", "~> 1.29.0", platforms: :mri
|
14
|
-
gem "byebug", platforms: :mri
|
15
|
-
end
|
16
|
-
|
17
|
-
gemspec path: "../"
|
data/gemfiles/rails_5_0.gemfile
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "actionmailer", "~> 5.0.0"
|
6
|
-
gem "railties", "~> 5.0.0"
|
7
|
-
gem "json", "~> 2.0"
|
8
|
-
gem "rake", "~> 12.0"
|
9
|
-
|
10
|
-
group :test do
|
11
|
-
# Travis-CI does not support C-extensions on JRuby
|
12
|
-
gem "rubocop", "~> 0.58.0", platforms: :mri
|
13
|
-
gem "rubocop-rspec", "~> 1.29.0", platforms: :mri
|
14
|
-
gem "byebug", platforms: :mri
|
15
|
-
end
|
16
|
-
|
17
|
-
gemspec path: "../"
|
data/gemfiles/rails_5_1.gemfile
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "actionmailer", "~> 5.1.0"
|
6
|
-
gem "railties", "~> 5.1.0"
|
7
|
-
gem "json", "~> 2.0"
|
8
|
-
gem "rake", "~> 12.0"
|
9
|
-
|
10
|
-
group :test do
|
11
|
-
# Travis-CI does not support C-extensions on JRuby
|
12
|
-
gem "rubocop", "~> 0.58.0", platforms: :mri
|
13
|
-
gem "rubocop-rspec", "~> 1.29.0", platforms: :mri
|
14
|
-
gem "byebug", platforms: :mri
|
15
|
-
end
|
16
|
-
|
17
|
-
gemspec path: "../"
|
data/gemfiles/rails_5_2.gemfile
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "actionmailer", "~> 5.2.0"
|
6
|
-
gem "railties", "~> 5.2.0"
|
7
|
-
gem "json", "~> 2.0"
|
8
|
-
gem "rake", "~> 12.0"
|
9
|
-
|
10
|
-
group :test do
|
11
|
-
# Travis-CI does not support C-extensions on JRuby
|
12
|
-
gem "rubocop", "~> 0.58.0", platforms: :mri
|
13
|
-
gem "rubocop-rspec", "~> 1.29.0", platforms: :mri
|
14
|
-
gem "byebug", platforms: :mri
|
15
|
-
end
|
16
|
-
|
17
|
-
gemspec path: "../"
|
data/init.rb
DELETED
data/sanitize_email.gemspec
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
require File.expand_path('lib/sanitize_email/version', __dir__)
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = 'sanitize_email'
|
8
|
-
s.version = SanitizeEmail::VERSION
|
9
|
-
|
10
|
-
s.authors = ['Peter Boling', 'John Trupiano', 'George Anderson']
|
11
|
-
s.summary = 'Email Condom for your Ruby Server'
|
12
|
-
s.description = <<~DESCRIPTION
|
13
|
-
Email Condom for your Ruby Server.
|
14
|
-
In Rails, Sinatra, et al, or simply the mail gem: Aids in development, testing, qa, and production troubleshooting of email issues without worrying that emails will get sent to actual live addresses.
|
15
|
-
DESCRIPTION
|
16
|
-
s.email = ['peter.boling@gmail.com']
|
17
|
-
s.extra_rdoc_files = [
|
18
|
-
'CHANGELOG.md',
|
19
|
-
'LICENSE',
|
20
|
-
'README.md',
|
21
|
-
]
|
22
|
-
s.files = `git ls-files`.split($OUTPUT_RECORD_SEPARATOR)
|
23
|
-
s.executables = s.files.grep(%r{^bin/}).map { |f| File.basename(f) }
|
24
|
-
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
25
|
-
s.homepage = 'http://github.com/pboling/sanitize_email'
|
26
|
-
s.licenses = ['MIT']
|
27
|
-
s.require_paths = ['lib']
|
28
|
-
s.platform = Gem::Platform::RUBY
|
29
|
-
s.required_ruby_version = '>= 2.3.0'
|
30
|
-
|
31
|
-
# Runtime Dependencies
|
32
|
-
# A project wanting to use this gem's engine/railtie will be expected to have already loaded the rails/railtie gem.
|
33
|
-
# s.add_dependency "railties", ">= 3.2"
|
34
|
-
# to replace the cattr_accessor method we lost when removing rails from run time dependencies
|
35
|
-
# s.add_runtime_dependency("facets", ["> 0"])
|
36
|
-
|
37
|
-
# Development Dependencies
|
38
|
-
s.add_development_dependency('actionmailer', ['>= 3'])
|
39
|
-
s.add_development_dependency('appraisal', '~> 1')
|
40
|
-
s.add_development_dependency('bundler', '~> 1')
|
41
|
-
s.add_development_dependency('gem-release', '~> 2')
|
42
|
-
s.add_development_dependency('coveralls', '~> 0')
|
43
|
-
s.add_development_dependency('mail', ['>= 0'])
|
44
|
-
s.add_development_dependency('rails', ['>= 3.0', '< 6'])
|
45
|
-
s.add_development_dependency('rake', ['>= 12'])
|
46
|
-
s.add_development_dependency('rdoc', ['>= 3.12'])
|
47
|
-
s.add_development_dependency('rspec', ['>= 3'])
|
48
|
-
s.add_development_dependency('wwtd', '~> 1')
|
49
|
-
end
|