checkoff 0.7.0 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +120 -12
  3. data/.envrc +2 -0
  4. data/.git-hooks/pre_commit/circle_ci.rb +21 -0
  5. data/.gitignore +51 -1
  6. data/.overcommit.yml +32 -12
  7. data/.rubocop.yml +64 -168
  8. data/.yamllint.yml +8 -0
  9. data/CODE_OF_CONDUCT.md +120 -36
  10. data/DEVELOPMENT.md +28 -0
  11. data/Gemfile.lock +139 -0
  12. data/{LICENSE.txt → LICENSE} +7 -6
  13. data/Makefile +52 -18
  14. data/README.md +13 -2
  15. data/Rakefile +2 -9
  16. data/bin/bump +29 -0
  17. data/bin/checkoff +29 -0
  18. data/bin/overcommit +29 -0
  19. data/bin/rake +29 -0
  20. data/checkoff.gemspec +14 -6
  21. data/coverage/.last_run.json +2 -1
  22. data/docs/cookiecutter_input.json +13 -0
  23. data/exe/checkoff +1 -2
  24. data/fix.sh +334 -0
  25. data/lib/checkoff/cli.rb +97 -76
  26. data/lib/checkoff/config_loader.rb +22 -16
  27. data/lib/checkoff/projects.rb +35 -31
  28. data/lib/checkoff/sections.rb +98 -50
  29. data/lib/checkoff/subtasks.rb +14 -11
  30. data/lib/checkoff/tasks.rb +25 -16
  31. data/lib/checkoff/version.rb +2 -1
  32. data/lib/checkoff/workspaces.rb +10 -5
  33. data/metrics/bigfiles_high_water_mark +1 -1
  34. data/metrics/rubocop_high_water_mark +1 -1
  35. data/{lib/tasks/ci.rake → rakelib/citest.rake} +1 -1
  36. data/rakelib/clear_metrics.rake +17 -0
  37. data/{lib/tasks → rakelib}/default.rake +0 -0
  38. data/rakelib/gem_tasks.rake +3 -0
  39. data/{lib/tasks → rakelib}/localtest.rake +1 -1
  40. data/rakelib/overcommit.rake +6 -0
  41. data/rakelib/quality.rake +4 -0
  42. data/{lib/tasks → rakelib}/test.rake +0 -0
  43. data/rakelib/undercover.rake +8 -0
  44. data/requirements_dev.txt +2 -0
  45. metadata +110 -29
  46. data/.ruby-version +0 -1
  47. data/.travis.yml +0 -22
  48. data/lib/tasks/clear_metrics.rake +0 -8
  49. data/lib/tasks/feature.rake +0 -9
  50. data/lib/tasks/quality.rake +0 -9
  51. data/lib/tasks/spec.rake +0 -9
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 2.6.6
data/.travis.yml DELETED
@@ -1,22 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
- before_install:
4
- # https://bundler.io/blog/2019/05/14/
5
- # solutions-for-cant-find-gem-bundler-with-executable-bundle.html
6
- - gem update --system
7
- - gem install bundler
8
- rvm:
9
- # JRuby error with native code build - possibly can be overcome?
10
- # checking for main() in -lstdc++... RuntimeError: The compiler failed to generate
11
- # https://travis-ci.com/apiology/pronto-punchlist/jobs/264907931
12
- # - jruby-head
13
-
14
- # These are currently pending ruby-asana fixes:
15
- #
16
- # https://github.com/Asana/ruby-asana/pull/99
17
- #
18
- # - ruby-head
19
- # - ruby-3.0
20
- - ruby-2.7
21
- - ruby-2.6
22
- - ruby-2.5
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- desc 'Rebaseline quality thresholds to last commit'
4
- task :clear_metrics do |_t|
5
- ret =
6
- system('git checkout coverage/.last_run.json metrics/*_high_water_mark')
7
- raise unless ret
8
- end
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'rspec/core/rake_task'
4
-
5
- desc 'Run features'
6
- RSpec::Core::RakeTask.new(:feature) do |task|
7
- task.pattern = 'feature/**/*_spec.rb'
8
- task.rspec_opts = '--format doc'
9
- end
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'quality/rake/task'
4
-
5
- Quality::Rake::Task.new do |task|
6
- task.skip_tools = %w[reek cane eslint jscs pycodestyle rails_best_practices flake8]
7
- task.output_dir = 'metrics'
8
- task.exclude_files = ['docs/example_project.png', '.rubocop.yml']
9
- end
data/lib/tasks/spec.rake DELETED
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'rspec/core/rake_task'
4
-
5
- desc 'Run specs'
6
- RSpec::Core::RakeTask.new(:spec) do |task|
7
- task.pattern = 'spec/**/*_spec.rb'
8
- task.rspec_opts = '--format doc'
9
- end