libnotify 0.5.4-universal-rubinius-1.2 → 0.5.5-universal-rubinius-1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,8 @@
1
- SUPPORTED_RUBIES = %w[ree 1.9.2 jruby rbx]
2
1
 
2
+ SUPPORTED_RUBIES = %w[ree 1.9.2 jruby rbx]
3
+ PLATFORMS = %w[ree rbx]
3
4
  GEMSPEC = Bundler::GemHelper.new(Dir.pwd).gemspec
4
5
 
5
- def with_rubies(command)
6
- SUPPORTED_RUBIES.each do |ruby|
7
- with_ruby(ruby, command)
8
- end
9
- end
10
-
11
6
  def with_ruby(ruby, command)
12
7
  rvm = "#{ruby}@#{GEMSPEC.name}"
13
8
  command = %{rvm #{rvm} exec bash -c '#{command}'}
@@ -20,21 +15,23 @@ def with_ruby(ruby, command)
20
15
  end
21
16
 
22
17
  namespace :rubies do
23
- desc "Run tests for following supported platforms #{SUPPORTED_RUBIES.inspect}"
18
+ desc "Run tests for following supported platforms #{SUPPORTED_RUBIES.join ", "}"
24
19
  task :test do
25
20
  command = "bundle check || bundle install && rake"
26
- with_rubies(command)
21
+ SUPPORTED_RUBIES.each { |ruby| with_ruby(ruby, command) }
27
22
  end
28
23
 
29
- desc "Build gems for following supported platforms #{SUPPORTED_RUBIES.inspect}"
24
+ desc "Build gems for following supported platforms #{PLATFORMS.join ", "}"
30
25
  task :build do
31
- command = "rake build"
32
- with_rubies(command)
26
+ command = "rm -f Gemfile.lock && rake build"
27
+ PLATFORMS.each { |ruby| with_ruby(ruby, command) }
33
28
  end
34
29
 
35
- desc "Pushes gems for following supported platforms #{SUPPORTED_RUBIES.inspect}"
30
+ versions = Dir[File.join("pkg", "#{GEMSPEC.name}-#{GEMSPEC.version}-*.gem")].to_a
31
+
32
+ desc "Pushes gems for following supported platforms #{versions.join ", "}"
36
33
  task :push => :build do
37
- Dir[File.join("pkg", "#{GEMSPEC.name}-#{GEMSPEC.version}*.gem")].each do |gem|
34
+ versions.each do |gem|
38
35
  command = "gem push #{gem}"
39
36
  puts command
40
37
  system command
@@ -1,3 +1,3 @@
1
1
  module Libnotify
2
- VERSION = "0.5.4"
2
+ VERSION = "0.5.5"
3
3
  end
@@ -5,10 +5,7 @@ require "libnotify"
5
5
  platform = Gem::Platform::RUBY
6
6
  needs_ffi = true
7
7
 
8
- if RUBY_PLATFORM =~ /java/
9
- needs_ffi = false
10
- platform = "java"
11
- elsif defined?(RUBY_ENGINE) && RUBY_ENGINE =~ /rbx/
8
+ if defined?(RUBY_ENGINE) && RUBY_ENGINE =~ /rbx/
12
9
  needs_ffi = false
13
10
  platform = Gem::Platform::new ['universal', 'rubinius', '1.2']
14
11
  end
@@ -28,7 +25,7 @@ Gem::Specification.new do |s|
28
25
  s.require_paths = ["lib"]
29
26
 
30
27
  if needs_ffi
31
- s.add_runtime_dependency 'ffi', '~> 1.0'
28
+ s.add_runtime_dependency 'ffi', '= 1.0.9'
32
29
  end
33
30
 
34
31
  s.add_development_dependency 'minitest'
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: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 4
10
- version: 0.5.4
9
+ - 5
10
+ version: 0.5.5
11
11
  platform: universal-rubinius-1.2
12
12
  authors:
13
13
  - Peter Suschlik
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-24 00:00:00 +02:00
18
+ date: 2011-05-25 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -71,9 +71,6 @@ files:
71
71
  - lib/libnotify/version.rb
72
72
  - libnotify.gemspec
73
73
  - libnotify.png
74
- - pkg/libnotify-0.5.3-universal-java-1.6.gem
75
- - pkg/libnotify-0.5.3-universal-rubinius-1.2.gem
76
- - pkg/libnotify-0.5.3-x86-linux.gem
77
74
  - test/helper.rb
78
75
  - test/libnotify_io.rb
79
76
  - test/test_libnotify.rb