single_cov 0.1.1 → 0.1.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 +4 -4
- data/lib/single_cov/version.rb +1 -1
- data/lib/single_cov.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 05a6eb04b545c815380bf75e183ed90ba6f4780c
|
|
4
|
+
data.tar.gz: 3528bcf3ac7640ecb259660fa625cd2a9cd78c87
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fa0a04a3cb6f313f9f4a763f2578e66dfe95f44eebb1300b517a46e393160bb0bfe2d28f1dcea60be725c1ca40650057fa4cf35b0a6fab7603d97755c770b67a
|
|
7
|
+
data.tar.gz: 8973595431d85ce5f4cea0eae4c3322ae1d09d611be1d5f09b00af05e9f67f798d82d095d3fc999f21b9189f7696e464264945a24fa0afbbb1fd62c58bb9da3b
|
data/lib/single_cov/version.rb
CHANGED
data/lib/single_cov.rb
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
module SingleCov
|
|
2
2
|
COVERAGES = []
|
|
3
3
|
MAX_OUTPUT = 40
|
|
4
|
+
APP_FOLDERS = ["models", "serializers", "helpers", "controllers", "mailers", "views"]
|
|
4
5
|
|
|
5
6
|
class << self
|
|
6
7
|
def not_covered!
|
|
@@ -190,7 +191,7 @@ module SingleCov
|
|
|
190
191
|
end
|
|
191
192
|
|
|
192
193
|
# rails things live in app
|
|
193
|
-
file_part[0...0] = if file_part =~ /^(
|
|
194
|
+
file_part[0...0] = if file_part =~ /^(?:#{APP_FOLDERS.map { |f| Regexp.escape(f) }.join('|')})\//
|
|
194
195
|
"app/"
|
|
195
196
|
elsif file_part.start_with?("lib/") # don't add lib twice
|
|
196
197
|
""
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: single_cov
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Grosser
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-04-
|
|
11
|
+
date: 2016-04-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email: michael@grosser.it
|