quality 7.0.0 → 8.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 391f50644286c21d661b14b26561ef8c2326f69d
4
- data.tar.gz: 4688022631bec832fe2b4af9e05e6c6ce889e11e
3
+ metadata.gz: 2d1d2f22bee9a46ee274bd62d797a7b244adf0cf
4
+ data.tar.gz: 387cbe6830fb239fdf34f07678650b79b3ebaf74
5
5
  SHA512:
6
- metadata.gz: 944415ce3e6063fd876e51dfd01f1554a9fa38fbcf504d76f9a44df05273b663a6af958791b924c1e2be0261f48b97217286bb88e380d824779698f5ae888a8e
7
- data.tar.gz: b2e622d47b4037081b49203cc77842c9a40b22f46e895181e81622c3c96633d4a8a0ca357178254b3993958fc284b240fb31b0afaa213067ed309ef0e78a5d03
6
+ metadata.gz: 0c199d2ce881f68df95cc72b1019a46a0816492b0e5fe3cff0567f7e2ec8d7cdf9cc45468e28f9093403f9beef4f24aeb5dc07648254a9b9cfec8ce89aa487ab
7
+ data.tar.gz: 54f9f7edfb3d502756f63eea45de92672dc596d12cb30bdce67f2c295102b9424fe32554f45264de645e9d7dc9718abc68a7347adf61ea0910fb2fee3f8ed70d
@@ -58,19 +58,26 @@ module Quality
58
58
  @extra_files ||= ['Rakefile']
59
59
  end
60
60
 
61
+ def source_file_extensions
62
+ "#{ruby_file_extensions},swift,cpp,c,java,py,clj,cljs,scala,js"
63
+ end
64
+
61
65
  def source_files_glob(dirs = source_dirs,
62
- extensions =
63
- 'rb,swift,cpp,c,java,py,clj,cljs,scala,js')
66
+ extensions = source_file_extensions)
64
67
  File.join("{#{dirs.join(',')}}", '**',
65
68
  "{#{extra_files.join(',')},*.{#{extensions}}}")
66
69
  end
67
70
 
71
+ def ruby_file_extensions
72
+ 'rb,rake'
73
+ end
74
+
68
75
  def ruby_files_glob
69
- source_files_glob(ruby_dirs, 'rb')
76
+ source_files_glob(ruby_dirs, ruby_file_extensions)
70
77
  end
71
78
 
72
79
  def ruby_files
73
- @globber.glob('{*.rb,Rakefile}')
80
+ @globber.glob("{*.{#{ruby_file_extensions}},Rakefile}")
74
81
  .concat(@globber.glob(ruby_files_glob)).join(' ')
75
82
  end
76
83
 
@@ -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 = '7.0.0'
5
+ VERSION = '8.0.0'
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: 7.0.0
4
+ version: 8.0.0
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-07 00:00:00.000000000 Z
11
+ date: 2015-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cane