thyme_verbose 0.1.2 → 0.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6460eafbcd3cb96554a031732ce1fccd450a4cc72f4d8d6f426b89dc595cfcea
4
- data.tar.gz: '0079432259f8c45cd012e7f2fda5d876affe42e457e87626bfd14aa900c7b91e'
3
+ metadata.gz: 6b11c280a4b23f43121796381b1bfc8717e8d4bde83d36590c6938c381b55f11
4
+ data.tar.gz: 419e967f18f34b94b8ab3304dde72ff2843fd3d61fb594229de24907c7a6e095
5
5
  SHA512:
6
- metadata.gz: 8d78894c43c445a7b21a694dc6d5a8c289c4489c6f083217eb9ecc124b2bcb5fbabc478d1c92094f7fb260cd55661098bfd620896cbc3c593d3dcad432fcdf2d
7
- data.tar.gz: 7802411c2b3e58b2009ee0c02b519d62f9682f835182224d1bc8aecc55e3cf914c8d17952681090aca83dac18fa7c57a09289b42fce9e0f8da2578a9bb5631b0
6
+ metadata.gz: 5d5f8d0df13a756ddd565a28986f7bb2f771c82e9df76964d84341cbc277be4dd6607351b0d7a767ddfec4c104874ff98a86ad597de2bce90bd573703df189ff
7
+ data.tar.gz: 8a88341efd1cf9e31f6807a90df68c32e0912469ff2a8391239853c51cd61ee9b143cd9a12e79815add7005f9e0bf3c04440d0b0aa2d0db7883cfb142dc84636
data/README.md CHANGED
@@ -16,6 +16,7 @@ Require thyme_verbose in `~/.thymerc` and initialize plugins.
16
16
  use ThymePluginLabel
17
17
  use ThymePluginBell
18
18
  use ThymePluginMusic
19
+ use ThymePluginNotify
19
20
 
20
21
  ## Plugins
21
22
 
@@ -23,3 +24,4 @@ Require thyme_verbose in `~/.thymerc` and initialize plugins.
23
24
  * ThymePluginLabel - add a -l / --label option, which defines a custom text to print after each iteration
24
25
  * ThymePluginBell - make an terminal alarm (beep code) after each iteration
25
26
  * ThymePluginMusic - play music during a pomodoro
27
+ * ThymePluginNotify - show OS notification after each iteration
@@ -3,3 +3,4 @@ require_relative "thyme_verbose/plugin_time"
3
3
  require_relative "thyme_verbose/plugin_label"
4
4
  require_relative "thyme_verbose/plugin_bell"
5
5
  require_relative "thyme_verbose/plugin_music"
6
+ require_relative "thyme_verbose/plugin_notify"
@@ -0,0 +1,13 @@
1
+
2
+ class ThymePluginNotify
3
+ def initialize(thyme, options={})
4
+ @message = options[:message] || 'Thyme is Up'
5
+ end
6
+
7
+ # Hooks
8
+
9
+ def after(seconds_left)
10
+ `osascript -e 'display notification "#{@message}"'`
11
+ end
12
+ end
13
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thyme_verbose
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Shmygol
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-15 00:00:00.000000000 Z
11
+ date: 2019-03-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: " A set of lightweight plugins for the pomodoro timer 'thyme' aimed
14
14
  to improve verbosity.\n ThymePluginTime for printing current time before and
@@ -27,6 +27,7 @@ files:
27
27
  - lib/thyme_verbose/plugin_bell.rb
28
28
  - lib/thyme_verbose/plugin_label.rb
29
29
  - lib/thyme_verbose/plugin_music.rb
30
+ - lib/thyme_verbose/plugin_notify.rb
30
31
  - lib/thyme_verbose/plugin_time.rb
31
32
  homepage: https://github.com/trilliput/thyme_verbose
32
33
  licenses: