libnotify 0.9.1 → 0.9.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: b3e3e4e7c3c50e0b25b2a18ef60c7717c5951ba4
4
- data.tar.gz: afb26d5ac4c8c274572ad74921814eee9bec7166
3
+ metadata.gz: e16fe0469daf12158c097b67622310d319ed28d6
4
+ data.tar.gz: 92e886a926144f11b7513bb01f117b9ac6b0dd4d
5
5
  SHA512:
6
- metadata.gz: c8be59a6a02be0c04606759b2f7351e06b441d269c3d17497f1f618bd9cdbf25a34a11a7ba2fc0e9041823e8c55a7bdb70c2b18dadb5c393dc990ccff5085d58
7
- data.tar.gz: a744d8483391893c1f3fd30300bdd391953993eb5a5ea2e528d6acd91858edb2b5700c0a75321c2411a3e2f3df65762a2f70ab12821e74952da76d64aa540532
6
+ metadata.gz: 8a187370fde46b704ffccb1fd6bc5a003d7cbf259d4be81c2779186d0a1a76007af1d8bf1de3a2a4dba60d39781327219152aa5e4769f98ae52fdf47688929ee
7
+ data.tar.gz: 58241bbad278a85a808c7d007e720f95b7af53e89052a60dfdd5390e9f27d3890f9bce4beb71804d27e6013623159f6901ffc15b0bf688ba3e467f84aac5d711
data/.travis.yml CHANGED
@@ -3,12 +3,16 @@ rvm:
3
3
  - 1.9.3
4
4
  - 2.0
5
5
  - 2.1
6
+ - 2.2.4
7
+ - 2.3.0
8
+ - ruby-head
6
9
  - jruby
7
10
  - jruby-head
8
- - rbx-2
9
11
  matrix:
10
12
  allow_failures:
13
+ - rvm: ruby-head
11
14
  - rvm: jruby-head
12
15
  fast_finish: true
13
16
  before_install:
14
17
  - "sudo apt-get install libnotify4"
18
+ - "gem install bundler"
data/README.md CHANGED
@@ -131,6 +131,7 @@ https://github.com/splattael/libnotify/issues/21#issuecomment-19114127
131
131
  * Kero van Gelder (https://github.com/keroami)
132
132
  * René Föhring (https://github.com/rrrene)
133
133
  * Cezary Baginski (https://github.com/e2)
134
+ * robisacommonusername (https://github.com/robisacommonusername)
134
135
 
135
136
  ## License
136
137
 
data/lib/libnotify/api.rb CHANGED
@@ -50,7 +50,8 @@ module Libnotify
50
50
  # @see Libnotify.show
51
51
  def show!
52
52
  notify_init(app_name) or raise "notify_init failed"
53
- @notification = notify_notification_new(summary, body, icon_path, nil)
53
+ raw_ptr = notify_notification_new(summary, body, icon_path, nil)
54
+ @notification = ::FFI::AutoPointer.new(raw_ptr, method(:g_object_unref))
54
55
  show
55
56
  end
56
57
 
data/lib/libnotify/ffi.rb CHANGED
@@ -40,6 +40,7 @@ module Libnotify
40
40
  attach_function :notify_notification_clear_hints, [:pointer], :void
41
41
  attach_function :notify_notification_show, [:pointer, :pointer], :bool
42
42
  attach_function :notify_notification_close, [:pointer, :pointer], :bool
43
+ attach_function :g_object_unref, [:pointer], :void
43
44
  end
44
45
 
45
46
  def method_missing(method, *args, &block) # :nodoc:
@@ -1,3 +1,3 @@
1
1
  module Libnotify
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libnotify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Suschlik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-30 00:00:00.000000000 Z
11
+ date: 2017-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  version: '0'
138
138
  requirements: []
139
139
  rubyforge_project:
140
- rubygems_version: 2.4.5
140
+ rubygems_version: 2.5.2
141
141
  signing_key:
142
142
  specification_version: 4
143
143
  summary: Ruby bindings for libnotify using FFI