pdd 0.17.5 → 0.17.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2eac010a46d3fffb281c25ee03c0ae420253b8b0
4
- data.tar.gz: 1fca8687f26d3b19a0e943cace0fcfdd1301bc1b
3
+ metadata.gz: 6292518de50fbdcdd17c932d4ad6a58b96b0ce22
4
+ data.tar.gz: 75a07f5035eb2221e4b55a027a9918fa5c201806
5
5
  SHA512:
6
- metadata.gz: 3f4036a2e93cad1448131b21994a5919054c30b0afec8c4f7321913f4fced512fed20b786d37589a7e51148c39fd42894615742e9f8be059acee023fb970df62
7
- data.tar.gz: 872dfa74d5f2d53f8b68ffd537d0117d56aa32262a0cd1fb4cffd82815b2e5b5b69011fbbf47fe992c692c2c4d974ac6ba5324f7dc8216964557cbdcd8ff7e76
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?
@@ -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
  """
@@ -25,5 +25,5 @@
25
25
  # Copyright:: Copyright (c) 2014-2017 Yegor Bugayenko
26
26
  # License:: MIT
27
27
  module PDD
28
- VERSION = '0.17.5'.freeze
28
+ VERSION = '0.17.6'.freeze
29
29
  end
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.5
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-04-27 00:00:00.000000000 Z
11
+ date: 2017-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri