libnotify 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +24 -36
- data/VERSION +1 -1
- metadata +1 -1
data/Rakefile
CHANGED
@@ -1,57 +1,45 @@
|
|
1
1
|
require 'rake'
|
2
|
-
require 'rake/testtask'
|
3
2
|
require 'rake/rdoctask'
|
4
3
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
gem.homepage = "http://github.com/splattael/libnotify"
|
14
|
-
gem.authors = ["Peter Suschlik"]
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = "libnotify"
|
8
|
+
gem.summary = 'Ruby bindings for libnotify using FFI'
|
9
|
+
gem.email = "peter-libnotify@suschlik.de"
|
10
|
+
gem.homepage = "http://github.com/splattael/libnotify"
|
11
|
+
gem.authors = ["Peter Suschlik"]
|
15
12
|
|
16
|
-
|
17
|
-
|
13
|
+
gem.has_rdoc = true
|
14
|
+
gem.extra_rdoc_files = [ "README.rdoc" ]
|
18
15
|
|
19
|
-
|
16
|
+
gem.add_dependency "ffi"
|
20
17
|
|
21
|
-
|
22
|
-
|
23
|
-
|
18
|
+
gem.add_development_dependency "riot"
|
19
|
+
gem.add_development_dependency "riot_notifier"
|
20
|
+
gem.add_development_dependency "rr"
|
24
21
|
|
25
|
-
|
22
|
+
gem.test_files = Dir.glob('test/test_*.rb')
|
23
|
+
end
|
24
|
+
Jeweler::GemcutterTasks.new
|
25
|
+
rescue LoadError
|
26
|
+
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
26
27
|
end
|
27
28
|
|
28
|
-
Jeweler::GemcutterTasks.new
|
29
|
-
|
30
29
|
# Test
|
31
30
|
require 'rake/testtask'
|
31
|
+
desc 'Default: run unit tests.'
|
32
|
+
task :default => :test
|
33
|
+
task :test => :check_dependencies
|
34
|
+
|
32
35
|
Rake::TestTask.new(:test) do |test|
|
33
36
|
test.test_files = FileList.new('test/test_*.rb')
|
34
37
|
test.libs << 'test'
|
35
38
|
test.verbose = true
|
36
|
-
#test.warning = true
|
37
39
|
end
|
38
40
|
|
39
|
-
namespace :test do
|
40
|
-
desc "Run all tests on multiple ruby versions (requires rvm)"
|
41
|
-
task(:portability) do
|
42
|
-
%w(1.8.6 1.8.7 1.9.1 1.9.2 ree jruby).each do |version|
|
43
|
-
system <<-BASH
|
44
|
-
bash -c 'source ~/.rvm/scripts/rvm;
|
45
|
-
rvm #{version};
|
46
|
-
echo "--------- ruby #{version} ----------\n";
|
47
|
-
rake -s test'
|
48
|
-
BASH
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
|
54
41
|
# RDoc
|
42
|
+
require 'rake/rdoctask'
|
55
43
|
Rake::RDocTask.new do |rd|
|
56
44
|
rd.title = "Riot Notifier"
|
57
45
|
rd.main = "README.rdoc"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|