checkoff 0.166.0 → 0.167.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: c9cb05ee972b3a2f79c131e22fb0e690fb2d5df2497b6deb6086a1af3e66f968
4
- data.tar.gz: 75db9682d91825259ce86276e820c2b45742943a0346728d0c4eb4a8316e93a7
3
+ metadata.gz: 39ac47375577c961f420ca90fb137fcb53e45baba61ab6cf97c3892196792c09
4
+ data.tar.gz: 8880260934a2e1adee59cd74c391952d888480af4305a766b54053d1c135072d
5
5
  SHA512:
6
- metadata.gz: b47af68554c08cb0bfe4321a9ada6121b99ebf253cfdff749497def7f7afa9c0530bbb249b0b6b750b418def691ac3b3fae4521a777702fc674e291ffd916225
7
- data.tar.gz: 37794f4d4a6ce253486fee8f1763436d1c301d5c65cfe5b60d2a01236992e093870d4c015e798866f7461d940894284d62ac00141cbd895d4c2c0cc496c0a248
6
+ metadata.gz: 4095ea667d2102b2ea7d0dc578f8dd6bb261a1823d7aa71621da1de9adfac7ced8c9c971e2f3deba2cf75c72a0667359ea64d1383152d54106675f5a9a89c66b
7
+ data.tar.gz: bb03d3a4b4aafb155a823d172cd164232c4890574c48e99b5b22e3b3b97aae95b04807e065d00b0d9997ccf7be7dcaf0209cfc60223f23b77997a0f69d106193
data/.circleci/config.yml CHANGED
@@ -128,8 +128,6 @@ jobs:
128
128
  git config --global user.name "Test Test"
129
129
  bundle exec overcommit --sign
130
130
  bundle exec overcommit --sign pre-commit
131
-
132
- git status
133
131
  bundle exec bump --commit-message ' [skip ci]' --tag --tag-prefix=v minor
134
132
  bundle install
135
133
  # bundle exec needed for overcommit hooks
@@ -138,6 +136,7 @@ jobs:
138
136
  # https://app.circleci.com/settings/project/github/apiology/checkoff/ssh
139
137
  # includes a read-write 'user key':
140
138
  bundle exec git push --set-upstream origin "${CIRCLE_BRANCH:?}"
139
+ git status
141
140
  bundle exec rake release trigger_next_builds
142
141
 
143
142
  workflows:
data/Gemfile CHANGED
@@ -9,6 +9,7 @@ gem 'bump'
9
9
  gem 'bundler'
10
10
  gem 'fakeweb'
11
11
  gem 'mdl'
12
+ gem 'mime-types', ['=3.5.1']
12
13
  gem 'minitest-profile'
13
14
  gem 'minitest-reporters'
14
15
  gem 'mocha', ['>= 2']
data/Gemfile.lock CHANGED
@@ -12,7 +12,7 @@ GIT
12
12
  PATH
13
13
  remote: .
14
14
  specs:
15
- checkoff (0.166.0)
15
+ checkoff (0.167.0)
16
16
  activesupport
17
17
  asana (> 0.10.0)
18
18
  cache_method
@@ -180,8 +180,9 @@ GEM
180
180
  unicode-display_width (>= 2.4.0, < 3.0)
181
181
  rubocop-ast (1.30.0)
182
182
  parser (>= 3.2.1.0)
183
- rubocop-minitest (0.33.0)
183
+ rubocop-minitest (0.34.4)
184
184
  rubocop (>= 1.39, < 2.0)
185
+ rubocop-ast (>= 1.30.0, < 2.0)
185
186
  rubocop-rake (0.6.0)
186
187
  rubocop (~> 1.0)
187
188
  ruby-progressbar (1.13.0)
@@ -216,10 +217,11 @@ GEM
216
217
  tomlrb (2.0.3)
217
218
  tzinfo (2.0.6)
218
219
  concurrent-ruby (~> 1.0)
