libnotify 0.5.1-universal-rubinius-1.2 → 0.5.2-universal-rubinius-1.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,11 +1,10 @@
1
1
  require 'bundler'
2
2
  Bundler::GemHelper.install_tasks
3
3
 
4
- SUPPORTED_RUBIES = %w[ree 1.9.2 jruby rbx]
5
-
6
4
  require 'rake'
7
5
  require 'rake/rdoctask'
8
6
  require 'rubygems'
7
+ load 'libnotify/tasks/rubies.rake'
9
8
 
10
9
  # Test
11
10
  require 'rake/testtask'
@@ -17,20 +16,6 @@ Rake::TestTask.new(:test) do |test|
17
16
  test.libs << 'test'
18
17
  test.verbose = true
19
18
  end
20
-
21
- desc "Test with several ruby versions"
22
- task :"test:rubies" do
23
- command = "bundle check || bundle install && rake"
24
- SUPPORTED_RUBIES.each do |ruby|
25
- rvm = "#{ruby}@libnotify"
26
- puts "\n" * 3
27
- puts "RVM: #{rvm}"
28
- puts "=" * 40
29
-
30
- system %{rvm #{rvm} exec bash -c '#{command}'}
31
- end
32
- end
33
-
34
19
  # Yard
35
20
  begin
36
21
  require 'yard'
@@ -0,0 +1,45 @@
1
+ SUPPORTED_RUBIES = %w[ree 1.9.2 jruby rbx]
2
+
3
+ GEMSPEC = Bundler::GemHelper.new(Dir.pwd).gemspec
4
+
5
+ def with_rubies(command)
6
+ SUPPORTED_RUBIES.each do |ruby|
7
+ with_ruby(ruby, command)
8
+ end
9
+ end
10
+
11
+ def with_ruby(ruby, command)
12
+ rvm = "#{ruby}@#{GEMSPEC.name}"
13
+ command = %{rvm #{rvm} exec bash -c '#{command}'}
14
+
15
+ puts "\n" * 3
16
+ puts "CMD: #{command}"
17
+ puts "=" * 40
18
+
19
+ system command
20
+ end
21
+
22
+ namespace :rubies do
23
+ desc "Run tests for following supported platforms #{SUPPORTED_RUBIES.inspect}"
24
+ task :test do
25
+ command = "bundle check || bundle install && rake"
26
+ with_rubies(command)
27
+ end
28
+
29
+ desc "Build gems for following supported platforms #{SUPPORTED_RUBIES.inspect}"
30
+ task :build do
31
+ command = "rake build"
32
+ with_rubies(command)
33
+ end
34
+
35
+ desc "Pushes gems for following supported platforms #{SUPPORTED_RUBIES.inspect}"
36
+ #task :push => :build do
37
+ task :push => :build do
38
+ Dir[File.join("pkg", "#{GEMSPEC.name}-#{GEMSPEC.version}*.gem")].each do |gem|
39
+ command = "gem push #{gem}"
40
+ puts command
41
+ system command
42
+ end
43
+ end
44
+
45
+ end
@@ -1,3 +1,3 @@
1
1
  module Libnotify
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
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: 9
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 1
10
- version: 0.5.1
9
+ - 2
10
+ version: 0.5.2
11
11
  platform: universal-rubinius-1.2
12
12
  authors:
13
13
  - Peter Suschlik
@@ -67,6 +67,7 @@ files:
67
67
  - lib/libnotify.rb
68
68
  - lib/libnotify/api.rb
69
69
  - lib/libnotify/ffi.rb
70
+ - lib/libnotify/tasks/rubies.rake
70
71
  - lib/libnotify/version.rb
71
72
  - libnotify.gemspec
72
73
  - libnotify.png
@@ -107,5 +108,7 @@ rubygems_version: 1.5.2
107
108
  signing_key:
108
109
  specification_version: 3
109
110
  summary: Ruby bindings for libnotify using FFI
110
- test_files: []
111
-
111
+ test_files:
112
+ - test/helper.rb
113
+ - test/libnotify_io.rb
114
+ - test/test_libnotify.rb