tacgo 0.0.1 → 0.0.2
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/bin/tacgo +4 -3
- data/tacgo.gemspec +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: 046eae30a45b2fa4a4e9a489e6de11557a493ec8
|
|
4
|
+
data.tar.gz: d41a0b23e5571125542ad5c8c6382d882953ad0e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1da183586fa8a54b1e722429d980edf93e0df778a89f2d81f62efd99f9ff9b067e72f232dee42fa0b3754e73710ec2dea61e5ceb3fbb57e37e1bbd64720cdb90
|
|
7
|
+
data.tar.gz: 002a24f516df83e5745b698b2555f36777d912adf74113ddaced9e13dda66c9709f20c0fc8ebe1d395c9738e137475d00a718ae4d3828172195af54a826c7cc2
|
data/bin/tacgo
CHANGED
|
@@ -58,11 +58,11 @@ end
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
def start
|
|
61
|
-
task = fetch_top_task
|
|
61
|
+
task = fetch_top_task
|
|
62
62
|
pomodoro = Pomodoro.new(task)
|
|
63
63
|
pomodoro.start(store)
|
|
64
64
|
|
|
65
|
-
duration =
|
|
65
|
+
duration = 25 * 60
|
|
66
66
|
progress = ProgressBar.create(title: task.label[0..40], total: duration)
|
|
67
67
|
|
|
68
68
|
Thread.abort_on_exception = true
|
|
@@ -75,13 +75,14 @@ def start
|
|
|
75
75
|
progress.finish
|
|
76
76
|
|
|
77
77
|
pomodoro.complete(store)
|
|
78
|
+
`osascript -e 'display notification "Pomodoro complete" with title "Pomodoro complete" sound name "Glass"'`
|
|
78
79
|
end
|
|
79
80
|
|
|
80
81
|
def store
|
|
81
82
|
@store ||= YAML::Store.new('tacgo.yaml')
|
|
82
83
|
end
|
|
83
84
|
|
|
84
|
-
def fetch_top_task
|
|
85
|
+
def fetch_top_task
|
|
85
86
|
require 'mechanize'
|
|
86
87
|
agent = Mechanize.new
|
|
87
88
|
sign_in agent
|
data/tacgo.gemspec
CHANGED