notify 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Rakefile +1 -2
- data/VERSION +1 -0
- data/lib/notify/notify-send.rb +2 -2
- data/lib/notify/version.rb +1 -1
- data/notify.gemspec +21 -15
- metadata +39 -8
- data/Gemfile +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bf6c5de031fdfa9b48070d2bb4c4032b817ed91
|
4
|
+
data.tar.gz: 17c62ab68faca46247496cd280ae465e50faea4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee98e8342660105acac8e396ee37d0f9ea87d3e79a22b23b604b06693341b304e6c6090aaddaeb806c8a86d7ffad59a2795d0eb28b2144d991c1f643e2f94ee2
|
7
|
+
data.tar.gz: 520110ae697928e2a4882e825ce9352188b898cb9bcdf0f5f7dada7b74be10ca1e2354d71fddf10668df64ab4ae8b5a0296bff9b88f2ff7d24a8286187163262
|
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
pkg
|
data/Rakefile
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
require "bundler/gem_tasks"
|
1
|
+
require "bundler/gem_tasks"
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.5.2
|
data/lib/notify/notify-send.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Notify
|
2
2
|
if which('notify-send')
|
3
3
|
def self.notify(title, message, option = {})
|
4
|
-
iconargs = option.key?(:icon) ? ["-i", option[:icon]] : [
|
5
|
-
system 'notify-send', title, html_escape(message), iconargs
|
4
|
+
iconargs = option.key?(:icon) ? ["-i", option[:icon]] : []
|
5
|
+
system 'notify-send', title, html_escape(message), *iconargs
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/notify/version.rb
CHANGED
data/notify.gemspec
CHANGED
@@ -1,17 +1,23 @@
|
|
1
|
-
#
|
2
|
-
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'notify/version'
|
3
5
|
|
4
|
-
Gem::Specification.new do |
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "notify"
|
8
|
+
spec.version = Notify::VERSION
|
9
|
+
spec.authors = ["jugyo"]
|
10
|
+
spec.email = ["jugyo.org@gmail.com"]
|
11
|
+
spec.description = %q{Desctop notify for many platform}
|
12
|
+
spec.summary = %q{Desctop notify for many platform}
|
13
|
+
spec.homepage = "http://github.com/jugyo/notify"
|
14
|
+
spec.license = "MIT"
|
10
15
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
end
|
metadata
CHANGED
@@ -1,16 +1,44 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: notify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jugyo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
12
|
-
dependencies:
|
13
|
-
|
11
|
+
date: 2013-06-13 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: Desctop notify for many platform
|
14
42
|
email:
|
15
43
|
- jugyo.org@gmail.com
|
16
44
|
executables:
|
@@ -18,10 +46,11 @@ executables:
|
|
18
46
|
extensions: []
|
19
47
|
extra_rdoc_files: []
|
20
48
|
files:
|
21
|
-
-
|
49
|
+
- .gitignore
|
22
50
|
- LICENSE
|
23
51
|
- README.md
|
24
52
|
- Rakefile
|
53
|
+
- VERSION
|
25
54
|
- bin/notify
|
26
55
|
- lib/notify.rb
|
27
56
|
- lib/notify/growlnotify.rb
|
@@ -35,7 +64,8 @@ files:
|
|
35
64
|
- notify.gemspec
|
36
65
|
- sample.rb
|
37
66
|
homepage: http://github.com/jugyo/notify
|
38
|
-
licenses:
|
67
|
+
licenses:
|
68
|
+
- MIT
|
39
69
|
metadata: {}
|
40
70
|
post_install_message:
|
41
71
|
rdoc_options: []
|
@@ -53,8 +83,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
83
|
version: '0'
|
54
84
|
requirements: []
|
55
85
|
rubyforge_project:
|
56
|
-
rubygems_version: 2.0.
|
86
|
+
rubygems_version: 2.0.3
|
57
87
|
signing_key:
|
58
88
|
specification_version: 4
|
59
|
-
summary:
|
89
|
+
summary: Desctop notify for many platform
|
60
90
|
test_files: []
|
91
|
+
has_rdoc:
|
data/Gemfile
DELETED