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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 57d68e57afaea0eb395e8ff1c9812120f3ef38f1
4
- data.tar.gz: 88db8f5eb97538cb4875ae60cba14fed3ae832ef
3
+ metadata.gz: 13c76e7823ff774b8ccfe4af10201d6ea64afb6e
4
+ data.tar.gz: 3b7450b26fb26fba73dacda65d4f7d8e95b1cfd2
5
5
  SHA512:
6
- metadata.gz: 50bc4c6af9b2d8c80b0941e698bfa31706d6e2c6a2105dc4854a33f70609c7465007e22acb24cd11f00b980d8cf5567abd8db36f6ac446b5b3de55c171692e79
7
- data.tar.gz: 6ff97c30d19c09da4455d8f35e9ba93cd6e376a251122deee42f0c998ef26a048afeb31ad8c83a7c758ee58b8631927892ec38bdb170a18347f30917a17b039c
6
+ metadata.gz: c6e91245035e3dbd2939fdcb3af86249143df5c549068001ca91a7418692165c31585be41fb09ee0eb14db2fe46b481ef04ab94dcb9d45a9144af85e7535a4f8
7
+ data.tar.gz: 5c206edc01a9d1e385509d32c1c7c5b6d5de59fc79b7f8981a4bab1864564d082748c94e9f93bcf23c7e431de9d685530b48297a73c83b4bd1d17a145596fad9
@@ -1,3 +1,7 @@
1
+ # 0.2.1
2
+
3
+ - Fixed the "log" method in the CLI
4
+
1
5
  # 0.2.0
2
6
 
3
7
  - Toki server (serves API + web pages)
@@ -1,3 +1,3 @@
1
1
  module TokiCLI
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -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 app_data
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
- puts create_table(lines, table)
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.0
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-06-08 00:00:00.000000000 Z
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.2.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