punchlist 1.1.1 → 1.2.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: 6919c16c181077a45a2ac459d20a193fec9c4f23
4
- data.tar.gz: b6c65074f913b5041414c28d6e5b9203b217d292
3
+ metadata.gz: f3a91cd04e344a758a88d1892086339492be3306
4
+ data.tar.gz: cea784b35403f68c784694e64101b342fc0328b5
5
5
  SHA512:
6
- metadata.gz: 940e658d9fe5e11c581cf62e1679d0b96c659685a6bef9dbb39476b3a2443f6900d6410430449665810d5311aa20850ffe84f91c6cc8574e8ec019f526a16844
7
- data.tar.gz: aa7ee1c3361698bfa23bbe3a6f5cb6cee005bd388ba125589a49f65e58dfe71fdf5d89695a7aee9de9fe878ed708398007f28741859bc78e7e1cf2b03add70e1
6
+ metadata.gz: c5327b956982854e55f5b4e620ab0060825cd39e70838cccb818490e9f48dca889ccbc7329b94c416c2fd0465b815caa15f1004718a526321992bad392319419
7
+ data.tar.gz: c7663708ff7dc748f159db4adb607e6267334396551abe8d74d82eb53bcfdf1c43852e73d027d249953cce532d2a681d722bd25ac960b537b2b69d1139852392
@@ -44,10 +44,6 @@ module Punchlist
44
44
  @source_file_globber.source_files_arr
45
45
  end
46
46
 
47
- def default_punchlist_line_regexp
48
- /XXX|TODO/
49
- end
50
-
51
47
  def punchlist_line_regexp
52
48
  return @regexp if @regexp
53
49
 
@@ -55,7 +51,7 @@ module Punchlist
55
51
  if regexp_string
56
52
  @regexp = Regexp.new(regexp_string)
57
53
  else
58
- default_punchlist_line_regexp
54
+ Options.default_punchlist_line_regexp
59
55
  end
60
56
  end
61
57
 
@@ -12,10 +12,18 @@ module Punchlist
12
12
  @source_finder_option_parser = source_finder_option_parser
13
13
  end
14
14
 
15
+ def self.default_punchlist_line_regexp_string
16
+ 'XXX|TODO|FIXME|OPTIMIZE|HACK|REVIEW|LATER|FIXIT'
17
+ end
18
+
19
+ def self.default_punchlist_line_regexp
20
+ Regexp.new(default_punchlist_line_regexp_string)
21
+ end
22
+
15
23
  def parse_regexp(opts, options)
16
24
  opts.on('-r', '--regexp r',
17
- 'Regexp to trigger on - ' \
18
- 'default is XXX|TODO') do |v|
25
+ 'Regexp to trigger opon - default is ' \
26
+ "#{self.class.default_punchlist_line_regexp_string}") do |v|
19
27
  options[:regexp] = v
20
28
  end
21
29
  end
@@ -1,5 +1,5 @@
1
1
  # Counts the number of 'todo' comments in your code ('Comment
2
2
  # annotations').
3
3
  module Punchlist
4
- VERSION = '1.1.1'
4
+ VERSION = '1.2.0'
5
5
  end
@@ -8,8 +8,8 @@ Gem::Specification.new do |s|
8
8
  s.version = Punchlist::VERSION
9
9
 
10
10
  s.authors = ['Vince Broz']
11
- s.description = 'punchlist finds the largest source files in your project ' \
12
- 'and reports on them'
11
+ s.description =
12
+ "punchlist lists your annotation comments--things like 'LATER/HACK/FIXIT'"
13
13
  s.email = ['vince@broz.cc']
14
14
  s.executables = ['punchlist']
15
15
  # s.extra_rdoc_files = ["CHANGELOG", "License.txt"]
@@ -30,7 +30,7 @@ Gem::Specification.new do |s|
30
30
 
31
31
  s.add_development_dependency('bundler')
32
32
  s.add_development_dependency('rake')
33
- s.add_development_dependency('quality')
33
+ s.add_development_dependency('quality', ['>=16'])
34
34
  s.add_development_dependency('rspec')
35
35
  s.add_development_dependency('simplecov')
36
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: punchlist
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vince Broz
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - '>='
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '16'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '>='
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '16'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -94,8 +94,7 @@ dependencies:
94
94
  - - '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
- description: punchlist finds the largest source files in your project and reports
98
- on them
97
+ description: punchlist lists your annotation comments--things like 'LATER/HACK/FIXIT'
99
98
  email:
100
99
  - vince@broz.cc
101
100
  executables: