Commit 9c9f1ea
committed
Fix version check load order issue
Checking the version causes an error when `simplecov-html` is loaded before `simplecov`:
```
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
gem "simplecov-html"
gem "simplecov"
end
```
```
/home/user/code/simplecov-html/lib/simplecov-html.rb:10:in '<top (required)>': uninitialized constant SimpleCov::VERSION (NameError)
major, minor, patch = SimpleCov::VERSION.scan(/\d+/).first(3).map(&:to_i)
^^^^^^^^^
from <internal:/home/user/.rbenv/versions/3.4-dev/lib/ruby/3.4.0+0/rubygems/core_ext/kernel_require.rb>:37:in 'Kernel#require'
```
I don't think this check is even needed anymore but I'd just leave it in1 parent edcb62b commit 9c9f1ea
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
0 commit comments