libnotify 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +24 -36
  2. data/VERSION +1 -1
  3. 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
- desc 'Default: run unit tests.'
6
- task :default => :test
7
-
8
- require 'jeweler'
9
- Jeweler::Tasks.new do |gem|
10
- gem.name = "libnotify"
11
- gem.summary = 'Ruby bindings for libnotify using FFI'
12
- gem.email = "peter-libnotify@suschlik.de"
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
- gem.has_rdoc = true
17
- gem.extra_rdoc_files = [ "README.rdoc" ]
13
+ gem.has_rdoc = true
14
+ gem.extra_rdoc_files = [ "README.rdoc" ]
18
15
 
19
- gem.add_dependency "ffi"
16
+ gem.add_dependency "ffi"
20
17
 
21
- gem.add_development_dependency "riot"
22
- gem.add_development_dependency "riot_notifier"
23
- gem.add_development_dependency "rr"
18
+ gem.add_development_dependency "riot"
19
+ gem.add_development_dependency "riot_notifier"
20
+ gem.add_development_dependency "rr"
24
21
 
25
- gem.test_files = Dir.glob('test/test_*.rb')
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.2
1
+ 0.0.3
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libnotify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Suschlik