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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 68eb2a31d3e0d10de76da6d551b7ef3a89e1763f
4
- data.tar.gz: a2cb262f530f939b67a7bc207b17bab2ea8fd691
3
+ metadata.gz: 9bf6c5de031fdfa9b48070d2bb4c4032b817ed91
4
+ data.tar.gz: 17c62ab68faca46247496cd280ae465e50faea4e
5
5
  SHA512:
6
- metadata.gz: 6f61149ba5f5f0dc36d98cb9bae429741769cd2a88d4a20a2695acb614f4353962bafaece786089f29904b6228c4ba1bd34375075691090d1806a90466e15c50
7
- data.tar.gz: b4a1235fb101ccb106fcc4a5924aa148c8c7fe0da658afcdecb1dc9246c783eda4c8994b577e384226f79e430fa6e023ed9808b0b8a706318cdafa142649729a
6
+ metadata.gz: ee98e8342660105acac8e396ee37d0f9ea87d3e79a22b23b604b06693341b304e6c6090aaddaeb806c8a86d7ffad59a2795d0eb28b2144d991c1f643e2f94ee2
7
+ data.tar.gz: 520110ae697928e2a4882e825ce9352188b898cb9bcdf0f5f7dada7b74be10ca1e2354d71fddf10668df64ab4ae8b5a0296bff9b88f2ff7d24a8286187163262
@@ -0,0 +1 @@
1
+ pkg
data/Rakefile CHANGED
@@ -1,2 +1 @@
1
- #!/usr/bin/env rake
2
- require "bundler/gem_tasks"
1
+ require "bundler/gem_tasks"
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.5.2
@@ -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[0], iconargs[1]
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
@@ -1,3 +1,3 @@
1
1
  module Notify
2
- VERSION = '0.5.1'
2
+ VERSION = '0.5.2'
3
3
  end
@@ -1,17 +1,23 @@
1
- # -*- encoding: utf-8 -*-
2
- require File.expand_path('../lib/notify/version', __FILE__)
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 |gem|
5
- gem.authors = ["jugyo"]
6
- gem.email = ["jugyo.org@gmail.com"]
7
- gem.description = %q{The "notify" provides a function to notify on cross platform.}
8
- gem.summary = %q{A function to notify on cross platform.}
9
- gem.homepage = "http://github.com/jugyo/notify"
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
- gem.files = `git ls-files`.split($\)
12
- gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
13
- gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
- gem.name = "notify"
15
- gem.require_paths = ["lib"]
16
- gem.version = Notify::VERSION
17
- end
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.1
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-04-04 00:00:00.000000000 Z
12
- dependencies: []
13
- description: The "notify" provides a function to notify on cross platform.
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
- - Gemfile
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.0
86
+ rubygems_version: 2.0.3
57
87
  signing_key:
58
88
  specification_version: 4
59
- summary: A function to notify on cross platform.
89
+ summary: Desctop notify for many platform
60
90
  test_files: []
91
+ has_rdoc:
data/Gemfile DELETED
@@ -1,2 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec