yadoro 0.3.0 → 0.3.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: 5c203c79ce8e119df347df4c86e189858f91a029
4
- data.tar.gz: b023ec63a1c4cad947d87a1152dc6a875719b6d5
3
+ metadata.gz: 922affb393e06bb0037ebc66f50d3eaef19d2565
4
+ data.tar.gz: 38b806c2cfcd01711a4765784b3e724b3cbf343e
5
5
  SHA512:
6
- metadata.gz: b9550c3fe694e6ea0d4b2661bbdc297d6e7daf832b91217f756e1ef66fddfe50c4840b0e2eab2c4b4c59ee7718f0bae587cf7f79c92d8eb8af3bf6ce291ac426
7
- data.tar.gz: 69b28b049250df97b0de22722f05f331a2a5596913074f787100520c70fdd5a664582b024e6c83673916c27f30cab9c582be9f36627629e26d00ace31f092ff8
6
+ metadata.gz: b7f091c547c6eb16c84425d953b8ae53ba625694fed54d4f08175ead65359f115da7f56f6e4b58cd32ddf1a6d5cd20c1894ed9dc1897094a1d296d0f91beda2f
7
+ data.tar.gz: f7fa99a04d9f6c37e720cf116adadc444b7e666bc900bccc9c23ceb043c8515002278c11f4983588878879dfa12d43344eed9166614a160b5af663a099ca2e7d
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # Yadoro
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/yadoro`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- TODO: Write usage instructions here
23
+ To run the timer once without a message:
26
24
 
27
- ## Development
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
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
33
+ $ yadoro one "your message here"
30
34
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
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/[USERNAME]/yadoro.
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
-
@@ -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 "saves whatever thangs you want into ~/.yadoro"
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 = {
@@ -1,3 +1,3 @@
1
1
  module Yadoro
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yadoro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Matteson