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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6292518de50fbdcdd17c932d4ad6a58b96b0ce22
4
- data.tar.gz: 75a07f5035eb2221e4b55a027a9918fa5c201806
3
+ metadata.gz: ec76c450824e4af3f42f5ce4410f32e4f4c54907
4
+ data.tar.gz: 1d5e88a5cd281d6549742cc7ea700318f5338861
5
5
  SHA512:
6
- metadata.gz: 3f74012001d5f3d1696b8bbda078780417cd5d01cad736c17fe059981a043a9e28dd0a3c2e45d2aa1db03c936a312eb071296a1c6045c20950262595bc70e80a
7
- data.tar.gz: f33479b9dffcd35eb07aa720503f4019d136264abad07ad5f344333911200a28e0a2294a7cd6b15ffbe53a8a34016eb2b213819d07ed2c846c460d5c20ef08bb
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
- You can exclude certain files from the search, for example:
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:
@@ -54,8 +54,10 @@ module PDD
54
54
  end
55
55
  end
56
56
  lines.each_with_index do |line, idx|
57
- raise Error, "@todo found, but puzzle can't be parsed in line ##{idx}" \
58
- if line =~ /.*(^|\s)@todo\s+[^#]/
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
- raise "invalid puzzle marker: #{text}" if match.nil?
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]),
@@ -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.6'.freeze
28
+ VERSION = '0.17.7'.freeze
29
29
  end
@@ -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.6'
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', '10.5.0'
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.6
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 00:00:00.000000000 Z
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: '1.6'
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: '1.6'
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: 10.5.0
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: 10.5.0
54
+ version: 12.0.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: coveralls
57
57
  requirement: !ruby/object:Gem::Requirement