tempest_time 0.7.2 → 0.7.3

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: a3d19c41539a298623aaf3da3fd65e90964192b3091a6f06c17192db44fd6423
4
- data.tar.gz: 7cc19f0c34c3d896781dc1b32af93d292e1d8044cc06b482c4648e1682bc60df
3
+ metadata.gz: 395c3e3aebddc706adb56c6a571b18284fe40e6d010801a75e21eac16e9d3230
4
+ data.tar.gz: bc89069cf804120b82a4fb0c2b959f37f79f6dad9c388d18885363a7576b9ea8
5
5
  SHA512:
6
- metadata.gz: 4db0005cfc5b5b6c5285d84cfca9beb01625e500d7875dca2b5b92aef0477804f06badc3c8ff4dd027cad79cc2fe547bfba78968c7b9481a88033dfcc3e6281f
7
- data.tar.gz: 4720afb92bda3bce60333cbed8c02e817f737cf32f743e21cf1a6e4270a3a51142da8a592dfbedde937508e6cc29ba541ad01b8292002ca48e55cd7f84ba3f76
6
+ metadata.gz: 81b3f953f4cefa4ea0d9cac41385cc3bc1736abd60696acffe436b724e87fa5c5c7cc98b7f35ef1f5e8bcb0a106ddc7a6ef3572a561b77919ce29194c5a014e3
7
+ data.tar.gz: 2a1e8ac3d73a2f5977c5a242a9110198e73d319d651b996aa3eab2deb8a23e95879247e9fe1cc639bce8e60dfa6ffe226e4fd7544853477978d518b6b068d7d5
@@ -1,14 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative '../command'
4
- require_relative '../helpers/time_helper'
5
4
  require_relative '../api/tempo_api/requests/list_worklogs'
6
5
 
7
6
  module TempestTime
8
7
  module Commands
9
8
  class List < TempestTime::Command
10
- include TempestTime::Helpers::TimeHelper
11
-
12
9
  def initialize(options)
13
10
  @user = options[:user]
14
11
  @date = options[:date] ? Date.parse(options[:date]) : nil
@@ -2,15 +2,12 @@
2
2
 
3
3
  require_relative '../command'
4
4
  require_relative '../settings/teams'
5
- require_relative '../helpers/time_helper'
6
5
  require_relative '../api/tempo_api/requests/list_worklogs'
7
6
  require_relative '../models/report'
8
7
 
9
8
  module TempestTime
10
9
  module Commands
11
10
  class Report < TempestTime::Command
12
- include TempestTime::Helpers::TimeHelper
13
-
14
11
  def initialize(users, options)
15
12
  @users = users || []
16
13
  @team = options[:team]
@@ -2,13 +2,10 @@
2
2
 
3
3
  require_relative '../command'
4
4
  require_relative '../api/tempo_api/requests/submit_timesheet'
5
- require_relative '../helpers/time_helper'
6
5
 
7
6
  module TempestTime
8
7
  module Commands
9
8
  class Submit < TempestTime::Command
10
- include TempestTime::Helpers::TimeHelper
11
-
12
9
  def initialize(options)
13
10
  @options = options
14
11
  end
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative '../command'
4
- require_relative '../helpers/time_helper'
5
4
  require_relative '../api/jira_api/requests/get_issue'
6
5
  require_relative '../api/tempo_api/requests/create_worklog'
7
6
 
@@ -7,7 +7,8 @@ module TempestTime
7
7
  def initialize
8
8
  @config = TTY::Config.new
9
9
  config.extname = '.yml'
10
- config.append_path(Dir.home + '/.tempest')
10
+ config.append_path(directory)
11
+ Dir.mkdir(directory) unless File.exists?(directory)
11
12
  end
12
13
 
13
14
  def keys
@@ -36,6 +37,10 @@ module TempestTime
36
37
 
37
38
  private
38
39
 
40
+ def directory
41
+ Dir.home + '/.tempest'
42
+ end
43
+
39
44
  def read_config
40
45
  config.read
41
46
  yield
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TempestTime
4
- VERSION = '0.7.2'
4
+ VERSION = '0.7.3'
5
5
  end
data/tempest_time.gemspec CHANGED
@@ -11,8 +11,8 @@ Gem::Specification.new do |spec|
11
11
  spec.authors = ['Devan Hurst']
12
12
  spec.email = ['devan.hurst@gmail.com']
13
13
 
14
- spec.summary = %q{Smart console-based Tempo time tracking!}
15
- spec.description = %q{Log your Tempo hours directly from the command line!}
14
+ spec.summary = %q{Smart CLI for Jira Cloud.}
15
+ spec.description = %q{Log time and more... directly from the command line!}
16
16
  spec.homepage = 'https://github.com/devanhurst/tempest_time'
17
17
 
18
18
  spec.required_ruby_version = '~> 2.3'
