TokiCLI 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +12 -12
- data/lib/TokiCLI/app.rb +1 -1
- data/lib/TokiCLI/module.rb +2 -2
- data/lib/TokiCLI/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1cf62801d832f99cd3033c26bfa6903dff314383
|
|
4
|
+
data.tar.gz: 567d4db07b6d91b837f83521640ffb1d7bb04167
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2be0ede46dc8683c6cc9ea5136aff3d4e20508b0ede804ac89c3d89ea6c48ab70f44b49e1094cb5142675aa1dbdcbc234cb8a28d2cd79ff7e0b5ce93330c9ff5
|
|
7
|
+
data.tar.gz: e45984b66d9a7b1bc314630254c1f1aea0a256541f78e2e131c952c79e0215c3d93aa052be2d36067e9b0ec4946007a0de491eefade2f25432348e90c6a1f1f1
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -13,18 +13,6 @@ Access your Toki data from the local database or from the App.net backup channel
|
|
|
13
13
|
|
|
14
14
|
## Usage
|
|
15
15
|
|
|
16
|
-
### Log
|
|
17
|
-
|
|
18
|
-
The **log** command shows the entire log (history) for one app.
|
|
19
|
-
|
|
20
|
-
You don't have to specify the exact name of the identifier: for example, typing 'iterm' will find 'com.googlecod.iterm2'.
|
|
21
|
-
|
|
22
|
-
`toki log iterm`
|
|
23
|
-
|
|
24
|
-
The results are sorted by ascending date and time.
|
|
25
|
-
|
|
26
|
-
When pulling the data from ADN instead of the local database, the results are sorted by ascending synced message.
|
|
27
|
-
|
|
28
16
|
### Total
|
|
29
17
|
|
|
30
18
|
The **total** command shows the total usage time for all apps.
|
|
@@ -59,6 +47,18 @@ The dates you type have to be formatted like this: year-month-day and separated
|
|
|
59
47
|
|
|
60
48
|
`toki range 2014-04-17 2014-04-19`
|
|
61
49
|
|
|
50
|
+
### Log
|
|
51
|
+
|
|
52
|
+
The **log** command shows the entire log (history) for one app.
|
|
53
|
+
|
|
54
|
+
You don't have to specify the exact name of the identifier: for example, typing 'iterm' will find 'com.googlecod.iterm2'.
|
|
55
|
+
|
|
56
|
+
`toki log iterm`
|
|
57
|
+
|
|
58
|
+
The results are sorted by ascending date and time.
|
|
59
|
+
|
|
60
|
+
When pulling the data from ADN instead of the local database, the results are sorted by ascending synced message.
|
|
61
|
+
|
|
62
62
|
### Scan
|
|
63
63
|
|
|
64
64
|
Scan for apps name.
|
data/lib/TokiCLI/app.rb
CHANGED
|
@@ -8,7 +8,7 @@ module TokiCLI
|
|
|
8
8
|
def scan
|
|
9
9
|
toki = create_toki(options)
|
|
10
10
|
bundle_ids = toki.get_bundle_ids
|
|
11
|
-
path = "#{Dir.home}/.
|
|
11
|
+
path = "#{Dir.home}/.TokiCLI"
|
|
12
12
|
Dir.mkdir path unless Dir.exist? path
|
|
13
13
|
f = File.new "#{path}/apps.json", "w"
|
|
14
14
|
f.write bundle_ids.to_json
|
data/lib/TokiCLI/module.rb
CHANGED
|
@@ -10,8 +10,8 @@ module TokiCLI
|
|
|
10
10
|
def initialize(token, channel_id)
|
|
11
11
|
@token = token
|
|
12
12
|
@channel_id = channel_id
|
|
13
|
-
if File.exist? "#{Dir.home}/.
|
|
14
|
-
@bundles = JSON.parse(File.read("#{Dir.home}/.
|
|
13
|
+
if File.exist? "#{Dir.home}/.TokiCLI/apps.json"
|
|
14
|
+
@bundles = JSON.parse(File.read("#{Dir.home}/.TokiCLI/apps.json"))
|
|
15
15
|
end
|
|
16
16
|
end
|
|
17
17
|
|
data/lib/TokiCLI/version.rb
CHANGED