pdd 0.17.1 → 0.17.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.0pdd.yml +5 -0
- data/.pdd +11 -0
- data/.rultor.yml +2 -2
- data/.simplecov +1 -2
- data/Gemfile +1 -2
- data/LICENSE.txt +1 -2
- data/README.md +4 -0
- data/Rakefile +1 -2
- data/assets/puzzles.xsd +1 -2
- data/assets/puzzles.xsl +1 -2
- data/bin/pdd +1 -2
- data/features/step_definitions/steps.rb +1 -2
- data/features/support/env.rb +1 -2
- data/lib/pdd.rb +2 -3
- data/lib/pdd/puzzle.rb +1 -2
- data/lib/pdd/rule/duplicates.rb +1 -2
- data/lib/pdd/rule/estimates.rb +1 -2
- data/lib/pdd/rule/roles.rb +1 -2
- data/lib/pdd/rule/text.rb +1 -2
- data/lib/pdd/source.rb +1 -2
- data/lib/pdd/sources.rb +7 -10
- data/lib/pdd/version.rb +3 -4
- data/pdd.gemspec +2 -3
- data/test/test__helper.rb +1 -2
- data/test/test_duplicates.rb +2 -3
- data/test/test_estimates.rb +2 -3
- data/test/test_pdd.rb +5 -6
- data/test/test_roles.rb +2 -3
- data/test/test_source.rb +2 -3
- data/test/test_sources.rb +2 -3
- data/test/test_text.rb +2 -3
- metadata +6 -5
- data/PUZZLES.md +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 785afdc87a9645ad5b28e986751ef260572d8b79
|
4
|
+
data.tar.gz: b11c03bee8bd38b9c8047a01e8ef0023e5efb03f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f47c3728b82e73489fc7574533c343882528f5bf1364e37c8b6f2fa033bc1f077c6d51286b8c5be999e53b8edcf0af016096f6be6305dd4a1d8a056a86b5406a
|
7
|
+
data.tar.gz: 3f8a6fd4904254a6bebb1a73f8791fd03d2d7fe4b3e7e896eb55acd2b2e88152b7264c279380f58eb6cd7974e07f631af6bfbf4821ecb1c020ddffd4d95b468a
|
data/.0pdd.yml
ADDED
data/.pdd
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
--source=.
|
2
|
+
--verbose
|
3
|
+
--exclude target/**/*
|
4
|
+
--exclude coverage/**/*
|
5
|
+
--exclude features/**/*
|
6
|
+
--exclude README.md
|
7
|
+
--exclude test/test_source.rb
|
8
|
+
--exclude src/main/resources/images/**/*
|
9
|
+
--rule min-words:20
|
10
|
+
--rule min-estimate:15
|
11
|
+
--rule max-estimate:90
|
data/.rultor.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
assets:
|
2
|
-
rubygems.yml:
|
3
|
-
s3cfg:
|
2
|
+
rubygems.yml: zerocracy/home#assets/rubygems.yml
|
3
|
+
s3cfg: zerocracy/home#assets/s3cfg
|
4
4
|
install: |
|
5
5
|
sudo apt-get update
|
6
6
|
sudo apt-get install -y --fix-missing libmagic1 libmagic-dev
|
data/.simplecov
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014-
|
4
|
-
# Copyright (c) 2014-2016 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2017 Yegor Bugayenko
|
5
4
|
#
|
6
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/Gemfile
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014-
|
4
|
-
# Copyright (c) 2014-2016 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2017 Yegor Bugayenko
|
5
4
|
#
|
6
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/LICENSE.txt
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
(The MIT License)
|
2
2
|
|
3
|
-
Copyright (c) 2014-
|
4
|
-
Copyright (c) 2014-2016 Yegor Bugayenko
|
3
|
+
Copyright (c) 2014-2017 Yegor Bugayenko
|
5
4
|
|
6
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
6
|
of this software and associated documentation files (the 'Software'), to deal
|
data/README.md
CHANGED
@@ -18,6 +18,10 @@ Read this article about
|
|
18
18
|
[Puzzle Driven Development](http://www.yegor256.com/2009/03/04/pdd.html).
|
19
19
|
Check also patent application [US 12/840,306](http://www.google.com/patents/US20120023476)
|
20
20
|
|
21
|
+
Also, check [0pdd.com](http://www.0pdd.com): a hosted service,
|
22
|
+
where this command line tool works for you. Read this first:
|
23
|
+
[PDD in Action](http://www.yegor256.com/2017/04/05/pdd-in-action.html).
|
24
|
+
|
21
25
|
## How to Install?
|
22
26
|
|
23
27
|
Install it first:
|
data/Rakefile
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014-
|
4
|
-
# Copyright (c) 2014-2016 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2017 Yegor Bugayenko
|
5
4
|
#
|
6
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/assets/puzzles.xsd
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
<?xml version="1.0"?>
|
2
2
|
<!--
|
3
|
-
* Copyright (c) 2014-
|
4
|
-
* Copyright (c) 2014-2016 Yegor Bugayenko
|
3
|
+
* Copyright (c) 2014-2017 Yegor Bugayenko
|
5
4
|
*
|
6
5
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
6
|
* of this software and associated documentation files (the 'Software'), to deal
|
data/assets/puzzles.xsl
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
<?xml version="1.0"?>
|
2
2
|
<!--
|
3
|
-
* Copyright (c) 2014-
|
4
|
-
* Copyright (c) 2014-2016 Yegor Bugayenko
|
3
|
+
* Copyright (c) 2014-2017 Yegor Bugayenko
|
5
4
|
*
|
6
5
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
6
|
* of this software and associated documentation files (the 'Software'), to deal
|
data/bin/pdd
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# encoding: utf-8
|
3
3
|
#
|
4
|
-
# Copyright (c) 2014-
|
5
|
-
# Copyright (c) 2014-2016 Yegor Bugayenko
|
4
|
+
# Copyright (c) 2014-2017 Yegor Bugayenko
|
6
5
|
#
|
7
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -1,7 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014-
|
4
|
-
# Copyright (c) 2014-2016 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2017 Yegor Bugayenko
|
5
4
|
#
|
6
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/features/support/env.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014-
|
4
|
-
# Copyright (c) 2014-2016 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2017 Yegor Bugayenko
|
5
4
|
#
|
6
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/pdd.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014-
|
4
|
-
# Copyright (c) 2014-2016 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2017 Yegor Bugayenko
|
5
4
|
#
|
6
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -33,7 +32,7 @@ require 'time'
|
|
33
32
|
|
34
33
|
# PDD main module.
|
35
34
|
# Author:: Yegor Bugayenko (yegor@teamed.io)
|
36
|
-
# Copyright:: Copyright (c) 2014-
|
35
|
+
# Copyright:: Copyright (c) 2014-2017 Yegor Bugayenko
|
37
36
|
# License:: MIT
|
38
37
|
module PDD
|
39
38
|
# If it breaks.
|
data/lib/pdd/puzzle.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014-
|
4
|
-
# Copyright (c) 2014-2016 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2017 Yegor Bugayenko
|
5
4
|
#
|
6
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/pdd/rule/duplicates.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014-
|
4
|
-
# Copyright (c) 2014-2016 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2017 Yegor Bugayenko
|
5
4
|
#
|
6
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/pdd/rule/estimates.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014-
|
4
|
-
# Copyright (c) 2014-2016 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2017 Yegor Bugayenko
|
5
4
|
#
|
6
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/pdd/rule/roles.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014-
|
4
|
-
# Copyright (c) 2014-2016 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2017 Yegor Bugayenko
|
5
4
|
#
|
6
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/pdd/rule/text.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014-
|
4
|
-
# Copyright (c) 2014-2016 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2017 Yegor Bugayenko
|
5
4
|
#
|
6
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/pdd/source.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014-
|
4
|
-
# Copyright (c) 2014-2016 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2017 Yegor Bugayenko
|
5
4
|
#
|
6
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/pdd/sources.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014-
|
4
|
-
# Copyright (c) 2014-2016 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2017 Yegor Bugayenko
|
5
4
|
#
|
6
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -23,7 +22,6 @@
|
|
23
22
|
|
24
23
|
require 'ptools'
|
25
24
|
require 'pdd/source'
|
26
|
-
require 'rake/file_list'
|
27
25
|
|
28
26
|
module PDD
|
29
27
|
# Code base abstraction
|
@@ -32,18 +30,17 @@ module PDD
|
|
32
30
|
# +dir+:: Directory with source code files
|
33
31
|
def initialize(dir, ptns = [])
|
34
32
|
@dir = dir
|
35
|
-
@exclude = ptns
|
33
|
+
@exclude = ptns + ['.git/**/*']
|
36
34
|
end
|
37
35
|
|
38
36
|
# Fetch all sources.
|
39
37
|
def fetch
|
40
|
-
files =
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
end
|
38
|
+
files = Dir.glob(File.join(@dir, '**/*'), File::FNM_DOTMATCH)
|
39
|
+
@exclude.each do |ptn|
|
40
|
+
Dir.glob(File.join(@dir, ptn), File::FNM_DOTMATCH) do |f|
|
41
|
+
files.delete_if { |i| i == f }
|
45
42
|
end
|
46
|
-
end
|
43
|
+
end
|
47
44
|
PDD.log.info "#{files.size} file(s) found"
|
48
45
|
files.select { |f| !File.directory?(f) && !File.binary?(f) }.map do |file|
|
49
46
|
VerboseSource.new(
|
data/lib/pdd/version.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014-
|
4
|
-
# Copyright (c) 2014-2016 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2017 Yegor Bugayenko
|
5
4
|
#
|
6
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -23,8 +22,8 @@
|
|
23
22
|
|
24
23
|
# PDD main module.
|
25
24
|
# Author:: Yegor Bugayenko (yegor@teamed.io)
|
26
|
-
# Copyright:: Copyright (c) 2014-
|
25
|
+
# Copyright:: Copyright (c) 2014-2017 Yegor Bugayenko
|
27
26
|
# License:: MIT
|
28
27
|
module PDD
|
29
|
-
VERSION = '0.17.
|
28
|
+
VERSION = '0.17.2'.freeze
|
30
29
|
end
|
data/pdd.gemspec
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014-
|
4
|
-
# Copyright (c) 2014-2016 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2017 Yegor Bugayenko
|
5
4
|
#
|
6
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -39,7 +38,7 @@ Gem::Specification.new do |s|
|
|
39
38
|
s.description = 'Collects PDD puzzles from source code base'
|
40
39
|
s.authors = ['Yegor Bugayenko']
|
41
40
|
s.email = 'yegor@teamed.io'
|
42
|
-
s.homepage = 'http://github.com/
|
41
|
+
s.homepage = 'http://github.com/yegor256/pdd'
|
43
42
|
s.files = `git ls-files`.split($RS)
|
44
43
|
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
45
44
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
data/test/test__helper.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014-
|
4
|
-
# Copyright (c) 2014-2016 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2017 Yegor Bugayenko
|
5
4
|
#
|
6
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/test/test_duplicates.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014-
|
4
|
-
# Copyright (c) 2014-2016 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2017 Yegor Bugayenko
|
5
4
|
#
|
6
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -27,7 +26,7 @@ require 'pdd/rule/duplicates'
|
|
27
26
|
|
28
27
|
# PDD::Rule::MaxDuplicates class test.
|
29
28
|
# Author:: Yegor Bugayenko (yegor@teamed.io)
|
30
|
-
# Copyright:: Copyright (c) 2014-
|
29
|
+
# Copyright:: Copyright (c) 2014-2017 Yegor Bugayenko
|
31
30
|
# License:: MIT
|
32
31
|
class TestMaxDuplicates < Minitest::Test
|
33
32
|
def test_max_duplicates
|
data/test/test_estimates.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014-
|
4
|
-
# Copyright (c) 2014-2016 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2017 Yegor Bugayenko
|
5
4
|
#
|
6
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -27,7 +26,7 @@ require 'pdd/rule/estimates'
|
|
27
26
|
|
28
27
|
# PDD::Rule::Estimate module tests.
|
29
28
|
# Author:: Yegor Bugayenko (yegor@teamed.io)
|
30
|
-
# Copyright:: Copyright (c) 2014-
|
29
|
+
# Copyright:: Copyright (c) 2014-2017 Yegor Bugayenko
|
31
30
|
# License:: MIT
|
32
31
|
class TestEstimates < Minitest::Test
|
33
32
|
def test_min
|
data/test/test_pdd.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014-
|
4
|
-
# Copyright (c) 2014-2016 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2017 Yegor Bugayenko
|
5
4
|
#
|
6
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -29,7 +28,7 @@ require 'slop'
|
|
29
28
|
|
30
29
|
# PDD main module test.
|
31
30
|
# Author:: Yegor Bugayenko (yegor@teamed.io)
|
32
|
-
# Copyright:: Copyright (c) 2014-
|
31
|
+
# Copyright:: Copyright (c) 2014-2017 Yegor Bugayenko
|
33
32
|
# License:: MIT
|
34
33
|
class TestPDD < Minitest::Test
|
35
34
|
def test_basic
|
@@ -69,8 +68,8 @@ class TestPDD < Minitest::Test
|
|
69
68
|
git init .
|
70
69
|
git config user.email test@teamed.io
|
71
70
|
git config user.name 'Mr. Tester'
|
72
|
-
echo '@todo #1 this is the puzzle' > x.txt
|
73
|
-
git add x.txt
|
71
|
+
echo '@todo #1 this is the puzzle' > .x.txt
|
72
|
+
git add .x.txt
|
74
73
|
git commit -am 'first version'
|
75
74
|
")
|
76
75
|
matches(
|
@@ -78,7 +77,7 @@ class TestPDD < Minitest::Test
|
|
78
77
|
[
|
79
78
|
'/puzzles[count(puzzle)=1]',
|
80
79
|
'/puzzles/puzzle[id]',
|
81
|
-
'/puzzles/puzzle[file="x.txt"]',
|
80
|
+
'/puzzles/puzzle[file=".x.txt"]',
|
82
81
|
'/puzzles/puzzle[author="Mr. Tester"]',
|
83
82
|
'/puzzles/puzzle[email="test@teamed.io"]',
|
84
83
|
'/puzzles/puzzle[time]'
|
data/test/test_roles.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014-
|
4
|
-
# Copyright (c) 2014-2016 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2017 Yegor Bugayenko
|
5
4
|
#
|
6
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -27,7 +26,7 @@ require 'pdd/rule/roles'
|
|
27
26
|
|
28
27
|
# PDD::Rule::Role module tests.
|
29
28
|
# Author:: Yegor Bugayenko (yegor@teamed.io)
|
30
|
-
# Copyright:: Copyright (c) 2014-
|
29
|
+
# Copyright:: Copyright (c) 2014-2017 Yegor Bugayenko
|
31
30
|
# License:: MIT
|
32
31
|
class TestRoles < Minitest::Test
|
33
32
|
def test_incorrect_role
|
data/test/test_source.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014-
|
4
|
-
# Copyright (c) 2014-2016 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2017 Yegor Bugayenko
|
5
4
|
#
|
6
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -27,7 +26,7 @@ require 'tmpdir'
|
|
27
26
|
|
28
27
|
# Source test.
|
29
28
|
# Author:: Yegor Bugayenko (yegor@teamed.io)
|
30
|
-
# Copyright:: Copyright (c) 2014-
|
29
|
+
# Copyright:: Copyright (c) 2014-2017 Yegor Bugayenko
|
31
30
|
# License:: MIT
|
32
31
|
class TestSource < Minitest::Test
|
33
32
|
def test_parsing
|
data/test/test_sources.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014-
|
4
|
-
# Copyright (c) 2014-2016 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2017 Yegor Bugayenko
|
5
4
|
#
|
6
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -28,7 +27,7 @@ require 'tmpdir'
|
|
28
27
|
|
29
28
|
# Sources test.
|
30
29
|
# Author:: Yegor Bugayenko (yegor@teamed.io)
|
31
|
-
# Copyright:: Copyright (c) 2014-
|
30
|
+
# Copyright:: Copyright (c) 2014-2017 Yegor Bugayenko
|
32
31
|
# License:: MIT
|
33
32
|
class TestSources < Minitest::Test
|
34
33
|
def test_iterator
|
data/test/test_text.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014-
|
4
|
-
# Copyright (c) 2014-2016 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2017 Yegor Bugayenko
|
5
4
|
#
|
6
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -27,7 +26,7 @@ require 'pdd/rule/text'
|
|
27
26
|
|
28
27
|
# PDD::Rule::Text module tests.
|
29
28
|
# Author:: Yegor Bugayenko (yegor@teamed.io)
|
30
|
-
# Copyright:: Copyright (c) 2014-
|
29
|
+
# Copyright:: Copyright (c) 2014-2017 Yegor Bugayenko
|
31
30
|
# License:: MIT
|
32
31
|
class TestText < Minitest::Test
|
33
32
|
def test_min_words
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yegor Bugayenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -173,16 +173,17 @@ extra_rdoc_files:
|
|
173
173
|
- README.md
|
174
174
|
- LICENSE.txt
|
175
175
|
files:
|
176
|
+
- ".0pdd.yml"
|
176
177
|
- ".coveralls.yml"
|
177
178
|
- ".gitattributes"
|
178
179
|
- ".gitignore"
|
180
|
+
- ".pdd"
|
179
181
|
- ".rubocop.yml"
|
180
182
|
- ".rultor.yml"
|
181
183
|
- ".simplecov"
|
182
184
|
- ".travis.yml"
|
183
185
|
- Gemfile
|
184
186
|
- LICENSE.txt
|
185
|
-
- PUZZLES.md
|
186
187
|
- README.md
|
187
188
|
- Rakefile
|
188
189
|
- TEAM.md
|
@@ -220,7 +221,7 @@ files:
|
|
220
221
|
- test/test_source.rb
|
221
222
|
- test/test_sources.rb
|
222
223
|
- test/test_text.rb
|
223
|
-
homepage: http://github.com/
|
224
|
+
homepage: http://github.com/yegor256/pdd
|
224
225
|
licenses:
|
225
226
|
- MIT
|
226
227
|
metadata: {}
|
@@ -241,7 +242,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
241
242
|
version: '0'
|
242
243
|
requirements: []
|
243
244
|
rubyforge_project:
|
244
|
-
rubygems_version: 2.4.5.
|
245
|
+
rubygems_version: 2.4.5.2
|
245
246
|
signing_key:
|
246
247
|
specification_version: 2
|
247
248
|
summary: Puzzle Driven Development collector
|
data/PUZZLES.md
DELETED