checkoff 0.9.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 57e69538d14498144e6587146af712357df75cbc88c9c6ed5aca9179d8c68ad0
4
- data.tar.gz: a61d58c6cd36f1cab26f8122207f5dfd0744a39bb17429e95b19d8ccd2e65a40
3
+ metadata.gz: 28bce7b1402a371b87f03a468cb1678cd02f7631a2a8f195a544b2bccc4af26e
4
+ data.tar.gz: f645e96e4526173f33e7b3140d9fec84b59330a4050819467a4456f0b9e10679
5
5
  SHA512:
6
- metadata.gz: 0cfb597bbd0911486b1b4538ada6ecf9aa708bddc88c14722f554581304093b7278fa7a8204ac3ea96ed48b7ff4cc0b67474839556c05d7f097dff01e3b271d9
7
- data.tar.gz: e25f408dd5c067c6663a2eec4832c010f40a9423d35f031233c79d232719355a21a3b3232b31c03b0694a4e15b00ad4f3ce243229e8e8a68b6c19cca9dbd5560
6
+ metadata.gz: 1503cc4b41f8297a806b57311c2f7f3e0e6d7b93027109125c985b4dba056e2709fdcec43d5ca312f9778ba044d67c28e8a5c055a692b7067ebf442491de912e
7
+ data.tar.gz: 1b30b11537a9608e84ec1434c67a47579e0d6d2a8a88ee79084de24efc39c18e8b10fc1af5be5ccf7b4aac17509b4b16d540d2f4f2304b61f3100b0006ff2af4
data/.circleci/config.yml CHANGED
@@ -2,6 +2,33 @@
2
2
  version: 2.1
3
3
 
4
4
  commands:
5
+ run_with_languages:
6
+ description: "Run the given command in an environment that includes relevant langauges in the PATH"
7
+ parameters:
8
+ command:
9
+ type: string
10
+ description: "What command to execute"
11
+ label:
12
+ type: string
13
+ description: "What to label the run"
14
+ default: <<parameters.command>>
15
+ steps:
16
+ - run:
17
+ name: <<parameters.label>>
18
+ command: |
19
+ export PATH="${HOME}/.pyenv/bin:${PATH}"
20
+ export PATH="${HOME}/.rbenv/bin:${HOME}/.rbenv/shims:${PATH}"
21
+ export PATH="${HOME}/project/node_modules/.bin:${PATH}"
22
+ eval "$(pyenv init --path)"
23
+ eval "$(pyenv virtualenv-init -)"
24
+ eval "$(rbenv init -)"
25
+ export BUNDLE_PATH=vendor/bundle
26
+
27
+ <<parameters.command>>
28
+ environment:
29
+ # https://app.circleci.com/pipelines/github/apiology/cookiecutter-pypackage/4/workflows/29074dc8-944c-4600-8aaa-5116575fed90/jobs/4
30
+ "LC_ALL": "C.UTF-8"
31
+ "LANG": "C.UTF-8"
5
32
  set_up_environment:
6
33
  description: "Install source environment"
7
34
  steps:
@@ -11,8 +38,6 @@ commands:
11
38
  Gemfile.lock > Gemfile.lock.deversioned
12
39
  - restore_cache:
13
40
  key: gems-v4-{{ checksum "Gemfile.lock.deversioned" }}
14
- - restore_cache:
15
- key: ruby-and-python-v4-{{ checksum "fix.sh" }}
16
41
  - run:
17
42
  name: Initialize packages
18
43
  command: |
@@ -26,11 +51,6 @@ commands:
26
51
  >&2 echo "Please resolve changes to Gemfile.lock after bundle install to avoid caching difficulties"
27
52
  exit 1
28
53
  fi
29
- - save_cache:
30
- key: ruby-and-python-v4-{{ checksum "fix.sh" }}
31
- paths:
32
- - "/home/circleci/.rbenv"
33
- - "/home/circleci/.pyenv"
34
54
  - save_cache:
35
55
  key: gems-v4-{{ checksum "Gemfile.lock.deversioned" }}
36
56
  paths:
@@ -44,20 +64,9 @@ commands:
44
64
  description: "Run overcommit"
45
65
  steps:
46
66
  - set_up_environment
47
- - run:
48
- name: Download new circleci tool
49
- command: |
50
- curl -fLSs \
51
- https://raw.githubusercontent.com/CircleCI-Public/circleci-cli/master/install.sh | sudo bash
52
- - run:
53
- name: Run overcommit
67
+ - run_with_languages:
68
+ label: Run overcommit
54
69
  command: |
55
- export PATH="${HOME}/.pyenv/bin:${PATH}"
56
- export PATH="${HOME}/.rbenv/bin:${HOME}/.rbenv/shims:${PATH}"
57
- eval "$(pyenv init -)"
58
- eval "$(pyenv virtualenv-init -)"
59
- eval "$(rbenv init -)"
60
- export BUNDLE_PATH=vendor/bundle
61
70
  # Coax overcommit into working
62
71
  git config --global user.email "test@test.test"
63
72
  git config --global user.name "Test Test"
@@ -65,10 +74,6 @@ commands:
65
74
  bundle exec overcommit --sign pre-commit
66
75
 
67
76
  bundle exec overcommit --run
68
- environment:
69
- # https://app.circleci.com/pipelines/github/apiology/cookiecutter-pypackage/4/workflows/29074dc8-944c-4600-8aaa-5116575fed90/jobs/4
70
- "LC_ALL": "C.UTF-8"
71
- "LANG": "C.UTF-8"
72
77
 
73
78
  jobs:
74
79
  overcommit:
@@ -91,16 +96,14 @@ jobs:
91
96
  - image: apiology/circleci:latest
92
97
  steps:
93
98
  - set_up_environment
94
- - run:
99
+ - run_with_languages:
100
+ label: Test
95
101
  command: |
96
- export PATH="${HOME}/.pyenv/bin:${PATH}"
97
- export PATH="${HOME}/.rbenv/bin:${HOME}/.rbenv/shims:${PATH}"
98
- eval "$(pyenv init -)"
99
- eval "$(pyenv virtualenv-init -)"
100
- eval "$(rbenv init -)"
101
- export BUNDLE_PATH=vendor/bundle
102
-
103
- make test
102
+ bundle exec rake citest
103
+ # https://github.com/bluelabsio/records-mover/blob/master/Makefile#L25
104
+ git status --porcelain coverage/.last_run.json
105
+ git diff coverage/.last_run.json
106
+ test -z "$(git status --porcelain coverage/.last_run.json)"
104
107
 
105
108
  workflows:
106
109
  version: 2
data/.envrc CHANGED
@@ -1,2 +1,2 @@
1
1
  PATH_add bin
2
- eval $(with-op op-env sh -e ASANA__PERSONAL_ACCESS_TOKEN)
2
+ eval $(with-op op-env sh -e ASANA__PERSONAL_ACCESS_TOKEN -e ASANA__DEFAULT_ASSIGNEE_GID)
File without changes
data/.gitignore CHANGED
@@ -34,8 +34,17 @@ Temporary Items
34
34
  # IDE settings
35
35
  .vscode/
36
36
 
37
+ # Editor temp files
38
+ *~
39
+ \#*\#
40
+
41
+ # Used by Makefile to track what we have and haven't installed
42
+ Gemfile.lock.installed
43
+ requirements_dev.txt.installed
44
+
37
45
  # Installed by fix.sh based on what latest versions are
38
46
  /.python-version
47
+ /.ruby-version
39
48
 
40
49
  # Ruby-related
41
50
  /.bundle/
@@ -49,4 +58,5 @@ Temporary Items
49
58
  /coverage/.resultset.json.lock
50
59
  /coverage/assets/
51
60
  /coverage/index.html
61
+ /coverage/lcov/
52
62
  /pkg
data/.overcommit.yml CHANGED
@@ -31,6 +31,7 @@ PreCommit:
31
31
  - 'bin/*'
32
32
  PythonFlake8:
33
33
  enabled: true
34
+ on_warn: fail
34
35
  ShellCheck:
35
36
  enabled: true
36
37
  on_warn: fail
data/.rubocop.yml CHANGED
@@ -89,7 +89,7 @@ Style/TrivialAccessors:
89
89
 
90
90
  AllCops:
91
91
  NewCops: enable
92
- TargetRubyVersion: 2.5
92
+ TargetRubyVersion: 2.6
93
93
  Exclude:
94
94
  - 'bin/*'
95
95
 
data/CODE_OF_CONDUCT.md CHANGED
@@ -1,13 +1,133 @@
1
- # Contributor Code of Conduct
2
1
 
3
- As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
2
+ # Contributor Covenant Code of Conduct
4
3
 
5
- We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
4
+ ## Our Pledge
6
5
 
7
- Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
6
+ We as members, contributors, and leaders pledge to make participation in our
7
+ community a harassment-free experience for everyone, regardless of age, body
8
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
9
+ identity and expression, level of experience, education, socio-economic status,
10
+ nationality, personal appearance, race, caste, color, religion, or sexual identity
11
+ and orientation.
8
12
 
9
- Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
13
+ We pledge to act and interact in ways that contribute to an open, welcoming,
14
+ diverse, inclusive, and healthy community.
10
15
 
