sanitize_email 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,10 @@
1
+ Version 1.0.4 - SEP.10.2012
2
+ * Removes facets dependency, upgrades to rspec v2.11 by Peter Boling
3
+ * REEK refactoring by Peter Boling
4
+ * Improve handling of mal-formed calls to (un)sanitary (raises error) by Peter Boling
5
+ * code cleanup by Peter Boling
6
+ * Put some examples back in the README, until I improve and link to the wiki. :/
7
+
1
8
  Version 1.0.3 - AUG.12.2012
2
9
  - Accidentally broke spec suite with 1.0.2 - fixed
3
10
  - Expanded spec suite
@@ -1,8 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sanitize_email (1.0.2)
5
- facets (> 0)
4
+ sanitize_email (1.0.3)
6
5
 
7
6
  GEM
8
7
  remote: http://rubygems.org/
@@ -39,15 +38,8 @@ GEM
39
38
  builder (3.0.0)
40
39
  diff-lcs (1.1.3)
41
40
  erubis (2.7.0)
42
- facets (2.9.3)
43
- git (1.2.5)
44
41
  hike (1.2.1)
45
42
  i18n (0.6.0)
46
- jeweler (1.8.4)
47
- bundler (~> 1.0)
48
- git (>= 1.2.5)
49
- rake
50
- rdoc
51
43
  journey (1.0.4)
52
44
  json (1.7.3)
53
45
  launchy (2.1.0)
@@ -95,14 +87,14 @@ GEM
95
87
  sexp_processor (~> 3.0)
96
88
  roodi (2.1.0)
97
89
  ruby_parser
98
- rspec (2.10.0)
99
- rspec-core (~> 2.10.0)
100
- rspec-expectations (~> 2.10.0)
101
- rspec-mocks (~> 2.10.0)
102
- rspec-core (2.10.1)
103
- rspec-expectations (2.10.0)
90
+ rspec (2.11.0)
91
+ rspec-core (~> 2.11.0)
92
+ rspec-expectations (~> 2.11.0)
93
+ rspec-mocks (~> 2.11.0)
94
+ rspec-core (2.11.1)
95
+ rspec-expectations (2.11.2)
104
96
  diff-lcs (~> 1.1.3)
105
- rspec-mocks (2.10.1)
97
+ rspec-mocks (2.11.2)
106
98
  ruby2ruby (1.2.5)
107
99
  ruby_parser (~> 2.0)
108
100
  sexp_processor (~> 3.0)
@@ -125,13 +117,13 @@ PLATFORMS
125
117
 
126
118
  DEPENDENCIES
127
119
  actionmailer (> 3)
128
- jeweler
129
120
  launchy
130
121
  letter_opener
131
122
  mail
132
123
  rails (> 3)
124
+ rake
133
125
  rdoc (>= 3.12)
134
126
  reek (>= 1.2.8)
135
127
  roodi (>= 2.1.0)
136
- rspec
128
+ rspec (>= 2.11)
137
129
  sanitize_email!
@@ -9,7 +9,7 @@ It currently solves five (3!) common problems in ruby web applications that use
9
9
  === #1 Working Locally with Production Data
10
10
 
11
11
  * I have a production site with live data.
