solargraph_test_coverage 0.2.1 → 0.2.2
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecd6c766dce692dd3817bffae0044eb53f3a85b016865bc32e3a699f9e1c706f
|
4
|
+
data.tar.gz: ad27ec8345225e6d9538b6debdaf68ea0621ef810bc49f65dd321c4f62566753
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee3a2a267a8afbe5f43e6ade8a267d6ea7ce320c06a04811cf5828a34771758f7720b97cfa0d1159f6abfe6f6139d4dccfa0101c8aed2c74332e9b6dc1a8e441
|
7
|
+
data.tar.gz: edc5b1ff123b4e22120146494bf0fad32a498d6fea12af00a53d1390f81f4cd693d158ae60da44edd489019b7fc85dfd05edbd58019631df6c068e7e9750d577
|
@@ -7,7 +7,7 @@ module SolargraphTestCoverage
|
|
7
7
|
# @return [Boolean]
|
8
8
|
#
|
9
9
|
def exclude_file?(source_filename)
|
10
|
-
return true if source_filename.start_with? test_path
|
10
|
+
return true if source_filename.start_with? Helpers.test_path
|
11
11
|
|
12
12
|
Config.exclude_paths.each { |path| return true if source_filename.sub(Dir.pwd, '').include? path }
|
13
13
|
|
@@ -98,7 +98,6 @@ module SolargraphTestCoverage
|
|
98
98
|
# calling Coverage.result after requiring stops and resets it.
|
99
99
|
#
|
100
100
|
# This is a bit experimental - I'm not sure if there will be downstream side-effects
|
101
|
-
# from having Rails preloaded, but... we'll see :)
|
102
101
|
#
|
103
102
|
# @return [Boolean]
|
104
103
|
#
|
@@ -118,7 +117,10 @@ module SolargraphTestCoverage
|
|
118
117
|
false
|
119
118
|
end
|
120
119
|
|
121
|
-
|
120
|
+
# Returns absolute path for test folder
|
121
|
+
# @return [String]
|
122
|
+
#
|
123
|
+
def self.test_path
|
122
124
|
File.join(Dir.pwd, Config.test_dir)
|
123
125
|
end
|
124
126
|
end
|