11
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
16
+ ## Our Standards
12
17
 
13
- This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
18
+ Examples of behavior that contributes to a positive environment for our
19
+ community include:
20
+
21
+ * Demonstrating empathy and kindness toward other people
22
+ * Being respectful of differing opinions, viewpoints, and experiences
23
+ * Giving and gracefully accepting constructive feedback
24
+ * Accepting responsibility and apologizing to those affected by our mistakes,
25
+ and learning from the experience
26
+ * Focusing on what is best not just for us as individuals, but for the
27
+ overall community
28
+
29
+ Examples of unacceptable behavior include:
30
+
31
+ * The use of sexualized language or imagery, and sexual attention or
32
+ advances of any kind
33
+ * Trolling, insulting or derogatory comments, and personal or political attacks
34
+ * Public or private harassment
35
+ * Publishing others' private information, such as a physical or email
36
+ address, without their explicit permission
37
+ * Other conduct which could reasonably be considered inappropriate in a
38
+ professional setting
39
+
40
+ ## Enforcement Responsibilities
41
+
42
+ Community leaders are responsible for clarifying and enforcing our standards of
43
+ acceptable behavior and will take appropriate and fair corrective action in
44
+ response to any behavior that they deem inappropriate, threatening, offensive,
45
+ or harmful.
46
+
47
+ Community leaders have the right and responsibility to remove, edit, or reject
48
+ comments, commits, code, wiki edits, issues, and other contributions that are
49
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
50
+ decisions when appropriate.
51
+
52
+ ## Scope
53
+
54
+ This Code of Conduct applies within all community spaces, and also applies when
55
+ an individual is officially representing the community in public spaces.
56
+ Examples of representing our community include using an official e-mail address,
57
+ posting via an official social media account, or acting as an appointed
58
+ representative at an online or offline event.
59
+
60
+ ## Enforcement
61
+
62
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
63
+ reported to the community leaders responsible for enforcement at
64
+ [INSERT CONTACT METHOD].
65
+ All complaints will be reviewed and investigated promptly and fairly.
66
+
67
+ All community leaders are obligated to respect the privacy and security of the
68
+ reporter of any incident.
69
+
70
+ ## Enforcement Guidelines
71
+
72
+ Community leaders will follow these Community Impact Guidelines in determining
73
+ the consequences for any action they deem in violation of this Code of Conduct:
74
+
75
+ ### 1. Correction
76
+
77
+ **Community Impact**: Use of inappropriate language or other behavior deemed
78
+ unprofessional or unwelcome in the community.
79
+
80
+ **Consequence**: A private, written warning from community leaders, providing
81
+ clarity around the nature of the violation and an explanation of why the
82
+ behavior was inappropriate. A public apology may be requested.
83
+
84
+ ### 2. Warning
85
+
86
+ **Community Impact**: A violation through a single incident or series
87
+ of actions.
88
+
89
+ **Consequence**: A warning with consequences for continued behavior. No
90
+ interaction with the people involved, including unsolicited interaction with
91
+ those enforcing the Code of Conduct, for a specified period of time. This
92
+ includes avoiding interactions in community spaces as well as external channels
93
+ like social media. Violating these terms may lead to a temporary or
94
+ permanent ban.
95
+
96
+ ### 3. Temporary Ban
97
+
98
+ **Community Impact**: A serious violation of community standards, including
99
+ sustained inappropriate behavior.
100
+
101
+ **Consequence**: A temporary ban from any sort of interaction or public
102
+ communication with the community for a specified period of time. No public or
103
+ private interaction with the people involved, including unsolicited interaction
104
+ with those enforcing the Code of Conduct, is allowed during this period.
105
+ Violating these terms may lead to a permanent ban.
106
+
107
+ ### 4. Permanent Ban
108
+
109
+ **Community Impact**: Demonstrating a pattern of violation of community
110
+ standards, including sustained inappropriate behavior, harassment of an
111
+ individual, or aggression toward or disparagement of classes of individuals.
112
+
113
+ **Consequence**: A permanent ban from any sort of public interaction within
114
+ the community.
115
+
116
+ ## Attribution
117
+
118
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
119
+ version 2.0, available at
120
+ [https://www.contributor-covenant.org/version/2/0/code_of_conduct.html][v2.0].
121
+
122
+ Community Impact Guidelines were inspired by
123
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
124
+
125
+ For answers to common questions about this code of conduct, see the FAQ at
126
+ [https://www.contributor-covenant.org/faq][FAQ]. Translations are available
127
+ at [https://www.contributor-covenant.org/translations][translations].
128
+
129
+ [homepage]: https://www.contributor-covenant.org
130
+ [v2.0]: https://www.contributor-covenant.org/version/2/0/code_of_conduct.html
131
+ [Mozilla CoC]: https://github.com/mozilla/diversity
132
+ [FAQ]: https://www.contributor-covenant.org/faq
133
+ [translations]: https://www.contributor-covenant.org/translations
data/DEVELOPMENT.md ADDED
@@ -0,0 +1,28 @@
1
+ # Development
2
+
3
+ ## fix.sh
4
+
5
+ If you want to use rbenv/pyenv/etc to manage versions of tools,
6
+ there's a `fix.sh` script which may be what you'd like to install
7
+ dependencies.
8
+
9
+ ## Overcommit
10
+
11
+ This project uses [overcommit](https://github.com/sds/overcommit) for
12
+ quality checks. `bundle exec overcommit --install` will install it.
13
+
14
+ ## direnv
15
+
16
+ This project uses direnv to manage environment variables used during
17
+ development. See the `.envrc` file for detail.
18
+
19
+ ## Publishing
20
+
21
+ To publish new version as a maintainer:
22
+
23
+ ```sh
24
+ git log "v$(bump current)..."
25
+ # Set type_of_bump to patch, minor, or major
26
+ bump --tag --tag-prefix=v ${type_of_bump:?}
27
+ rake release
28
+ ```
data/Gemfile.lock CHANGED
@@ -1,16 +1,17 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- checkoff (0.9.0)
4
+ checkoff (0.12.0)
5
5
  activesupport
6
6
  asana (> 0.10.0)
7
7
  cache_method
8
8
  dalli
9
+ gli
9
10
 
10
11
  GEM
11
12
  remote: https://rubygems.org/
12
13
  specs:
13
- activesupport (6.1.3)
14
+ activesupport (6.1.4)
14
15
  concurrent-ruby (~> 1.0, >= 1.0.2)
15
16
  i18n (>= 1.6, < 2)
16
17
  minitest (>= 5.1)
@@ -21,95 +22,104 @@ GEM
21
22
  faraday_middleware (~> 1.0)
22
23
  faraday_middleware-multi_json (~> 0.0)
23
24
  oauth2 (~> 1.4)
24
- ast (2.4.1)
25
+ ast (2.4.2)
25
26
  bump (0.10.0)
26
27
  cache (0.4.1)
27
28
  cache_method (0.2.7)
28
29
  cache (>= 0.2.1)
29
30
  childprocess (4.0.0)
30
- concurrent-ruby (1.1.8)
31
+ concurrent-ruby (1.1.9)
31
32
  dalli (2.7.11)
32
- diff-lcs (1.4.4)
33
- docile (1.3.4)
34
- faraday (1.3.0)
33
+ docile (1.4.0)
34
+ faraday (1.5.1)
35
+ faraday-em_http (~> 1.0)
36
+ faraday-em_synchrony (~> 1.0)
37
+ faraday-excon (~> 1.1)
38
+ faraday-httpclient (~> 1.0.1)
35
39
  faraday-net_http (~> 1.0)
40
+ faraday-net_http_persistent (~> 1.1)
41
+ faraday-patron (~> 1.0)
36
42
  multipart-post (>= 1.2, < 3)
37
- ruby2_keywords
43
+ ruby2_keywords (>= 0.0.4)
44
+ faraday-em_http (1.0.0)
45
+ faraday-em_synchrony (1.0.0)
46
+ faraday-excon (1.1.0)
47
+ faraday-httpclient (1.0.1)
38
48
  faraday-net_http (1.0.1)
49
+ faraday-net_http_persistent (1.2.0)
50
+ faraday-patron (1.0.0)
39
51
  faraday_middleware (1.0.0)
40
52
  faraday (~> 1.0)
41
53
  faraday_middleware-multi_json (0.0.6)
42
54
  faraday_middleware
43
55
  multi_json
44
- i18n (1.8.9)
56
+ gli (2.20.1)
57
+ i18n (1.8.10)
45
58
  concurrent-ruby (~> 1.0)
59
+ imagen (0.1.8)
60
+ parser (>= 2.5, != 2.5.1.1)
46
61
  iniparse (1.5.0)
47
- jwt (2.2.2)
62
+ jwt (2.2.3)
48
63
  minitest (5.14.4)
49
64
  minitest-profile (0.0.2)
50
65
  mocha (1.12.0)
51
66
  multi_json (1.15.0)
52
67
  multi_xml (0.6.0)
53
68
  multipart-post (2.1.1)
54
- oauth2 (1.4.4)
69
+ oauth2 (1.4.7)
55
70
  faraday (>= 0.8, < 2.0)
56
71
  jwt (>= 1.0, < 3.0)
57
72
  multi_json (~> 1.3)
58
73
  multi_xml (~> 0.5)
59
74
  rack (>= 1.2, < 3)
60
- overcommit (0.57.0)
75
+ overcommit (0.58.0)
61
76
  childprocess (>= 0.6.3, < 5)
62
77
  iniparse (~> 1.4)
78
+ rexml (~> 3.2)
63
79
  parallel (1.20.1)
64
- parser (2.7.2.0)
80
+ parser (3.0.1.1)
65
81
  ast (~> 2.4.1)
66
82
  rack (2.2.3)
67
83
  rainbow (3.0.0)
68
84
  rake (13.0.3)
69
- regexp_parser (2.0.3)
70
- rexml (3.2.4)
71
- rspec (3.10.0)
72
- rspec-core (~> 3.10.0)
73
- rspec-expectations (~> 3.10.0)
74
- rspec-mocks (~> 3.10.0)
75
- rspec-core (3.10.1)
76
- rspec-support (~> 3.10.0)
77
- rspec-expectations (3.10.1)
78
- diff-lcs (>= 1.2.0, < 2.0)
79
- rspec-support (~> 3.10.0)
80
- rspec-mocks (3.10.1)
81
- diff-lcs (>= 1.2.0, < 2.0)
82
- rspec-support (~> 3.10.0)
83
- rspec-support (3.10.1)
84
- rubocop (0.92.0)
85
+ regexp_parser (2.1.1)
86
+ rexml (3.2.5)
87
+ rubocop (1.15.0)
85
88
  parallel (~> 1.10)
86
- parser (>= 2.7.1.5)
89
+ parser (>= 3.0.0.0)
87
90
  rainbow (>= 2.2.2, < 4.0)
88
- regexp_parser (>= 1.7)
91
+ regexp_parser (>= 1.8, < 3.0)
89
92
  rexml
90
- rubocop-ast (>= 0.5.0)
93
+ rubocop-ast (>= 1.5.0, < 2.0)
91
94
  ruby-progressbar (~> 1.7)
92
- unicode-display_width (>= 1.4.0, < 2.0)
93
- rubocop-ast (1.3.0)
94
- parser (>= 2.7.1.5)
95
- rubocop-minitest (0.10.3)
96
- rubocop (>= 0.87, < 2.0)
95
+ unicode-display_width (>= 1.4.0, < 3.0)
96
+ rubocop-ast (1.5.0)
97
+ parser (>= 3.0.1.1)
98
+ rubocop-minitest (0.12.1)
99
+ rubocop (>= 0.90, < 2.0)
97
100
  rubocop-rake (0.5.1)
98
101
  rubocop
99
- ruby-progressbar (1.10.1)
100
- ruby2_keywords (0.0.4)
101
- simplecov (0.20.0)
102
+ ruby-progressbar (1.11.0)
103
+ ruby2_keywords (0.0.5)
104
+ rugged (1.1.0)
105
+ simplecov (0.21.2)
102
106
  docile (~> 1.1)
103
107
  simplecov-html (~> 0.11)
104
108
  simplecov_json_formatter (~> 0.1)
105
109
  simplecov-html (0.12.3)
106
- simplecov_json_formatter (0.1.2)
110
+ simplecov-lcov (0.8.0)
111
+ simplecov_json_formatter (0.1.3)
107
112
  tzinfo (2.0.4)
108
113
  concurrent-ruby (~> 1.0)
109
- unicode-display_width (1.7.0)
114
+ undercover (0.4.3)
115
+ imagen (>= 0.1.8)
116
+ rainbow (>= 2.1, < 4.0)
117
+ rugged (>= 0.27, < 1.2)
118
+ unicode-display_width (2.0.0)
110
119
  zeitwerk (2.4.2)
111
120
 
112
121
  PLATFORMS
122
+ ruby
113
123
  x86_64-darwin-19
114
124
  x86_64-darwin-20
115
125
  x86_64-linux
@@ -120,13 +130,14 @@ DEPENDENCIES
120
130
  checkoff!
121
131
  minitest-profile
122
132
  mocha
123
- overcommit
133
+ overcommit (>= 0.58.0)
124
134
  rake (~> 13.0)
125
- rspec (>= 3.4)
126
135
  rubocop
127
136
  rubocop-minitest
128
137
  rubocop-rake
129
138
  simplecov
139
+ simplecov-lcov
140
+ undercover
130
141
 
131
142
  BUNDLED WITH
132
- 2.2.11
143
+ 2.2.24