checkoff 0.122.0 → 0.123.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: f96bd0d9499fdc95b738d1ab17d552691e590338150196470e60c25c6053672e
4
- data.tar.gz: a30c397667ed31b67503b9c6e62a8e1c4dc045d691a003f521b3c70b8a9ff87f
3
+ metadata.gz: 339b4006d044f90c9603f62dbd4da0dc12168ad1b07ca9ff6495a45881bba3a2
4
+ data.tar.gz: 01bf6d4beee4ffedbf7f858b221a9594d7a21e907bd0ac92774e2c4dd657ceaa
5
5
  SHA512:
6
- metadata.gz: ff172750747bda515d5f9cc3305dd7f2917f5d2445e5bb08dc2cdb4111e193ec095cfb4a535611ae5c49da0311f724c6b568619dea7b59dce1840ffe265f5141
7
- data.tar.gz: 9985e199a1357cddec9fc56d25a3f6b9b47d83f0ce124934169a1eb5da3dae7a3c4c58c587c94258c437cb2ade5a781c7d97880c3bff79bcf7a75c1f49abb3be
6
+ metadata.gz: 7145d5e1c364b297c1e8610983b32d29f281cbf095ebabdb3b0d7a1cb20fe87f72f3bdb9eee2673a844a43d48d9c1e0b17f81cc29aaf3e4f12984ba21b01ec72
7
+ data.tar.gz: 799447a0c2695cd0588d0f10ed6807e4ac6411fb86a9200532ca9bae6cb654dc2c6df7848d05e1bd26bffbcf79cf2d20fccb6ac31bd8ede93c98c9ab1fbd4762
data/Gemfile.lock CHANGED
@@ -12,7 +12,7 @@ GIT
12
12
  PATH
13
13
  remote: .
14
14
  specs:
15
- checkoff (0.122.0)
15
+ checkoff (0.123.0)
16
16
  activesupport
17
17
  asana (> 0.10.0)
18
18
  cache_method
@@ -108,16 +108,16 @@ module Checkoff
108
108
  #
109
109
  # @return [Boolean]
110
110
  def task_data_dependent_on_previous_section_last_milestone?(task_data, section)
111
- # @sg-ignore
112
- # @type [Array<Hash{String => String}>]
113
- dependencies = task_data.fetch('dependencies')
114
- return false if dependencies.empty?
115
-
116
111
  previous_section = @sections.previous_section(section)
117
112
  return false if previous_section.nil?
118
113
 
119
114
  previous_section_last_milestone = last_milestone_in_section(previous_section.gid)
120
- return false if previous_section_last_milestone.nil?
115
+ return true if previous_section_last_milestone.nil?
116
+
117
+ # @sg-ignore
118
+ # @type [Array<Hash{String => String}>]
119
+ dependencies = task_data.fetch('dependencies')
120
+ return false if dependencies.empty?
121
121
 
122
122
  dependencies.any? { |dependency| dependency.fetch('gid') == previous_section_last_milestone.gid }
123
123
  end
@@ -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.122.0'
6
+ VERSION = '0.123.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.122.0
4
+ version: 0.123.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vince Broz