email_spec 2.2.0 → 2.3.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.
- checksums.yaml +5 -5
 - data/Changelog.md +18 -0
 - data/README.md +14 -2
 - data/features/step_definitions/app_steps.rb +4 -4
 - data/lib/email_spec/deliveries.rb +12 -37
 - data/lib/email_spec/extractors.rb +45 -0
 - data/lib/email_spec/mail_ext.rb +2 -2
 - data/lib/email_spec/matchers.rb +25 -5
 - data/lib/email_spec/version.rb +3 -1
 - data/spec/email_spec/mail_ext_spec.rb +8 -0
 - data/spec/email_spec/matchers_spec.rb +113 -1
 - metadata +15 -28
 - data/examples/rails4_root/Gemfile.lock +0 -199
 - data/examples/rails4_root/db/test.sqlite3 +0 -0
 - data/examples/rails4_root/log/development.log +0 -0
 - data/examples/rails4_root/log/test.log +0 -1498
 - data/examples/sinatra_root/Gemfile.lock +0 -107
 
| 
         @@ -1,199 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            PATH
         
     | 
| 
       2 
     | 
    
         
            -
              remote: ../..
         
     | 
| 
       3 
     | 
    
         
            -
              specs:
         
     | 
| 
       4 
     | 
    
         
            -
                email_spec (2.1.2)
         
     | 
| 
       5 
     | 
    
         
            -
                  htmlentities (~> 4.3.3)
         
     | 
| 
       6 
     | 
    
         
            -
                  launchy (~> 2.1)
         
     | 
| 
       7 
     | 
    
         
            -
                  mail (~> 2.7)
         
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
     | 
    
         
            -
            GEM
         
     | 
| 
       10 
     | 
    
         
            -
              remote: http://rubygems.org/
         
     | 
| 
       11 
     | 
    
         
            -
              specs:
         
     | 
| 
       12 
     | 
    
         
            -
                actionmailer (4.2.8)
         
     | 
| 
       13 
     | 
    
         
            -
                  actionpack (= 4.2.8)
         
     | 
| 
       14 
     | 
    
         
            -
                  actionview (= 4.2.8)
         
     | 
| 
       15 
     | 
    
         
            -
                  activejob (= 4.2.8)
         
     | 
| 
       16 
     | 
    
         
            -
                  mail (~> 2.5, >= 2.5.4)
         
     | 
| 
       17 
     | 
    
         
            -
                  rails-dom-testing (~> 1.0, >= 1.0.5)
         
     | 
| 
       18 
     | 
    
         
            -
                actionpack (4.2.8)
         
     | 
| 
       19 
     | 
    
         
            -
                  actionview (= 4.2.8)
         
     | 
| 
       20 
     | 
    
         
            -
                  activesupport (= 4.2.8)
         
     | 
| 
       21 
     | 
    
         
            -
                  rack (~> 1.6)
         
     | 
| 
       22 
     | 
    
         
            -
                  rack-test (~> 0.6.2)
         
     | 
| 
       23 
     | 
    
         
            -
                  rails-dom-testing (~> 1.0, >= 1.0.5)
         
     | 
| 
       24 
     | 
    
         
            -
                  rails-html-sanitizer (~> 1.0, >= 1.0.2)
         
     | 
| 
       25 
     | 
    
         
            -
                actionview (4.2.8)
         
     | 
| 
       26 
     | 
    
         
            -
                  activesupport (= 4.2.8)
         
     | 
| 
       27 
     | 
    
         
            -
                  builder (~> 3.1)
         
     | 
| 
       28 
     | 
    
         
            -
                  erubis (~> 2.7.0)
         
     | 
| 
       29 
     | 
    
         
            -
                  rails-dom-testing (~> 1.0, >= 1.0.5)
         
     | 
| 
       30 
     | 
    
         
            -
                  rails-html-sanitizer (~> 1.0, >= 1.0.3)
         
     | 
| 
       31 
     | 
    
         
            -
                activejob (4.2.8)
         
     | 
| 
       32 
     | 
    
         
            -
                  activesupport (= 4.2.8)
         
     | 
