yadoro 0.3.0 → 0.3.1
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/README.md +18 -9
- data/lib/yadoro/cli.rb +18 -3
- data/lib/yadoro/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: 922affb393e06bb0037ebc66f50d3eaef19d2565
|
4
|
+
data.tar.gz: 38b806c2cfcd01711a4765784b3e724b3cbf343e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7f091c547c6eb16c84425d953b8ae53ba625694fed54d4f08175ead65359f115da7f56f6e4b58cd32ddf1a6d5cd20c1894ed9dc1897094a1d296d0f91beda2f
|
7
|
+
data.tar.gz: f7fa99a04d9f6c37e720cf116adadc444b7e666bc900bccc9c23ceb043c8515002278c11f4983588878879dfa12d43344eed9166614a160b5af663a099ca2e7d
|
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# Yadoro
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
Yet Another Pomodoro Timer. Because the other 10 pomodoro gems didn't cut it.
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
@@ -22,20 +20,31 @@ Or install it yourself as:
|
|
22
20
|
|
23
21
|
## Usage
|
24
22
|
|
25
|
-
|
23
|
+
To run the timer once without a message:
|
26
24
|
|
27
|
-
|
25
|
+
$ yadoro
|
26
|
+
|
27
|
+
To run the timer with a message (or none):
|
28
|
+
|
29
|
+
$ yadoro start "your message here"
|
30
|
+
|
31
|
+
To run the timer once with a message:
|
28
32
|
|
29
|
-
|
33
|
+
$ yadoro one "your message here"
|
30
34
|
|
31
|
-
To
|
35
|
+
To run the timer with [the optimal work-break balance according to science](https://www.fastcompany.com/3035605/how-to-be-a-success-at-everything/the-exact-amount-of-time-you-should-work-every-day)
|
36
|
+
|
37
|
+
$ yadoro sci "your message here"
|
32
38
|
|
33
39
|
## Contributing
|
34
40
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
41
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/nmatte/yadoro.
|
42
|
+
|
36
43
|
|
44
|
+
## Development
|
45
|
+
|
46
|
+
This is a pet project and as such support is limited, but I plan to add support for TaskWarrior, and possibly move away from using `terminal-notifier` and `Thor`.
|
37
47
|
|
38
48
|
## License
|
39
49
|
|
40
50
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
|
-
|
data/lib/yadoro/cli.rb
CHANGED
@@ -9,8 +9,7 @@ require_relative 'pomo_runner.rb'
|
|
9
9
|
|
10
10
|
module Yadoro
|
11
11
|
class YadoroCLI < Thor
|
12
|
-
desc "Runs a timer", "Runs a timer with the given message"
|
13
|
-
long_desc "Runs a "
|
12
|
+
desc "Runs a timer", "Runs a timer 4 times with the given message"
|
14
13
|
def start(*msg)
|
15
14
|
config = Yadoro::Configuration.new(task: msg.join(" "))
|
16
15
|
runner = PomoRunner.new(config)
|
@@ -21,6 +20,7 @@ module Yadoro
|
|
21
20
|
rescue Exception => e
|
22
21
|
puts e.message
|
23
22
|
end
|
23
|
+
|
24
24
|
desc "Runs a timer once", "Runs a timer once with the given message"
|
25
25
|
def one(msg="")
|
26
26
|
config = Yadoro::Configuration.new(task: msg)
|
@@ -31,8 +31,23 @@ module Yadoro
|
|
31
31
|
puts e.message
|
32
32
|
end
|
33
33
|
|
34
|
+
desc "Runs a timer", "Runs a timer with the given message, with a work time of 52 min. and break of 17 min."
|
35
|
+
def sci(msg="")
|
36
|
+
config = Yadoro::Configuration.new(task: msg, work_minutes: 52, break_minutes: 17)
|
37
|
+
runner = PomoRunner.new(config)
|
38
|
+
|
39
|
+
loop do
|
40
|
+
runner.run
|
41
|
+
end
|
42
|
+
rescue Exception => e
|
43
|
+
puts e.message
|
44
|
+
end
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
|
34
49
|
desc "test save", "test save"
|
35
|
-
long_desc "
|
50
|
+
long_desc "feature's in the works--you'll be able to save configurations to ~/.yadoro"
|
36
51
|
def save
|
37
52
|
f = File.open(File.expand_path('~/.yadoro'), 'w')
|
38
53
|
configs = {
|
data/lib/yadoro/version.rb
CHANGED