better_errors 2.10.0.beta2 → 2.10.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e0902382bac90f4d54634a19663ed03b7aa6d64edd17002f3329c895e2b2784d
4
- data.tar.gz: 6228791b815616739067a11405f18b041cf6d21c19013bcbaaf34a1b1bcdfa85
3
+ metadata.gz: 0d1b2c1a5ff7f1dd45ea2db8e96c69287ed94749b76c5eab80d7804ce0d44a4d
4
+ data.tar.gz: 7dbf3f093de7218e0ec668aa3b8871a68ea482f72c5ce1017215c115142bc3d2
5
5
  SHA512:
6
- metadata.gz: dc552c327ab6230dae1fea0100c5fe8a20f9bfc6e63b245ac2eb221cf17d01531ec3ae46ea0b1545881476739d725a0723eacf9448c8a368fc9b7f4eedd8e24f
7
- data.tar.gz: ce04e4dd447ff7e789f19d8a0d1cefa8b63e2e00cf3f81321877da3dd343df8a6cb5bc17a09fe21bfaba093900dc2ae41520941ad323d3b96a859c2a0cc023e4
6
+ metadata.gz: ae3fed0710c2f1f555b1b561177aa22dcebed513de9362fd1ddc41c3a35560ce896b81cfd3c55969573a0fd0b95b38eb034d285bc8ed507ccbecc26d94e4c4b6
7
+ data.tar.gz: 3bdf3858b49dfb4d7967328dba1ef565831df1a33b966e53594b2c7291d4839737fe5bc05ebf7ecff6b2ae48d9573f2e62f5ebbfcd5cb909ea8972919b31f947
@@ -0,0 +1,46 @@
1
+ ---
2
+ name-template: 'v$RESOLVED_VERSION'
3
+ tag-template: 'v$RESOLVED_VERSION'
4
+ autolabeler:
5
+ - label: breaking change
6
+ title:
7
+ - '/(?<!non[- ]?)breaking/i'
8
+ - label: feature
9
+ branch:
10
+ - '/^feature/'
11
+ - label: patch fix
12
+ branch:
13
+ - '/^fix/'
14
+ - label: chore
15
+ branch:
16
+ - '/^chore/'
17
+ categories:
18
+ - title: ⚠ Breaking Changes
19
+ labels:
20
+ - breaking change
21
+ - title: Feature Changes
22
+ labels:
23
+ - feature
24
+ - title: Fixes
25
+ labels:
26
+ - patch fix
27
+ - title: Maintenance
28
+ labels:
29
+ - chore
30
+ exclude-labels:
31
+ - skip-changelog
32
+ change-template: '- $TITLE (@$AUTHOR) #$NUMBER'
33
+ template: '$CHANGES'
34
+ no-changes-template: '_No changes yet._'
35
+ version-resolver:
36
+ major:
37
+ labels:
38
+ - breaking change
39
+ minor:
40
+ labels:
41
+ - minor
42
+ patch:
43
+ labels:
44
+ - patch fix
45
+ - chore
46
+ default: minor
@@ -121,22 +121,3 @@ jobs:
121
121
  run: bundle exec rspec -f doc --color
122
122
  env:
123
123
  BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
124
-
125
- - name: Report to Coveralls
126
- uses: coverallsapp/github-action@v1.1.2
127
- with:
128
- github-token: ${{ secrets.github_token }}
129
- flag-name: test-${{ matrix.ruby }}-${{ matrix.gemfile }}
130
- parallel: true
131
-
132
-
133
- finish:
134
- needs: test
135
- runs-on: ubuntu-latest
136
- steps:
137
-
138
- - name: Report completion to Coveralls
139
- uses: coverallsapp/github-action@v1.1.2
140
- with:
141
- github-token: ${{ secrets.github_token }}
142
- parallel-finished: true
@@ -0,0 +1,22 @@
1
+ ---
2
+
3
+ name: Draft Release
4
+
5
+ on:
6
+ push:
7
+ # Run on change of the main branch, which covers merged pull requests
8
+ branches:
9
+ - main
10
+ - master
11
+
12
+ jobs:
13
+ update:
14
+ name: "Update"
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - uses: release-drafter/release-drafter@v5
18
+ with:
19
+ # Not sure what autolabeler would do in the main branch, but it wouldn't make sense.
20
+ disable-autolabeler: true
21
+ env:
22
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,20 @@
1
+ ---
2
+
3
+ name: Pull Request
4
+
5
+ on:
6
+ pull_request:
7
+ # Run on new/reopened/renamed pull requests so that autolabeling happens
8
+ types: [opened, reopened, edited]
9
+
10
+ jobs:
11
+ label:
12
+ name: "Label"
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: release-drafter/release-drafter@v5
16
+ with:
17
+ # Don't run the releaser from the PR, because that will create a draft PR containing the current PR even though it's not merged.
18
+ disable-releaser: true
19
+ env:
20
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012-2016 Charlie Somerville
1
+ Copyright (c) 2012-2023 Hailey Somerville
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -120,8 +120,8 @@ BetterErrors.maximum_variable_inspect_size = 100_000
120
120
  ```ruby
121
121
  # e.g. in config/initializers/better_errors.rb
122
122
  # This will stop BetterErrors from trying to inspect objects of these classes, which can cause
123
- # slow loading times and unneccessary database queries. Does not check inheritance chain, use
124
- # strings not contants.
123
+ # slow loading times and unnecessary database queries. Does not check inheritance chain, use
124
+ # strings not constants.
125
125
  # default value: ['ActionDispatch::Request', 'ActionDispatch::Response']
126
126
  BetterErrors.ignored_classes = ['ActionDispatch::Request', 'ActionDispatch::Response']
127
127
  ```
