checkoff 0.137.0 → 0.139.0
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/.envrc +4 -0
- data/.gitignore +0 -3
- data/Gemfile.lock +2 -2
- data/config/env.1p +0 -0
- data/fix.sh +26 -7
- data/lib/checkoff/sections.rb +11 -5
- data/lib/checkoff/version.rb +1 -1
- data/requirements_dev.txt +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62b3b8a6d0c4f413c114a5dae032f078c21db566333168896a02f9206f3d1c7a
|
4
|
+
data.tar.gz: 3611366f9bfb7be6556fc704ea69e5c50b8293ec463606d425e97f118e008298
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d646bcb803baff2c70873e6706d4fe7db2eb0ad20343efe85f839cf9d18716760cf1c1a95329deeb3bf773610589468d4ce645bc3c7c64f916be9e274474654
|
7
|
+
data.tar.gz: 488b3bc30fbabe4cfd721ad9b23061793dd6989eaea628c197d348ad6dd6084fb96e63e03af1da49ef932732cc11f630428622582a626f7968e62fabb0af4c4c
|
data/.envrc
ADDED
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -12,7 +12,7 @@ GIT
|
|
12
12
|
PATH
|
13
13
|
remote: .
|
14
14
|
specs:
|
15
|
-
checkoff (0.
|
15
|
+
checkoff (0.139.0)
|
16
16
|
activesupport
|
17
17
|
asana (> 0.10.0)
|
18
18
|
cache_method
|
@@ -225,7 +225,7 @@ GEM
|
|
225
225
|
|
226
226
|
PLATFORMS
|
227
227
|
arm64-darwin-23
|
228
|
-
x86_64-darwin-
|
228
|
+
x86_64-darwin-23
|
229
229
|
x86_64-linux
|
230
230
|
x86_64-linux-musl
|
231
231
|
|
data/config/env.1p
ADDED
File without changes
|
data/fix.sh
CHANGED
@@ -183,7 +183,7 @@ ensure_bundle() {
|
|
183
183
|
#
|
184
184
|
# This affects nokogiri, which will try to reinstall itself in
|
185
185
|
# Docker builds where it's already installed if this is not run.
|
186
|
-
for platform in x86_64-darwin-
|
186
|
+
for platform in arm64-darwin-23 x86_64-darwin-23 x86_64-linux x86_64-linux-musl
|
187
187
|
do
|
188
188
|
grep "${platform:?}" Gemfile.lock >/dev/null 2>&1 || bundle lock --add-platform "${platform:?}"
|
189
189
|
done
|
@@ -253,7 +253,23 @@ install_package() {
|
|
253
253
|
apt_package=${2:-${homebrew_package}}
|
254
254
|
if [ "$(uname)" == "Darwin" ]
|
255
255
|
then
|
256
|
-
HOMEBREW_NO_AUTO_UPDATE=1 brew install "${homebrew_package}"
|
256
|
+
HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALL_UPGRADE=1 brew install "${homebrew_package}"
|
257
|
+
elif type apt-get >/dev/null 2>&1
|
258
|
+
then
|
259
|
+
update_apt
|
260
|
+
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y "${apt_package}"
|
261
|
+
else
|
262
|
+
>&2 echo "Teach me how to install packages on this plaform"
|
263
|
+
exit 1
|
264
|
+
fi
|
265
|
+
}
|
266
|
+
|
267
|
+
update_package() {
|
268
|
+
homebrew_package=${1:?homebrew package}
|
269
|
+
apt_package=${2:-${homebrew_package}}
|
270
|
+
if [ "$(uname)" == "Darwin" ]
|
271
|
+
then
|
272
|
+
brew install "${homebrew_package}"
|
257
273
|
elif type apt-get >/dev/null 2>&1
|
258
274
|
then
|
259
275
|
update_apt
|
@@ -279,7 +295,7 @@ ensure_python_build_requirements() {
|
|
279
295
|
ensure_python_versions() {
|
280
296
|
# You can find out which feature versions are still supported / have
|
281
297
|
# been release here: https://www.python.org/downloads/
|
282
|
-
python_versions="$(latest_python_version 3.
|
298
|
+
python_versions="$(latest_python_version 3.12)"
|
283
299
|
|
284
300
|
echo "Latest Python versions: ${python_versions}"
|
285
301
|
|
@@ -316,12 +332,15 @@ ensure_pyenv_virtualenvs() {
|
|
316
332
|
}
|
317
333
|
|
318
334
|
ensure_pip_and_wheel() {
|
319
|
-
#
|
320
|
-
# for macOS, so let's make sure we're using at least that version
|
335
|
+
# https://cve.mitre.org/cgi-bin/cvename.cgi?name=2023-5752
|
321
336
|
major_pip_version=$(pip --version | cut -d' ' -f2 | cut -d '.' -f 1)
|
322
|
-
|
337
|
+
minor_pip_version=$(pip --version | cut -d' ' -f2 | cut -d '.' -f 2)
|
338
|
+
if [[ major_pip_version -lt 23 ]]
|
339
|
+
then
|
340
|
+
pip install 'pip>=23.3'
|
341
|
+
elif [[ major_pip_version -eq 23 ]] && [[ minor_pip_version -lt 3 ]]
|
323
342
|
then
|
324
|
-
|
343
|
+
pip install 'pip>=23.3'
|
325
344
|
fi
|
326
345
|
# wheel is helpful for being able to cache long package builds
|
327
346
|
pip show wheel >/dev/null 2>&1 || pip install wheel
|
data/lib/checkoff/sections.rb
CHANGED
@@ -147,13 +147,16 @@ module Checkoff
|
|
147
147
|
# @param workspace_name [String]
|
148
148
|
# @param project_name [String, Symbol]
|
149
149
|
# @param section_name [String, nil]
|
150
|
+
# @param extra_section_fields [Array<String>]
|
150
151
|
#
|
151
152
|
# @sg-ignore
|
152
153
|
# @return [Asana::Resources::Section]
|
153
|
-
def section_or_raise(workspace_name, project_name, section_name)
|
154
|
-
s = section(workspace_name, project_name, section_name
|
154
|
+
def section_or_raise(workspace_name, project_name, section_name, extra_section_fields: [])
|
155
|
+
s = section(workspace_name, project_name, section_name,
|
156
|
+
extra_section_fields: extra_section_fields)
|
155
157
|
if s.nil?
|
156
|
-
valid_sections = sections_or_raise(workspace_name, project_name
|
158
|
+
valid_sections = sections_or_raise(workspace_name, project_name,
|
159
|
+
extra_fields: extra_section_fields).map(&:name)
|
157
160
|
|
158
161
|
raise "Could not find section #{section_name.inspect} under project #{project_name.inspect} " \
|
159
162
|
"under workspace #{workspace_name.inspect}. Valid sections: #{valid_sections.inspect}"
|
@@ -279,9 +282,12 @@ module Checkoff
|
|
279
282
|
# @param workspace_name [String]
|
280
283
|
# @param project_name [String, Symbol]
|
281
284
|
# @param section_name [String, nil]
|
285
|
+
# @param extra_section_fields [Array<String>]
|
286
|
+
#
|
282
287
|
# @return [Asana::Resources::Section, nil]
|
283
|
-
def section(workspace_name, project_name, section_name)
|
284
|
-
sections = sections_or_raise(workspace_name, project_name
|
288
|
+
def section(workspace_name, project_name, section_name, extra_section_fields: [])
|
289
|
+
sections = sections_or_raise(workspace_name, project_name,
|
290
|
+
extra_fields: extra_section_fields)
|
285
291
|
sections.find { |section| section_key(section.name)&.chomp(':') == section_name&.chomp(':') }
|
286
292
|
end
|
287
293
|
end
|
data/lib/checkoff/version.rb
CHANGED
data/requirements_dev.txt
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
pip==
|
1
|
+
pip==23.3.1
|
2
2
|
yamllint==1.29.0
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: checkoff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.139.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vince Broz
|
@@ -89,6 +89,7 @@ extensions: []
|
|
89
89
|
extra_rdoc_files: []
|
90
90
|
files:
|
91
91
|
- ".circleci/config.yml"
|
92
|
+
- ".envrc"
|
92
93
|
- ".git-hooks/pre_commit/circle_ci.rb"
|
93
94
|
- ".git-hooks/pre_commit/punchlist.rb"
|
94
95
|
- ".git-hooks/pre_commit/solargraph_typecheck.rb"
|
@@ -121,6 +122,7 @@ files:
|
|
121
122
|
- bin/yard
|
122
123
|
- checkoff.gemspec
|
123
124
|
- config/definitions.rb
|
125
|
+
- config/env.1p
|
124
126
|
- docs/.gitignore
|
125
127
|
- docs/cookiecutter_input.json
|
126
128
|
- docs/example_project.png
|