| 
       33 
     | 
    
         
            -
                  globalid (>= 0.3.0)
         
     | 
| 
       34 
     | 
    
         
            -
                activemodel (4.2.8)
         
     | 
| 
       35 
     | 
    
         
            -
                  activesupport (= 4.2.8)
         
     | 
| 
       36 
     | 
    
         
            -
                  builder (~> 3.1)
         
     | 
| 
       37 
     | 
    
         
            -
                activerecord (4.2.8)
         
     | 
| 
       38 
     | 
    
         
            -
                  activemodel (= 4.2.8)
         
     | 
| 
       39 
     | 
    
         
            -
                  activesupport (= 4.2.8)
         
     | 
| 
       40 
     | 
    
         
            -
                  arel (~> 6.0)
         
     | 
| 
       41 
     | 
    
         
            -
                activesupport (4.2.8)
         
     | 
| 
       42 
     | 
    
         
            -
                  i18n (~> 0.7)
         
     | 
| 
       43 
     | 
    
         
            -
                  minitest (~> 5.1)
         
     | 
| 
       44 
     | 
    
         
            -
                  thread_safe (~> 0.3, >= 0.3.4)
         
     | 
| 
       45 
     | 
    
         
            -
                  tzinfo (~> 1.1)
         
     | 
| 
       46 
     | 
    
         
            -
                addressable (2.5.2)
         
     | 
| 
       47 
     | 
    
         
            -
                  public_suffix (>= 2.0.2, < 4.0)
         
     | 
| 
       48 
     | 
    
         
            -
                arel (6.0.4)
         
     | 
| 
       49 
     | 
    
         
            -
                backports (3.11.1)
         
     | 
| 
       50 
     | 
    
         
            -
                builder (3.2.3)
         
     | 
| 
       51 
     | 
    
         
            -
                capybara (2.18.0)
         
     | 
| 
       52 
     | 
    
         
            -
                  addressable
         
     | 
| 
       53 
     | 
    
         
            -
                  mini_mime (>= 0.1.3)
         
     | 
| 
       54 
     | 
    
         
            -
                  nokogiri (>= 1.3.3)
         
     | 
| 
       55 
     | 
    
         
            -
                  rack (>= 1.0.0)
         
     | 
| 
       56 
     | 
    
         
            -
                  rack-test (>= 0.5.4)
         
     | 
| 
       57 
     | 
    
         
            -
                  xpath (>= 2.0, < 4.0)
         
     | 
| 
       58 
     | 
    
         
            -
                concurrent-ruby (1.0.5)
         
     | 
| 
       59 
     | 
    
         
            -
                crass (1.0.3)
         
     | 
| 
       60 
     | 
    
         
            -
                cucumber (3.1.0)
         
     | 
| 
       61 
     | 
    
         
            -
                  builder (>= 2.1.2)
         
     | 
| 
       62 
     | 
    
         
            -
                  cucumber-core (~> 3.1.0)
         
     | 
| 
       63 
     | 
    
         
            -
                  cucumber-expressions (~> 5.0.4)
         
     | 
| 
       64 
     | 
    
         
            -
                  cucumber-wire (~> 0.0.1)
         
     | 
| 
       65 
     | 
    
         
            -
                  diff-lcs (~> 1.3)
         
     | 
| 
       66 
     | 
    
         
            -
                  gherkin (~> 5.0)
         
     | 
| 
       67 
     | 
    
         
            -
                  multi_json (>= 1.7.5, < 2.0)
         
     | 
| 
       68 
     | 
    
         
            -
                  multi_test (>= 0.1.2)
         
     | 
| 
       69 
     | 
    
         
            -
                cucumber-core (3.1.0)
         
     | 
| 
       70 
     | 
    
         
            -
                  backports (>= 3.8.0)
         
     | 
| 
       71 
     | 
    
         
            -
                  cucumber-tag_expressions (~> 1.1.0)
         
     | 
| 
       72 
     | 
    
         
            -
                  gherkin (>= 5.0.0)
         
     | 
| 
       73 
     | 
    
         
            -
                cucumber-expressions (5.0.13)
         
     | 
