better_errors 2.6.0 → 2.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/.github/release-drafter.yml +46 -0
  3. data/.github/workflows/ci.yml +123 -0
  4. data/.github/workflows/draft_release_update.yml +22 -0
  5. data/.github/workflows/pull_request.yml +20 -0
  6. data/.github/workflows/release.yml +68 -0
  7. data/.gitignore +4 -0
  8. data/.ruby-version +1 -0
  9. data/Gemfile +6 -1
  10. data/{LICENSE.txt → LICENSE} +1 -1
  11. data/README.md +34 -2
  12. data/better_errors.gemspec +8 -6
  13. data/gemfiles/pry010.gemfile +2 -1
  14. data/gemfiles/pry011.gemfile +2 -1
  15. data/gemfiles/pry09.gemfile +2 -1
  16. data/gemfiles/rack.gemfile +2 -1
  17. data/gemfiles/rack_boc.gemfile +2 -1
  18. data/gemfiles/rails42.gemfile +2 -1
  19. data/gemfiles/rails42_boc.gemfile +2 -1
  20. data/gemfiles/rails42_haml.gemfile +2 -1
  21. data/gemfiles/rails50.gemfile +2 -1
  22. data/gemfiles/rails50_boc.gemfile +2 -1
  23. data/gemfiles/rails50_haml.gemfile +2 -1
  24. data/gemfiles/rails51.gemfile +2 -1
  25. data/gemfiles/rails51_boc.gemfile +2 -1
  26. data/gemfiles/rails51_haml.gemfile +2 -1
  27. data/gemfiles/rails52.gemfile +2 -1
  28. data/gemfiles/rails52_boc.gemfile +2 -1
  29. data/gemfiles/rails52_haml.gemfile +2 -1
  30. data/gemfiles/rails60.gemfile +8 -0
  31. data/gemfiles/rails60_boc.gemfile +9 -0
  32. data/gemfiles/rails60_haml.gemfile +9 -0
  33. data/gemfiles/rails61.gemfile +8 -0
  34. data/gemfiles/rails61_boc.gemfile +9 -0
  35. data/gemfiles/rails61_haml.gemfile +9 -0
  36. data/lib/better_errors/code_formatter/html.rb +15 -1
  37. data/lib/better_errors/code_formatter.rb +16 -27
  38. data/lib/better_errors/editor.rb +103 -0
  39. data/lib/better_errors/error_page.rb +53 -12
  40. data/lib/better_errors/error_page_style.rb +43 -0
  41. data/lib/better_errors/exception_hint.rb +29 -0
  42. data/lib/better_errors/middleware.rb +75 -12
  43. data/lib/better_errors/raised_exception.rb +25 -4
  44. data/lib/better_errors/templates/main.css +1 -0
  45. data/lib/better_errors/templates/main.erb +94 -709
  46. data/lib/better_errors/templates/text.erb +6 -3
  47. data/lib/better_errors/templates/variable_info.erb +24 -14
  48. data/lib/better_errors/version.rb +2 -1
  49. data/lib/better_errors.rb +20 -34
  50. metadata +51 -8
  51. data/.travis.yml +0 -58
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b8cb5c2454ca55776cbfa1c596788008c56d584202c55fc0599e9fbb0c6d45e9
4
- data.tar.gz: ac7de8121e985ef3277da64604a72e1c117bddba34fa15aa5e838a2bb937bcb7
3
+ metadata.gz: 0d1b2c1a5ff7f1dd45ea2db8e96c69287ed94749b76c5eab80d7804ce0d44a4d
4
+ data.tar.gz: 7dbf3f093de7218e0ec668aa3b8871a68ea482f72c5ce1017215c115142bc3d2
5
5
  SHA512:
6
- metadata.gz: 4ae119905448207a0af32b0f62fe812c533fe6bc990c85fb5b10066696be80f8ea44ad141a8eb4c7435180042c964a2258c8a5212bf56eb2c45050621aaa467a
7
- data.tar.gz: 2ad99de05bd4905a79cd05bd5428b336e1cdf79d84889d3c6331275749fed3912671ed43e308e86d5afbccc83767ae43e4288bb48fccd00c205cd0c23571ece3
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
@@ -0,0 +1,123 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [ master ]
6
+ schedule:
7
+ - cron: '0 0 12,26 * *' # roughly every two weeks to run on new Ruby versions
8
+ pull_request:
9
+ branches: [ master ]
10
+ workflow_dispatch:
11
+
12
+ jobs:
13
+ test:
14
+ runs-on: ubuntu-latest
15
+ strategy:
16
+ fail-fast: false
17
+ matrix:
18
+ ruby:
19
+ - 2.2
20
+ - 2.3
21
+ - 2.4
22
+ - 2.5
23
+ - 2.6
24
+ - 2.7
25
+ # - ruby-head
26
+ # - truffleruby-head
27
+ gemfile:
28
+ # These are located in the gemfiles/ folder
29
+ - rails42
30
+ - rails50
31
+ - rails51
32
+ - rails52
33
+ - rails60
34
+ - rails61
35
+ - rails42_haml
36
+ - rails50_haml
37
+ - rails51_haml
38
+ - rails52_haml
39
+ - rails60_haml
40
+ - rails61_haml
41
+ - rails42_boc
42
+ - rails50_boc
43
+ - rails51_boc
44
+ - rails52_boc
45
+ - rails60_boc
46
+ - rails61_boc
47
+ - rack
48
+ - rack_boc
49
+ # - pry09
50
+ # - pry10
51
+ # - pry11
52
+ exclude:
53
+ - { ruby: 2.2, gemfile: rails60 }
54
+ - { ruby: 2.2, gemfile: rails60_boc }
55
+ - { ruby: 2.2, gemfile: rails60_haml }
56
+ - { ruby: 2.2, gemfile: rails61 }
57
+ - { ruby: 2.2, gemfile: rails61_boc }
58
+ - { ruby: 2.2, gemfile: rails61_haml }
59
+ - { ruby: 2.3, gemfile: rails42 }
60
+ - { ruby: 2.3, gemfile: rails42_boc }
61
+ - { ruby: 2.3, gemfile: rails42_haml }
62
+ - { ruby: 2.3, gemfile: rails60 }
63
+ - { ruby: 2.3, gemfile: rails60_boc }
64
+ - { ruby: 2.3, gemfile: rails60_haml }
65
+ - { ruby: 2.3, gemfile: rails61 }
66
+ - { ruby: 2.3, gemfile: rails61_boc }
67
+ - { ruby: 2.3, gemfile: rails61_haml }
68
+ - { ruby: 2.4, gemfile: rails42 }
69
+ - { ruby: 2.4, gemfile: rails42_boc }
70
+ - { ruby: 2.4, gemfile: rails42_haml }
71
+ - { ruby: 2.4, gemfile: rails60 }
72
+ - { ruby: 2.4, gemfile: rails60_boc }
73
+ - { ruby: 2.4, gemfile: rails60_haml }
74
+ - { ruby: 2.4, gemfile: rails61 }
75
+ - { ruby: 2.4, gemfile: rails61_boc }
76
+ - { ruby: 2.4, gemfile: rails61_haml }
77
+ - { ruby: 2.5, gemfile: rails42 }
78
+ - { ruby: 2.5, gemfile: rails42_boc }
79
+ - { ruby: 2.5, gemfile: rails42_haml }
80
+ - { ruby: 2.6, gemfile: rails42 }
81
+ - { ruby: 2.6, gemfile: rails42_boc }
82
+ - { ruby: 2.6, gemfile: rails42_haml }
83
+ - { ruby: 2.7, gemfile: rails42 }
84
+ - { ruby: 2.7, gemfile: rails42_boc }
85
+ - { ruby: 2.7, gemfile: rails42_haml }
86
+ # - { ruby: ruby-head, gemfile: rails42 }
87
+ # - { ruby: ruby-head, gemfile: rails42_boc }
88
+ # - { ruby: ruby-head, gemfile: rails42_haml }
89
+ - { ruby: truffleruby-head, gemfile: rails42_boc }
90
+ - { ruby: truffleruby-head, gemfile: rails50_boc }
91
+ - { ruby: truffleruby-head, gemfile: rails51_boc }
92
+ - { ruby: truffleruby-head, gemfile: rails52_boc }
93
+ - { ruby: truffleruby-head, gemfile: rails60_boc }
94
+ - { ruby: truffleruby-head, gemfile: rack_boc }
95
+
96
+ steps:
97
+
98
+ - uses: actions/checkout@v2
99
+
100
+ - name: Set up Ruby
101
+ uses: ruby/setup-ruby@v1
102
+ with:
103
+ ruby-version: ${{ matrix.ruby }}
104
+
105
+ - uses: actions/cache@v2
106
+ with:
107
+ path: gemfiles/vendor/bundle
108
+ key: v3-${{ runner.os }}-branch-${{ github.ref }}-ruby-${{ matrix.ruby }}-gemfile-${{ matrix.gemfile }}-${{ hashFiles(format('gemfiles/{0}.gemfile', matrix.gemfile)) }}
109
+ restore-keys: |
110
+ v3-${{ runner.os }}-branch-${{ github.ref }}-ruby-${{ matrix.ruby }}-gemfile-${{ matrix.gemfile }}
111
+ v3-${{ runner.os }}-branch-master-ruby-${{ matrix.ruby }}-gemfile-${{ matrix.gemfile }}
112
+
113
+ - name: Bundle install
114
+ run: |
115
+ bundle config path vendor/bundle
116
+ bundle install --jobs 4 --retry 3
117
+ env:
118
+ BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
119
+
120
+ - name: RSpec
121
+ run: bundle exec rspec -f doc --color
122
+ env:
123
+ BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
@@ -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 }}
@@ -0,0 +1,68 @@
1
+ name: Release
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+
11
+ steps:
12
+
13
+ - uses: actions/checkout@v2
14
+
15
+ - name: Set up Ruby
16
+ uses: ruby/setup-ruby@v1
17
+ with:
18
+ ruby-version: 2.7
19
+
20
+ - uses: actions/cache@v2
21
+ with:
22
+ path: vendor/bundle
23
+ key: v1-${{ runner.os }}-${{ hashFiles('Gemfile', 'better_errors.gemspec') }}
24
+ restore-keys: |
25
+ v1-${{ runner.os }}
26
+
27
+ - name: Bundle install
28
+ run: |
29
+ bundle config path vendor/bundle
30
+ bundle install --jobs 4 --retry 3
31
+
32
+ - name: Get release version
33
+ id: get_version
34
+ run: |
35
+ version="${github_ref//refs\/tags\/v/}"
36
+ echo "${version}"
37
+ echo "::set-output name=version::${version}"
38
+ env:
39
+ github_ref: ${{ github.ref }}
40
+
41
+ - name: Get Release
42
+ id: get_release
43
+ uses: bruceadams/get-release@v1.2.2
44
+ env:
45
+ GITHUB_TOKEN: ${{ github.token }}
46
+
47
+ - name: Set gem version
48
+ run: |
49
+ bundle exec gem bump better_errors --version ${{ steps.get_version.outputs.version }} --no-commit
50
+
51
+ - name: Compile CSS
52
+ run: |
53
+ bundle exec rake style:build
54
+
55
+ - name: Build gem
56
+ run: gem build better_errors.gemspec
57
+
58
+ - name: Add gem to GitHub Release
59
+ uses: actions/upload-release-asset@v1
60
+ env:
61
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62
+ with:
63
+ upload_url: ${{ steps.get_release.outputs.upload_url }}
64
+ asset_path: ./better_errors-${{ steps.get_version.outputs.version }}.gem
65
+ asset_name: better_errors-${{ steps.get_version.outputs.version }}.gem
66
+ asset_content_type: application/octet-stream
67
+
68
+ # TODO: if this release is on master, add a commit updating the version in master.
data/.gitignore CHANGED
@@ -9,3 +9,7 @@
9
9
 
