pdd 0.17.6 → 0.17.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -9
- data/lib/pdd/source.rb +8 -3
- data/lib/pdd/version.rb +1 -1
- data/pdd.gemspec +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec76c450824e4af3f42f5ce4410f32e4f4c54907
|
4
|
+
data.tar.gz: 1d5e88a5cd281d6549742cc7ea700318f5338861
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce64b6dd8470ae09692d22ebc76d8bc2d745ee68f6e3a9f6a11f5deea191f2b219340176cc6fd911e46e516feedf3991742af9a2c9ab3abf029467c3d0bab33d
|
7
|
+
data.tar.gz: 239ae9671857cf4ad2df81657c0e26052f9c7443e340d79d6264a0b4c787b044bdf179afb2d06012bf705df5d49f274d8adc9afb7b994f78f53cf4a0b0e81be9
|
data/README.md
CHANGED
@@ -38,6 +38,16 @@ Run it locally and read its output:
|
|
38
38
|
$ pdd --help
|
39
39
|
```
|
40
40
|
|
41
|
+
You can exclude certain files from the search, for example:
|
42
|
+
|
43
|
+
```bash
|
44
|
+
pdd --exclude=src/**/*.java --exclude=target/**/*
|
45
|
+
pdd --exclude=src/**/*.java # exclude .java files in src/
|
46
|
+
pdd --exclude=src/**/* # exclude all files in src/
|
47
|
+
```
|
48
|
+
|
49
|
+
## How to Format?
|
50
|
+
|
41
51
|
Every puzzle has to be formatted like this (pay attention
|
42
52
|
to the leading space in every consecutive line):
|
43
53
|
|
@@ -60,15 +70,7 @@ Possible formats of puzzle markers:
|
|
60
70
|
#678:40m/DEV
|
61
71
|
```
|
62
72
|
|
63
|
-
|
64
|
-
|
65
|
-
```bash
|
66
|
-
pdd --exclude=src/**/*.java --exclude=target/**/*
|
67
|
-
pdd --exclude=src/**/*.java # exclude .java files in src/
|
68
|
-
pdd --exclude=src/**/* # exclude all files in src/
|
69
|
-
```
|
70
|
-
|
71
|
-
## How to Configure Rules
|
73
|
+
## How to Configure Rules?
|
72
74
|
|
73
75
|
You can specify post-parsing rules for your puzzles, in command line,
|
74
76
|
for example:
|
data/lib/pdd/source.rb
CHANGED
@@ -54,8 +54,10 @@ module PDD
|
|
54
54
|
end
|
55
55
|
end
|
56
56
|
lines.each_with_index do |line, idx|
|
57
|
-
|
58
|
-
|
57
|
+
next unless line =~ /.*(^|\s)@todo\s+[^#]/
|
58
|
+
raise Error, "@todo found, but puzzle can't be parsed in line ##{idx}, \
|
59
|
+
most probably because @todo is not followed by a puzzle marker, as this page \
|
60
|
+
explains: https://github.com/yegor256/pdd#how-to-format"
|
59
61
|
end
|
60
62
|
puzzles
|
61
63
|
end
|
@@ -81,7 +83,10 @@ module PDD
|
|
81
83
|
def marker(text)
|
82
84
|
re = %r{([\w\-\.]+)(?::(\d+)(?:(m|h)[a-z]*)?)?(?:/([A-Z]+))?}
|
83
85
|
match = re.match(text)
|
84
|
-
|
86
|
+
if match.nil?
|
87
|
+
raise "Invalid puzzle marker \"#{text}\", most probably formatted \
|
88
|
+
against the rules explained here: https://github.com/yegor256/pdd#how-to-format"
|
89
|
+
end
|
85
90
|
{
|
86
91
|
ticket: match[1],
|
87
92
|
estimate: minutes(match[2], match[3]),
|
data/lib/pdd/version.rb
CHANGED
data/pdd.gemspec
CHANGED
@@ -44,9 +44,9 @@ Gem::Specification.new do |s|
|
|
44
44
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
45
45
|
s.rdoc_options = ['--charset=UTF-8']
|
46
46
|
s.extra_rdoc_files = ['README.md', 'LICENSE.txt']
|
47
|
-
s.add_runtime_dependency 'nokogiri', '~>1.
|
47
|
+
s.add_runtime_dependency 'nokogiri', '~>1.7.2'
|
48
48
|
s.add_runtime_dependency 'slop', '~>4.4.1'
|
49
|
-
s.add_development_dependency 'rake', '
|
49
|
+
s.add_development_dependency 'rake', '12.0.0'
|
50
50
|
s.add_development_dependency 'coveralls', '0.7.2'
|
51
51
|
s.add_development_dependency 'rdoc', '4.2.0'
|
52
52
|
s.add_development_dependency 'cucumber', '1.3.17'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.17.
|
4
|
+
version: 0.17.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yegor Bugayenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.7.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 1.7.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: slop
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 12.0.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 12.0.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: coveralls
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|