| 
       74 
     | 
    
         
            -
                cucumber-rails (1.5.0)
         
     | 
| 
       75 
     | 
    
         
            -
                  capybara (>= 1.1.2, < 3)
         
     | 
| 
       76 
     | 
    
         
            -
                  cucumber (>= 1.3.8, < 4)
         
     | 
| 
       77 
     | 
    
         
            -
                  mime-types (>= 1.17, < 4)
         
     | 
| 
       78 
     | 
    
         
            -
                  nokogiri (~> 1.5)
         
     | 
| 
       79 
     | 
    
         
            -
                  railties (>= 4, < 5.2)
         
     | 
| 
       80 
     | 
    
         
            -
                cucumber-tag_expressions (1.1.1)
         
     | 
| 
       81 
     | 
    
         
            -
                cucumber-wire (0.0.1)
         
     | 
| 
       82 
     | 
    
         
            -
                database_cleaner (1.6.2)
         
     | 
| 
       83 
     | 
    
         
            -
                delayed_job (4.0.6)
         
     | 
| 
       84 
     | 
    
         
            -
                  activesupport (>= 3.0, < 5.0)
         
     | 
| 
       85 
     | 
    
         
            -
                delayed_job_active_record (4.1.2)
         
     | 
| 
       86 
     | 
    
         
            -
                  activerecord (>= 3.0, < 5.2)
         
     | 
| 
       87 
     | 
    
         
            -
                  delayed_job (>= 3.0, < 5)
         
     | 
| 
       88 
     | 
    
         
            -
                diff-lcs (1.3)
         
     | 
| 
       89 
     | 
    
         
            -
                erubis (2.7.0)
         
     | 
| 
       90 
     | 
    
         
            -
                gherkin (5.0.0)
         
     | 
| 
       91 
     | 
    
         
            -
                globalid (0.4.1)
         
     | 
| 
       92 
     | 
    
         
            -
                  activesupport (>= 4.2.0)
         
     | 
| 
       93 
     | 
    
         
            -
                htmlentities (4.3.4)
         
     | 
| 
       94 
     | 
    
         
            -
                i18n (0.9.5)
         
     | 
| 
       95 
     | 
    
         
            -
                  concurrent-ruby (~> 1.0)
         
     | 
| 
       96 
     | 
    
         
            -
                launchy (2.4.3)
         
     | 
| 
       97 
     | 
    
         
            -
                  addressable (~> 2.3)
         
     | 
| 
       98 
     | 
    
         
            -
                loofah (2.2.2)
         
     | 
| 
       99 
     | 
    
         
            -
                  crass (~> 1.0.2)
         
     | 
| 
       100 
     | 
    
         
            -
                  nokogiri (>= 1.5.9)
         
     | 
| 
       101 
     | 
    
         
            -
                mail (2.7.0)
         
     | 
| 
       102 
     | 
    
         
            -
                  mini_mime (>= 0.1.1)
         
     | 
| 
       103 
     | 
    
         
            -
                mime-types (3.1)
         
     | 
| 
       104 
     | 
    
         
            -
                  mime-types-data (~> 3.2015)
         
     | 
| 
       105 
     | 
    
         
            -
                mime-types-data (3.2016.0521)
         
     | 
| 
       106 
     | 
    
         
            -
                mimetype-fu (0.1.2)
         
     | 
| 
       107 
     | 
    
         
            -
                mini_mime (1.0.0)
         
     | 
| 
       108 
     | 
    
         
            -
                mini_portile2 (2.3.0)
         
     | 
| 
       109 
     | 
    
         
            -
                minitest (5.11.3)
         
     | 
| 
       110 
     | 
    
         
            -
                minitest-matchers (1.4.1)
         
     | 
| 
       111 
     | 
    
         
            -
                  minitest (~> 5.0)
         
     | 
| 
       112 
     | 
    
         
            -
                minitest-rails (2.2.1)
         
     | 
| 
       113 
     | 
    
         
            -
                  minitest (~> 5.7)
         
     | 
| 
       114 
     | 
    
         
            -
                  railties (~> 4.1)
         
     | 
