Skip to content

Commit

Permalink
lock files
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jan 29, 2025
1 parent 588b640 commit 0c1f017
Show file tree
Hide file tree
Showing 15 changed files with 265 additions and 31 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
coverage/**/*
Gemfile.lock
.idea/**/*
*.gem
.bundle/**/*
.DS_Store
rdoc/**/*
tmp/**/*
tmp/**/*
1 change: 0 additions & 1 deletion .overcommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,3 @@ PrePush:
- 'xcop'
required_executable: 'bundle'
flags: ['exec', 'rake']

1 change: 0 additions & 1 deletion .pdd
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@
--rule min-words:20
--rule min-estimate:15
--rule max-estimate:90

240 changes: 240 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,240 @@
PATH
remote: .
specs:
pdd (0.0.0)
nokogiri (~> 1.10)
rainbow (~> 3.0)
ruby-filemagic (~> 0.7.2)
slop (~> 4.6)

GEM
remote: https://rubygems.org/
specs:
actionpack (8.0.1)
actionview (= 8.0.1)
activesupport (= 8.0.1)
nokogiri (>= 1.8.5)
rack (>= 2.2.4)
rack-session (>= 1.0.1)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
useragent (~> 0.16)
actionview (8.0.1)
activesupport (= 8.0.1)
builder (~> 3.1)
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
activesupport (8.0.1)
base64
benchmark (>= 0.3)
bigdecimal
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
logger (>= 1.4.2)
minitest (>= 5.1)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
uri (>= 0.13.1)
aruba (0.14.14)
childprocess (>= 0.6.3, < 4.0.0)
contracts (~> 0.9)
cucumber (>= 1.3.19)
ffi (~> 1.9)
rspec-expectations (>= 2.99)
thor (>= 0.19, < 2.0)
ast (2.4.2)
base64 (0.2.0)
benchmark (0.4.0)
bigdecimal (3.1.9)
builder (3.3.0)
childprocess (3.0.0)
concurrent-ruby (1.3.5)
connection_pool (2.5.0)
contracts (0.17.2)
crass (1.0.6)
cucumber (8.0.0)
builder (~> 3.2, >= 3.2.4)
cucumber-ci-environment (~> 9.0, >= 9.0.4)
cucumber-core (~> 11.0, >= 11.0.0)
cucumber-cucumber-expressions (~> 15.1, >= 15.1.1)
cucumber-gherkin (~> 23.0, >= 23.0.1)
cucumber-html-formatter (~> 19.1, >= 19.1.0)
cucumber-messages (~> 18.0, >= 18.0.0)
diff-lcs (~> 1.5, >= 1.5.0)
mime-types (~> 3.4, >= 3.4.1)
multi_test (~> 1.1, >= 1.1.0)
sys-uname (~> 1.2, >= 1.2.2)
cucumber-ci-environment (9.2.0)
cucumber-core (11.0.0)
cucumber-gherkin (~> 23.0, >= 23.0.1)
cucumber-messages (~> 18.0, >= 18.0.0)
cucumber-tag-expressions (~> 4.1, >= 4.1.0)
cucumber-cucumber-expressions (15.2.0)
cucumber-gherkin (23.0.1)
cucumber-messages (~> 18.0, >= 18.0.0)
cucumber-html-formatter (19.2.0)
cucumber-messages (~> 18.0, >= 18.0.0)
cucumber-messages (18.0.0)
cucumber-tag-expressions (4.1.0)
date (3.4.1)
diff-lcs (1.5.1)
differ (0.1.2)
docile (1.4.1)
drb (2.2.1)
erubi (1.13.1)
ffi (1.17.1-arm64-darwin)
i18n (1.14.7)
concurrent-ruby (~> 1.0)
io-console (0.8.0)
irb (1.15.1)
pp (>= 0.6.0)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
json (2.9.1)
language_server-protocol (3.17.0.4)
logger (1.6.5)
loofah (2.24.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
mime-types (3.6.0)
logger
mime-types-data (~> 3.2015)
mime-types-data (3.2025.0107)
minitest (5.16.2)
multi_test (1.1.0)
nokogiri (1.18.2-arm64-darwin)
racc (~> 1.4)
parallel (1.26.3)
parser (3.3.7.0)
ast (~> 2.4.1)
racc
pp (0.6.2)
prettyprint
prettyprint (0.2.0)
psych (5.2.3)
date
stringio
racc (1.8.1)
rack (3.1.8)
rack-session (2.1.0)
base64 (>= 0.1.0)
rack (>= 3.0.0)
rack-test (2.2.0)
rack (>= 1.3)
rackup (2.2.1)
rack (>= 3)
rails-dom-testing (2.2.0)
activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6)
rails-html-sanitizer (1.6.2)
loofah (~> 2.21)
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
railties (8.0.1)
actionpack (= 8.0.1)
activesupport (= 8.0.1)
irb (~> 1.13)
rackup (>= 1.0.0)
rake (>= 12.2)
thor (~> 1.0, >= 1.2.2)
zeitwerk (~> 2.6)
rainbow (3.1.1)
rake (13.0.6)
rdoc (6.4.0)
psych (>= 4.0.0)
regexp_parser (2.10.0)
reline (0.6.0)
io-console (~> 0.5)
rexml (3.4.0)
rspec-core (3.13.2)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-rails (5.1.2)
actionpack (>= 5.2)
activesupport (>= 5.2)
railties (>= 5.2)
rspec-core (~> 3.10)
rspec-expectations (~> 3.10)
rspec-mocks (~> 3.10)
rspec-support (~> 3.10)
rspec-support (3.13.2)
rubocop (1.60.2)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.30.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.38.0)
parser (>= 3.3.1.0)
rubocop-capybara (2.21.0)
rubocop (~> 1.41)
rubocop-factory_bot (2.26.0)
rubocop (~> 1.41)
rubocop-rspec (2.22.0)
rubocop (~> 1.33)
rubocop-capybara (~> 2.17)
rubocop-factory_bot (~> 2.22)
ruby-filemagic (0.7.3)
ruby-progressbar (1.13.0)
securerandom (0.4.1)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-cobertura (2.1.0)
rexml
simplecov (~> 0.19)
simplecov-html (0.13.1)
simplecov_json_formatter (0.1.4)
slop (4.9.2)
stringio (3.1.2)
sys-uname (1.3.1)
ffi (~> 1.1)
thor (1.3.2)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.6.0)
uri (1.0.2)
useragent (0.16.11)
xcop (0.7.1)
differ (~> 0.1.2)
nokogiri (~> 1.10)
rainbow (~> 3.0)
slop (~> 4.4)
zeitwerk (2.7.1)