10
10
  /gemfiles/*.gemfile.lock
11
11
  /gemfiles/.bundle
12
+
13
+
14
+ # No CSS is committed. In development, the SCSS is used. The CSS is compiled when building a gem release.
15
+ *.css
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.7.2
data/Gemfile CHANGED
@@ -2,5 +2,10 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
- # gem "pry-byebug"
6
5
  gem 'simplecov', require: false
6
+ gem 'simplecov-lcov', require: false
7
+
8
+ # For managing release version in CI
9
+ gem 'gem-release'
10
+
11
+ # gem "pry-byebug"
@@ -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
@@ -1,6 +1,6 @@
1
- [![Build Status](https://travis-ci.org/BetterErrors/better_errors.svg)](https://travis-ci.org/BetterErrors/better_errors)
1
+ [![Build Status](https://github.com/BetterErrors/better_errors/workflows/CI/badge.svg?event=push&branch=master)](https://github.com/BetterErrors/better_errors/actions?query=branch%3Amaster)
2
2
  [![Codacy Badge](https://api.codacy.com/project/badge/Grade/6bc3e7d6118d47e6959b16690b815909)](https://www.codacy.com/app/BetterErrors/better_errors?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=BetterErrors/better_errors&amp;utm_campaign=Badge_Grade)
3
- [![Coverage](https://coveralls.io/repos/github/BetterErrors/better_errors/badge.svg?branch=master)](https://coveralls.io/github/BetterErrors/better_errors?branch=master)
3
+ [![Test Coverage](https://coveralls.io/repos/github/BetterErrors/better_errors/badge.svg?branch=master)](https://coveralls.io/github/BetterErrors/better_errors?branch=master)
4
4
  [![Gem Version](https://img.shields.io/gem/v/better_errors.svg)](https://rubygems.org/gems/better_errors)
5
5
 
6
6
  # Better Errors
@@ -35,6 +35,28 @@ end
35
35
 
36
36
  _Note: If you discover that Better Errors isn't working - particularly after upgrading from version 0.5.0 or less - be sure to set `config.consider_all_requests_local = true` in `config/environments/development.rb`._
37
37
 
38
+ ### Optional: Set `EDITOR`
39
+
40
+ For many reasons outside of Better Errors, you should have the `EDITOR` environment variable set to your preferred
41
+ editor.
42
+ Better Errors, like many other tools, will use that environment variable to show a link that opens your
43
+ editor to the file and line from the console.
44
+
45
+ By default the links will open TextMate-protocol links.
46
+
47
+ To see if your editor is supported or to set up a different editor, see [the wiki](https://github.com/BetterErrors/better_errors/wiki/Link-to-your-editor).
48
+
49
+ ### Optional: Set `BETTER_ERRORS_INSIDE_FRAME`
50
+
51
+ If your application is running inside of an iframe, or if you have a Content Security Policy that disallows links
52
+ to other protocols, the editor links will not work.
53
+
54
+ To work around this set `BETTER_ERRORS_INSIDE_FRAME=1` in the environment, and the links will include `target=_blank`,
55
+ allowing the link to open regardless of the policy.
56
+
57
+ _This works because it opens the editor from a new browser tab, escaping from the restrictions of your site._
58
+ _Unfortunately it leaves behind an empty tab each time, so only use this if needed._
59
+
38
60
  ## Security
39
61
 
40
62
  **NOTE:** It is *critical* you put better\_errors only in the **development** section of your Gemfile.
@@ -93,6 +115,16 @@ See [the wiki for instructions on configuring the editor](https://github.com/Bet
93
115
  BetterErrors.maximum_variable_inspect_size = 100_000
94
116
  ```
95
117
 
118
+ ## Ignore inspection of variables with certain classes.
119
+
120
+ ```ruby
121
+ # e.g. in config/initializers/better_errors.rb
122
+ # This will stop BetterErrors from trying to inspect objects of these classes, which can cause
123
+ # slow loading times and unnecessary database queries. Does not check inheritance chain, use
124
+ # strings not constants.
125
+ # default value: ['ActionDispatch::Request', 'ActionDispatch::Response']
126
+ BetterErrors.ignored_classes = ['ActionDispatch::Request', 'ActionDispatch::Response']
127
+ ```
96
128
 
97
129
  ## Get in touch!
98
130
 
@@ -5,16 +5,16 @@ 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"
13
13
  s.license = "MIT"
14
14
 
15
- s.files = `git ls-files -z`.split("\x0").reject do |f|
16
- f.match(%r{^((test|spec|features|feature-screenshots)/|Rakefile)})
17
- end
15
+ s.files = `git ls-files -z`.split("\x0").reject { |f|
16
+ f.match(%r{^((test|spec|features|feature-screenshots)/|Rakefile)|\.scss$})
17
+ } + %w[lib/better_errors/templates/main.css]
18
18
 
19
19
  s.require_paths = ["lib"]
20
20
 
@@ -22,14 +22,16 @@ Gem::Specification.new do |s|
22
22
 
23
23
  s.add_development_dependency "rake", "~> 10.0"
24
24
  s.add_development_dependency "rspec", "~> 3.5"
25
+ s.add_development_dependency "rspec-html-matchers"
25
26
  s.add_development_dependency "rspec-its"
26
27
  s.add_development_dependency "yard"
28
+ s.add_development_dependency "sassc"
27
29
  # kramdown 2.1 requires Ruby 2.3+
28
30
  s.add_development_dependency "kramdown", (RUBY_VERSION < '2.3' ? '< 2.0.0' : '> 2.0.0')
29
31
  # simplecov and coveralls must not be included here. See the Gemfiles instead.
30
32
 
31
33
  s.add_dependency "erubi", ">= 1.0.0"
32
- s.add_dependency "coderay", ">= 1.0.0"
34
+ s.add_dependency "rouge", ">= 1.0.0"
33
35
  s.add_dependency "rack", ">= 0.9.0"
34
36
 
35
37
  # optional dependencies:
@@ -4,6 +4,7 @@ gem 'rack', RUBY_VERSION < '2.2.2' ? '~> 1.6' : '~> 2.0'
4
4
  gem "binding_of_caller"
5
5
  gem "pry", "~> 0.10.0"
6
6
 
7
- gem 'coveralls', require: false
7
+ gem 'simplecov', require: false
8
+ gem 'simplecov-lcov', require: false
8
9
 
9
10
  gemspec path: "../"
@@ -3,6 +3,7 @@ source "https://rubygems.org"
3
3
  gem 'rack', RUBY_VERSION < '2.2.2' ? '~> 1.6' : '~> 2.0'
4
4
  gem "pry", "~> 0.11.0pre"
5
5
 
6
- gem 'coveralls', require: false
6
+ gem 'simplecov', require: false
7
+ gem 'simplecov-lcov', require: false
7
8
 
8
9
  gemspec path: "../"
@@ -3,6 +3,7 @@ source "https://rubygems.org"
3
3
  gem 'rack', RUBY_VERSION < '2.2.2' ? '~> 1.6' : '~> 2.0'
4
4
  gem "pry", "~> 0.9.12"
5
5
 
6
- gem 'coveralls', require: false
6
+ gem 'simplecov', require: false
7
+ gem 'simplecov-lcov', require: false
7
8
 
8
9
  gemspec path: "../"
@@ -2,6 +2,7 @@ source "https://rubygems.org"
2
2
 
3
3
  gem 'rack', RUBY_VERSION < '2.2.2' ? '~> 1.6' : '~> 2.0'
4
4
 
5
- gem 'coveralls', require: false
5
+ gem 'simplecov', require: false
6
+ gem 'simplecov-lcov', require: false
6
7
 
7
8
  gemspec path: "../"
@@ -3,6 +3,7 @@ source "https://rubygems.org"
3
3
  gem 'rack', RUBY_VERSION < '2.2.2' ? '~> 1.6' : '~> 2.0'
4
4
  gem "binding_of_caller"
5
5
 
6
- gem 'coveralls', require: false
6
+ gem 'simplecov', require: false
7
+ gem 'simplecov-lcov', require: false
7
8
 
8
9
  gemspec path: "../"
@@ -4,6 +4,7 @@ gem "rails", "~> 4.2.0"
4
4
  gem 'nokogiri', RUBY_VERSION < '2.1' ? '~> 1.6.0' : '>= 1.7'
5
5
  gem 'i18n', '< 1.5.2' if RUBY_VERSION < '2.3'
6
6
 
7
- gem 'coveralls', require: false
7
+ gem 'simplecov', require: false
8
+ gem 'simplecov-lcov', require: false
8
9
 
9
10
  gemspec path: "../"
@@ -5,6 +5,7 @@ gem 'nokogiri', RUBY_VERSION < '2.1' ? '~> 1.6.0' : '>= 1.7'
5
5
  gem 'i18n', '< 1.5.2' if RUBY_VERSION < '2.3'
6
6
  gem "binding_of_caller"
7
7
 
8
- gem 'coveralls', require: false
8
+ gem 'simplecov', require: false
9
+ gem 'simplecov-lcov', require: false
9
10
 
10
11
  gemspec path: "../"
@@ -5,6 +5,7 @@ gem 'nokogiri', RUBY_VERSION < '2.1' ? '~> 1.6.0' : '>= 1.7'
5
5
  gem 'i18n', '< 1.5.2' if RUBY_VERSION < '2.3'
6
6
  gem "haml"
7
7
 
8
- gem 'coveralls', require: false
8
+ gem 'simplecov', require: false
9
+ gem 'simplecov-lcov', require: false
9
10
 
10
11
  gemspec path: "../"
@@ -3,6 +3,7 @@ source "https://rubygems.org"
3
3
  gem "rails", "~> 5.0.0"
4
4
  gem 'i18n', '< 1.5.2' if RUBY_VERSION < '2.3'
5
5
 
6
- gem 'coveralls', require: false
6
+ gem 'simplecov', require: false
7
+ gem 'simplecov-lcov', require: false
7
8
 
8
9
  gemspec path: "../"
@@ -4,6 +4,7 @@ gem "rails", "~> 5.0.0"
4
4
  gem 'i18n', '< 1.5.2' if RUBY_VERSION < '2.3'
5
5
  gem "binding_of_caller"
6
6
 
7
- gem 'coveralls', require: false
7
+ gem 'simplecov', require: false
8
+ gem 'simplecov-lcov', require: false
8
9
 
9
10
  gemspec path: "../"
@@ -4,6 +4,7 @@ gem "rails", "~> 5.0.0"
4
4
  gem 'i18n', '< 1.5.2' if RUBY_VERSION < '2.3'
5
5
  gem "haml"
6
6
 
7
- gem 'coveralls', require: false
7
+ gem 'simplecov', require: false
8
+ gem 'simplecov-lcov', require: false
8
9
 
9
10
  gemspec path: "../"
@@ -3,6 +3,7 @@ source "https://rubygems.org"
3
3
  gem "rails", "~> 5.1.0"
4
4
  gem 'i18n', '< 1.5.2', require: false if RUBY_VERSION < '2.3'
5
5
 
6
- gem 'coveralls', require: false
6
+ gem 'simplecov', require: false
7
+ gem 'simplecov-lcov', require: false
7
8
 
8
9
  gemspec path: "../"
@@ -4,6 +4,7 @@ gem "rails", "~> 5.1.0"
4
4
  gem 'i18n', '< 1.5.2' if RUBY_VERSION < '2.3'
5
5
  gem "binding_of_caller"
6
6
 
7
- gem 'coveralls', require: false
7
+ gem 'simplecov', require: false
8
+ gem 'simplecov-lcov', require: false
8
9
 
9
10
  gemspec path: "../"
@@ -4,6 +4,7 @@ gem "rails", "~> 5.1.0"
4
4
  gem 'i18n', '< 1.5.2' if RUBY_VERSION < '2.3'
5
5
  gem "haml"
6
6
 
7
- gem 'coveralls', require: false
7
+ gem 'simplecov', require: false
8
+ gem 'simplecov-lcov', require: false
8
9
 
9
10
  gemspec path: "../"
@@ -3,6 +3,7 @@ source "https://rubygems.org"
3
3
  gem "rails", "~> 5.2.0"
4
4
  gem 'i18n', '< 1.5.2' if RUBY_VERSION < '2.3'
5
5
 
6
- gem 'coveralls', require: false
6
+ gem 'simplecov', require: false
7
+ gem 'simplecov-lcov', require: false
7
8
 
8
9
  gemspec path: "../"
@@ -4,6 +4,7 @@ gem "rails", "~> 5.2.0"
4
4
  gem 'i18n', '< 1.5.2' if RUBY_VERSION < '2.3'
5
5
  gem "binding_of_caller"
6
6
 
7
- gem 'coveralls', require: false
7
+ gem 'simplecov', require: false
8
+ gem 'simplecov-lcov', require: false
8
9
 
9
10
  gemspec path: "../"
@@ -4,6 +4,7 @@ gem "rails", "~> 5.2.0"
4
4
  gem 'i18n', '< 1.5.2' if RUBY_VERSION < '2.3'
5
5
  gem "haml"
6
6
 
7
- gem 'coveralls', require: false
7
+ gem 'simplecov', require: false
8
+ gem 'simplecov-lcov', require: false
8
9
 
9
10
  gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "rails", "~> 6.0.0"
4
+
5
+ gem 'simplecov', require: false
6
+ gem 'simplecov-lcov', require: false
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,9 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "rails", "~> 6.0.0"
4
+ gem "binding_of_caller"
5
+
6
+ gem 'simplecov', require: false
7
+ gem 'simplecov-lcov', require: false
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,9 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "rails", "~> 6.0.0"
4
+ gem "haml"
5
+
6
+ gem 'simplecov', require: false
7
+ gem 'simplecov-lcov', require: false
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "rails", "~> 6.1.0rc"
4
+
5
+ gem 'simplecov', require: false
6
+ gem 'simplecov-lcov', require: false
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,9 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "rails", "~> 6.1.0rc"
4
+ gem "binding_of_caller"
5
+
6
+ gem 'simplecov', require: false
7
+ gem 'simplecov-lcov', require: false
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,9 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "rails", "~> 6.1.0rc"
4
+ gem "haml"
5
+
6
+ gem 'simplecov', require: false
7
+ gem 'simplecov-lcov', require: false
8
+
9
+ gemspec path: "../"