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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c64c97500d830853e4be9c4f287a272b568ed51878f4403960b068939892fa15
|
4
|
+
data.tar.gz: f4daacb9d077bf73374097d70249876c680650b6e874736870191bd46fbbdf0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfbd5f404907aaafa4e20d74c49c9e56350b797e66f721a14daa253eea97286913edb13d81bbc02081115796ebd9e727c5dfeeceab186237dce0a210cd5f0a5e
|
7
|
+
data.tar.gz: de88b4e7d39c5d77d7439930c23ac750f589ac5b50c635698d5e1d5ca25e9ee8e39d70838b83009f3b1b735014b4b5b4811d63c734f2d75df05582f6078ef538
|
data/Gemfile.lock
CHANGED
@@ -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
|
-
|
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)
|
data/lib/tempest_time/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module TempestTime
|
2
|
-
VERSION = '0.5.
|
3
|
-
end
|
2
|
+
VERSION = '0.5.5'.freeze
|
3
|
+
end
|