sanitize_email 2.0.1 → 2.0.2

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
2
  SHA256:
3
- metadata.gz: 01fa948760859a93fec72f7222ef550a8d14fb1366181977d5c951c127b3c5f5
4
- data.tar.gz: 0c39cdac07dad7125f8644e69a10ce019e645f75cfde524f0ef389bb00bc2453
3
+ metadata.gz: 82a7d76730f21c110754deb5dad21214eaee70a24ff7e92c6e284182881da13d
4
+ data.tar.gz: ead74f1cd6c3d6587f850269393856a5bcc2e8aff247bafc9d69108d1eed7271
5
5
  SHA512:
6
- metadata.gz: e8d523a93e0ddb26df9d244b93e4a11256fe8da667b88a08af0fad36da07b3adac86a9b2c82404805cbb532d17718cd3788691e103b903fe88527e510e37278e
7
- data.tar.gz: 5a29e1bb4b70cd51ae401d7d789484a904881ae2431f3296fcc89c8daf7d055d05cc4ed191763aab3a2962cdbd8e34ace6434ed4fdc97f93bfef2ca84a397cc3
6
+ metadata.gz: d2028df00162c856e68736b98ecb54041d2a4db1bc094706f779a27e7747bc82e9fa5acb755f86d8e2ad24ae18ceff88906fde728c2c847a79124be84da9af80
7
+ data.tar.gz: 28ee29a3ff23ff4bdb21ead8d4016e2419bcb00222df00c4d27e42ba43d0096100aab8459607533f8725ae3fc43219efe5c367684e65deed44f4d07e7e4c256d
data/.pryrc ADDED
@@ -0,0 +1,11 @@
1
+ if defined?(PryByebug)
2
+ Pry.commands.alias_command 'c', 'continue'
3
+ Pry.commands.alias_command 's', 'step'
4
+ Pry.commands.alias_command 'n', 'next'
5
+ Pry.commands.alias_command 'trace', 'backtrace'
6
+ end
7
+
8
+ # Hit Enter to repeat last command
9
+ Pry::Commands.command /^$/, "repeat last command" do
10
+ _pry_.run_command Pry.history.to_a.last
11
+ end
@@ -1 +1 @@
1
- ruby-2.5.0
1
+ ruby-2.5.1
@@ -1,6 +1,23 @@
1
+ env:
2
+ global:
3
+ - JRUBY_OPTS="-Xcli.debug=true --debug"
4
+ - CC_TEST_REPORTER_ID=3fe32ef74eebc6c91dbca2e96535898b5535cea7206dbeba157bda69ec3502e3
5
+
6
+ before_script:
7
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
8
+ - chmod +x ./cc-test-reporter
9
+ - ./cc-test-reporter before-build
10
+
11
+ script:
12
+ - bundle exec rspec
13
+
14
+ after_script:
15
+ - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
16
+
1
17
  before_install:
2
18
  - gem update --system
3
19
  - gem install bundler
20
+
4
21
  install:
5
22
  - bundle install
6
23
 
@@ -8,49 +25,47 @@ bundler_args: --no-deployment --jobs 3 --retry 3
8
25
 
9
26
  cache: bundler
10
27
 
11
- env:
12
- global:
13
- - JRUBY_OPTS="-Xcli.debug=true --debug"
14
-
15
28
  language: ruby
16
29
  sudo: false
17
30
 
18
31
  rvm:
19
- - jruby-9.1.16.0
20
- - 2.3.6
21
- - 2.4.3
22
- - 2.5.0
32
+ # latest versions on travis-ci as of 2018.09.04
33
+ - jruby-9.1.9.0
34
+ - ruby-2.3.7
35
+ - ruby-2.4.4
36
+ - ruby-2.5.1
23
37
  - jruby-head
24
38
  - ruby-head
25
- - rbx-3
26
39
 
27
40
  gemfile:
28
- - gemfiles/rails_4_2.gemfile
29
- - gemfiles/rails_5_0.gemfile
30
- - gemfiles/rails_5_1.gemfile
41
+ - gemfiles/rails_4_2.gemfile
42
+ - gemfiles/rails_5_0.gemfile
43
+ - gemfiles/rails_5_1.gemfile
44
+ - gemfiles/rails_5_2.gemfile
31
45
 
32
46
  matrix:
33
47
  allow_failures:
34
48
  - rvm: jruby-head
35
49
  - rvm: ruby-head
