pdd 0.15.2 → 0.15.3
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 +4 -4
- data/.rultor.yml +2 -1
- data/.simplecov +18 -8
- data/.travis.yml +6 -3
- data/Gemfile +2 -2
- data/LICENSE.txt +2 -2
- data/PUZZLES.md +4 -0
- data/README.md +1 -0
- data/Rakefile +11 -3
- data/appveyor.yml +21 -0
- data/assets/puzzles.xsd +3 -3
- data/assets/puzzles.xsl +3 -3
- data/bin/pdd +2 -2
- data/features/gem_package.feature +1 -1
- data/features/step_definitions/steps.rb +10 -2
- data/features/support/env.rb +2 -2
- data/features/unicode.feature +2 -0
- data/lib/pdd.rb +3 -3
- data/lib/pdd/puzzle.rb +2 -2
- data/lib/pdd/rule/duplicates.rb +2 -2
- data/lib/pdd/rule/estimates.rb +2 -2
- data/lib/pdd/rule/roles.rb +2 -2
- data/lib/pdd/rule/text.rb +2 -2
- data/lib/pdd/source.rb +2 -2
- data/lib/pdd/sources.rb +2 -2
- data/lib/pdd/version.rb +4 -4
- data/pdd.gemspec +3 -3
- data/test/test__helper.rb +2 -2
- data/test/test_duplicates.rb +3 -3
- data/test/test_estimates.rb +3 -3
- data/test/test_pdd.rb +4 -3
- data/test/test_roles.rb +3 -3
- data/test/test_source.rb +6 -4
- data/test/test_sources.rb +3 -3
- data/test/test_text.rb +3 -3
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ff02626f865f95d2b23a821a5abc5007ac763e7
|
4
|
+
data.tar.gz: 5ac797d362497d307137b802edd4a8a6f7300b90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bb015242ad6d26ef1beff8a12e4ac7f35b92f4025c992edf6265a207b52287187c81c206cd2fb4dc470477c9e7b3c1b35168e1ee31fa42109f08f7f966d4363
|
7
|
+
data.tar.gz: 62a8eee0eb0ca278efa0123c794984160dc42501c80f77287e3c8371e5b1ccc21ad176d41da09a1117e0f921d133a6bc3e24f20e21e39b9b9e249b08e738425a
|
data/.rultor.yml
CHANGED
@@ -16,6 +16,7 @@ release:
|
|
16
16
|
gem build pdd.gemspec
|
17
17
|
chmod 0600 ../rubygems.yml
|
18
18
|
gem push *.gem --config-file ../rubygems.yml
|
19
|
+
gem install pdd
|
19
20
|
pdd --source=$(pwd) --verbose --file=pdd.xml -e=test/** -e=features/** -e=README.md
|
20
21
|
s3cmd --no-progress put pdd.xml --config=../s3cfg s3://pdd.teamed.io/pdd.xml
|
21
22
|
s3cmd --no-progress put assets/puzzles.xsd --acl-public --config=../s3cfg s3://pdd-xsd.teamed.io/${tag}.xsd
|
@@ -27,4 +28,4 @@ architect:
|
|
27
28
|
- davvd
|
28
29
|
merge:
|
29
30
|
commanders: []
|
30
|
-
deploy: {}
|
31
|
+
deploy: {}
|
data/.simplecov
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014 TechnoPark Corp.
|
4
|
-
# Copyright (c) 2014 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2016 TechnoPark Corp.
|
4
|
+
# Copyright (c) 2014-2016 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -23,12 +23,22 @@
|
|
23
23
|
|
24
24
|
require 'coveralls'
|
25
25
|
|
26
|
-
|
26
|
+
if Gem.win_platform? then
|
27
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
28
|
+
SimpleCov::Formatter::HTMLFormatter
|
29
|
+
]
|
30
|
+
SimpleCov.start do
|
31
|
+
add_filter "/test/"
|
32
|
+
add_filter "/features/"
|
33
|
+
end
|
34
|
+
else
|
35
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
27
36
|
SimpleCov::Formatter::HTMLFormatter,
|
28
37
|
Coveralls::SimpleCov::Formatter
|
29
|
-
]
|
30
|
-
SimpleCov.start do
|
31
|
-
|
32
|
-
|
33
|
-
|
38
|
+
]
|
39
|
+
SimpleCov.start do
|
40
|
+
add_filter "/test/"
|
41
|
+
add_filter "/features/"
|
42
|
+
minimum_coverage 100
|
43
|
+
end
|
34
44
|
end
|
data/.travis.yml
CHANGED
@@ -5,10 +5,13 @@ cache: bundler
|
|
5
5
|
branches:
|
6
6
|
only:
|
7
7
|
- master
|
8
|
+
addons:
|
9
|
+
apt:
|
10
|
+
packages:
|
11
|
+
- libmagic1
|
12
|
+
- libmagic-dev
|
8
13
|
install:
|
9
|
-
-
|
10
|
-
- travis_retry sudo apt-get install -y --fix-missing libmagic1 libmagic-dev
|
11
|
-
- travis_retry bundle install
|
14
|
+
- travis_retry bundle update
|
12
15
|
script:
|
13
16
|
- rake
|
14
17
|
|
data/Gemfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014 TechnoPark Corp.
|
4
|
-
# Copyright (c) 2014 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2016 TechnoPark Corp.
|
4
|
+
# Copyright (c) 2014-2016 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/LICENSE.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
(The MIT License)
|
2
2
|
|
3
|
-
Copyright (c) 2014 TechnoPark Corp.
|
4
|
-
Copyright (c) 2014 Yegor Bugayenko
|
3
|
+
Copyright (c) 2014-2016 TechnoPark Corp.
|
4
|
+
Copyright (c) 2014-2016 Yegor Bugayenko
|
5
5
|
|
6
6
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
of this software and associated documentation files (the 'Software'), to deal
|
data/PUZZLES.md
ADDED
data/README.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
[](http://www.rultor.com/p/teamed/pdd)
|
3
3
|
|
4
4
|
[](https://travis-ci.org/teamed/pdd)
|
5
|
+
[](https://ci.appveyor.com/project/yegor256/pdd)
|
5
6
|
[](http://badge.fury.io/rb/pdd)
|
6
7
|
[](https://gemnasium.com/teamed/pdd)
|
7
8
|
[](https://codeclimate.com/github/teamed/pdd)
|
data/Rakefile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014 TechnoPark Corp.
|
4
|
-
# Copyright (c) 2014 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2016 TechnoPark Corp.
|
4
|
+
# Copyright (c) 2014-2016 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -34,7 +34,7 @@ def version
|
|
34
34
|
Gem::Specification.load(Dir['*.gemspec'].first).version
|
35
35
|
end
|
36
36
|
|
37
|
-
task default: [:clean, :test, :features, :rubocop]
|
37
|
+
task default: [:clean, :test, :features, :rubocop, :copyright]
|
38
38
|
|
39
39
|
require 'rake/testtask'
|
40
40
|
desc 'Run all unit tests'
|
@@ -69,3 +69,11 @@ end
|
|
69
69
|
Cucumber::Rake::Task.new(:"features:html") do |t|
|
70
70
|
t.profile = 'html_report'
|
71
71
|
end
|
72
|
+
|
73
|
+
task :copyright do
|
74
|
+
sh "grep -q -r '2014-#{Date.today.strftime('%Y')}' \
|
75
|
+
--include '*.rb' \
|
76
|
+
--include '*.txt' \
|
77
|
+
--include 'Rakefile' \
|
78
|
+
."
|
79
|
+
end
|
data/appveyor.yml
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
version: '{build}'
|
2
|
+
skip_tags: true
|
3
|
+
clone_depth: 10
|
4
|
+
branches:
|
5
|
+
only:
|
6
|
+
- master
|
7
|
+
except:
|
8
|
+
- gh-pages
|
9
|
+
os: Windows Server 2012
|
10
|
+
install:
|
11
|
+
- cmd: SET PATH=C:\Ruby200\bin;%PATH%
|
12
|
+
- cmd: ruby --version
|
13
|
+
- cmd: git --version
|
14
|
+
build_script:
|
15
|
+
- bundle update
|
16
|
+
- bundle install
|
17
|
+
test_script:
|
18
|
+
- rake
|
19
|
+
cache:
|
20
|
+
- C:\Ruby200\bin -> pdd.gemspec
|
21
|
+
- C:\Ruby200\lib\ruby\gems\2.0.0 -> pdd.gemspec
|
data/assets/puzzles.xsd
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
<?xml version="1.0"?>
|
2
2
|
<!--
|
3
|
-
* Copyright (c) 2014 TechnoPark Corp.
|
4
|
-
* Copyright (c) 2014 Yegor Bugayenko
|
3
|
+
* Copyright (c) 2014-2016 TechnoPark Corp.
|
4
|
+
* Copyright (c) 2014-2016 Yegor Bugayenko
|
5
5
|
*
|
6
6
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
* of this software and associated documentation files (the 'Software'), to deal
|
@@ -103,4 +103,4 @@
|
|
103
103
|
<xs:field xpath="body" />
|
104
104
|
</xs:unique>
|
105
105
|
</xs:element>
|
106
|
-
</xs:schema>
|
106
|
+
</xs:schema>
|
data/assets/puzzles.xsl
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
<?xml version="1.0"?>
|
2
2
|
<!--
|
3
|
-
* Copyright (c) 2014 TechnoPark Corp.
|
4
|
-
* Copyright (c) 2014 Yegor Bugayenko
|
3
|
+
* Copyright (c) 2014-2016 TechnoPark Corp.
|
4
|
+
* Copyright (c) 2014-2016 Yegor Bugayenko
|
5
5
|
*
|
6
6
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
* of this software and associated documentation files (the 'Software'), to deal
|
@@ -100,4 +100,4 @@
|
|
100
100
|
<td><xsl:value-of select="role"/></td>
|
101
101
|
</tr>
|
102
102
|
</xsl:template>
|
103
|
-
</xsl:stylesheet>
|
103
|
+
</xsl:stylesheet>
|
data/bin/pdd
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# encoding: utf-8
|
3
3
|
#
|
4
|
-
# Copyright (c) 2014 TechnoPark Corp.
|
5
|
-
# Copyright (c) 2014 Yegor Bugayenko
|
4
|
+
# Copyright (c) 2014-2016 TechnoPark Corp.
|
5
|
+
# Copyright (c) 2014-2016 Yegor Bugayenko
|
6
6
|
#
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
8
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -3,6 +3,7 @@ Feature: Gem Package
|
|
3
3
|
package the Gem into .gem file
|
4
4
|
|
5
5
|
Scenario: Gem can be packaged
|
6
|
+
Given It is Unix
|
6
7
|
Given I have a "execs.rb" file with content:
|
7
8
|
"""
|
8
9
|
#!/usr/bin/env ruby
|
@@ -12,7 +13,6 @@ Feature: Gem Package
|
|
12
13
|
"""
|
13
14
|
When I run bash with
|
14
15
|
"""
|
15
|
-
set -e
|
16
16
|
cd pdd
|
17
17
|
gem build pdd.gemspec
|
18
18
|
gem specification --ruby pdd-*.gem > ../spec.rb
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014 TechnoPark Corp.
|
4
|
-
# Copyright (c) 2014 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2016 TechnoPark Corp.
|
4
|
+
# Copyright (c) 2014-2016 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -108,3 +108,11 @@ When(/^I run bash with$/) do |text|
|
|
108
108
|
@stdout = `#{text}`
|
109
109
|
@exitstatus = $CHILD_STATUS.exitstatus
|
110
110
|
end
|
111
|
+
|
112
|
+
Given(/^It is Unix$/) do
|
113
|
+
pending if Gem.win_platform?
|
114
|
+
end
|
115
|
+
|
116
|
+
Given(/^It is Windows$/) do
|
117
|
+
pending unless Gem.win_platform?
|
118
|
+
end
|
data/features/support/env.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014 TechnoPark Corp.
|
4
|
-
# Copyright (c) 2014 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2016 TechnoPark Corp.
|
4
|
+
# Copyright (c) 2014-2016 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/features/unicode.feature
CHANGED
@@ -3,6 +3,7 @@ Feature: Unicode
|
|
3
3
|
work with Unicode files
|
4
4
|
|
5
5
|
Scenario: Unicode on ASCII locale
|
6
|
+
Given It is Unix
|
6
7
|
Given I have a "test.txt" file with content:
|
7
8
|
"""
|
8
9
|
# @todo #44 привет, друзья
|
@@ -14,6 +15,7 @@ Feature: Unicode
|
|
14
15
|
Then Exit code is zero
|
15
16
|
|
16
17
|
Scenario: Skip file with broken Unicode
|
18
|
+
Given It is Unix
|
17
19
|
Given I have a "test.txt" file with content:
|
18
20
|
"""
|
19
21
|
\xBF test
|
data/lib/pdd.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014 TechnoPark Corp.
|
4
|
-
# Copyright (c) 2014 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2016 TechnoPark Corp.
|
4
|
+
# Copyright (c) 2014-2016 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -33,7 +33,7 @@ require 'time'
|
|
33
33
|
|
34
34
|
# PDD main module.
|
35
35
|
# Author:: Yegor Bugayenko (yegor@teamed.io)
|
36
|
-
# Copyright:: Copyright (c) 2014 Yegor Bugayenko
|
36
|
+
# Copyright:: Copyright (c) 2014-2016 Yegor Bugayenko
|
37
37
|
# License:: MIT
|
38
38
|
module PDD
|
39
39
|
# If it breaks.
|
data/lib/pdd/puzzle.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014 TechnoPark Corp.
|
4
|
-
# Copyright (c) 2014 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2016 TechnoPark Corp.
|
4
|
+
# Copyright (c) 2014-2016 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/pdd/rule/duplicates.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014 TechnoPark Corp.
|
4
|
-
# Copyright (c) 2014 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2016 TechnoPark Corp.
|
4
|
+
# Copyright (c) 2014-2016 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/pdd/rule/estimates.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014 TechnoPark Corp.
|
4
|
-
# Copyright (c) 2014 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2016 TechnoPark Corp.
|
4
|
+
# Copyright (c) 2014-2016 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/pdd/rule/roles.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014 TechnoPark Corp.
|
4
|
-
# Copyright (c) 2014 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2016 TechnoPark Corp.
|
4
|
+
# Copyright (c) 2014-2016 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/pdd/rule/text.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014 TechnoPark Corp.
|
4
|
-
# Copyright (c) 2014 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2016 TechnoPark Corp.
|
4
|
+
# Copyright (c) 2014-2016 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/pdd/source.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014 TechnoPark Corp.
|
4
|
-
# Copyright (c) 2014 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2016 TechnoPark Corp.
|
4
|
+
# Copyright (c) 2014-2016 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/pdd/sources.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014 TechnoPark Corp.
|
4
|
-
# Copyright (c) 2014 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2016 TechnoPark Corp.
|
4
|
+
# Copyright (c) 2014-2016 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/lib/pdd/version.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014 TechnoPark Corp.
|
4
|
-
# Copyright (c) 2014 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2016 TechnoPark Corp.
|
4
|
+
# Copyright (c) 2014-2016 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -23,8 +23,8 @@
|
|
23
23
|
|
24
24
|
# PDD main module.
|
25
25
|
# Author:: Yegor Bugayenko (yegor@teamed.io)
|
26
|
-
# Copyright:: Copyright (c) 2014 Yegor Bugayenko
|
26
|
+
# Copyright:: Copyright (c) 2014-2016 Yegor Bugayenko
|
27
27
|
# License:: MIT
|
28
28
|
module PDD
|
29
|
-
VERSION = '0.15.
|
29
|
+
VERSION = '0.15.3'
|
30
30
|
end
|
data/pdd.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014 TechnoPark Corp.
|
4
|
-
# Copyright (c) 2014 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2016 TechnoPark Corp.
|
4
|
+
# Copyright (c) 2014-2016 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -45,7 +45,7 @@ Gem::Specification.new do |s|
|
|
45
45
|
s.test_files = s.files.grep(/^(test|spec|features)\//)
|
46
46
|
s.rdoc_options = ['--charset=UTF-8']
|
47
47
|
s.extra_rdoc_files = ['README.md', 'LICENSE.txt']
|
48
|
-
s.add_runtime_dependency 'nokogiri', '1.6.7'
|
48
|
+
s.add_runtime_dependency 'nokogiri', '1.6.7.1'
|
49
49
|
s.add_runtime_dependency 'ruby-filemagic', '0.7.1'
|
50
50
|
s.add_runtime_dependency 'slop', '3.6.0'
|
51
51
|
s.add_runtime_dependency 'rake', '10.4.2'
|
data/test/test__helper.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014 TechnoPark Corp.
|
4
|
-
# Copyright (c) 2014 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2016 TechnoPark Corp.
|
4
|
+
# Copyright (c) 2014-2016 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/test/test_duplicates.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014 TechnoPark Corp.
|
4
|
-
# Copyright (c) 2014 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2016 TechnoPark Corp.
|
4
|
+
# Copyright (c) 2014-2016 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -27,7 +27,7 @@ require 'pdd/rule/duplicates'
|
|
27
27
|
|
28
28
|
# PDD::Rule::MaxDuplicates class test.
|
29
29
|
# Author:: Yegor Bugayenko (yegor@teamed.io)
|
30
|
-
# Copyright:: Copyright (c) 2014 Yegor Bugayenko
|
30
|
+
# Copyright:: Copyright (c) 2014-2016 Yegor Bugayenko
|
31
31
|
# License:: MIT
|
32
32
|
class TestMaxDuplicates < Minitest::Test
|
33
33
|
def test_max_duplicates
|
data/test/test_estimates.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014 TechnoPark Corp.
|
4
|
-
# Copyright (c) 2014 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2016 TechnoPark Corp.
|
4
|
+
# Copyright (c) 2014-2016 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -27,7 +27,7 @@ require 'pdd/rule/estimates'
|
|
27
27
|
|
28
28
|
# PDD::Rule::Estimate module tests.
|
29
29
|
# Author:: Yegor Bugayenko (yegor@teamed.io)
|
30
|
-
# Copyright:: Copyright (c) 2014 Yegor Bugayenko
|
30
|
+
# Copyright:: Copyright (c) 2014-2016 Yegor Bugayenko
|
31
31
|
# License:: MIT
|
32
32
|
class TestEstimates < Minitest::Test
|
33
33
|
def test_min
|
data/test/test_pdd.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014 TechnoPark Corp.
|
4
|
-
# Copyright (c) 2014 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2016 TechnoPark Corp.
|
4
|
+
# Copyright (c) 2014-2016 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -29,7 +29,7 @@ require 'slop'
|
|
29
29
|
|
30
30
|
# PDD main module test.
|
31
31
|
# Author:: Yegor Bugayenko (yegor@teamed.io)
|
32
|
-
# Copyright:: Copyright (c) 2014 Yegor Bugayenko
|
32
|
+
# Copyright:: Copyright (c) 2014-2016 Yegor Bugayenko
|
33
33
|
# License:: MIT
|
34
34
|
class TestPDD < Minitest::Test
|
35
35
|
def test_basic
|
@@ -60,6 +60,7 @@ class TestPDD < Minitest::Test
|
|
60
60
|
end
|
61
61
|
|
62
62
|
def test_git_repo
|
63
|
+
skip if Gem.win_platform?
|
63
64
|
Dir.mktmpdir 'test' do |dir|
|
64
65
|
opts = opts(['-v', '-s', dir])
|
65
66
|
fail unless system("
|
data/test/test_roles.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014 TechnoPark Corp.
|
4
|
-
# Copyright (c) 2014 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2016 TechnoPark Corp.
|
4
|
+
# Copyright (c) 2014-2016 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -27,7 +27,7 @@ require 'pdd/rule/roles'
|
|
27
27
|
|
28
28
|
# PDD::Rule::Role module tests.
|
29
29
|
# Author:: Yegor Bugayenko (yegor@teamed.io)
|
30
|
-
# Copyright:: Copyright (c) 2014 Yegor Bugayenko
|
30
|
+
# Copyright:: Copyright (c) 2014-2016 Yegor Bugayenko
|
31
31
|
# License:: MIT
|
32
32
|
class TestRoles < Minitest::Test
|
33
33
|
def test_incorrect_role
|
data/test/test_source.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014 TechnoPark Corp.
|
4
|
-
# Copyright (c) 2014 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2016 TechnoPark Corp.
|
4
|
+
# Copyright (c) 2014-2016 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -27,9 +27,9 @@ require 'tmpdir'
|
|
27
27
|
|
28
28
|
# Source test.
|
29
29
|
# Author:: Yegor Bugayenko (yegor@teamed.io)
|
30
|
-
# Copyright:: Copyright (c) 2014 Yegor Bugayenko
|
30
|
+
# Copyright:: Copyright (c) 2014-2016 Yegor Bugayenko
|
31
31
|
# License:: MIT
|
32
|
-
class
|
32
|
+
class TestSource < Minitest::Test
|
33
33
|
def test_parsing
|
34
34
|
Dir.mktmpdir 'test' do |dir|
|
35
35
|
file = File.join(dir, 'a.txt')
|
@@ -87,6 +87,7 @@ class TestSources < Minitest::Test
|
|
87
87
|
end
|
88
88
|
|
89
89
|
def test_failing_on_broken_unicode
|
90
|
+
skip if Gem.win_platform?
|
90
91
|
Dir.mktmpdir 'test' do |dir|
|
91
92
|
file = File.join(dir, 'xx.txt')
|
92
93
|
File.write(file, " * @todo #44 this is a broken unicode: \x92")
|
@@ -114,6 +115,7 @@ class TestSources < Minitest::Test
|
|
114
115
|
end
|
115
116
|
|
116
117
|
def test_reads_git_author
|
118
|
+
skip if Gem.win_platform?
|
117
119
|
Dir.mktmpdir 'test' do |dir|
|
118
120
|
fail unless system("
|
119
121
|
set -e
|
data/test/test_sources.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014 TechnoPark Corp.
|
4
|
-
# Copyright (c) 2014 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2016 TechnoPark Corp.
|
4
|
+
# Copyright (c) 2014-2016 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -27,7 +27,7 @@ require 'tmpdir'
|
|
27
27
|
|
28
28
|
# Sources test.
|
29
29
|
# Author:: Yegor Bugayenko (yegor@teamed.io)
|
30
|
-
# Copyright:: Copyright (c) 2014 Yegor Bugayenko
|
30
|
+
# Copyright:: Copyright (c) 2014-2016 Yegor Bugayenko
|
31
31
|
# License:: MIT
|
32
32
|
class TestSources < Minitest::Test
|
33
33
|
def test_iterator
|
data/test/test_text.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
|
-
# Copyright (c) 2014 TechnoPark Corp.
|
4
|
-
# Copyright (c) 2014 Yegor Bugayenko
|
3
|
+
# Copyright (c) 2014-2016 TechnoPark Corp.
|
4
|
+
# Copyright (c) 2014-2016 Yegor Bugayenko
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -27,7 +27,7 @@ require 'pdd/rule/text'
|
|
27
27
|
|
28
28
|
# PDD::Rule::Text module tests.
|
29
29
|
# Author:: Yegor Bugayenko (yegor@teamed.io)
|
30
|
-
# Copyright:: Copyright (c) 2014 Yegor Bugayenko
|
30
|
+
# Copyright:: Copyright (c) 2014-2016 Yegor Bugayenko
|
31
31
|
# License:: MIT
|
32
32
|
class TestText < Minitest::Test
|
33
33
|
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.15.
|
4
|
+
version: 0.15.3
|
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: 2016-01-07 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.7
|
19
|
+
version: 1.6.7.1
|
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.7
|
26
|
+
version: 1.6.7.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: ruby-filemagic
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -182,9 +182,11 @@ files:
|
|
182
182
|
- ".travis.yml"
|
183
183
|
- Gemfile
|
184
184
|
- LICENSE.txt
|
185
|
+
- PUZZLES.md
|
185
186
|
- README.md
|
186
187
|
- Rakefile
|
187
188
|
- TEAM.md
|
189
|
+
- appveyor.yml
|
188
190
|
- assets/puzzles.xsd
|
189
191
|
- assets/puzzles.xsl
|
190
192
|
- bin/pdd
|