libnotify 0.1.4 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -3,3 +3,4 @@ pkg
3
3
  coverage
4
4
  tags
5
5
  .yardoc
6
+ .bundle
data/.rvmrc ADDED
@@ -0,0 +1,2 @@
1
+ rvm gemset create libnotify
2
+ rvm gemset use libnotify
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem "ffi", ">= 0.6.2"
4
+
5
+ group :test do
6
+ gem "jeweler"
7
+ gem "riot", "= 0.11.2"
8
+ gem "riot_notifier", ">= 0.2.0"
9
+ gem "yard"
10
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,51 @@
1
+ ---
2
+ dependencies:
3
+ yard:
4
+ group:
5
+ - :test
6
+ version: ">= 0"
7
+ jeweler:
8
+ group:
9
+ - :test
10
+ version: ">= 0"
11
+ ffi:
12
+ group:
13
+ - :default
14
+ version: ">= 0.6.2"
15
+ riot_notifier:
16
+ group:
17
+ - :test
18
+ version: ">= 0.2.0"
19
+ riot:
20
+ group:
21
+ - :test
22
+ version: = 0.11.2
23
+ specs:
24
+ - rake:
25
+ version: 0.8.7
26
+ - ffi:
27
+ version: 0.6.3
28
+ - json_pure:
29
+ version: 1.4.3
30
+ - gemcutter:
31
+ version: 0.5.0
32
+ - git:
33
+ version: 1.2.5
34
+ - rubyforge:
35
+ version: 2.0.4
36
+ - jeweler:
37
+ version: 1.4.0
38
+ - rr:
39
+ version: 0.10.11
40
+ - term-ansicolor:
41
+ version: 1.0.5
42
+ - riot:
43
+ version: 0.11.2
44
+ - riot_notifier:
45
+ version: 0.2.0
46
+ - yard:
47
+ version: 0.5.8
48
+ hash: 6cb15cfba060c9636f2e2b9a7904cd1827b88ade
49
+ sources:
50
+ - Rubygems:
51
+ uri: http://rubygems.org
data/README.rdoc CHANGED
@@ -3,8 +3,7 @@
3
3
  Ruby bindings for libnotify using FFI.
4
4
 
5
5
  Source[http://github.com/splattael/libnotify] |
6
- RDoc[http://rdoc.info/projects/splattael/libnotify] |
7
- Metrics[http://getcaliper.com/caliper/project?repo=http%3A%2F%2Fgemcutter.org%2Fgems%2Flibnotify]
6
+ RDoc[http://rdoc.info/projects/splattael/libnotify]
8
7
 
9
8
  == Usage
10
9
 
@@ -36,11 +35,18 @@ You'll need libnotify. On Debian just type:
36
35
 
37
36
  apt-get install libnotify1
38
37
 
38
+ == Testing
39
+
40
+ git co git://github.com/splattael/libnotify.git
41
+ cd libnotify
42
+ gem install bundler
43
+ bundle install
44
+ rake
45
+
39
46
  == Authors
47
+
40
48
  * Peter Suschlik
41
49
 
42
50
  == TODO
43
51
 
44
- * Empty strings give warnings (lib/libnotify.rb:46)
45
- * Simplify timeout= (lib/libnotify.rb:64)
46
- * Mock FFI calls with rrriot. (test/test_libnotify.rb:60)
52
+ * Mock FFI calls with rrriot. (test/test_libnotify.rb:58)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.2.0
data/lib/libnotify.rb CHANGED
@@ -117,6 +117,7 @@ module Libnotify
117
117
  def timeout=(timeout)
118
118
  @timeout = case timeout
119
119
  when Float
120
+ timeout /= 10 if RUBY_VERSION == "1.8.6" # Strange workaround?
120
121
  (timeout * 1000).to_i
121
122
  when Fixnum
122
123
  if timeout >= 100 # assume miliseconds
data/libnotify.gemspec CHANGED
@@ -5,17 +5,20 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{libnotify}
8
- s.version = "0.1.4"
8
+ s.version = "0.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Peter Suschlik"]
12
- s.date = %q{2010-07-09}
12
+ s.date = %q{2010-07-11}
13
13
  s.email = %q{peter-libnotify@suschlik.de}
14
14
  s.extra_rdoc_files = [
15
15
  "README.rdoc"
16
16
  ]
17
17
  s.files = [
18
18
  ".gitignore",
19
+ ".rvmrc",
20
+ "Gemfile",
21
+ "Gemfile.lock",
19
22
  "README.rdoc",
20
23
  "Rakefile",
21
24
  "VERSION",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libnotify
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 1
9
- - 4
10
- version: 0.1.4
8
+ - 2
9
+ - 0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Peter Suschlik
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-09 00:00:00 +02:00
18
+ date: 2010-07-11 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -88,6 +88,9 @@ extra_rdoc_files:
88
88
  - README.rdoc
89
89
  files:
90
90
  - .gitignore
91
+ - .rvmrc
92
+ - Gemfile
93
+ - Gemfile.lock
91
94
  - README.rdoc
92
95
  - Rakefile
93
96
  - VERSION