pdd 0.17.5 → 0.17.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/pdd +1 -1
- data/features/cli.feature +8 -0
- data/lib/pdd/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6292518de50fbdcdd17c932d4ad6a58b96b0ce22
|
4
|
+
data.tar.gz: 75a07f5035eb2221e4b55a027a9918fa5c201806
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f74012001d5f3d1696b8bbda078780417cd5d01cad736c17fe059981a043a9e28dd0a3c2e45d2aa1db03c936a312eb071296a1c6045c20950262595bc70e80a
|
7
|
+
data.tar.gz: f33479b9dffcd35eb07aa720503f4019d136264abad07ad5f344333911200a28e0a2294a7cd6b15ffbe53a8a34016eb2b213819d07ed2c846c460d5c20ef08bb
|
data/bin/pdd
CHANGED
@@ -42,7 +42,7 @@ opts = Slop.parse(args, strict: true, help: true) do |o|
|
|
42
42
|
o.string '-f', '--file', 'File to save XML into'
|
43
43
|
o.array '-e', '--exclude', 'Glob pattern to exclude'
|
44
44
|
o.string '-t', '--format', 'Format to use (xml|html)'
|
45
|
-
o.array '-r', '--rule', 'Rule to apply'
|
45
|
+
o.array '-r', '--rule', 'Rule to apply', delimiter: ';'
|
46
46
|
end
|
47
47
|
|
48
48
|
raise '-f is mandatory when using -v' if opts.verbose? && !opts.file?
|
data/features/cli.feature
CHANGED
@@ -29,6 +29,14 @@ Feature: Command Line Processing
|
|
29
29
|
And Stdout contains "reading ."
|
30
30
|
And XML file "out.xml" matches "/puzzles[count(puzzle)=1]"
|
31
31
|
|
32
|
+
Scenario: Using basic rules
|
33
|
+
Given I have a "sample.java" file with content:
|
34
|
+
"""
|
35
|
+
Nothing
|
36
|
+
"""
|
37
|
+
When I run bin/pdd with "-v -s . -f out.xml --rule min-words:20 --rule=available-roles:DEV,IMP,PO"
|
38
|
+
Then Exit code is zero
|
39
|
+
|
32
40
|
Scenario: Simple puzzles collecting into stdout
|
33
41
|
Given I have a "Sample.txt" file with content:
|
34
42
|
"""
|
data/lib/pdd/version.rb
CHANGED
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.6
|
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-
|
11
|
+
date: 2017-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|