quality 8.1.0 → 8.1.1

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
  SHA1:
3
- metadata.gz: 1bc78e99ad7803a34bf9288f31c008c9074838c6
4
- data.tar.gz: 76d7f141b2a5a09b48b980ca7bb8135c852d95a1
3
+ metadata.gz: 5d94956b514209977d8cb2e99c6a58cc8869ff1c
4
+ data.tar.gz: 0f4b9fc57929199f354b59a4b354665ed35155ac
5
5
  SHA512:
6
- metadata.gz: 2103747ffeba6c92079ef56d380072db200469792ad657ad41994628871d62e7eb9b1ebf63d5259f9f673d69a124ecda8be64db0e6f2c381fe94df55d5d15940
7
- data.tar.gz: 8a20703b872cc159b33878911561e465bbcc5e6aab1bdbe091eb4b1dbf116fc20337fbe65ee4b0e3bd4bc2e7f741e8d370a291ae09991e54aa8a983ccb0540d7
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 = ['Foo', 'Rakefile']
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.
@@ -70,8 +70,11 @@ module Quality
70
70
 
71
71
  def source_files_glob(dirs = source_dirs,
72
72
  extensions = source_file_extensions)
73
- File.join("{#{dirs.join(',')}}", '**',
74
- "{#{extra_files.join(',')},*.{#{extensions}}}")
73
+ "{#{extra_files.join(',')}," +
74
+ File.join("{#{dirs.join(',')}}",
75
+ '**',
76
+ "*.{#{extensions}}") +
77
+ '}'
75
78
  end
76
79
 
77
80
  def ruby_file_extensions
@@ -2,5 +2,5 @@
2
2
  # reek, flog, flay and rubocop and makes sure your numbers don't get
3
3
  # any worse over time.
4
4
  module Quality
5
- VERSION = '8.1.0'
5
+ VERSION = '8.1.1'
6
6
  end
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.0
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-27 00:00:00.000000000 Z
11
+ date: 2015-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cane