dry-cli 0.5.0 → 0.5.1
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/CHANGELOG.md +110 -21
- data/LICENSE +1 -1
- data/README.md +10 -12
- data/dry-cli.gemspec +21 -21
- data/lib/dry/cli.rb +39 -5
- data/lib/dry/cli/banner.rb +14 -16
- data/lib/dry/cli/command.rb +0 -10
- data/lib/dry/cli/command_registry.rb +3 -14
- data/lib/dry/cli/inflector.rb +1 -1
- data/lib/dry/cli/option.rb +8 -7
- data/lib/dry/cli/parser.rb +1 -1
- data/lib/dry/cli/registry.rb +10 -5
- data/lib/dry/cli/version.rb +1 -1
- metadata +9 -25
- data/.codeclimate.yml +0 -12
- data/.github/ISSUE_TEMPLATE/----please-don-t-ask-for-support-via-issues.md +0 -10
- data/.github/ISSUE_TEMPLATE/---bug-report.md +0 -30
- data/.github/ISSUE_TEMPLATE/---feature-request.md +0 -18
- data/.github/workflows/custom_ci.yml +0 -77
- data/.github/workflows/docsite.yml +0 -34
- data/.github/workflows/sync_configs.yml +0 -34
- data/.gitignore +0 -11
- data/.rspec +0 -4
- data/.rubocop.yml +0 -95
- data/CODE_OF_CONDUCT.md +0 -13
- data/CONTRIBUTING.md +0 -29
- data/Gemfile +0 -14
- data/Rakefile +0 -16
- data/bin/console +0 -15
- data/bin/setup +0 -8
- data/docsite/source/index.html.md +0 -588
- data/script/ci +0 -51
data/script/ci
DELETED
@@ -1,51 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
set -euo pipefail
|
3
|
-
IFS=$'\n\t'
|
4
|
-
|
5
|
-
prepare_build() {
|
6
|
-
if [ -d coverage ]; then
|
7
|
-
rm -rf coverage
|
8
|
-
fi
|
9
|
-
}
|
10
|
-
|
11
|
-
print_ruby_version() {
|
12
|
-
echo "Using $(ruby -v)"
|
13
|
-
echo
|
14
|
-
}
|
15
|
-
|
16
|
-
run_unit_tests() {
|
17
|
-
bundle exec rake spec:unit
|
18
|
-
}
|
19
|
-
|
20
|
-
run_integration_tests() {
|
21
|
-
local pwd=$PWD
|
22
|
-
local root="$pwd/spec/integration"
|
23
|
-
|
24
|
-
for test in $(find $root -name '*_spec.rb')
|
25
|
-
do
|
26
|
-
run_test $test
|
27
|
-
|
28
|
-
if [ $? -ne 0 ]; then
|
29
|
-
local exit_code=$?
|
30
|
-
echo "Failing test: $test"
|
31
|
-
exit $exit_code
|
32
|
-
fi
|
33
|
-
done
|
34
|
-
}
|
35
|
-
|
36
|
-
run_test() {
|
37
|
-
local test=$1
|
38
|
-
local hash="$(shasum "$test" | cut -b 1-40)"
|
39
|
-
|
40
|
-
printf "\n\n\nRunning: $test\n"
|
41
|
-
SIMPLECOV_COMMAND_NAME=$hash bundle exec rspec $test
|
42
|
-
}
|
43
|
-
|
44
|
-
main() {
|
45
|
-
prepare_build &&
|
46
|
-
print_ruby_version &&
|
47
|
-
run_unit_tests &&
|
48
|
-
run_integration_tests
|
49
|
-
}
|
50
|
-
|
51
|
-
main
|