@@ -33,23 +33,9 @@ Gem::Specification.new do |spec|
33
33
  spec.add_dependency 'pastel', '~> 0.7.2'
34
34
  spec.add_dependency 'ruby-git', '~>0.2'
35
35
  spec.add_dependency 'thor', '~> 0.20.0'
36
- spec.add_dependency 'tty-box', '~> 0.3.0'
37
- spec.add_dependency 'tty-color', '~> 0.4'
38
36
  spec.add_dependency 'tty-command', '~> 0.8.0'
39
37
  spec.add_dependency 'tty-config', '~> 0.3.0'
40
- spec.add_dependency 'tty-cursor', '~> 0.6'
41
- spec.add_dependency 'tty-editor', '~> 0.5.0'
42
- spec.add_dependency 'tty-file', '~> 0.7.0'
43
- spec.add_dependency 'tty-font', '~> 0.2.0'
44
- spec.add_dependency 'tty-markdown', '~> 0.5.0'
45
- spec.add_dependency 'tty-pager', '~> 0.12.0'
46
- spec.add_dependency 'tty-pie', '~> 0.1.0'
47
- spec.add_dependency 'tty-platform', '~> 0.2.0'
48
- spec.add_dependency 'tty-progressbar', '~> 0.16.0'
49
38
  spec.add_dependency 'tty-prompt', '~> 0.18.0'
50
- spec.add_dependency 'tty-screen', '~> 0.6'
51
39
  spec.add_dependency 'tty-spinner', '~> 0.9.0'
52
40
  spec.add_dependency 'tty-table', '~> 0.10.0'
53
- spec.add_dependency 'tty-tree', '~> 0.2.0'
54
- spec.add_dependency 'tty-which', '~> 0.4'
55
41
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tempest_time
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Devan Hurst
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-07 00:00:00.000000000 Z
11
+ date: 2019-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -136,34 +136,6 @@ dependencies:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: 0.20.0
139
- - !ruby/object:Gem::Dependency
140
- name: tty-box
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: 0.3.0
146
- type: :runtime
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: 0.3.0
153
- - !ruby/object:Gem::Dependency
154
- name: tty-color
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: '0.4'
160
- type: :runtime
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - "~>"
165
- - !ruby/object:Gem::Version
166
- version: '0.4'
167
139
  - !ruby/object:Gem::Dependency
168
140
  name: tty-command
169
141
  requirement: !ruby/object:Gem::Requirement
@@ -192,132 +164,6 @@ dependencies:
192
164
  - - "~>"
193
165
  - !ruby/object:Gem::Version
194
166
  version: 0.3.0