| 
       115 
     | 
    
         
            -
                multi_json (1.13.1)
         
     | 
| 
       116 
     | 
    
         
            -
                multi_test (0.1.2)
         
     | 
| 
       117 
     | 
    
         
            -
                nokogiri (1.8.2)
         
     | 
| 
       118 
     | 
    
         
            -
                  mini_portile2 (~> 2.3.0)
         
     | 
| 
       119 
     | 
    
         
            -
                public_suffix (3.0.2)
         
     | 
| 
       120 
     | 
    
         
            -
                rack (1.6.9)
         
     | 
| 
       121 
     | 
    
         
            -
                rack-test (0.6.3)
         
     | 
| 
       122 
     | 
    
         
            -
                  rack (>= 1.0)
         
     | 
| 
       123 
     | 
    
         
            -
                rails (4.2.8)
         
     | 
| 
       124 
     | 
    
         
            -
                  actionmailer (= 4.2.8)
         
     | 
| 
       125 
     | 
    
         
            -
                  actionpack (= 4.2.8)
         
     | 
| 
       126 
     | 
    
         
            -
                  actionview (= 4.2.8)
         
     | 
| 
       127 
     | 
    
         
            -
                  activejob (= 4.2.8)
         
     | 
| 
       128 
     | 
    
         
            -
                  activemodel (= 4.2.8)
         
     | 
| 
       129 
     | 
    
         
            -
                  activerecord (= 4.2.8)
         
     | 
| 
       130 
     | 
    
         
            -
                  activesupport (= 4.2.8)
         
     | 
| 
       131 
     | 
    
         
            -
                  bundler (>= 1.3.0, < 2.0)
         
     | 
| 
       132 
     | 
    
         
            -
                  railties (= 4.2.8)
         
     | 
| 
       133 
     | 
    
         
            -
                  sprockets-rails
         
     | 
| 
       134 
     | 
    
         
            -
                rails-deprecated_sanitizer (1.0.3)
         
     | 
| 
       135 
     | 
    
         
            -
                  activesupport (>= 4.2.0.alpha)
         
     | 
| 
       136 
     | 
    
         
            -
                rails-dom-testing (1.0.9)
         
     | 
| 
       137 
     | 
    
         
            -
                  activesupport (>= 4.2.0, < 5.0)
         
     | 
| 
       138 
     | 
    
         
            -
                  nokogiri (~> 1.6)
         
     | 
| 
       139 
     | 
    
         
            -
                  rails-deprecated_sanitizer (>= 1.0.1)
         
     | 
| 
       140 
     | 
    
         
            -
                rails-html-sanitizer (1.0.4)
         
     | 
| 
       141 
     | 
    
         
            -
                  loofah (~> 2.2, >= 2.2.2)
         
     | 
| 
       142 
     | 
    
         
            -
                railties (4.2.8)
         
     | 
| 
       143 
     | 
    
         
            -
                  actionpack (= 4.2.8)
         
     | 
| 
       144 
     | 
    
         
            -
                  activesupport (= 4.2.8)
         
     | 
| 
       145 
     | 
    
         
            -
                  rake (>= 0.8.7)
         
     | 
| 
       146 
     | 
    
         
            -
                  thor (>= 0.18.1, < 2.0)
         
     | 
| 
       147 
     | 
    
         
            -
                rake (10.3.2)
         
     | 
| 
       148 
     | 
    
         
            -
                rspec-core (3.7.1)
         
     | 
| 
       149 
     | 
    
         
            -
                  rspec-support (~> 3.7.0)
         
     | 
| 
       150 
     | 
    
         
            -
                rspec-expectations (3.7.0)
         
     | 
| 
       151 
     | 
    
         
            -
                  diff-lcs (>= 1.2.0, < 2.0)
         
     | 
| 
       152 
     | 
    
         
            -
                  rspec-support (~> 3.7.0)
         
     | 
| 
       153 
     | 
    
         
            -
                rspec-mocks (3.7.0)
         
     | 
| 
       154 
     | 
    
         
            -
                  diff-lcs (>= 1.2.0, < 2.0)
         
     | 
