railman 0.6.18 → 0.6.19
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
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: dd0713569d275dfb69b453e175e8eb653a64a6b4
         | 
| 4 | 
            +
              data.tar.gz: 85836f592cadb4d51177a9d48ef45bd5a04efe8e
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 488c7c007574422f61933874e044b3b11d5de2eb8d7cb81b1896bfabe7200156d87f7545a0ca462a122ba4fee5743334b53fac6c088f0811cb57e1c988f312f1
         | 
| 7 | 
            +
              data.tar.gz: c7f1c57781447f2bf762a8e0044690f189a5d995bc8c8b89edd15823eddc6a65906df7e30b52c0c42535f280c3de31a6750886555ba36b95329096b571520910
         | 
    
        data/lib/railman/version.rb
    CHANGED
    
    
    
        data/templates/rails_app/Gemfile
    CHANGED
    
    | @@ -25,6 +25,8 @@ gem 'railman-deployment', '~> 0.2'   # capistrano deployment | |
| 25 25 |  | 
| 26 26 | 
             
            gem 'exception_notification', '4.1.2' # exception notification per email
         | 
| 27 27 |  | 
| 28 | 
            +
            gem 'lograge', '~> 0.4.1'  # one-line-per-request log messages
         | 
| 29 | 
            +
             | 
| 28 30 | 
             
            group :development do
         | 
| 29 31 | 
             
              gem 'annotate', '~> 2.7.1'   # add comments to models with db column information
         | 
| 30 32 | 
             
              gem 'better_errors'   # better error pages in development
         | 
| @@ -0,0 +1 @@ | |
| 1 | 
            +
            # Gemfile.local includes application-specific gems
         | 
| @@ -1,5 +1,5 @@ | |
| 1 | 
            -
            # Logger  | 
| 2 | 
            -
            #  | 
| 1 | 
            +
            # Logger formatter with timestamp and color
         | 
| 2 | 
            +
            # source: https://cbpowell.wordpress.com/2013/08/09/beautiful-logging-for-ruby-on-rails-4
         | 
| 3 3 | 
             
            #
         | 
| 4 4 |  | 
| 5 5 | 
             
            class ActiveSupport::Logger::SimpleFormatter
         | 
| @@ -12,3 +12,12 @@ class ActiveSupport::Logger::SimpleFormatter | |
| 12 12 | 
             
                "\033[0;37m#{formatted_time}\033[0m [\033[#{color}m#{formatted_severity}\033[0m] #{msg.strip} (pid:#{$$})\n"
         | 
| 13 13 | 
             
              end
         | 
| 14 14 | 
             
            end
         | 
| 15 | 
            +
             | 
| 16 | 
            +
            # Use lograge to log single line per request
         | 
| 17 | 
            +
            Rails.application.config.lograge.enabled = true
         | 
| 18 | 
            +
            Rails.application.config.lograge.custom_options = lambda do |event|
         | 
| 19 | 
            +
              exceptions = %w(controller action format id)
         | 
| 20 | 
            +
              {
         | 
| 21 | 
            +
                  params: event.payload[:params].except(*exceptions)
         | 
| 22 | 
            +
              }
         | 
| 23 | 
            +
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: railman
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.6. | 
| 4 | 
            +
              version: 0.6.19
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Igor Jancev
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: exe
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2016- | 
| 11 | 
            +
            date: 2016-12-01 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: bundler
         | 
| @@ -174,6 +174,7 @@ files: | |
| 174 174 | 
             
            - templates/rails_app/Capfile
         | 
| 175 175 | 
             
            - templates/rails_app/Eyefile.tt
         | 
| 176 176 | 
             
            - templates/rails_app/Gemfile
         | 
| 177 | 
            +
            - templates/rails_app/Gemfile.local
         | 
| 177 178 | 
             
            - templates/rails_app/README.md
         | 
| 178 179 | 
             
            - templates/rails_app/Rakefile
         | 
| 179 180 | 
             
            - templates/rails_app/app/assets/images/.keep
         |