checkoff 0.68.0 → 0.82.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: 6dd5c704b7e134bdda8158cf7851d59bc1c1288e969251bcf4f301d9f18bafed
4
- data.tar.gz: 5f92ddd1ce0079e41d9a3aaf34159a5d17aa2ffafa1dbb86beff713a9ac110a1
3
+ metadata.gz: 2ed12dc4548f42066a862979cd32587db73fbdc9fdf739700043411bf8a847c6
4
+ data.tar.gz: 5c10fc42f321993f41ed73382d31bc6b98e9a1f3953291cfa6a1165c568a5078
5
5
  SHA512:
6
- metadata.gz: e7b890ec0a915814c77e4bce2137a50cdf740dbe8f22bdaac105e4b1b2f4a94dc2b09dc90768b4a7336d2ccf48b63bc61597e4f37d4a77cb3bc8270cb873c8ab
7
- data.tar.gz: 564850bdc350602dd3fe4d7bb66a6457cd5b582d061aa83cf95b5a526da25741cdde8debb87ef8443b5bef94b6d8af6e186f6c369dc10232d35f41d40900fd5d
6
+ metadata.gz: 4efb537663fdf38cef9f904eaed47991d3cd13bb235d364170695d0891c8ca3f193e994f54029080f45147fa1cb0dddd74cb72c4b7fc7c0d33871c361340d777
7
+ data.tar.gz: 45f4552181f13e36a4da1285f8bc5e9a5284f223088e4b11141c79ebb8ab476d6f1417e5f493d5c8a8cfb1891536dd627ee5cc16f63a8b28794f5149d58fc8c3
data/.circleci/config.yml CHANGED
@@ -108,6 +108,32 @@ jobs:
108
108
  command: make citest cicoverage
109
109
  # This seemed to shave 5ish% of the build time off when added
110
110
  resource_class: large
111
+ publish_gem:
112
+ working_directory: ~/checkoff
113
+ docker:
114
+ - image: apiology/circleci-ruby:latest
115
+ steps:
116
+ - set_up_environment
117
+ - run: git config user.email 'vince@broz.cc'
118
+ - run: git config user.name 'Vince Broz'
119
+ - run_with_languages:
120
+ label: Make RubyGems release
121
+ command: |
122
+ # Coax overcommit into working
123
+ git config --global user.email "test@test.test"
124
+ git config --global user.name "Test Test"
125
+ bundle exec overcommit --sign
126
+ bundle exec overcommit --sign pre-commit
127
+
128
+ git status
129
+ bundle exec bump --tag --tag-prefix=v minor
130
+ # bundle exec needed for overcommit hooks
131
+ #
132
+ # if this step fails, check that
133
+ # https://app.circleci.com/settings/project/github/apiology/checkoff/ssh
134
+ # includes a read-write 'user key':
135
+ bundle exec git push --set-upstream origin "${CIRCLE_BRANCH:?}"
136
+ bundle exec rake release
111
137
 
112
138
  workflows:
113
139
  version: 2
@@ -128,3 +154,9 @@ workflows:
128
154
  build:
129
155
  jobs:
130
156
  - build
157
+ - publish_gem:
158
+ requires:
159
+ - build
160
+ # filters:
161
+ # branches:
162
+ # only: main
data/Gemfile.lock CHANGED
@@ -12,7 +12,7 @@ GIT
12
12
  PATH
13
13
  remote: .
14
14
  specs:
15
- checkoff (0.68.0)
15
+ checkoff (0.82.0)
16
16
  activesupport
17
17
  asana (> 0.10.0)
18
18
  cache_method
@@ -71,10 +71,10 @@ module Checkoff
71
71
  end
72
72
  end
73
73
 
74
- # :due function
74
+ # :ready function
75
75
  class DuePFunctionEvaluator < FunctionEvaluator
76
76
  def matches?
77
- fn?(selector, :due)
77
+ fn?(selector, :ready)
78
78
  end
79
79
 
80
80
  # @param task [Asana::Resources::Task]