| 
       155 
     | 
    
         
            -
                  rspec-support (~> 3.7.0)
         
     | 
| 
       156 
     | 
    
         
            -
                rspec-rails (3.7.2)
         
     | 
| 
       157 
     | 
    
         
            -
                  actionpack (>= 3.0)
         
     | 
| 
       158 
     | 
    
         
            -
                  activesupport (>= 3.0)
         
     | 
| 
       159 
     | 
    
         
            -
                  railties (>= 3.0)
         
     | 
| 
       160 
     | 
    
         
            -
                  rspec-core (~> 3.7.0)
         
     | 
| 
       161 
     | 
    
         
            -
                  rspec-expectations (~> 3.7.0)
         
     | 
| 
       162 
     | 
    
         
            -
                  rspec-mocks (~> 3.7.0)
         
     | 
| 
       163 
     | 
    
         
            -
                  rspec-support (~> 3.7.0)
         
     | 
| 
       164 
     | 
    
         
            -
                rspec-support (3.7.1)
         
     | 
| 
       165 
     | 
    
         
            -
                sprockets (3.7.1)
         
     | 
| 
       166 
     | 
    
         
            -
                  concurrent-ruby (~> 1.0)
         
     | 
| 
       167 
     | 
    
         
            -
                  rack (> 1, < 3)
         
     | 
| 
       168 
     | 
    
         
            -
                sprockets-rails (3.2.1)
         
     | 
| 
       169 
     | 
    
         
            -
                  actionpack (>= 4.0)
         
     | 
| 
       170 
     | 
    
         
            -
                  activesupport (>= 4.0)
         
     | 
| 
       171 
     | 
    
         
            -
                  sprockets (>= 3.0.0)
         
     | 
| 
       172 
     | 
    
         
            -
                sqlite3 (1.3.13)
         
     | 
| 
       173 
     | 
    
         
            -
                thor (0.20.0)
         
     | 
| 
       174 
     | 
    
         
            -
                thread_safe (0.3.6)
         
     | 
| 
       175 
     | 
    
         
            -
                tzinfo (1.2.5)
         
     | 
| 
       176 
     | 
    
         
            -
                  thread_safe (~> 0.1)
         
     | 
| 
       177 
     | 
    
         
            -
                xpath (3.0.0)
         
     | 
| 
       178 
     | 
    
         
            -
                  nokogiri (~> 1.8)
         
     | 
| 
       179 
     | 
    
         
            -
             
     | 
| 
       180 
     | 
    
         
            -
            PLATFORMS
         
     | 
| 
       181 
     | 
    
         
            -
              ruby
         
     | 
| 
       182 
     | 
    
         
            -
             
     | 
| 
       183 
     | 
    
         
            -
            DEPENDENCIES
         
     | 
| 
       184 
     | 
    
         
            -
              capybara
         
     | 
| 
       185 
     | 
    
         
            -
              cucumber-rails
         
     | 
| 
       186 
     | 
    
         
            -
              database_cleaner
         
     | 
| 
       187 
     | 
    
         
            -
              delayed_job (~> 4.0.6)
         
     | 
| 
       188 
     | 
    
         
            -
              delayed_job_active_record
         
     | 
| 
       189 
     | 
    
         
            -
              email_spec!
         
     | 
| 
       190 
     | 
    
         
            -
              mimetype-fu
         
     | 
| 
       191 
     | 
    
         
            -
              minitest-matchers
         
     | 
| 
       192 
     | 
    
         
            -
              minitest-rails
         
     | 
| 
       193 
     | 
    
         
            -
              rails (= 4.2.8)
         
     | 
| 
       194 
     | 
    
         
            -
              rake (~> 10.3.2)
         
     | 
| 
       195 
     | 
    
         
            -
              rspec-rails
         
     | 
| 
       196 
     | 
    
         
            -
              sqlite3
         
     | 
| 
       197 
     | 
    
         
            -
             
     | 
| 
       198 
     | 
    
         
            -
            BUNDLED WITH
         
     | 
| 
       199 
     | 
    
         
            -
               1.16.1
         
     | 
| 
         Binary file 
     | 
| 
         
            File without changes
         
     |