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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9bc9ee3155c4d5927d8dbc7b427f422881c1d5d0
4
- data.tar.gz: 76f454ef2469eb6dbcf62b13061ed72da5b12284
3
+ metadata.gz: 2708ebdc002e1ebc5439db8e406d31c382a5d773
4
+ data.tar.gz: e2fb135d2714fdb38fe7a5835ccdac4ea8859adc
5
5
  SHA512:
6
- metadata.gz: 31dd9f6c9fd26fde8daeda396d11430fe651ad7e3e58748b617b08b2f6ae455b09bfcfa3f44dc39b7d89836e09b9071e91a1b30a4db6b6f207b4c07f7aff1407
7
- data.tar.gz: 51dfbcfa4496301ba82b44fd7f43abb36d6ab2675f823bee4dafa591881a08e21e685ebefb95a26cb7862facbfd6406a9b008ec3df6ba19313fd4e75629ccddf
6
+ metadata.gz: d9a72caffe85037783019b88d4feb7884b66c299c12c6be36488e6c340a841feb5eb2a767fc4dab181c894b96e50d12bf62685f3727b19be84f711012f304a3a
7
+ data.tar.gz: a17299060126728f7f56783e9a059cf4afa6d0ac33214992009b9b15b4cbd0550e657335d2c47f1eed9fc3c439f3fe595778fde64a6e66ea2ffcbfeef2f93020
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ *.gem
2
+ test.rb
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
@@ -36,7 +36,7 @@ class Notify
36
36
  inline("\u2716 #{message} - #{Utils.formatted_time}", :red)
37
37
  inline("\u2716 Exiting...", :red)
38
38
 
39
- exit
39
+ exit(1)
40
40
  end
41
41
 
42
42
  # Prints a pre-formatted warning message to the console
@@ -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.7
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-06-10 00:00:00.000000000 Z
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