PLATFORMS
arm64-darwin-22
arm64-darwin-24

DEPENDENCIES
aruba (~> 0.14.1)
cucumber (= 8.0.0)
minitest (= 5.16.2)
pdd!
rake (= 13.0.6)
rdoc (= 6.4.0)
rspec-rails (= 5.1.2)
rubocop (= 1.60.2)
rubocop-rspec (= 2.22.0)
simplecov (= 0.22.0)
simplecov-cobertura (~> 2.1)
slop (= 4.9.2)
xcop (= 0.7.1)

BUNDLED WITH
2.5.16
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ You can exclude & include certain number of files from the search via these opti
$ pdd --exclude glob
```

You can skip any file(s) with a name suffix that matches the pattern glob, using wildcard matching;
You can skip any file(s) with a name suffix that matches the pattern glob, using wildcard matching;
a name suffix is either the whole path and name, or reg expr, for example:

```bash
Expand All @@ -60,8 +60,8 @@ You can include too:
$ pdd --include glob
```

Search only files whose name matches glob, using wildcard matching as described under ``--exclude``.
If contradictory ``--include`` and ``--exclude`` options are given, the last matching one wins.
Search only files whose name matches glob, using wildcard matching as described under ``--exclude``.
If contradictory ``--include`` and ``--exclude`` options are given, the last matching one wins.
If no ``--include`` or ``--exclude`` options are given, all files from working directory are included, example:

```bash
Expand Down Expand Up @@ -116,10 +116,10 @@ Example:
* @todo #234:15m/DEV This is something to do later
* in one of the next releases. I can't figure out
* how to implement it now, that's why the puzzle.
* The text can be so long, as needed, just use
* The text can be so long, as needed, just use
* the same anount of spaces, as the second line.
* This text will be not a part of the puzzle, as
* it has less spaces.
* This text will be not a part of the puzzle, as
* it has less spaces.
*/
void sendEmail() {
throw new UnsupportedOperationException();
Expand Down Expand Up @@ -167,32 +167,32 @@ and put a dummy `#1` marker everywhere.
### Multiline examples

For multiline puzzles there are two important things:
- **prefix** - any optional text followed by space before puzzle keyword (todo).
- **prefix** - any optional text followed by space before puzzle keyword (todo).
It should be the same for all lines of puzzle description.
- \ symbol can be used to logically divide puzzle description.
prefix should be presented with it.

Examples:

```xml
<!--
<!--
~ if comment should be started and closed by special symbols, then place them in
~ a separate lines
~ Any symbol can be used as a prefix, it will be excluded from the text.
~ But do not forget about the space before puzzle keyword.
~
~ @todo #34 Description can be as long as needed.
~ Just use at least the same amount of the spaces, as on the first line.
~ Just use at least the same amount of the spaces, as on the first line.
~ It will be added to description.
-->
```

```java
/**
* @todo #36 Multiline text can use the same prefix in all lines or the same
* @todo #36 Multiline text can use the same prefix in all lines or the same
* amount of spaces.
* So this will be added to the puzzle description. If you want to divide the
* puzzle logically by empty line, just add a backspace to that line
* So this will be added to the puzzle description. If you want to divide the
* puzzle logically by empty line, just add a backspace to that line
* \
* and continue the text after.
*
Expand Down Expand Up @@ -288,8 +288,8 @@ For Mac:
$ brew install libmagic
```

Unfortunately, there is no easy way to install on Windows, try to use
[WSL](https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux) or
Unfortunately, there is no easy way to install on Windows, try to use
[WSL](https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux) or
[Docker](https://www.docker.com/).

## How to contribute
Expand Down
2 changes: 0 additions & 2 deletions features/rake.feature
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,3 @@ Feature: Rake Task

When I run bash with "rake pdd"
Then Exit code is zero


1 change: 0 additions & 1 deletion features/uses_config.feature
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ Feature: Using .pdd config file
Then Exit code is zero
And Stdout contains "Reading from root dir ."
And XML file "out.xml" matches "/puzzles[count(puzzle)=1]"

Binary file modified test_assets/aladdin.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test_assets/elegant-objects.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion test_assets/puzzles/1-04e35eb3
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/**
* @todo #1:30min How are you?
*/
*/
2 changes: 1 addition & 1 deletion test_assets/puzzles/132-bc1dfafe
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
// @comment This is not a puzzle,
// but another bloc of text
//
//
//
10 changes: 5 additions & 5 deletions test_assets/puzzles/1425-59819ae3
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
*
*
* @todo #1425:30min Continue replacing usage of MatcherAssert.assertThat with
* Assertion from cactoos-matchers. Keep PR short and limit the changes to
* single package. Update this puzzle for the next package.
* After all packages are done, add MatcherAssert to forbidden-apis.txt
* @todo #1425:30min Continue replacing usage of MatcherAssert.assertThat with
* Assertion from cactoos-matchers. Keep PR short and limit the changes to
* single package. Update this puzzle for the next package.
* After all packages are done, add MatcherAssert to forbidden-apis.txt
*
*/
*/
2 changes: 1 addition & 1 deletion test_assets/puzzles/42-0d933cc0
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# well formatted...
#
#
#
#
2 changes: 1 addition & 1 deletion test_assets/puzzles/91-ecb9aa47
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Even though
# It's weird

# Here is the text after
# Here is the text after
Loading

0 comments on commit 0c1f017

Please sign in to comment.