195
- - !ruby/object:Gem::Dependency
196
- name: tty-cursor
197
- requirement: !ruby/object:Gem::Requirement
198
- requirements:
199
- - - "~>"
200
- - !ruby/object:Gem::Version
201
- version: '0.6'
202
- type: :runtime
203
- prerelease: false
204
- version_requirements: !ruby/object:Gem::Requirement
205
- requirements:
206
- - - "~>"
207
- - !ruby/object:Gem::Version
208
- version: '0.6'
209
- - !ruby/object:Gem::Dependency
210
- name: tty-editor
211
- requirement: !ruby/object:Gem::Requirement
212
- requirements:
213
- - - "~>"
214
- - !ruby/object:Gem::Version
215
- version: 0.5.0
216
- type: :runtime
217
- prerelease: false
218
- version_requirements: !ruby/object:Gem::Requirement
219
- requirements:
220
- - - "~>"
221
- - !ruby/object:Gem::Version
222
- version: 0.5.0
223
- - !ruby/object:Gem::Dependency
224
- name: tty-file
225
- requirement: !ruby/object:Gem::Requirement
226
- requirements:
227
- - - "~>"
228
- - !ruby/object:Gem::Version
229
- version: 0.7.0
230
- type: :runtime
231
- prerelease: false
232
- version_requirements: !ruby/object:Gem::Requirement
233
- requirements:
234
- - - "~>"
235
- - !ruby/object:Gem::Version
236
- version: 0.7.0
237
- - !ruby/object:Gem::Dependency
238
- name: tty-font
239
- requirement: !ruby/object:Gem::Requirement
240
- requirements:
241
- - - "~>"
242
- - !ruby/object:Gem::Version
243
- version: 0.2.0
244
- type: :runtime
245
- prerelease: false
246
- version_requirements: !ruby/object:Gem::Requirement
247
- requirements:
248
- - - "~>"
249
- - !ruby/object:Gem::Version
250
- version: 0.2.0
251
- - !ruby/object:Gem::Dependency
252
- name: tty-markdown
253
- requirement: !ruby/object:Gem::Requirement
254
- requirements:
255
- - - "~>"
256
- - !ruby/object:Gem::Version
257
- version: 0.5.0
258
- type: :runtime
259
- prerelease: false
260
- version_requirements: !ruby/object:Gem::Requirement
261
- requirements:
262
- - - "~>"
263
- - !ruby/object:Gem::Version
264
- version: 0.5.0
265
- - !ruby/object:Gem::Dependency
266
- name: tty-pager
267
- requirement: !ruby/object:Gem::Requirement
268
- requirements:
269
- - - "~>"
270
- - !ruby/object:Gem::Version
271
- version: 0.12.0
272
- type: :runtime
273
- prerelease: false
274
- version_requirements: !ruby/object:Gem::Requirement
275
- requirements:
276
- - - "~>"
277
- - !ruby/object:Gem::Version
278
- version: 0.12.0
279
- - !ruby/object:Gem::Dependency
280
- name: tty-pie
281
- requirement: !ruby/object:Gem::Requirement
282
- requirements:
283
- - - "~>"
284
- - !ruby/object:Gem::Version
285
- version: 0.1.0
286
- type: :runtime
287
- prerelease: false
288
- version_requirements: !ruby/object:Gem::Requirement
289
- requirements:
290
- - - "~>"
291
- - !ruby/object:Gem::Version
292
- version: 0.1.0
293
- - !ruby/object:Gem::Dependency
294
- name: tty-platform
295
- requirement: !ruby/object:Gem::Requirement
296
- requirements:
297
- - - "~>"
298
- - !ruby/object:Gem::Version
299
- version: 0.2.0
300
- type: :runtime
301
- prerelease: false
302
- version_requirements: !ruby/object:Gem::Requirement
303
- requirements:
304
- - - "~>"
305
- - !ruby/object:Gem::Version
306
- version: 0.2.0
307
- - !ruby/object:Gem::Dependency
308
- name: tty-progressbar
309
- requirement: !ruby/object:Gem::Requirement
310
- requirements:
311
- - - "~>"
312
- - !ruby/object:Gem::Version
313
- version: 0.16.0
314
- type: :runtime
315
- prerelease: false
316
- version_requirements: !ruby/object:Gem::Requirement
317
- requirements:
318
- - - "~>"
319
- - !ruby/object:Gem::Version
320
- version: 0.16.0
321
167
  - !ruby/object:Gem::Dependency
322
168
  name: tty-prompt
323
169
  requirement: !ruby/object:Gem::Requirement
@@ -332,20 +178,6 @@ dependencies:
332
178
  - - "~>"
333
179
  - !ruby/object:Gem::Version
334
180
  version: 0.18.0
335
- - !ruby/object:Gem::Dependency
336
- name: tty-screen
337
- requirement: !ruby/object:Gem::Requirement
338
- requirements:
339
- - - "~>"
340
- - !ruby/object:Gem::Version
341
- version: '0.6'
342
- type: :runtime
343
- prerelease: false
344
- version_requirements: !ruby/object:Gem::Requirement
345
- requirements:
346
- - - "~>"
347
- - !ruby/object:Gem::Version
348
- version: '0.6'
349
181
  - !ruby/object:Gem::Dependency
350
182
  name: tty-spinner
351
183
  requirement: !ruby/object:Gem::Requirement
@@ -374,35 +206,7 @@ dependencies:
374
206
  - - "~>"
375
207
  - !ruby/object:Gem::Version
376
208
  version: 0.10.0
377
- - !ruby/object:Gem::Dependency
378
- name: tty-tree
379
- requirement: !ruby/object:Gem::Requirement
380
- requirements:
381
- - - "~>"
382
- - !ruby/object:Gem::Version
383
- version: 0.2.0
384
- type: :runtime
385
- prerelease: false
386
- version_requirements: !ruby/object:Gem::Requirement
387
- requirements:
388
- - - "~>"
389
- - !ruby/object:Gem::Version
390
- version: 0.2.0
391
- - !ruby/object:Gem::Dependency
392
- name: tty-which
393
- requirement: !ruby/object:Gem::Requirement
394
- requirements:
395
- - - "~>"
396
- - !ruby/object:Gem::Version
397
- version: '0.4'
398
- type: :runtime
399
- prerelease: false
400
- version_requirements: !ruby/object:Gem::Requirement
401
- requirements:
402
- - - "~>"
403
- - !ruby/object:Gem::Version
404
- version: '0.4'
405
- description: Log your Tempo hours directly from the command line!
209
+ description: Log time and more... directly from the command line!
406
210
  email:
407
211
  - devan.hurst@gmail.com
408
212
  executables:
@@ -519,5 +323,5 @@ rubyforge_project:
519
323
  rubygems_version: 2.7.3
520
324
  signing_key:
521
325
  specification_version: 4
522
- summary: Smart console-based Tempo time tracking!
326
+ summary: Smart CLI for Jira Cloud.
523
327
  test_files: []