quality 8.1.0 → 8.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -1
- data/lib/quality/rake/config.rb +5 -2
- data/lib/quality/version.rb +1 -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: 5d94956b514209977d8cb2e99c6a58cc8869ff1c
|
4
|
+
data.tar.gz: 0f4b9fc57929199f354b59a4b354665ed35155ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d6718d9c65943d47d80fc867c965292c5122f324cf069433747f70bfc2cb935c75a0f176f9051aa2cb4d1491322d52ca2c5c53c147fcd5c98b85064c7ffd541
|
7
|
+
data.tar.gz: 2595f62d6bec4e9b4f08e0c2c4b258e12c88a80421a5745a6dcd61b0e700f015b3b42d6f1b6274e6e5d58f8a141dba436d39d8d048f1a92fd032ec130c3dad74
|
data/README.md
CHANGED
@@ -82,7 +82,7 @@ Quality::Rake::Task.new { |t|
|
|
82
82
|
|
83
83
|
# Pick any extra files that are source files, but may not have
|
84
84
|
# extensions--defaults to ['Rakefile']
|
85
|
-
t.extra_files = ['
|
85
|
+
t.extra_files = ['tools/check-script', 'Rakefile']
|
86
86
|
|
87
87
|
# Relative path to output directory where *_high_water_mark
|
88
88
|
# files will be read/written
|
@@ -102,6 +102,18 @@ Quality::Rake::Task.new { |t|
|
|
102
102
|
|
103
103
|
See [this post for more information](http://blog.apiology.cc/2014/06/scalable-quality-part-1.html) on the problem the quality gem solves.
|
104
104
|
|
105
|
+
## Code coverage
|
106
|
+
|
107
|
+
You can pull a similar trick with code coverage using SimpleCov in Ruby--put 'simplecov' in your Gemfile, and add the code below into your test_helper.rb or spec_helper.rb.
|
108
|
+
|
109
|
+
```
|
110
|
+
require 'simplecov'
|
111
|
+
SimpleCov.start
|
112
|
+
SimpleCov.refuse_coverage_drop
|
113
|
+
```
|
114
|
+
|
115
|
+
After your first run, check in your coverage/.last_run.json.
|
116
|
+
|
105
117
|
## Maturity
|
106
118
|
|
107
119
|
Quality uses [semantic versioning](http://semver.org/)--any incompatible changes will come out as major number updates.
|
data/lib/quality/rake/config.rb
CHANGED
@@ -70,8 +70,11 @@ module Quality
|
|
70
70
|
|
71
71
|
def source_files_glob(dirs = source_dirs,
|
72
72
|
extensions = source_file_extensions)
|
73
|
-
|
74
|
-
|
73
|
+
"{#{extra_files.join(',')}," +
|
74
|
+
File.join("{#{dirs.join(',')}}",
|
75
|
+
'**',
|
76
|
+
"*.{#{extensions}}") +
|
77
|
+
'}'
|
75
78
|
end
|
76
79
|
|
77
80
|
def ruby_file_extensions
|
data/lib/quality/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quality
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.1.
|
4
|
+
version: 8.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vince Broz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cane
|