12
- * I dump the live data and securely transfer it to another machine (rync -e ssh), and import it using a few rake tasks here: http://github.com/pboling/sir-du-bob
12
+ * I dump the live data and securely transfer it to another machine (rync -e ssh), and import it using a {few rake tasks}[http://github.com/pboling/sir-du-bob]
13
13
  * On this separate machine (staging, or development) I run tests, and test various features which often send out email (registration/signup, order placement, etc.)
14
14
  * I usually want the emails to get sent from these non-production environments so I can verify what they look like when sent, but I don't ever want to risk them getting sent to addresses that are not mine.
15
15
 
@@ -30,7 +30,7 @@ If you install this gem on a production server (which I don't always do), you ca
30
30
  Customize and add to an initializer:
31
31
 
32
32
  SanitizeEmail::Config.configure do |config|
33
- config[:sanitized_recipients] = 'to@sanitize_email.org'
33
+ config[:sanitized_to] = 'to@sanitize_email.org'
34
34
  config[:sanitized_cc] = 'cc@sanitize_email.org'
35
35
  config[:sanitized_bcc] = 'bcc@sanitize_email.org'
36
36
  # sanitize emails from development and test, or set whatever logic should turn sanitize_email on and off here:
@@ -49,13 +49,38 @@ To override the environment based switch use force_sanitize, which is normally n
49
49
 
50
50
  SanitizeEmail.force_sanitize = true
51
51
 
52
+ There are also two methods that take a block and turn SanitizeEmail on or off:
53
+
54
+ Regardless of the Config settings of SanitizeEmail you can do a local override to force unsanitary email in any environment.
55
+
56
+ SanitizeEmail.unsanitary do
57
+ Mail.deliver do
58
+ from 'from@example.org'
59
+ to 'to@example.org' # Will actually be sent to the specified address, not sanitized
60
+ reply_to 'reply_to@example.org'
61
+ subject 'subject'
62
+ end
63
+ end
64
+
65
+ Regardless of the Config settings of SanitizeEmail you can do a local override to send sanitary email in any environment.
66
+ You have access to all the same configuration options in the parameter hash as you can set in the actual
67
+ SanitizeEmail.configure block.
68
+
69
+ SanitizeEmail.sanitary({:sanitized_to => 'boo@example.com'}) do # these config options are merged with the globals
70
+ Mail.deliver do
71
+ from 'from@example.org'
72
+ to 'to@example.org' # Will actually be sent to the override addresses, in this case: boo@example.com
73
+ reply_to 'reply_to@example.org'
74
+ subject 'subject'
75
+ end
76
+ end
77
+
52
78
  == Deprecations
53
79
 
54
80
  Sometimes things get deprecated (meaning they still work, but are noisy about it). If this happens to you, and you like your head in the sand, call this number:
55
81
 
56
82
  SanitizeEmail::Deprecation.deprecate_in_silence = true
57
83
 
58
-
59
84
  == Authors
60
85
 
61
86
  Peter Boling is the original author of the code, and current maintainer of both the rails 2 and rails 3 development tracks.
@@ -66,11 +91,14 @@ John Trupiano did the initial gemification and some refactoring.
66
91
  George Anderson's work / improvements have been pulled in, along with several other contributors, which can be seen in the Network view on github. Thanks!
67
92
 
68
93
  == References
94
+
69
95
  * {Source Code}[http://github.com/pboling/sanitize_email]
70
96
  * {Gem Release Announcement}[http://blog.smartlogicsolutions.com/2009/04/25/reintroducing-sanitize_email-work-with-production-email-without-fear/]
71
97
  * {Peter's Original Writeup}[http://galtzo.blogspot.com/2008/11/sanitize-email-never-worry-about.html]
72
98
  * {Using sanitize_email to Preview HTML Emails Locally}[http://blog.smartlogicsolutions.com/2009/04/30/using-sanitize-email-to-preview-html-emails-locally/]
73
99
 
74
- Copyright (c) 2008-2012 {Peter H. Boling}[http://www.peterboling.com/about.html] of {9thBit LLC}[http://www.peterboling.com/]
75
- Copyright (c) 2009 {John Trupiano}[http://smartlogicsolutions.com/wiki/John_Trupiano] of {SmartLogic Solutions, LLC}[http://www.smartlogicsolutions.com]
76
- Released under the MIT license
100
+ == Legal Stuff
101
+
102
+ * Copyright (c) 2008-2012 {Peter H. Boling}[http://www.peterboling.com/about.html] of {9thBit LLC}[http://www.peterboling.com/]
103
+ * Copyright (c) 2009 {John Trupiano}[http://smartlogicsolutions.com/wiki/John_Trupiano] of {SmartLogic Solutions, LLC}[http://www.smartlogicsolutions.com]
104
+ * Released under the MIT license
data/REEK ADDED
@@ -0,0 +1,37 @@
1
+ lib/sanitize_email.rb -- 1 warning:
2
+ SanitizeEmail#self.sanitary calls SanitizeEmail::Config.config twice (DuplicateMethodCall)
3
+ lib/sanitize_email/bleach.rb -- 14 warnings:
4
+ SanitizeEmail::Bleach has no descriptive comment (IrresponsibleModule)
5
+ SanitizeEmail::Bleach#activate? calls SanitizeEmail.activation_proc twice (DuplicateMethodCall)
6
+ SanitizeEmail::Bleach#activate? doesn't depend on instance state (UtilityFunction)
7
+ SanitizeEmail::Bleach#delivering_email calls message.to twice (DuplicateMethodCall)
8
+ SanitizeEmail::Bleach#inject_user_names contains iterators nested 2 deep (NestedIterators)
9
+ SanitizeEmail::Bleach#inject_user_names doesn't depend on instance state (UtilityFunction)
10
+ SanitizeEmail::Bleach#inject_user_names refers to real_recipient more than self (FeatureEnvy)
11
+ SanitizeEmail::Bleach#override_email has approx 10 statements (TooManyStatements)
12
+ SanitizeEmail::Bleach#subject_override doesn't depend on instance state (UtilityFunction)
13
+ SanitizeEmail::Bleach#subject_override refers to actual_addresses more than self (FeatureEnvy)
14
+ SanitizeEmail::Bleach::MissingTo has no descriptive comment (IrresponsibleModule)
15
+ SanitizeEmail::Bleach::UnknownOverride has no descriptive comment (IrresponsibleModule)
16
+ lib/sanitize_email/config.rb -- 4 warnings:
17
+ SanitizeEmail::Config has no descriptive comment (IrresponsibleModule)
18
+ SanitizeEmail::Config#self.configure calls @config[:force_sanitize] twice (DuplicateMethodCall)
19
+ SanitizeEmail::Config#self.configure calls @config[:sanitized_recipients] twice (DuplicateMethodCall)
20
+ SanitizeEmail::Config#self.configure has approx 7 statements (TooManyStatements)
21
+ lib/sanitize_email/deprecation.rb -- 3 warnings:
22
+ SanitizeEmail::Deprecation declares the class variable @@deprecate_in_silence (ClassVariable)
23
+ SanitizeEmail::Deprecation takes parameters [name, replacement] to 3 methods (DataClump)
24
+ SanitizeEmail::Deprecation#deprecation is controlled by argument replacement (ControlParameter)
25
+ lib/sanitize_email/engine.rb -- 1 warning:
26
+ SanitizeEmail::Engine has no descriptive comment (IrresponsibleModule)
27
+ lib/sanitize_email/railtie.rb -- 1 warning:
28
+ SanitizeEmail::Railtie has no descriptive comment (IrresponsibleModule)
29
+ lib/sanitize_email/rspec_matchers.rb -- 2 warnings:
30
+ SanitizeEmail::RspecMatchers#get_username doesn't depend on instance state (UtilityFunction)
31
+ SanitizeEmail::RspecMatchers#get_username refers to email_message more than self (FeatureEnvy)
32
+ lib/sanitize_email/test_helpers.rb -- 4 warnings:
33
+ SanitizeEmail::TestHelpers takes parameters [mail_or_part, matcher, part] to 3 methods (DataClump)
34
+ SanitizeEmail::TestHelpers#array_matching refers to mail_or_part more than self (FeatureEnvy)
35
+ SanitizeEmail::TestHelpers#string_matching refers to mail_or_part more than self (FeatureEnvy)
36
+ SanitizeEmail::TestHelpers::UnexpectedMailType has no descriptive comment (IrresponsibleModule)
37
+ lib/sanitize_email/version.rb -- 0 warnings
@@ -7,7 +7,10 @@ module SanitizeEmail
7
7
  require 'sanitize_email/config'
8
8
  require 'sanitize_email/bleach'
9
9
 
10
+ class MissingBlockParameter < StandardError; end
11
+
10
12
  # Allow non-rails implementations to use this gem
13
+ # TODO: Prepare this for Rails 4
11
14
  if defined?(Rails) && ::Rails::VERSION::MAJOR >= 3
12
15
  if ::Rails::VERSION::MINOR >= 1
13
16
  require 'sanitize_email/engine'
@@ -41,24 +44,26 @@ module SanitizeEmail
41
44
  SanitizeEmail[:local_environments]
42
45
  end
43
46
 
44
- mattr_reader :force_sanitize
45
- mattr_writer :force_sanitize
46
- self.force_sanitize = nil
47
+ class << self
48
+ attr_accessor :force_sanitize
49
+ end
50
+ @force_sanitize = nil
47
51
 
48
52
  # Regardless of the Config settings of SanitizeEmail you can do a local override to send sanitary email in any environment.
49
53
  # You have access to all the same configuration options in the parameter hash as you can set in the actual
50
54
  # SanitizeEmail.configure block.
51
55
  #
52
- # SanitizeEmail.sanitary(config_options = {}) do
56
+ # SanitizeEmail.sanitary({:sanitized_to => 'boo@example.com'}) do # these config options are merged with the globals
53
57
  # Mail.deliver do
54
58
  # from 'from@example.org'
55
- # to 'to@example.org' # Will actually be sent to the override addresses setup in Config
59
+ # to 'to@example.org' # Will actually be sent to the override addresses, in this case: boo@example.com
56
60
  # reply_to 'reply_to@example.org'
57
61
  # subject 'subject'
58
62
  # end
59
63
  # end
60
64
  #
61
65
  def self.sanitary(config_options = {}, &block)
66
+ raise MissingBlockParameter, "SanitizeEmail.sanitary must be called with a block" unless block_given?
62
67
  janitor({:forcing => true}) do
63
68
  original = SanitizeEmail::Config.config.dup
64
69
  SanitizeEmail::Config.config.merge!(config_options)
@@ -79,13 +84,14 @@ module SanitizeEmail
79
84
  # end
80
85
  #
81
86
  def self.unsanitary &block
87
+ raise MissingBlockParameter, "SanitizeEmail.unsanitary must be called with a block" unless block_given?
82
88
  janitor({:forcing => false}) do
83
89
  yield
84
90
  end
85
91
  end
86
92
 
87
93
  def self.janitor(options, &block)
88
- return false unless block_given?
94
+ raise MissingBlockParameter, "SanitizeEmail.janitor must be called with a block" unless block_given?
89
95
  original = SanitizeEmail.force_sanitize
90
96
  SanitizeEmail.force_sanitize = options[:forcing]
91
97
  yield
@@ -4,10 +4,6 @@
4
4
  module SanitizeEmail
5
5
  class Bleach
6
6
 
7
- mattr_reader :deprecate_in_silence
8
- mattr_writer :deprecate_in_silence
9
- self.deprecate_in_silence = false
10
-
11
7
  class MissingTo < StandardError; end
12
8
  class UnknownOverride < StandardError; end
13
9
 
@@ -56,17 +52,14 @@ module SanitizeEmail
56
52
  def sanitize_engaged?
57
53
 
58
54
  # Has it been forced via the force_sanitize mattr?
59
- forced = !SanitizeEmail.force_sanitize.nil?
60
- #puts "forced: #{SanitizeEmail.force_sanitize.inspect}" if forced
61
- return SanitizeEmail.force_sanitize if forced
55
+ forced = SanitizeEmail.force_sanitize
56
+ return forced unless forced.nil?
62
57
 
63
- # Is this particular instance of Bleach engaged
64
- engaged = !self.engage.nil?
65
- #puts "engaged: #{self.engage.inspect}" if engaged
66
- return self.engage if engaged
58
+ # Is this particular instance of Bleach engaged
59
+ engaged = self.engage
60
+ return engaged unless engaged.nil?
67
61
 
68
62
  # Should we sanitize due to the activation_proc?
69
- #puts "activated: #{self.activate?}"
70
63
  return self.activate?
71
64
 
72
65
  end
@@ -177,7 +170,7 @@ module SanitizeEmail
177
170
  return with_user_names
178
171
  end
179
172
 
180
- end # end Class Hook
173
+ end # end Class Bleach
181
174
  end # end Module SanitizeEmail
182
175
 
183
176
 
@@ -1,10 +1,12 @@
1
- require 'facets/module/mattr' # gives cattr
2
-
3
1
  module SanitizeEmail
4
2
  class Config
5
3
 
6
4
  extend SanitizeEmail::Deprecation
7
5
 
6
+ class << self
7
+ attr_accessor :config
8
+ end
9
+
8
10
  DEFAULTS = {
9
11
  # Specify the BCC addresses for the messages that go out in 'local' environments
10
12
  :sanitized_bcc => nil,
@@ -33,30 +35,27 @@ module SanitizeEmail
33
35
  :activation_proc => Proc.new { false }
34
36
  }
35
37
 
36
- cattr_reader :config
37
- cattr_writer :config
38
-
39
- self.config ||= DEFAULTS
38
+ @config ||= DEFAULTS
40
39
  def self.configure &block
41
- yield @@config
40
+ yield @config
42
41
 
43
42
  # Gracefully handle deprecated config values.
44
43
  # Actual deprecation warnings are thrown in the top SanitizeEmail module thanks to our use of dynamic methods.
45
- if @@config[:local_environments] && defined?(Rails)
46
- @@config[:activation_proc] = Proc.new { SanitizeEmail.local_environments.include?(Rails.env) }
44
+ if @config[:local_environments] && defined?(Rails)
45
+ @config[:activation_proc] = Proc.new { SanitizeEmail.local_environments.include?(Rails.env) }
47
46
  end
48
- if @@config[:sanitized_recipients]
47
+ if @config[:sanitized_recipients]
49
48
  SanitizeEmail.sanitized_recipients # calling it to trigger the deprecation warning.
50
49
  #Won't actually be set with any value,
51
50
  # because we are still inside the configure block.
52
- @@config[:sanitized_to] = @@config[:sanitized_recipients]
51
+ @config[:sanitized_to] = @config[:sanitized_recipients]
53
52
  end
54
- if !@@config[:force_sanitize].nil?
53
+ if !@config[:force_sanitize].nil?
55
54
  replacement = "
56
55
  Please use SanitizeEmail.force_sanitize or SanitizeEmail.sanitary instead.
57
56
  Refer to https://github.com/pboling/sanitize_email/wiki for examples."
58
57
  deprecation("SanitizeEmail::Config.config[:force_sanitize]", replacement)
59
- SanitizeEmail.force_sanitize = @@config[:force_sanitize]
58
+ SanitizeEmail.force_sanitize = @config[:force_sanitize]
60
59
  end
61
60
  end
62
61
 
@@ -1,12 +1,14 @@
1
1
  # See http://www.seejohncode.com/2012/01/09/deprecating-methods-in-ruby/
2
- require 'facets/module/mattr' # gives cattr
2
+ #require 'facets/module/mattr' # gives cattr
3
3
 
4
4
  module SanitizeEmail
5
5
  module Deprecation
6
6
 
7
- mattr_reader :deprecate_in_silence
8
- mattr_writer :deprecate_in_silence
9
- self.deprecate_in_silence = false
7
+ class << self
8
+ attr_accessor :deprecate_in_silence
9
+ end
10
+
11
+ @deprecate_in_silence = false
10
12
 
11
13
  # Define a deprecated alias for a method
12
14
  # @param [Symbol] name - name of method to define
@@ -14,7 +16,7 @@ module SanitizeEmail
14
16
  def deprecated_alias(name, replacement)
15
17
  # Create a wrapped version
16
18
  define_method(name) do |*args, &block|
17
- warn "SanitizeEmail: ##{name} deprecated (please use ##{replacement})" unless @@deprecate_in_silence
19
+ warn "SanitizeEmail: ##{name} deprecated (please use ##{replacement})" unless SanitizeEmail::Deprecation.deprecate_in_silence
18
20
  send replacement, *args, &block
19
21
  end
20
22
  end
@@ -34,7 +36,7 @@ module SanitizeEmail
34
36
  end
35
37
 
36
38
  def deprecation(name, replacement = nil)
37
- unless @@deprecate_in_silence
39
+ unless SanitizeEmail::Deprecation.deprecate_in_silence
38
40
  if replacement
39
41
  warn "SanitizeEmail: ##{name} deprecated#{replacement}"
40
42
  else
@@ -1,5 +1,5 @@
1
1
  #Copyright (c) 2008-12 Peter H. Boling of 9thBit LLC
2
2
  #Released under the MIT license
3
3
  module SanitizeEmail
4
- VERSION = '1.0.3'
4
+ VERSION = '1.0.4'
5
5
  end
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
9
9
  s.authors = ["Peter Boling", "John Trupiano", "George Anderson"]
10
- s.date = "2012-08-08"
10
+ s.date = "2012-08-12"
11
11
  s.summary = "Rails/Sinatra/Mail gem: Test email abilities without ever sending a message to actual live addresses"
12
12
  s.description = "In Rails, Sinatra, 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."
13
13
  s.email = ["peter.boling@gmail.com", "jtrupiano@gmail.com", "george@benevolentcode.com"]
@@ -26,18 +26,18 @@ Gem::Specification.new do |s|
26
26
 
27
27
  # Runtime Dependencies
28
28
  # to replace the cattr_accessor method we lost when removing rails from run time dependencies
29
- s.add_runtime_dependency(%q<facets>, ["> 0"])
29
+ #s.add_runtime_dependency(%q<facets>, ["> 0"])
30
30
 
31
31
  # Development Dependencies
32
32
  s.add_development_dependency(%q<rails>, ["> 3"])
33
33
  s.add_development_dependency(%q<actionmailer>, ["> 3"])
34
- s.add_development_dependency(%q<jeweler>, [">= 0"])
35
34
  s.add_development_dependency(%q<letter_opener>, [">= 0"])
36
35
  s.add_development_dependency(%q<launchy>, [">= 0"])
37
- s.add_development_dependency(%q<rspec>, [">= 0"])
36
+ s.add_development_dependency(%q<rspec>, [">= 2.11"])
38
37
  s.add_development_dependency(%q<mail>, [">= 0"])
39
38
  s.add_development_dependency(%q<rdoc>, [">= 3.12"])
40
39
  s.add_development_dependency(%q<reek>, [">= 1.2.8"])
41
40
  s.add_development_dependency(%q<roodi>, [">= 2.1.0"])
41
+ s.add_development_dependency(%q<rake>, [">= 0"])
42
42
  end
43
43
 
@@ -13,7 +13,7 @@ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
13
13
  RSpec.configure do |config|
14
14
  config.treat_symbols_as_metadata_keys_with_true_values = true
15
15
  config.run_all_when_everything_filtered = true
16
- #config.filter_run :focus
16
+ config.filter_run :focus
17
17
 
18
18
  config.include SanitizeEmail::RspecMatchers
19
19
  end
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: 1.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,24 +11,8 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-08-08 00:00:00.000000000 Z
14
+ date: 2012-08-12 00:00:00.000000000 Z
15
15
  dependencies:
16
- - !ruby/object:Gem::Dependency
17
- name: facets
18
- requirement: !ruby/object:Gem::Requirement
19
- none: false
20
- requirements:
21
- - - ! '>'
22
- - !ruby/object:Gem::Version
23
- version: '0'
24
- type: :runtime
25
- prerelease: false
26
- version_requirements: !ruby/object:Gem::Requirement
27
- none: false
28
- requirements:
29
- - - ! '>'
30
- - !ruby/object:Gem::Version
31
- version: '0'
32
16
  - !ruby/object:Gem::Dependency
33
17
  name: rails
34
18
  requirement: !ruby/object:Gem::Requirement
@@ -61,22 +45,6 @@ dependencies:
61
45
  - - ! '>'
62
46
  - !ruby/object:Gem::Version
63
47
  version: '3'
64
- - !ruby/object:Gem::Dependency
65
- name: jeweler
66
- requirement: !ruby/object:Gem::Requirement
67
- none: false
68
- requirements:
69
- - - ! '>='
70
- - !ruby/object:Gem::Version
71
- version: '0'
72
- type: :development
73
- prerelease: false
74
- version_requirements: !ruby/object:Gem::Requirement
75
- none: false
76
- requirements:
77
- - - ! '>='
78
- - !ruby/object:Gem::Version
79
- version: '0'
80
48
  - !ruby/object:Gem::Dependency
81
49
  name: letter_opener
82
50
  requirement: !ruby/object:Gem::Requirement
@@ -116,7 +84,7 @@ dependencies:
116
84
  requirements:
117
85
  - - ! '>='
118
86
  - !ruby/object:Gem::Version
119
- version: '0'
87
+ version: '2.11'
120
88
  type: :development
121
89
  prerelease: false
122
90
  version_requirements: !ruby/object:Gem::Requirement
@@ -124,7 +92,7 @@ dependencies:
124
92
  requirements:
125
93
  - - ! '>='
126
94
  - !ruby/object:Gem::Version
127
- version: '0'
95
+ version: '2.11'
128
96
  - !ruby/object:Gem::Dependency
129
97
  name: mail
130
98
  requirement: !ruby/object:Gem::Requirement
@@ -189,6 +157,22 @@ dependencies:
189
157
  - - ! '>='
190
158
  - !ruby/object:Gem::Version
191
159
  version: 2.1.0
160
+ - !ruby/object:Gem::Dependency
161
+ name: rake
162
+ requirement: !ruby/object:Gem::Requirement
163
+ none: false
164
+ requirements:
165
+ - - ! '>='
166
+ - !ruby/object:Gem::Version
167
+ version: '0'
168
+ type: :development
169
+ prerelease: false
170
+ version_requirements: !ruby/object:Gem::Requirement
171
+ none: false
172
+ requirements:
173
+ - - ! '>='
174
+ - !ruby/object:Gem::Version
175
+ version: '0'
192
176
  description: ! 'In Rails, Sinatra, or simply the mail gem: Aids in development, testing,
193
177
  qa, and production troubleshooting of email issues without worrying that emails
194
178
  will get sent to actual live addresses.'
@@ -211,6 +195,7 @@ files:
211
195
  - Gemfile.lock
212
196
  - LICENSE
213
197
  - README.rdoc
198
+ - REEK
214
199
  - Rakefile
215
200
  - init.rb
216
201
  - lib/sanitize_email.rb
@@ -254,3 +239,4 @@ summary: ! 'Rails/Sinatra/Mail gem: Test email abilities without ever sending a
254
239
  test_files:
255
240
  - spec/sanitize_email_spec.rb
256
241
  - spec/spec_helper.rb
242
+ has_rdoc: