better_errors 2.5.0 → 2.5.1
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.
Potentially problematic release.
This version of better_errors might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.travis.yml +9 -2
- data/Gemfile +1 -0
- data/better_errors.gemspec +9 -0
- data/lib/better_errors/error_page.rb +3 -3
- data/lib/better_errors/version.rb +1 -1
- metadata +7 -5
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 949ae4930972ea12a576bf6036ab19ef6f9d876c03a640062f76a0871648181f
         | 
| 4 | 
            +
              data.tar.gz: 36dcea704937546ac60e4d0c9503222fbcd0cb0aa62e6b2b2e35d92b8cbbbc2c
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 5bc9b0ea98c35285ad19a774394b26459c80cda362b3fd940c490c4342e8190550990615c04bad077b5f71adb6e609caf890027baf8832c8de287713dcb0ca90
         | 
| 7 | 
            +
              data.tar.gz: e0f31fa9e3dfa676e35a6838547280df6da65573a14d55da125d0d20dc62edaef8485cd30e2580f50bff26d82d6533167453ee3e941cf7697ac3b6e423994b40
         | 
    
        data/.travis.yml
    CHANGED
    
    | @@ -2,8 +2,15 @@ sudo: false | |
| 2 2 | 
             
            language: ruby
         | 
| 3 3 | 
             
            cache: bundler
         | 
| 4 4 | 
             
            before_install:
         | 
| 5 | 
            -
               | 
| 6 | 
            -
              -  | 
| 5 | 
            +
              # Since Rails 4.2 only supports rubygems < 2, we must install an older version for it.
         | 
| 6 | 
            +
              - >
         | 
| 7 | 
            +
                if [[ "$BUNDLE_GEMFILE" =~ "rails42" ]]; then
         | 
| 8 | 
            +
                  rvm @global do gem install rubygems-update -v '<2'
         | 
| 9 | 
            +
                  update_rubygems
         | 
| 10 | 
            +
                  rvm @global do gem uninstall bundler --force --executables
         | 
| 11 | 
            +
                  rvm @global do gem install bundler -v "~> 1.3"
         | 
| 12 | 
            +
                fi
         | 
| 13 | 
            +
             | 
| 7 14 | 
             
            notifications:
         | 
| 8 15 | 
             
              webhooks:
         | 
| 9 16 | 
             
                # With COVERALLS_PARALLEL, coverage information sent to coveralls will not be processed until
         | 
    
        data/Gemfile
    CHANGED
    
    
    
        data/better_errors.gemspec
    CHANGED
    
    | @@ -25,6 +25,7 @@ Gem::Specification.new do |s| | |
| 25 25 | 
             
              s.add_development_dependency "rspec-its"
         | 
| 26 26 | 
             
              s.add_development_dependency "yard"
         | 
| 27 27 | 
             
              s.add_development_dependency "kramdown"
         | 
| 28 | 
            +
              # simplecov and coveralls must not be included here. See the Gemfiles instead.
         | 
| 28 29 |  | 
| 29 30 | 
             
              s.add_dependency "erubi", ">= 1.0.0"
         | 
| 30 31 | 
             
              s.add_dependency "coderay", ">= 1.0.0"
         | 
| @@ -33,4 +34,12 @@ Gem::Specification.new do |s| | |
| 33 34 | 
             
              # optional dependencies:
         | 
| 34 35 | 
             
              # s.add_dependency "binding_of_caller"
         | 
| 35 36 | 
             
              # s.add_dependency "pry"
         | 
| 37 | 
            +
              
         | 
| 38 | 
            +
              if s.respond_to?(:metadata)
         | 
| 39 | 
            +
                s.metadata['changelog_uri'] = 'https://github.com/BetterErrors/better_errors/releases'
         | 
| 40 | 
            +
                s.metadata['source_code_uri'] = 'https://github.com/BetterErrors/better_errors'
         | 
| 41 | 
            +
                s.metadata['bug_tracker_uri'] = 'https://github.com/BetterErrors/better_errors/issues'
         | 
| 42 | 
            +
              else
         | 
| 43 | 
            +
                puts "Your RubyGems does not support metadata. Update if you'd like to make a release."
         | 
| 44 | 
            +
              end
         | 
| 36 45 | 
             
            end
         | 
| @@ -107,9 +107,9 @@ module BetterErrors | |
| 107 107 | 
             
                def inspect_value(obj)
         | 
| 108 108 | 
             
                  InspectableValue.new(obj).to_html
         | 
| 109 109 | 
             
                rescue BetterErrors::ValueLargerThanConfiguredMaximum
         | 
| 110 | 
            -
                  "<span class='unsupported'>( | 
| 111 | 
            -
                    "Modify #{CGI.escapeHTML(obj.class.name)}#inspect "\
         | 
| 112 | 
            -
                    " | 
| 110 | 
            +
                  "<span class='unsupported'>(Object too large. "\
         | 
| 111 | 
            +
                    "#{obj.class.name ? "Modify #{CGI.escapeHTML(obj.class.name)}#inspect or a" : "A"}"\
         | 
| 112 | 
            +
                    "djust BetterErrors.maximum_variable_inspect_size if you need to see it.)</span>"
         | 
| 113 113 | 
             
                rescue Exception => e
         | 
| 114 114 | 
             
                  "<span class='unsupported'>(exception #{CGI.escapeHTML(e.class.to_s)} was raised in inspect)</span>"
         | 
| 115 115 | 
             
                end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: better_errors
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 2.5. | 
| 4 | 
            +
              version: 2.5.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Charlie Somerville
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date:  | 
| 11 | 
            +
            date: 2019-02-14 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: rake
         | 
| @@ -178,7 +178,10 @@ files: | |
| 178 178 | 
             
            homepage: https://github.com/BetterErrors/better_errors
         | 
| 179 179 | 
             
            licenses:
         | 
| 180 180 | 
             
            - MIT
         | 
| 181 | 
            -
            metadata: | 
| 181 | 
            +
            metadata:
         | 
| 182 | 
            +
              changelog_uri: https://github.com/BetterErrors/better_errors/releases
         | 
| 183 | 
            +
              source_code_uri: https://github.com/BetterErrors/better_errors
         | 
| 184 | 
            +
              bug_tracker_uri: https://github.com/BetterErrors/better_errors/issues
         | 
| 182 185 | 
             
            post_install_message: 
         | 
| 183 186 | 
             
            rdoc_options: []
         | 
| 184 187 | 
             
            require_paths:
         | 
| @@ -194,8 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 194 197 | 
             
                - !ruby/object:Gem::Version
         | 
| 195 198 | 
             
                  version: '0'
         | 
| 196 199 | 
             
            requirements: []
         | 
| 197 | 
            -
             | 
| 198 | 
            -
            rubygems_version: 2.7.6
         | 
| 200 | 
            +
            rubygems_version: 3.0.1
         | 
| 199 201 | 
             
            signing_key: 
         | 
| 200 202 | 
             
            specification_version: 4
         | 
| 201 203 | 
             
            summary: Better error page for Rails and other Rack apps
         |