notifaction 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/LICENSE +22 -0
- data/README.md +34 -0
- data/lib/notify.rb +1 -1
- data/notifaction.gemspec +11 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2708ebdc002e1ebc5439db8e406d31c382a5d773
|
4
|
+
data.tar.gz: e2fb135d2714fdb38fe7a5835ccdac4ea8859adc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9a72caffe85037783019b88d4feb7884b66c299c12c6be36488e6c340a841feb5eb2a767fc4dab181c894b96e50d12bf62685f3727b19be84f711012f304a3a
|
7
|
+
data.tar.gz: a17299060126728f7f56783e9a059cf4afa6d0ac33214992009b9b15b4cbd0550e657335d2c47f1eed9fc3c439f3fe595778fde64a6e66ea2ffcbfeef2f93020
|
data/.gitignore
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Яyan Priebe
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
22
|
+
|
data/README.md
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# Notifaction
|
2
|
+
|
3
|
+
Include terminal and OS notifications in your project.
|
4
|
+
|
5
|
+
## Usage
|
6
|
+
|
7
|
+
```ruby
|
8
|
+
require 'notifaction'
|
9
|
+
|
10
|
+
# Print an angry red terminal message
|
11
|
+
# Other methods:
|
12
|
+
# - success (green)
|
13
|
+
# - info (blue)
|
14
|
+
# - sinfo (light blue)
|
15
|
+
# - warning (yellow)
|
16
|
+
# - spit (white)
|
17
|
+
begin
|
18
|
+
call_method
|
19
|
+
rescue => e
|
20
|
+
Notify.error(e.message)
|
21
|
+
end
|
22
|
+
|
23
|
+
# display a bubble notification in OSX and Linux
|
24
|
+
if install_successful
|
25
|
+
Notify.bubble("You can now proceed to use our software...", "Install Successful")
|
26
|
+
end
|
27
|
+
|
28
|
+
# Plugins extend the base notification functionality, sending messages to
|
29
|
+
# online services
|
30
|
+
# This example updates your status on https://www.workingon.co/
|
31
|
+
if task.complete
|
32
|
+
Notify.wo("Task complete: #{task}")
|
33
|
+
end
|
34
|
+
```
|
data/lib/notify.rb
CHANGED
data/notifaction.gemspec
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.name = 'notifaction'
|
3
|
+
s.version = '0.0.8'
|
4
|
+
s.summary = "Notification Satisfaction"
|
5
|
+
s.description = "Include terminal and OS notifications in your project"
|
6
|
+
s.authors = ["Ryan Priebe"]
|
7
|
+
s.email = 'hello@ryanpriebe.com'
|
8
|
+
s.files = `git ls-files`.split($\)
|
9
|
+
s.homepage = 'http://rubygems.org/gems/notifaction'
|
10
|
+
s.license = 'MIT'
|
11
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: notifaction
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Priebe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Include terminal and OS notifications in your project
|
14
14
|
email: hello@ryanpriebe.com
|
@@ -16,12 +16,16 @@ executables: []
|
|
16
16
|
extensions: []
|
17
17
|
extra_rdoc_files: []
|
18
18
|
files:
|
19
|
+
- .gitignore
|
20
|
+
- LICENSE
|
21
|
+
- README.md
|
19
22
|
- lib/notifaction.rb
|
20
23
|
- lib/notify.rb
|
21
24
|
- lib/plugin.rb
|
22
25
|
- lib/plugins/workingon.rb
|
23
26
|
- lib/style.rb
|
24
27
|
- lib/utils.rb
|
28
|
+
- notifaction.gemspec
|
25
29
|
homepage: http://rubygems.org/gems/notifaction
|
26
30
|
licenses:
|
27
31
|
- MIT
|