tempest_time 0.5.3 → 0.5.5

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: 8fadd5695c98443d2892aac9bdc9a907ff1825d8613c0955ce988af14386f0df
4
- data.tar.gz: add6d9dc10500fc6236030b5da61c24003fe57a49896062cf7894e5e9d983372
3
+ metadata.gz: c64c97500d830853e4be9c4f287a272b568ed51878f4403960b068939892fa15
4
+ data.tar.gz: f4daacb9d077bf73374097d70249876c680650b6e874736870191bd46fbbdf0d
5
5
  SHA512:
6
- metadata.gz: 0742fd8630fc7744e7b814ff28b0b6498a0245cdf8b72e3b819d182001eae5281db7cb3785e03d91a8fa199f37e43b98d5078e3fe29921c2d8bfd3ef62426dac
7
- data.tar.gz: 53060657cdcf5f6a524dfeb360e78cc38b9b2a6c78963d762d3a0d2acfc2d07ef5b69fa6687510d7b5e33b5563ee22e98fbf151d44a6a2ba3e0783baf2a41f81
6
+ metadata.gz: cfbd5f404907aaafa4e20d74c49c9e56350b797e66f721a14daa253eea97286913edb13d81bbc02081115796ebd9e727c5dfeeceab186237dce0a210cd5f0a5e
7
+ data.tar.gz: de88b4e7d39c5d77d7439930c23ac750f589ac5b50c635698d5e1d5ca25e9ee8e39d70838b83009f3b1b735014b4b5b4811d63c734f2d75df05582f6078ef538
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tempest_time (0.5.2)
4
+ tempest_time (0.5.5)
5
5
  git (~> 1.5)
6
6
  httparty (~> 0.16)
7
7
  pastel (~> 0.7.2)
@@ -17,7 +17,7 @@ module TempoAPI
17
17
  seconds: worklog['timeSpentSeconds'],
18
18
  description: worklog['description']
19
19
  )
20
- end
20
+ end.sort_by(&:id)
21
21
  end
22
22
 
23
23
  def total_hours_spent
@@ -89,7 +89,10 @@ module TempestTime
89
89
  end
90
90
 
91
91
  def projects
92
- @projects ||= reports.flat_map(&:projects).uniq
92
+ @projects ||= reports.flat_map(&:projects).uniq.sort.tap do |projects|
93
+ projects.delete('BCIT')
94
+ projects.unshift('BCIT')
95
+ end
93
96
  end
94
97
 
95
98
  def table_headings
@@ -17,11 +17,8 @@ module TempestTime
17
17
  end
18
18
 
19
19
  def formatted_time(seconds)
20
- if seconds < 3600
21
- "#{seconds / 60} minutes"
22
- else
23
- "#{(seconds / 3600.to_f).round(2)} hours"
24
- end
20
+ return "#{seconds / 60} minutes" if seconds < 3600
21
+ "#{(seconds / 3600.to_f).round(2)} hours"
25
22
  end
26
23
 
27
24
  def formatted_date_range(start_date, end_date)
@@ -1,3 +1,3 @@
1
1
  module TempestTime
2
- VERSION = '0.5.3'.freeze
3
- end
2
+ VERSION = '0.5.5'.freeze
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tempest_time
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Devan Hurst