36
- - rvm: rbx-3
37
50
  fast_finish: true
38
51
  exclude:
39
- - rvm: jruby-9.1.16.0
40
- gemfile: gemfiles/rails_4_2.gemfile
41
- - rvm: jruby-9.1.16.0
52
+ # ruby-2.3.7 tests on all versions
53
+ # ruby-2.4.4 tests on all versions
54
+ # ruby-2.5.1 tests on all versions
55
+ # jruby-9.1.9.0 only tests on rails 5.1+
56
+ - rvm: jruby-9.1.9.0
42
57
  gemfile: gemfiles/rails_5_0.gemfile
43
- - rvm: 2.5.0
44
- gemfile: gemfiles/rails_4_2.gemfile
58
+ # jruby-head only tests on rails 5.2+
45
59
  - rvm: jruby-head
46
60
  gemfile: gemfiles/rails_4_2.gemfile
47
61
  - rvm: jruby-head
48
62
  gemfile: gemfiles/rails_5_0.gemfile
63
+ - rvm: jruby-head
64
+ gemfile: gemfiles/rails_5_1.gemfile
65
+ # ruby-head only tests on rails 5.2+
49
66
  - rvm: ruby-head
50
67
  gemfile: gemfiles/rails_4_2.gemfile
51
68
  - rvm: ruby-head
52
69
  gemfile: gemfiles/rails_5_0.gemfile
53
- - rvm: rbx-3
54
- gemfile: gemfiles/rails_4_2.gemfile
55
- - rvm: rbx-3
56
- gemfile: gemfiles/rails_5_0.gemfile
70
+ - rvm: ruby-head
71
+ gemfile: gemfiles/rails_5_1.gemfile
data/Appraisals CHANGED
@@ -1,57 +1,29 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- appraise 'rails-3-0' do
4
- gem 'rails', '~> 3.0.0'
5
- gem 'reek', '~> 2.0' # for Ruby < 2.0
6
- gem 'tins', '~> 1.6.0' # for Ruby < 2.0
7
- gem 'json', '~> 1.8.3'
8
- gem 'rake', '~> 11.2.2'
9
- gem 'rest-client', '~> 1.8.0'
10
- end
11
- appraise 'rails-3-1' do
12
- gem 'actionmailer', '~> 3.1.0'
13
- gem 'railties', '~> 3.1.0'
14
- gem 'reek', '~> 2.0' # for Ruby < 2.0
15
- gem 'tins', '~> 1.6.0' # for Ruby < 2.0
16
- gem 'json', '~> 1.8.3'
17
- gem 'rake', '~> 11.2.2'
18
- gem 'rest-client', '~> 1.8.0'
19
- end
20
- appraise 'rails-3-2' do
21
- gem 'actionmailer', '~> 3.2.0'
22
- gem 'railties', '~> 3.2.0'
23
- # reek >= 4.0 requires Ruby 2.1 minimum
24
- gem 'reek', '~>3.11.0'
25
- gem 'json', '~> 1.8.3'
26
- gem 'rake', '~> 11.2.2'
27
- end
28
-
29
- appraise 'rails-4-0' do
30
- gem 'actionmailer', '~> 4.0.0'
31
- gem 'railties', '~> 4.0.0'
32
- # reek >= 4.0 requires Ruby 2.1 minimum
33
- gem 'reek', '~>3.11.0'
34
- gem 'json', '~> 1.8.3'
35
- gem 'rake', '~> 11.2.2'
36
- end
37
- appraise 'rails-4-1' do
38
- gem 'actionmailer', '~> 4.1.0'
39
- gem 'railties', '~> 4.1.0'
40
- # reek >= 4.0 requires Ruby 2.1 minimum
41
- gem 'reek', '~>3.11.0'
42
- gem 'json', '~> 1.8.3'
43
- gem 'rake', '~> 11.2.2'
44
- end
45
3
  appraise 'rails-4-2' do
46
4
  gem 'actionmailer', '~> 4.2.0'
47
5
  gem 'railties', '~> 4.2.0'
48
- gem 'json', '~> 1.8.3'
49
- gem 'rake', '~> 11.2.2'
6
+ gem 'json', '~> 2.0'
7
+ gem 'rake', '~> 11.0'
50
8
  end
51
9
 
52
10
  appraise 'rails-5-0' do
53
11
  gem 'actionmailer', '~> 5.0.0'
54
12
  gem 'railties', '~> 5.0.0'
