checkoff 0.105.0 → 0.106.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: 4edf9b863abc88b80a990f28fa9a966eaff3d48b9ff267ff0f0c572ef20fda87
4
- data.tar.gz: e250e14a24ccc7463fc80dac424f9dc04eca6ff43522c8fc5795c4e8ea04390f
3
+ metadata.gz: d1113a5ffbcd7bbe80ffd702559e8be32741468c788b26b976d8bb33ce50c06b
4
+ data.tar.gz: 91fb42cdc5620a932033d43eab190c46191c11794004b358a92bc6e40f97818d
5
5
  SHA512:
6
- metadata.gz: f9e5100c88fa3a02f678845db245ca271632015ba814c06c6d9cb795cbcf6f0988d7a57676163f66cdcc649c4542f628d91c467512e20531587d8e3391d2a20a
7
- data.tar.gz: 626ab57ad3597d651dfea7d41f2fd640286de88d2bfa79cc71c1dff2602db8ecb23536fb32b4e332d8e1f2130405e485f83a62e5e3638c4ced96ea67e1d464f0
6
+ metadata.gz: 18746c467511ea53db664dd7194ce8b9aeb432ae4fac74911db3d775a921fb7abb9ee8e1ce16e83c2ad1e31b4baf9cf79efb180b827579f040007729f7a6fc20
7
+ data.tar.gz: 81645f19b209186e1e27d8d07bb5e9792eb9127462fa12af8518f71ee5baf2a8b721a2fe2060fb24ab4dc5291b817b27c8370e6b452e9c49a52b7cae3226567a
data/Gemfile.lock CHANGED
@@ -12,7 +12,7 @@ GIT
12
12
  PATH
13
13
  remote: .
14
14
  specs:
15
- checkoff (0.105.0)
15
+ checkoff (0.106.0)
16
16
  activesupport
17
17
  asana (> 0.10.0)
18
18
  cache_method
@@ -74,17 +74,27 @@ module Checkoff
74
74
  end
75
75
 
76
76
  # :ready function
77
+ #
78
+ # See GLOSSARY.md and tasks.rb#task_ready? for more information.
77
79
  class ReadyFunctionEvaluator < FunctionEvaluator
78
80
  def matches?
79
81
  fn?(selector, :ready)
80
82
  end
81
83
 
84
+ # @param _index [Integer]
85
+ def evaluate_arg?(_index)
86
+ false
87
+ end
88
+
82
89
  # @param task [Asana::Resources::Task]
90
+ # @param period [Symbol<:now_or_before,:this_week>]
83
91
  # @param ignore_dependencies [Boolean]
84
92
  # @return [Boolean]
85
- def evaluate(task, ignore_dependencies: false)
86
- @tasks.task_ready?(task, ignore_dependencies: ignore_dependencies)
93
+ # rubocop:disable Style/OptionalBooleanParameter
94
+ def evaluate(task, period = :now_or_before, ignore_dependencies = false)
95
+ @tasks.task_ready?(task, period: period, ignore_dependencies: ignore_dependencies)
87
96
  end
97
+ # rubocop:ensable Style/OptionalBooleanParameter
88
98
  end
89
99
 
90
100
  # :unassigned function
@@ -3,5 +3,5 @@
3
3
  # Command-line and gem client for Asana (unofficial)
4
4
  module Checkoff
5
5
  # Version of library
6
- VERSION = '0.105.0'
6
+ VERSION = '0.106.0'
7
7
  end
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.105.0
4
+ version: 0.106.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vince Broz