219
- undercover (0.4.6)
220
+ undercover (0.5.0)
221
+ bigdecimal
220
222
  imagen (>= 0.1.8)
221
223
  rainbow (>= 2.1, < 4.0)
222
- rugged (>= 0.27, < 1.7)
224
+ rugged (>= 0.27, < 1.8)
223
225
  unicode-display_width (2.5.0)
224
226
  webmock (3.19.1)
225
227
  addressable (>= 2.8.0)
@@ -240,6 +242,7 @@ DEPENDENCIES
240
242
  checkoff!
241
243
  fakeweb
242
244
  mdl
245
+ mime-types (= 3.5.1)
243
246
  minitest-profile
244
247
  minitest-reporters
245
248
  mocha (>= 2)
@@ -34,7 +34,7 @@ module Checkoff
34
34
  # @sg-ignore
35
35
  # @return [Date, Time, nil]
36
36
  def start_date_or_time(task)
37
- return @time_class.parse(task.start_at) unless task.start_at.nil?
37
+ return @time_class.parse(task.start_at).localtime unless task.start_at.nil?
38
38
 
39
39
  return @date_class.parse(task.start_on) unless task.start_on.nil?
40
40
 
@@ -47,7 +47,7 @@ module Checkoff
47
47
  # @sg-ignore
48
48
  # @return [Date, Time, nil]
49
49
  def due_date_or_time(task)
50
- return @time_class.parse(task.due_at) unless task.due_at.nil?
50
+ return @time_class.parse(task.due_at).localtime unless task.due_at.nil?
51
51
 
52
52
  return @date_class.parse(task.due_on) unless task.due_on.nil?
53
53
 
@@ -58,7 +58,7 @@ module Checkoff
58
58
  #
59
59
  # @return [Time, nil]
60
60
  def modified_time(task)
61
- @time_class.parse(task.modified_at) unless task.modified_at.nil?
61
+ @time_class.parse(task.modified_at).localtime unless task.modified_at.nil?
62
62
  end
63
63
 
64
64
  # @param task [Asana::Resources::Task]
@@ -126,7 +126,6 @@ module Checkoff
126
126
  only_uncompleted: only_uncompleted,
127
127
  extra_fields: extra_fields)
128
128
  end
129
- cache_method :tasks_from_project, SHORT_CACHE_TIME
130
129
 
131
130
  # Pull task objects from a project identified by a gid
132
131
  #
@@ -144,7 +143,7 @@ module Checkoff
144
143
  options[:options][:fields] += extra_fields
145
144
  client.tasks.find_all(**options)
146
145
  end
147
- cache_method :tasks_from_project_gid, SHORT_CACHE_TIME
146
+ cache_method :tasks_from_project_gid, REALLY_LONG_CACHE_TIME
148
147
 
149
148
  # @param [String] workspace_name
150
149
  # @param [Array<String>] extra_fields
@@ -13,6 +13,8 @@ module Checkoff
13
13
  # extend CacheMethod::ClassMethods
14
14
 
15
15
  MINUTE = 60
16
+ HOUR = MINUTE * 60
17
+ REALLY_LONG_CACHE_TIME = HOUR * 1
16
18
  LONG_CACHE_TIME = MINUTE * 15
17
19
  SHORT_CACHE_TIME = MINUTE * 5
18
20
 
@@ -130,7 +132,7 @@ module Checkoff
130
132
  client.tasks.get_tasks(section: section.gid,
131
133
  **options)
132
134
  end
133
- cache_method :tasks, SHORT_CACHE_TIME
135
+ cache_method :tasks, REALLY_LONG_CACHE_TIME
134
136
 
135
137
  # Pulls just names of tasks from a given section.
136
138
  # @param workspace_name [String]
@@ -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.166.0'
6
+ VERSION = '0.167.0'
7
7
  end
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.166.0
4
+ version: 0.167.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-12-30 00:00:00.000000000 Z
11
+ date: 2024-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport