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 +4 -4
- data/lib/punchlist.rb +1 -5
- data/lib/punchlist/options.rb +10 -2
- data/lib/punchlist/version.rb +1 -1
- data/punchlist.gemspec +3 -3
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3a91cd04e344a758a88d1892086339492be3306
|
4
|
+
data.tar.gz: cea784b35403f68c784694e64101b342fc0328b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5327b956982854e55f5b4e620ab0060825cd39e70838cccb818490e9f48dca889ccbc7329b94c416c2fd0465b815caa15f1004718a526321992bad392319419
|
7
|
+
data.tar.gz: c7663708ff7dc748f159db4adb607e6267334396551abe8d74d82eb53bcfdf1c43852e73d027d249953cce532d2a681d722bd25ac960b537b2b69d1139852392
|
data/lib/punchlist.rb
CHANGED
@@ -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
|
|
data/lib/punchlist/options.rb
CHANGED
@@ -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
|
18
|
-
|
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
|
data/lib/punchlist/version.rb
CHANGED
data/punchlist.gemspec
CHANGED
@@ -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 =
|
12
|
-
|
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.
|
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: '
|
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: '
|
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
|
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:
|