notiffany 0.1.1 → 0.1.3

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
- SHA1:
3
- metadata.gz: 0756692ba3e289ecf2cca61de9bce0668e5e0eec
4
- data.tar.gz: 3e26beaafc69b5d597383653f7cc98eb9bd27d98
2
+ SHA256:
3
+ metadata.gz: c47c3b2ee1232595c5d42cc697ea3b84a9b698762425e8fe84491a02cc260ee2
4
+ data.tar.gz: df41471ccadf0fba4ebdc97e885564ae94f8d15bf1ef609af164cb9677a0ee46
5
5
  SHA512:
6
- metadata.gz: bb3a071df0eb11359fb19735863875f17a4ffdb8fe6963eff4ac3bf20c94b425c252e099ae0fe5d0b81515e0d435ca6f34606f87589bec38cb1dff54bf06f3c3
7
- data.tar.gz: 9bbff2963fd2672ecc03485e0c44c0f98a4fc453693a31416aedcf3c96494941b8db50507dc63fcec3095a3b1c316c311395699deab8b8197d0ccf37cf745b66
6
+ metadata.gz: 45adb55265641935434ce10eb31e8adb710c1d2db53b80fae1c1c4af84369ab7c4b4094d972b99521cd3d51d4e4db6015c1830f0a6348f0c8e37f6630b9a7e5f
7
+ data.tar.gz: 4d9e75a664e46f345afc83be91be17566c80235467b1b8bec9631eb234b3c97b20d96664023cd0eae375578312c5a1316cc59ac5880264e87049f7b0c4972a33
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 NoMethodError, 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.3"
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.3
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-08-01 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)