TokiCLI 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/TokiCLI/version.rb +1 -1
- data/lib/TokiCLI/view.rb +4 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13c76e7823ff774b8ccfe4af10201d6ea64afb6e
|
4
|
+
data.tar.gz: 3b7450b26fb26fba73dacda65d4f7d8e95b1cfd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6e91245035e3dbd2939fdcb3af86249143df5c549068001ca91a7418692165c31585be41fb09ee0eb14db2fe46b481ef04ab94dcb9d45a9144af85e7535a4f8
|
7
|
+
data.tar.gz: 5c206edc01a9d1e385509d32c1c7c5b6d5de59fc79b7f8981a4bab1864564d082748c94e9f93bcf23c7e431de9d685530b48297a73c83b4bd1d17a145596fad9
|
data/CHANGELOG.md
CHANGED
data/lib/TokiCLI/version.rb
CHANGED
data/lib/TokiCLI/view.rb
CHANGED
@@ -22,7 +22,7 @@ module TokiCLI
|
|
22
22
|
def app_table(asked, app_data)
|
23
23
|
table = init_table
|
24
24
|
table.style = { :width => 100 }
|
25
|
-
name = name_of
|
25
|
+
name = name_of(app_data)
|
26
26
|
table.title = "Toki time tracking for #{name}"
|
27
27
|
table.headings = ['Start', 'Duration', 'Sync ID']
|
28
28
|
lines = create_lines app_data
|
@@ -34,7 +34,8 @@ module TokiCLI
|
|
34
34
|
lines.select! {|obj| Time.parse(obj[0]) > display_limit}
|
35
35
|
|
36
36
|
sort_lines lines
|
37
|
-
|
37
|
+
|
38
|
+
puts create_table(lines, table, total)
|
38
39
|
puts "\n"
|
39
40
|
end
|
40
41
|
|
@@ -68,7 +69,7 @@ module TokiCLI
|
|
68
69
|
|
69
70
|
private
|
70
71
|
|
71
|
-
def create_table lines, table
|
72
|
+
def create_table lines, table, total = 0
|
72
73
|
index = 0
|
73
74
|
length = lines.length - 1
|
74
75
|
lines.each do |obj|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: TokiCLI
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Dejonckheere
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -572,7 +572,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
572
572
|
version: '0'
|
573
573
|
requirements: []
|
574
574
|
rubyforge_project:
|
575
|
-
rubygems_version: 2.
|
575
|
+
rubygems_version: 2.3.0
|
576
576
|
signing_key:
|
577
577
|
specification_version: 4
|
578
578
|
summary: Toki.app command-line client and API server
|