@@ -5,8 +5,8 @@ require 'better_errors/version'
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "better_errors"
7
7
  s.version = BetterErrors::VERSION
8
- s.authors = ["Charlie Somerville"]
9
- s.email = ["charlie@charliesomerville.com"]
8
+ s.authors = ["Hailey Somerville"]
9
+ s.email = ["hailey@hailey.lol"]
10
10
  s.description = %q{Provides a better error page for Rails and other Rack apps. Includes source code inspection, a live REPL and local/instance variable inspection for all stack frames.}
11
11
  s.summary = %q{Better error page for Rails and other Rack apps}
12
12
  s.homepage = "https://github.com/BetterErrors/better_errors"
@@ -1,9 +1,22 @@
1
- require "sassc"
2
-
3
1
  module BetterErrors
4
2
  # @private
5
3
  module ErrorPageStyle
6
4
  def self.compiled_css(for_deployment = false)
5
+ begin
6
+ require "sassc"
7
+ rescue LoadError
8
+ raise LoadError, "The `sassc` gem is required when developing the `better_errors` gem. "\
9
+ "If you're using a release of `better_errors`, the compiled CSS is missing from the released gem"
10
+ # If you arrived here because sassc is not in your project's Gemfile,
11
+ # the issue here is that the release of the better_errors gem
12
+ # is supposed to contain the compiled CSS, but that file is missing from the release.
13
+ # So better_errors is trying to build the CSS on the fly, which requires the sassc gem.
14
+ #
15
+ # If you're developing the better_errors gem locally, and you're running a project
16
+ # that does not have sassc in its bundle, run `rake style:build` in the better_errors
17
+ # project to compile the CSS file.
18
+ end
19
+
7
20
  style_dir = File.expand_path("style", File.dirname(__FILE__))
8
21
  style_file = "#{style_dir}/main.scss"
9
22
 
@@ -1,4 +1,4 @@
1
1
  module BetterErrors
2
2
  # This is changed by CI before building a gem for release, but is not committed.
3
- VERSION = "2.10.0.beta2"
3
+ VERSION = "2.10.1"
4
4
  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.10.0.beta2
4
+ version: 2.10.1
5
5
  platform: ruby
6
6
  authors:
7
- - Charlie Somerville
7
+ - Hailey Somerville
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-15 00:00:00.000000000 Z
11
+ date: 2023-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -154,20 +154,23 @@ description: Provides a better error page for Rails and other Rack apps. Include
154
154
  source code inspection, a live REPL and local/instance variable inspection for all
155
155
  stack frames.
156
156
  email:
157
- - charlie@charliesomerville.com
157
+ - hailey@hailey.lol
158
158
  executables: []
159
159
  extensions: []
160
160
  extra_rdoc_files: []
161
161
  files:
162
162
  - ".coveralls.yml"
163
+ - ".github/release-drafter.yml"
163
164
  - ".github/workflows/ci.yml"
165
+ - ".github/workflows/draft_release_update.yml"
166
+ - ".github/workflows/pull_request.yml"
164
167
  - ".github/workflows/release.yml"
165
168
  - ".gitignore"
166
169
  - ".ruby-version"
167
170
  - ".yardopts"
168
171
  - CHANGELOG.md
169
172
  - Gemfile
170
- - LICENSE.txt
173
+ - LICENSE
171
174
  - README.md
172
175
  - better_errors.gemspec
173
176
  - gemfiles/pry010.gemfile
@@ -233,11 +236,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
233
236
  version: 2.0.0
234
237
  required_rubygems_version: !ruby/object:Gem::Requirement
235
238
  requirements:
236
- - - ">"
239
+ - - ">="
237
240
  - !ruby/object:Gem::Version
238
- version: 1.3.1
241
+ version: '0'
239
242
  requirements: []
240
- rubygems_version: 3.1.4
243
+ rubygems_version: 3.1.6
241
244
  signing_key:
242
245
  specification_version: 4
243
246
  summary: Better error page for Rails and other Rack apps