notiffany 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +20 -0
- data/lib/notiffany/notifier/tmux/client.rb +5 -1
- data/lib/notiffany/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 364c7a6b94d31cc8fe9a45a0ce41c224ad998f8d944ca1f4d085f5b170251a18
|
4
|
+
data.tar.gz: 7ee3ea14f975c2e0680d9752a6867eaac952de0d923ad3984d19260c1ebc1340
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 )
|
data/lib/notiffany/version.rb
CHANGED
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.
|
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:
|
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
|
-
|
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)
|