quality 15.0.0 → 15.0.1

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: 995802b4ed3cd4dc1a74e479ceaef9ae9268bced
4
- data.tar.gz: 122f1155c0b703f40d1edd9be73494d79c142778
3
+ metadata.gz: 971bdafdf420529f6000b6878022d19006c0ca70
4
+ data.tar.gz: fc4a7ec48472d6d2906cc69229fbe4c6f4afb0f9
5
5
  SHA512:
6
- metadata.gz: d29111841b9960995b55f0c9778afc1bfb4351377bd5e2224631d2d75a8913b7a866a617383b84f762b432dbc73d8e71da69177fefc5deafa82d10d546f72e1f
7
- data.tar.gz: bfdb7160449283acd80159a8177a848324bae0e42445f3f821c976da534d1a5a48bda5fdc665b1f029602df0c31eecc64bcebf4cbafaa8ce22cc3be122e61146
6
+ metadata.gz: d71b0c528bf5e4fe15e763b66f763e09e25907230f84ead600ad5f064d26cbe88f0b7817cfa27c2e6aafd9923a3da040cb96bf69b43c52a1213590f3d8a56522
7
+ data.tar.gz: d4ec542ce034f422e0e1894011792e06e1db069043e2c41b83313b67dc348ea209d320f7d0e8b66cf374878c823b57d5cfcd4fa6771db4783beddb2ed2fca8b0
data/README.md CHANGED
@@ -88,7 +88,7 @@ Quality::Rake::Task.new { |t|
88
88
 
89
89
  # Pick any extra files that are source files, but may not have
90
90
  # extensions--defaults to %w(Rakefile Dockerfile)
91
- t.extra_files = ['tools/check-script', 'Rakefile']
91
+ t.extra_source_files = ['tools/check-script', 'Rakefile']
92
92
 
93
93
  # Pick any extra files that are source files, but may not have
94
94
  # extensions--defaults to %w(Rakefile)
@@ -98,11 +98,11 @@ Quality::Rake::Task.new { |t|
98
98
  t.exclude_files = ['lib/whatever/imported_file.rb', 'lib/vendor/someone_else_fault.rb']
99
99
 
100
100
  # Extensions for Ruby language files--defaults to 'rb,rake'
101
- t.ruby_file_extensions = 'rb,rake'
101
+ t.ruby_file_extensions_glob = 'rb,rake'
102
102
 
103
103
  # Extensions for all source files--defaults to
104
104
  # 'rb,rake,swift,cpp,c,java,py,clj,cljs,scala,js,yml,sh,json'
105
- t.source_file_extensions =
105
+ t.source_file_extensions_glob =
106
106
  'rb,rake,swift,cpp,c,java,py,clj,cljs,scala,js,yml,sh,json'
107
107
 
108
108
  # Relative path to output directory where *_high_water_mark
@@ -13,17 +13,37 @@ module Quality
13
13
  extend Forwardable
14
14
 
15
15
  def_delegators(:source_file_globber,
16
- :ruby_dirs=, :ruby_dirs,
17
- :source_dirs=, :source_dirs,
18
- :extra_files=, :extra_files,
19
- :exclude_files=, :exclude_files,
20
- :extra_ruby_files=, :extra_ruby_files,
21
- :ruby_file_extensions=, :ruby_file_extensions,
22
- :source_file_extensions=, :source_file_extensions,
16
+ :ruby_dirs_arr=, :ruby_dirs_arr,
17
+ :source_dirs_arr=, :source_dirs_arr,
18
+ :extra_source_files_arr=, :extra_source_files_arr,
19
+ :exclude_files_arr=, :exclude_files_arr,
20
+ :extra_ruby_files_arr=, :extra_ruby_files_arr,
21
+ :ruby_file_extensions_arr=, :ruby_file_extensions_arr,
22
+ :ruby_file_extensions_glob=, :ruby_file_extensions_glob,
23
+ :source_file_extensions_arr=, :source_file_extensions_arr,
24
+ :source_file_extensions_glob=, :source_file_extensions_glob,
23
25
  :source_files_glob,
24
26
  :source_files_exclude_glob,
25
27
  :ruby_files_glob,
26
- :ruby_files)
28
+ :ruby_files_arr)
29
+
30
+ alias_method(:extra_files, :extra_source_files_arr)
31
+ alias_method(:extra_files=, :extra_source_files_arr=)
32
+ alias_method(:extra_ruby_files, :extra_ruby_files_arr)
33
+ alias_method(:extra_ruby_files=, :extra_ruby_files_arr=)
34
+ alias_method(:ruby_files, :ruby_files_arr)
35
+ alias_method(:ruby_dirs, :ruby_dirs_arr)
36
+ alias_method(:ruby_dirs=, :ruby_dirs_arr=)
37
+ alias_method(:source_dirs, :source_dirs_arr)
38
+ alias_method(:source_dirs=, :source_dirs_arr=)
39
+ alias_method(:exclude_files, :exclude_files_arr)
40
+ alias_method(:exclude_files=, :exclude_files_arr=)
41
+ alias_method(:ruby_file_extensions, :ruby_file_extensions_glob)
42
+ alias_method(:ruby_file_extensions=, :ruby_file_extensions_glob=)
43
+
44
+ # This was named and documented poorly early on
45
+ alias_method(:source_file_extensions, :source_file_extensions_glob)
46
+ alias_method(:source_file_extensions=, :source_file_extensions_glob=)
27
47
 
28
48
  def source_file_globber
29
49
  @source_file_globber ||=
@@ -96,7 +96,8 @@ module Quality
96
96
  quality_checker.execute(&count_violations_on_line)
97
97
  end
98
98
 
99
- def_delegators :@config, :ruby_files, :ruby_files_glob, :source_files_glob,
100
- :punchlist_regexp, :source_files_exclude_glob, :exclude_files
99
+ def_delegators :@config, :ruby_files, :ruby_files_glob,
100
+ :source_files_glob, :punchlist_regexp,
101
+ :source_files_exclude_glob, :exclude_files
101
102
  end
102
103
  end
@@ -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 = '15.0.0'
5
+ VERSION = '15.0.1'
6
6
  end
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
31
31
  s.summary = 'Code quality tools for Ruby'
32
32
 
33
33
  s.add_runtime_dependency('activesupport')
34
- s.add_runtime_dependency('source_finder')
34
+ s.add_runtime_dependency('source_finder', ['>=2'])
35
35
  s.add_runtime_dependency('cane', ['>= 2.6'])
36
36
  s.add_runtime_dependency('reek', ['>= 1.3.4'])
37
37
  s.add_runtime_dependency('flog', ['>= 4.1.1'])
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: 15.0.0
4
+ version: 15.0.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-09-12 00:00:00.000000000 Z
11
+ date: 2015-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '>='
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '>='
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: cane
43
43
  requirement: !ruby/object:Gem::Requirement