@@ -131,13 +131,22 @@ module Checkoff
131
131
  if s.nil?
132
132
  valid_sections = sections_or_raise(workspace_name, project_name).map(&:name)
133
133
 
134
- raise "Could not find section #{section_name} under project #{project_name} " \
135
- "under workspace #{workspace_name}. Valid sections: #{valid_sections}"
134
+ raise "Could not find section #{section_name.inspect} under project #{project_name.inspect} " \
135
+ "under workspace #{workspace_name.inspect}. Valid sections: #{valid_sections.inspect}"
136
136
  end
137
137
  s
138
138
  end
139
139
  cache_method :section_or_raise, LONG_CACHE_TIME
140
140
 
141
+ # @param name [String]
142
+ # @return [String, nil]
143
+ def section_key(name)
144
+ inbox_section_names = ['(no section)', 'Untitled section', 'Inbox', 'Recently assigned']
145
+ return nil if inbox_section_names.include?(name)
146
+
147
+ name
148
+ end
149
+
141
150
  private
142
151
 
143
152
  # @return [Asana::Client]
@@ -159,15 +168,6 @@ module Checkoff
159
168
  by_section(active_tasks, project.gid)
160
169
  end
161
170
 
162
- # @param name [String]
163
- # @return [String, nil]
164
- def section_key(name)
165
- inbox_section_names = ['(no section)', 'Untitled section', 'Inbox', 'Recently assigned']
166
- return nil if inbox_section_names.include?(name)
167
-
168
- name
169
- end
170
-
171
171
  # Given a list of tasks, pull a Hash of tasks with section name -> task list
172
172
  # @param tasks [Enumerable<Asana::Resources::Task>]
173
173
  # @param project_gid [String]
@@ -48,9 +48,9 @@ module Checkoff
48
48
  # incomplete task and one of these is true:
49
49
  #
50
50
  # * start is null and due on is today
51
- # * start is null and due at is after now
51
+ # * start is null and due at is before now
52
52
  # * start on is today
53
- # * start at is after now
53
+ # * start at is before now
54
54
  #
55
55
  # @param task [Asana::Resources::Task]
56
56
  # @param ignore_dependencies [Boolean]
@@ -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.68.0'
6
+ VERSION = '0.82.0'
7
7
  end
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ desc 'Make release'
4
+ task release: %i[trigger_next_builds]
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ desc 'Generate plate-spinner build'
4
+ task :trigger_next_builds do
5
+ sh 'curl -v -X POST https://circleci.com/api/v1/project/apiology/' \
6
+ 'plate-spinner/tree/main?circle-token=$CIRCLE_TOKEN'
7
+ end
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: checkoff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.68.0
4
+ version: 0.82.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vince Broz
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
11
  date: 2023-10-21 00:00:00.000000000 Z
@@ -80,7 +80,7 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
- description:
83
+ description:
84
84
  email:
85
85
  - vince@broz.cc
86
86
  executables:
@@ -193,8 +193,10 @@ files:
193
193
  - rakelib/localtest.rake
194
194
  - rakelib/overcommit.rake
195
195
  - rakelib/quality.rake
196
+ - rakelib/release.rb
196
197
  - rakelib/repl.rake
197
198
  - rakelib/test.rake
199
+ - rakelib/trigger_next_builds.rake
198
200
  - rakelib/undercover.rake
199
201
  - requirements_dev.txt
200
202
  homepage: https://github.com/apiology/checkoff
@@ -202,7 +204,7 @@ licenses:
202
204
  - MIT license
203
205
  metadata:
204
206
  rubygems_mfa_required: 'true'
205
- post_install_message:
207
+ post_install_message:
206
208
  rdoc_options: []
207
209
  require_paths:
208
210
  - lib
@@ -218,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
218
220
  version: '0'
219
221
  requirements: []
220
222
  rubygems_version: 3.2.33
221
- signing_key:
223
+ signing_key:
222
224
  specification_version: 4
223
225
  summary: Command-line and gem client for Asana (unofficial)
224
226
  test_files: []