better_errors 2.5.0 → 2.5.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of better_errors might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 832f46e8977908b469e6b527edbaf770541b66dfafcc3f8c1b292c0c6c25838c
4
- data.tar.gz: 4584adc6e2870f40a5bd3eb0d7f18b693380e6a1c04716217f00c9190766f3e7
3
+ metadata.gz: 949ae4930972ea12a576bf6036ab19ef6f9d876c03a640062f76a0871648181f
4
+ data.tar.gz: 36dcea704937546ac60e4d0c9503222fbcd0cb0aa62e6b2b2e35d92b8cbbbc2c
5
5
  SHA512:
6
- metadata.gz: 844ecf262fdeee48a8165e201a189fcd7812db7bf437bf8e5e11ba80f63edeaa841015fcbc21a11b291e9705c8751fa382eba94e86b90d350828c662fffdbf0b
7
- data.tar.gz: 82ff2fbb24fcbd5dafefe1776125da521cf5813461bca58700060d9be41aa7c138fe95d98b3056289aab5976adc48b83b7dc204521500fc85fe6ee8eb141d09b
6
+ metadata.gz: 5bc9b0ea98c35285ad19a774394b26459c80cda362b3fd940c490c4342e8190550990615c04bad077b5f71adb6e609caf890027baf8832c8de287713dcb0ca90
7
+ data.tar.gz: e0f31fa9e3dfa676e35a6838547280df6da65573a14d55da125d0d20dc62edaef8485cd30e2580f50bff26d82d6533167453ee3e941cf7697ac3b6e423994b40
@@ -2,8 +2,15 @@ sudo: false
2
2
  language: ruby
3
3
  cache: bundler
4
4
  before_install:
5
- - gem update --system
6
- - gem update bundler
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
@@ -3,3 +3,4 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  # gem "pry-byebug"
6
+ gem 'simplecov', require: false
@@ -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'>(object too large. "\
111
- "Modify #{CGI.escapeHTML(obj.class.name)}#inspect "\
112
- "or adjust BetterErrors.maximum_variable_inspect_size)</span>"
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
@@ -1,3 +1,3 @@
1
1
  module BetterErrors
2
- VERSION = "2.5.0"
2
+ VERSION = "2.5.1"
3
3
  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.0
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: 2018-08-27 00:00:00.000000000 Z
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
- rubyforge_project:
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