johnhenry 1.0.8 → 1.0.9
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 +4 -4
 - data/lib/johnhenry/version.rb +1 -1
 - metadata +1 -2
 - data/app/mailers/user_mailer.rb +0 -14
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 696c81707d09d08fcd9cd225a7c2a5ed59664ef5
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 297eb8bc094d9252fe4794b2bd789ff0cc027481
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 88109db3dcffe4ac4e36905f0099aa20da224c1aa287bee173ecb8689cae6fa3b6b780aa45fdc828f3bb836ddb1309c45086a5c687eac49e2fb4ba6d427e3ceb
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 62faf4e13aec79b1ade7de4736dd17e69b0f0222811f022c35723e6195cd792614c09dd9f870ca5fb02e21b7d98fbe74c059ca2fb92bc2d0e3bc418a5fd266d6
         
     | 
    
        data/lib/johnhenry/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: johnhenry
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 1.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.0.9
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Adam Derewecki
         
     | 
| 
         @@ -185,7 +185,6 @@ files: 
     | 
|
| 
       185 
185 
     | 
    
         
             
            - app/controllers/johnhenry/sessions_controller.rb
         
     | 
| 
       186 
186 
     | 
    
         
             
            - app/helpers/johnhenry/application_helper.rb
         
     | 
| 
       187 
187 
     | 
    
         
             
            - app/mailers/john_henry_mailer.rb
         
     | 
| 
       188 
     | 
    
         
            -
            - app/mailers/user_mailer.rb
         
     | 
| 
       189 
188 
     | 
    
         
             
            - app/models/payment.rb
         
     | 
| 
       190 
189 
     | 
    
         
             
            - app/models/user.rb
         
     | 
| 
       191 
190 
     | 
    
         
             
            - app/views/johnhenry/devise/confirmations/new.html.haml
         
     | 
    
        data/app/mailers/user_mailer.rb
    DELETED
    
    | 
         @@ -1,14 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            class JohnHenryMailer < ActionMailer::Base
         
     | 
| 
       2 
     | 
    
         
            -
              default from: 'No Reply <no-reply@example.com>'
         
     | 
| 
       3 
     | 
    
         
            -
              default bcc: ENV['BCC_EMAILS'] if ENV['BCC_EMAILS'].present?
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
              def signup(user)
         
     | 
| 
       6 
     | 
    
         
            -
                @user = user
         
     | 
| 
       7 
     | 
    
         
            -
                @name = @user.email.split('@').first.try(:titleize)
         
     | 
| 
       8 
     | 
    
         
            -
                subject = "Thanks for trying the JohnHenry Rails toolkit"
         
     | 
| 
       9 
     | 
    
         
            -
                subject += ", #{ @name }" unless @name.blank?
         
     | 
| 
       10 
     | 
    
         
            -
                Rails.logger.info "Sending signup notification to #{ user.email }"
         
     | 
| 
       11 
     | 
    
         
            -
                mail to: user.email,
         
     | 
| 
       12 
     | 
    
         
            -
                     subject: subject
         
     | 
| 
       13 
     | 
    
         
            -
              end
         
     | 
| 
       14 
     | 
    
         
            -
            end
         
     |