checkoff 0.30.0 → 0.31.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/Gemfile.lock +6 -5
- data/LICENSE +1 -1
- data/bin/rubocop +27 -0
- data/checkoff.gemspec +4 -2
- data/docs/cookiecutter_input.json +1 -0
- data/fix.sh +3 -2
- data/lib/checkoff/internal/task_selector_evaluator.rb +12 -0
- data/lib/checkoff/version.rb +1 -1
- data/requirements_dev.txt +2 -2
- metadata +17 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9098d5cbdef080b54a70384a623e904981f3c9b395a445c2d30c0c6ce734c4f7
|
|
4
|
+
data.tar.gz: 59b28f88a8f4bb7f6c9bd5cc03f28dda3232032670f08aa304bdcf6c7d824290
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bab2cdcbb4aad51cdb444d108a47cc13a1cff97567db5455894364b010cdb851f9c66bcd420d1add74e0b64e3e5358d64ba7873d5f25cb074595e7edbe805f1a
|
|
7
|
+
data.tar.gz: 3d579e7e952155057addede0bd1c7877986a3900cd77f341eaf9d09b0f80604fae1105d6ba1f247694f5ec52fa50fb6d830c083a2a75f4a56845874772b0df5a
|
data/Gemfile.lock
CHANGED
|
@@ -12,7 +12,7 @@ GIT
|
|
|
12
12
|
PATH
|
|
13
13
|
remote: .
|
|
14
14
|
specs:
|
|
15
|
-
checkoff (0.
|
|
15
|
+
checkoff (0.31.0)
|
|
16
16
|
activesupport
|
|
17
17
|
asana (> 0.10.0)
|
|
18
18
|
cache_method
|
|
@@ -38,7 +38,7 @@ GEM
|
|
|
38
38
|
cache (>= 0.2.1)
|
|
39
39
|
chef-utils (17.10.0)
|
|
40
40
|
concurrent-ruby
|
|
41
|
-
childprocess (4.
|
|
41
|
+
childprocess (4.1.0)
|
|
42
42
|
coderay (1.1.3)
|
|
43
43
|
concurrent-ruby (1.1.10)
|
|
44
44
|
crack (0.4.5)
|
|
@@ -111,7 +111,7 @@ GEM
|
|
|
111
111
|
multi_json (~> 1.3)
|
|
112
112
|
multi_xml (~> 0.5)
|
|
113
113
|
rack (>= 1.2, < 4)
|
|
114
|
-
overcommit (0.
|
|
114
|
+
overcommit (0.60.0)
|
|
115
115
|
childprocess (>= 0.6.3, < 5)
|
|
116
116
|
iniparse (~> 1.4)
|
|
117
117
|
rexml (~> 3.2)
|
|
@@ -185,6 +185,7 @@ PLATFORMS
|
|
|
185
185
|
x86_64-darwin-20
|
|
186
186
|
x86_64-darwin-21
|
|
187
187
|
x86_64-linux
|
|
188
|
+
x86_64-linux-musl
|
|
188
189
|
|
|
189
190
|
DEPENDENCIES
|
|
190
191
|
asana!
|
|
@@ -196,11 +197,11 @@ DEPENDENCIES
|
|
|
196
197
|
minitest-profile
|
|
197
198
|
minitest-reporters
|
|
198
199
|
mocha (~> 2.0.0.alpha.1)
|
|
199
|
-
overcommit (>= 0.
|
|
200
|
+
overcommit (>= 0.60.0, < 0.61.0)
|
|
200
201
|
pry
|
|
201
202
|
rake (~> 13.0)
|
|
202
203
|
rspec (>= 3.4)
|
|
203
|
-
rubocop (~> 1.36)
|
|
204
|
+
rubocop (~> 1.36, < 1.44)
|
|
204
205
|
rubocop-minitest
|
|
205
206
|
rubocop-rake
|
|
206
207
|
simplecov (>= 0.18.0)
|
data/LICENSE
CHANGED
data/bin/rubocop
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
#
|
|
5
|
+
# This file was generated by Bundler.
|
|
6
|
+
#
|
|
7
|
+
# The application 'rubocop' is installed as part of a gem, and
|
|
8
|
+
# this file is here to facilitate running it.
|
|
9
|
+
#
|
|
10
|
+
|
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
|
12
|
+
|
|
13
|
+
bundle_binstub = File.expand_path("bundle", __dir__)
|
|
14
|
+
|
|
15
|
+
if File.file?(bundle_binstub)
|
|
16
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
|
17
|
+
load(bundle_binstub)
|
|
18
|
+
else
|
|
19
|
+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
20
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
require "rubygems"
|
|
25
|
+
require "bundler/setup"
|
|
26
|
+
|
|
27
|
+
load Gem.bin_path("rubocop", "rubocop")
|
data/checkoff.gemspec
CHANGED
|
@@ -40,11 +40,13 @@ Gem::Specification.new do |spec|
|
|
|
40
40
|
# 0.58.0 and 0.57.0 don't seem super compatible with signatures, and
|
|
41
41
|
# magit doesn't seem to want to use the bundled version at the moment,
|
|
42
42
|
# so let's favor the more recent version...
|
|
43
|
-
spec.add_development_dependency 'overcommit', ['>=0.
|
|
43
|
+
spec.add_development_dependency 'overcommit', ['>=0.60.0', '<0.61.0']
|
|
44
44
|
spec.add_development_dependency 'pry'
|
|
45
45
|
spec.add_development_dependency 'rake', '~> 13.0'
|
|
46
46
|
spec.add_development_dependency 'rspec', '>=3.4'
|
|
47
|
-
|
|
47
|
+
# I haven't adapted things to Gemspec/DevelopmentDependencies yet,
|
|
48
|
+
# which arrives in 1.44
|
|
49
|
+
spec.add_development_dependency 'rubocop', ['~> 1.36', '<1.44']
|
|
48
50
|
spec.add_development_dependency 'rubocop-minitest'
|
|
49
51
|
spec.add_development_dependency 'rubocop-rake'
|
|
50
52
|
# ensure version with branch coverage
|
data/fix.sh
CHANGED
|
@@ -100,6 +100,7 @@ ensure_ruby_build_requirements() {
|
|
|
100
100
|
ensure_dev_library readline/readline.h readline libreadline-dev
|
|
101
101
|
ensure_dev_library zlib.h zlib zlib1g-dev
|
|
102
102
|
ensure_dev_library openssl/ssl.h openssl libssl-dev
|
|
103
|
+
ensure_dev_library yaml.h libyaml libyaml-dev
|
|
103
104
|
}
|
|
104
105
|
|
|
105
106
|
ensure_latest_ruby_build_definitions() {
|
|
@@ -188,7 +189,7 @@ ensure_bundle() {
|
|
|
188
189
|
#
|
|
189
190
|
# This affects nokogiri, which will try to reinstall itself in
|
|
190
191
|
# Docker builds where it's already installed if this is not run.
|
|
191
|
-
for platform in x86_64-darwin-21 x86_64-linux
|
|
192
|
+
for platform in x86_64-darwin-21 x86_64-linux x86_64-linux-musl
|
|
192
193
|
do
|
|
193
194
|
grep "${platform:?}" Gemfile.lock >/dev/null 2>&1 || bundle lock --add-platform "${platform:?}"
|
|
194
195
|
done
|
|
@@ -284,7 +285,7 @@ ensure_python_build_requirements() {
|
|
|
284
285
|
ensure_python_versions() {
|
|
285
286
|
# You can find out which feature versions are still supported / have
|
|
286
287
|
# been release here: https://www.python.org/downloads/
|
|
287
|
-
python_versions="$(latest_python_version 3.
|
|
288
|
+
python_versions="$(latest_python_version 3.11)"
|
|
288
289
|
|
|
289
290
|
echo "Latest Python versions: ${python_versions}"
|
|
290
291
|
|
|
@@ -125,6 +125,17 @@ module Checkoff
|
|
|
125
125
|
end
|
|
126
126
|
end
|
|
127
127
|
|
|
128
|
+
# :due_date_set function
|
|
129
|
+
class DueDateSetPFunctionEvaluator < FunctionEvaluator
|
|
130
|
+
def matches?
|
|
131
|
+
fn?(task_selector, :due_date_set)
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
def evaluate(task)
|
|
135
|
+
!task.due_at.nil? || !task.due_on.nil?
|
|
136
|
+
end
|
|
137
|
+
end
|
|
138
|
+
|
|
128
139
|
# :custom_field_value function
|
|
129
140
|
class CustomFieldValueFunctionEvaluator < FunctionEvaluator
|
|
130
141
|
def matches?
|
|
@@ -220,6 +231,7 @@ module Checkoff
|
|
|
220
231
|
CustomFieldGidValueContainsAllGidsFunctionEvaluator,
|
|
221
232
|
AndFunctionEvaluator,
|
|
222
233
|
DuePFunctionEvaluator,
|
|
234
|
+
DueDateSetPFunctionEvaluator,
|
|
223
235
|
].freeze
|
|
224
236
|
|
|
225
237
|
def evaluate(task_selector)
|
data/lib/checkoff/version.rb
CHANGED
data/requirements_dev.txt
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
pip==21.1
|
|
2
|
-
yamllint==1.
|
|
1
|
+
pip==21.1.3
|
|
2
|
+
yamllint==1.29.0
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: checkoff
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.31.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vince Broz
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-02-
|
|
11
|
+
date: 2023-02-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -184,14 +184,20 @@ dependencies:
|
|
|
184
184
|
requirements:
|
|
185
185
|
- - ">="
|
|
186
186
|
- !ruby/object:Gem::Version
|
|
187
|
-
version: 0.
|
|
187
|
+
version: 0.60.0
|
|
188
|
+
- - "<"
|
|
189
|
+
- !ruby/object:Gem::Version
|
|
190
|
+
version: 0.61.0
|
|
188
191
|
type: :development
|
|
189
192
|
prerelease: false
|
|
190
193
|
version_requirements: !ruby/object:Gem::Requirement
|
|
191
194
|
requirements:
|
|
192
195
|
- - ">="
|
|
193
196
|
- !ruby/object:Gem::Version
|
|
194
|
-
version: 0.
|
|
197
|
+
version: 0.60.0
|
|
198
|
+
- - "<"
|
|
199
|
+
- !ruby/object:Gem::Version
|
|
200
|
+
version: 0.61.0
|
|
195
201
|
- !ruby/object:Gem::Dependency
|
|
196
202
|
name: pry
|
|
197
203
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -241,6 +247,9 @@ dependencies:
|
|
|
241
247
|
- - "~>"
|
|
242
248
|
- !ruby/object:Gem::Version
|
|
243
249
|
version: '1.36'
|
|
250
|
+
- - "<"
|
|
251
|
+
- !ruby/object:Gem::Version
|
|
252
|
+
version: '1.44'
|
|
244
253
|
type: :development
|
|
245
254
|
prerelease: false
|
|
246
255
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -248,6 +257,9 @@ dependencies:
|
|
|
248
257
|
- - "~>"
|
|
249
258
|
- !ruby/object:Gem::Version
|
|
250
259
|
version: '1.36'
|
|
260
|
+
- - "<"
|
|
261
|
+
- !ruby/object:Gem::Version
|
|
262
|
+
version: '1.44'
|
|
251
263
|
- !ruby/object:Gem::Dependency
|
|
252
264
|
name: rubocop-minitest
|
|
253
265
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -363,6 +375,7 @@ files:
|
|
|
363
375
|
- bin/console
|
|
364
376
|
- bin/overcommit
|
|
365
377
|
- bin/rake
|
|
378
|
+
- bin/rubocop
|
|
366
379
|
- bin/setup
|
|
367
380
|
- checkoff.gemspec
|
|
368
381
|
- docs/cookiecutter_input.json
|