55
- gem 'json', '~> 2.0.2'
56
- gem 'rake', '~> 11.2.2'
13
+ gem 'json', '~> 2.0'
14
+ gem 'rake', '~> 12.0'
15
+ end
16
+
17
+ appraise 'rails-5-1' do
18
+ gem 'actionmailer', '~> 5.1.0'
19
+ gem 'railties', '~> 5.1.0'
20
+ gem 'json', '~> 2.0'
21
+ gem 'rake', '~> 12.0'
22
+ end
23
+
24
+ appraise 'rails-5-2' do
25
+ gem 'actionmailer', '~> 5.2.0'
26
+ gem 'railties', '~> 5.2.0'
27
+ gem 'json', '~> 2.0'
28
+ gem 'rake', '~> 12.0'
57
29
  end
data/Gemfile CHANGED
@@ -5,12 +5,17 @@ source 'https://rubygems.org'
5
5
  git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
6
 
7
7
  group :test do
8
+ # Travis-CI does not support C-extensions on JRuby
8
9
  ruby_version = Gem::Version.new(RUBY_VERSION)
9
10
  if ruby_version >= Gem::Version.new('2.1')
10
- gem 'rubocop', '~> 0.53.0'
11
- gem 'rubocop-rspec', '~> 1.24.0'
11
+ gem 'rubocop', '~> 0.58.2', platforms: :mri
12
+ gem 'rubocop-rspec', '~> 1.29.1', platforms: :mri
13
+ end
14
+ if ruby_version >= Gem::Version.new('2.0')
15
+ gem 'byebug', platforms: :mri
16
+ gem 'pry', platforms: :mri
17
+ gem 'pry-byebug', platforms: :mri
12
18
  end
13
- gem 'byebug' if ruby_version >= Gem::Version.new('2.0')
14
19
  end
15
20
 
16
21
  # Specify your gem's dependencies in sanitize_email.gemspec
