notiffany 0.1.1 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0756692ba3e289ecf2cca61de9bce0668e5e0eec
4
- data.tar.gz: 3e26beaafc69b5d597383653f7cc98eb9bd27d98
2
+ SHA256:
3
+ metadata.gz: 364c7a6b94d31cc8fe9a45a0ce41c224ad998f8d944ca1f4d085f5b170251a18
4
+ data.tar.gz: 7ee3ea14f975c2e0680d9752a6867eaac952de0d923ad3984d19260c1ebc1340
5
5
  SHA512:
6
- metadata.gz: bb3a071df0eb11359fb19735863875f17a4ffdb8fe6963eff4ac3bf20c94b425c252e099ae0fe5d0b81515e0d435ca6f34606f87589bec38cb1dff54bf06f3c3
7
- data.tar.gz: 9bbff2963fd2672ecc03485e0c44c0f98a4fc453693a31416aedcf3c96494941b8db50507dc63fcec3095a3b1c316c311395699deab8b8197d0ccf37cf745b66
6
+ metadata.gz: 30a0ac08c398bea714e2c44d730aab4b74ff743dea88e0ba75339d6791501d8a84f89289290881278ded6eae1835516021fffad8edf2a67179e8aecb181188cf
7
+ data.tar.gz: 2d8616b16ac77ec81e162c899b5feac7073ccea4d9f612134ba503773476d398c0b48ae457839339fe5135f3621d43397450a761412aadf0f9991233286c29cc
data/README.md CHANGED
@@ -60,6 +60,26 @@ notifier.turn_on
60
60
  notifier.toggle
61
61
  ```
62
62
 
63
+ ### Customizing options
64
+
65
+ Options vary on the notifier type. The full list is here: https://github.com/guard/notiffany/tree/master/lib/notiffany/notifier
66
+
67
+ Currently, only TMux has "dynamic options". (Open an issue if you need this for other plugins).
68
+
69
+ "Dynamic options" means that you can have custom options (and custom defaults) for custom notifications.
70
+
71
+ Currently, the main notification types are: `success`, `pending`, `failed` and `notify`
72
+
73
+ For example, the default message format for TMux is: `default_message_format: "%s - %s"`
74
+
75
+ If you send a notification `success`, it will look for `success_message_format` and if that setting isn't available, it will fall back to `default_message_format`.
76
+
77
+ This means you can set colors for any notification type, e.g. you can set `foo_message_color`, for notifications of type `foo`.
78
+
79
+ Ideally in the future this would allow you to send custom notifications with custom icons, e.g. `foo_icon` which has a default value of `default_icon` for plugins that show icons, etc.
80
+
81
+
82
+
63
83
  ## Contributing
64
84
 
65
85
  1. Fork it ( https://github.com/[my-github-username]/notiffany/fork )
@@ -9,7 +9,11 @@ module Notiffany
9
9
 
10
10
  class << self
11
11
  def version
12
- Float(_capture("-V")[/\d+\.\d+/])
12
+ begin
13
+ Float(_capture("-V")[/\d+\.\d+/])
14
+ rescue TypeError
15
+ raise Base::UnavailableError, "Could not find tmux"
16
+ end
13
17
  end
14
18
 
15
19
  def _capture(*args)
@@ -1,3 +1,3 @@
1
1
  module Notiffany
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notiffany
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cezary Baginski
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-07-29 00:00:00.000000000 Z
13
+ date: 2019-07-31 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: nenv
@@ -107,8 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  - !ruby/object:Gem::Version
108
108
  version: '0'
109
109
  requirements: []
110
- rubyforge_project:
111
- rubygems_version: 2.6.4
110
+ rubygems_version: 3.0.3
112
111
  signing_key:
113
112
  specification_version: 4
114
113
  summary: Notifier library (extracted from Guard project)