data/README.md CHANGED
@@ -10,14 +10,14 @@ This gem allows you to override your mail delivery settings, globally or in a lo
10
10
  | download rank | [![Total Downloads](https://img.shields.io/gem/rt/sanitize_email.svg)](https://rubygems.org/gems/sanitize_email) |
11
11
  | version | [![Version](https://img.shields.io/gem/v/sanitize_email.png)](https://rubygems.org/gems/sanitize_email) |
12
12
  | dependencies | [![Depfu](https://badges.depfu.com/badges/bba430e8f19a2ba3273fb20d5e8c82d6/count.svg)](https://depfu.com/github/pboling/sanitize_email) |
13
- | code quality | [![Code Quality](https://img.shields.io/codeclimate/github/pboling/sanitize_email.svg)](https://codeclimate.com/github/pboling/sanitize_email) |
14
- | inline documenation | [![Documentation](http://inch-ci.org/github/pboling/sanitize_email.svg)](http://inch-ci.org/github/pboling/sanitize_email) |
15
13
  | continuous integration | [![Build](https://img.shields.io/travis/pboling/sanitize_email.svg)](https://travis-ci.org/pboling/sanitize_email) |
16
- | test coverage | [![Coverage Status](https://coveralls.io/repos/pboling/sanitize_email/badge.svg)](https://coveralls.io/r/pboling/sanitize_email) |
17
- | homepage | [http://www.railsbling.com/tags/sanitize_email/][homepage] |
14
+ | test coverage | [![Test Coverage](https://api.codeclimate.com/v1/badges/65af4948d859903a0372/test_coverage)](https://codeclimate.com/github/pboling/sanitize_email/test_coverage) |
15
+ | code quality | [![Maintainability](https://api.codeclimate.com/v1/badges/65af4948d859903a0372/maintainability)](https://codeclimate.com/github/pboling/sanitize_email/maintainability) |
16
+ | inline documenation | [![Documentation](http://inch-ci.org/github/pboling/sanitize_email.svg)](http://inch-ci.org/github/pboling/sanitize_email) |
17
+ | homepage | [http://www.railsbling.com/tags/sanitize_email/][homepage] |
18
18
  | documentation | [http://rdoc.info/github/pboling/sanitize_email/frames][documentation] |
19
19
  | live chat | [![Join the chat at https://gitter.im/pboling/sanitize_email](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/pboling/sanitize_email?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) |
20
- | Spread ~♡ⓛⓞⓥⓔ♡~ | [AngeList](https://angel.co/peter-boling), [on Coderwall](http://coderwall.com/pboling), [on TopCoder](https://www.topcoder.com/members/pboling/) |
20
+ | Spread ~♡ⓛⓞⓥⓔ♡~ | [🌍 🌎 🌏](https://about.me/peter.boling), [🍚](https://www.crowdrise.com/helprefugeeswithhopefortomorrowliberia/fundraiser/peterboling), [➕](https://plus.google.com/+PeterBoling/posts), [👼](https://angel.co/peter-boling), [🐛](https://www.topcoder.com/members/pboling/), [:shipit:](http://coderwall.com/pboling), [![Tweet Peter](https://img.shields.io/twitter/follow/galtzo.svg?style=social&label=Follow)](http://twitter.com/galtzo) |
21
21
 
22
22
  ## Summary
23
23
 
@@ -322,11 +322,9 @@ See the [Network View](https://github.com/pboling/sanitize_email/network) and th
322
322
 
323
323
  ## How you can help!
324
324
 
325
- Take a look at the `reek` list which is the file called `REEK` and stat fixing things. Once you complete a change, run the tests:
326
-
327
- `bundle exec rake test:all`
325
+ Take a look at the `reek` list which is the file called `REEK` and stat fixing things.
328
326
 
329
- If the tests pass refresh the `reek` list:
327
+ To refresh the `reek` list:
330
328
 
331
329
  `bundle exec reek > REEK`
332
330
 
data/REEK CHANGED
@@ -1,37 +1,2 @@
1
- lib/sanitize_email/bleach.rb -- 1 warning:
2
- [59]:SanitizeEmail::Bleach#sanitize_engaged? performs a nil-check (NilCheck)
3
- lib/sanitize_email/config.rb -- 3 warnings:
4
- [64, 72]:SanitizeEmail::Config#self.configure calls @config[:force_sanitize] 2 times (DuplicateMethodCall)
5
- [58, 62]:SanitizeEmail::Config#self.configure calls @config[:sanitized_recipients] 2 times (DuplicateMethodCall)
6
- [64]:SanitizeEmail::Config#self.configure performs a nil-check (NilCheck)
7
- lib/sanitize_email/deprecation.rb -- 1 warning:
8
- [18, 29, 40]:SanitizeEmail::Deprecation takes parameters [name, replacement] to 3 methods (DataClump)
9
- lib/sanitize_email/mail_header_tools.rb -- 1 warning:
10
- [41, 42]:SanitizeEmail::MailHeaderTools#self.prepend_custom_subject calls message.subject 2 times (DuplicateMethodCall)
11
- lib/sanitize_email/overridden_addresses.rb -- 7 warnings:
12
- [6]:SanitizeEmail::OverriddenAddresses has at least 8 instance variables (TooManyInstanceVariables)
13
- [25, 26, 27, 28, 29]:SanitizeEmail::OverriddenAddresses#initialize calls SanitizeEmail::Config.config 5 times (DuplicateMethodCall)
14
- [109]:SanitizeEmail::OverriddenAddresses#inject_user_names contains iterators nested 2 deep (NestedIterators)
15
- [103]:SanitizeEmail::OverriddenAddresses#inject_user_names doesn't depend on instance state (UtilityFunction)
16
- [105]:SanitizeEmail::OverriddenAddresses#inject_user_names performs a nil-check (NilCheck)
17
- [56]:SanitizeEmail::OverriddenAddresses#override_email has approx 10 statements (TooManyStatements)
18
- [125]:SanitizeEmail::OverriddenAddresses#sanitize_addresses is controlled by argument type (ControlParameter)
19
- lib/sanitize_email/rspec_matchers.rb -- 1 warning:
20
- [35]:SanitizeEmail::RspecMatchers#get_username doesn't depend on instance state (UtilityFunction)
21
- lib/sanitize_email/test_helpers.rb -- 3 warnings:
22
- [11, 15, 28, 33]:SanitizeEmail::TestHelpers takes parameters [mail_or_part, matcher, part] to 4 methods (DataClump)
23
- [29, 29]:SanitizeEmail::TestHelpers#array_matching refers to mail_or_part more than self (FeatureEnvy)
24
- [16, 18, 20]:SanitizeEmail::TestHelpers#string_matching refers to mail_or_part more than self (FeatureEnvy)
25
- lib/sanitize_email.rb -- 1 warning:
26
- [84, 85]:SanitizeEmail#self.sanitary calls SanitizeEmail::Config.config 2 times (DuplicateMethodCall)
27
- spec/sanitize_email_spec.rb -- 9 warnings:
28
- [57, 57]:configure_sanitize_email calls options[:force_sanitize] 2 times (DuplicateMethodCall)
29
- [55, 55]:configure_sanitize_email calls options[:local_environments] 2 times (DuplicateMethodCall)
30
- [56, 56]:configure_sanitize_email calls options[:sanitized_recipients] 2 times (DuplicateMethodCall)
31
- [41]:configure_sanitize_email doesn't depend on instance state (UtilityFunction)
32
- [41]:configure_sanitize_email has approx 15 statements (TooManyStatements)
33
- [57]:configure_sanitize_email performs a nil-check (NilCheck)
34
- [68]:funky_config contains iterators nested 2 deep (NestedIterators)
35
- [62]:funky_config doesn't depend on instance state (UtilityFunction)
36
- [62]:funky_config has approx 10 statements (TooManyStatements)
37
- 27 total warnings
1
+ bundler: command not found: reek
2
+ Install missing gem executables with `bundle install`
@@ -1,12 +1,17 @@
1
- # frozen_string_literal: true
2
-
3
1
  # This file was generated by Appraisal
4
2
 
5
- source 'http://rubygems.org'
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"
6
9
 
7
- gem 'actionmailer', '~> 4.2.0'
8
- gem 'json', '~> 2.1'
9
- gem 'railties', '~> 4.2.0'
10
- gem 'rake', '~> 12.0'
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
11
16
 
12
- gemspec :path => '../'
17
+ gemspec path: "../"
@@ -1,12 +1,17 @@
1
- # frozen_string_literal: true
2
-
3
1
  # This file was generated by Appraisal
4
2
 
5
- source 'http://rubygems.org'
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"
6
9
 
7
- gem 'actionmailer', '~> 5.0.0'
8
- gem 'json', '~> 2.1'
9
- gem 'railties', '~> 5.0.0'
10
- gem 'rake', '~> 12.0'
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
11
16
 
12
- gemspec :path => '../'
17
+ gemspec path: "../"
@@ -1,12 +1,17 @@
1
- # frozen_string_literal: true
2
-
3
1
  # This file was generated by Appraisal
4
2
 
5
- source 'http://rubygems.org'
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"
6
9
 
7
- gem 'actionmailer', '~> 5.1.0'
8
- gem 'json', '~> 2.1'
9
- gem 'railties', '~> 5.1.0'
10
- gem 'rake', '~> 12.0'
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
11
16
 
12
- gemspec :path => '../'
17
+ gemspec path: "../"
@@ -1,12 +1,17 @@
1
- # frozen_string_literal: true
2
-
3
1
  # This file was generated by Appraisal
4
2
 
5
- source 'http://rubygems.org'
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"
6
9
 
7
- gem 'actionmailer', '5.2.0'
8
- gem 'json', '~> 2.1'
9
- gem 'railties', '5.2.0'
10
- gem 'rake', '~> 12.0'
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
11
16
 
12
- gemspec :path => '../'
17
+ gemspec path: "../"
@@ -57,7 +57,7 @@ module SanitizeEmail
57
57
  def self.prepend_custom_subject(message)
58
58
  message.subject = '' unless message.subject
59
59
  custom_subject = SanitizeEmail::MailHeaderTools.custom_subject(message)
60
- +message.subject.prepend(custom_subject)
60
+ message.subject = custom_subject + message.subject
61
61
  end
62
62
 
63
63
  # According to https://github.com/mikel/mail
@@ -4,5 +4,5 @@
4
4
  # Released under the MIT license
5
5
 
6
6
  module SanitizeEmail
7
- VERSION = '2.0.1'
7
+ VERSION = '2.0.2'
8
8
  end
@@ -36,14 +36,14 @@ DESCRIPTION
36
36
 
37
37
  # Development Dependencies
38
38
  s.add_development_dependency('actionmailer', ['>= 3'])
39
- s.add_development_dependency('appraisal')
40
- s.add_development_dependency 'bundler'
41
- s.add_development_dependency('byebug', ['>= 0'])
42
- s.add_development_dependency('coveralls')
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
43
  s.add_development_dependency('mail', ['>= 0'])
44
- s.add_development_dependency('rails', ['>= 3.2', '< 6'])
44
+ s.add_development_dependency('rails', ['>= 3.0', '< 6'])
45
45
  s.add_development_dependency('rake', ['>= 12'])
46
46
  s.add_development_dependency('rdoc', ['>= 3.12'])
47
47
  s.add_development_dependency('rspec', ['>= 3'])
48
- s.add_development_dependency('wwtd')
48
+ s.add_development_dependency('wwtd', '~> 1')
49
49
  end
@@ -5,7 +5,10 @@
5
5
  require 'mail'
6
6
  require 'rails'
7
7
  require 'action_mailer'
8
- require 'byebug'
8
+ if RUBY_ENGINE == 'mri'
9
+ require 'byebug'
10
+ require 'pry-byebug'
11
+ end
9
12
  require 'logger'
10
13
 
11
14
  # For code coverage, must be required before all application / gem / library code.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sanitize_email
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-03-07 00:00:00.000000000 Z
13
+ date: 2018-09-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: actionmailer
@@ -30,56 +30,56 @@ dependencies:
30
30
  name: appraisal
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - ">="
33
+ - - "~>"
34
34
  - !ruby/object:Gem::Version
35
- version: '0'
35
+ version: '1'
36
36
  type: :development
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - ">="
40
+ - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: '0'
42
+ version: '1'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: bundler
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ">="
47
+ - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: '0'
49
+ version: '1'
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - ">="
54
+ - - "~>"
55
55
  - !ruby/object:Gem::Version
56
- version: '0'
56
+ version: '1'
57
57
  - !ruby/object:Gem::Dependency
58
- name: byebug
58
+ name: gem-release
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - ">="
61
+ - - "~>"
62
62
  - !ruby/object:Gem::Version
63
- version: '0'
63
+ version: '2'
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - ">="
68
+ - - "~>"
69
69
  - !ruby/object:Gem::Version
70
- version: '0'
70
+ version: '2'
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: coveralls
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - ">="
75
+ - - "~>"
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - ">="
82
+ - - "~>"
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  - !ruby/object:Gem::Dependency
@@ -102,7 +102,7 @@ dependencies:
102
102
  requirements:
103
103
  - - ">="
104
104
  - !ruby/object:Gem::Version
105
- version: '3.2'
105
+ version: '3.0'
106
106
  - - "<"
107
107
  - !ruby/object:Gem::Version
108
108
  version: '6'
@@ -112,7 +112,7 @@ dependencies:
112
112
  requirements:
113
113
  - - ">="
114
114
  - !ruby/object:Gem::Version
115
- version: '3.2'
115
+ version: '3.0'
116
116
  - - "<"
117
117
  - !ruby/object:Gem::Version
118
118
  version: '6'
@@ -162,16 +162,16 @@ dependencies:
162
162
  name: wwtd
163
163
  requirement: !ruby/object:Gem::Requirement
164
164
  requirements:
165
- - - ">="
165
+ - - "~>"
166
166
  - !ruby/object:Gem::Version
167
- version: '0'
167
+ version: '1'
168
168
  type: :development
169
169
  prerelease: false
170
170
  version_requirements: !ruby/object:Gem::Requirement
171
171
  requirements:
172
- - - ">="
172
+ - - "~>"
173
173
  - !ruby/object:Gem::Version
174
- version: '0'
174
+ version: '1'
175
175
  description: |2
176
176
  Email Condom for your Ruby Server.
177
177
  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.
@@ -186,6 +186,7 @@ extra_rdoc_files:
186
186
  files:
187
187
  - ".coveralls.yml"
188
188
  - ".gitignore"
189
+ - ".pryrc"
189
190
  - ".reek"
190
191
  - ".rspec"
191
192
  - ".rubocop.yml"
@@ -201,7 +202,6 @@ files:
201
202
  - README.md
202
203
  - REEK
203
204
  - Rakefile
204
- - gemfiles/.bundle/config
205
205
  - gemfiles/rails_4_2.gemfile
206
206
  - gemfiles/rails_5_0.gemfile
207
207
  - gemfiles/rails_5_1.gemfile
@@ -242,7 +242,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
242
242
  version: '0'
243
243
  requirements: []
244
244
  rubyforge_project:
245
- rubygems_version: 2.7.6
245
+ rubygems_version: 2.7.7
246
246
  signing_key:
247
247
  specification_version: 4
248
248
  summary: Email Condom for your Ruby Server
@@ -1,3 +0,0 @@
1
- ---
2
- BUNDLE_RETRY: "3"
3
- BUNDLE_JOBS: "3"