libnotify 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/libnotify/tasks/rubies.rake +11 -14
- data/lib/libnotify/version.rb +1 -1
- data/libnotify.gemspec +2 -5
- metadata +30 -9
@@ -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.
|
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
|
-
|
21
|
+
SUPPORTED_RUBIES.each { |ruby| with_ruby(ruby, command) }
|
27
22
|
end
|
28
23
|
|
29
|
-
desc "Build gems for following supported platforms #{
|
24
|
+
desc "Build gems for following supported platforms #{PLATFORMS.join ", "}"
|
30
25
|
task :build do
|
31
|
-
command = "rake build"
|
32
|
-
|
26
|
+
command = "rm -f Gemfile.lock && rake build"
|
27
|
+
PLATFORMS.each { |ruby| with_ruby(ruby, command) }
|
33
28
|
end
|
34
29
|
|
35
|
-
|
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
|
-
|
34
|
+
versions.each do |gem|
|
38
35
|
command = "gem push #{gem}"
|
39
36
|
puts command
|
40
37
|
system command
|
data/lib/libnotify/version.rb
CHANGED
data/libnotify.gemspec
CHANGED
@@ -5,10 +5,7 @@ require "libnotify"
|
|
5
5
|
platform = Gem::Platform::RUBY
|
6
6
|
needs_ffi = true
|
7
7
|
|
8
|
-
if
|
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', '
|
28
|
+
s.add_runtime_dependency 'ffi', '= 1.0.9'
|
32
29
|
end
|
33
30
|
|
34
31
|
s.add_development_dependency 'minitest'
|
metadata
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libnotify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
4
|
+
hash: 1
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 5
|
9
|
+
- 5
|
10
|
+
version: 0.5.5
|
6
11
|
platform: ruby
|
7
12
|
authors:
|
8
13
|
- Peter Suschlik
|
@@ -10,7 +15,7 @@ autorequire:
|
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
17
|
|
13
|
-
date: 2011-05-
|
18
|
+
date: 2011-05-25 00:00:00 +02:00
|
14
19
|
default_executable:
|
15
20
|
dependencies:
|
16
21
|
- !ruby/object:Gem::Dependency
|
@@ -19,9 +24,14 @@ dependencies:
|
|
19
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
20
25
|
none: false
|
21
26
|
requirements:
|
22
|
-
- -
|
27
|
+
- - "="
|
23
28
|
- !ruby/object:Gem::Version
|
24
|
-
|
29
|
+
hash: 5
|
30
|
+
segments:
|
31
|
+
- 1
|
32
|
+
- 0
|
33
|
+
- 9
|
34
|
+
version: 1.0.9
|
25
35
|
type: :runtime
|
26
36
|
version_requirements: *id001
|
27
37
|
- !ruby/object:Gem::Dependency
|
@@ -32,6 +42,9 @@ dependencies:
|
|
32
42
|
requirements:
|
33
43
|
- - ">="
|
34
44
|
- !ruby/object:Gem::Version
|
45
|
+
hash: 3
|
46
|
+
segments:
|
47
|
+
- 0
|
35
48
|
version: "0"
|
36
49
|
type: :development
|
37
50
|
version_requirements: *id002
|
@@ -43,6 +56,11 @@ dependencies:
|
|
43
56
|
requirements:
|
44
57
|
- - ~>
|
45
58
|
- !ruby/object:Gem::Version
|
59
|
+
hash: 3
|
60
|
+
segments:
|
61
|
+
- 0
|
62
|
+
- 7
|
63
|
+
- 0
|
46
64
|
version: 0.7.0
|
47
65
|
type: :development
|
48
66
|
version_requirements: *id003
|
@@ -69,9 +87,6 @@ files:
|
|
69
87
|
- lib/libnotify/version.rb
|
70
88
|
- libnotify.gemspec
|
71
89
|
- libnotify.png
|
72
|
-
- pkg/libnotify-0.5.3-universal-java-1.6.gem
|
73
|
-
- pkg/libnotify-0.5.3-universal-rubinius-1.2.gem
|
74
|
-
- pkg/libnotify-0.5.3-x86-linux.gem
|
75
90
|
- test/helper.rb
|
76
91
|
- test/libnotify_io.rb
|
77
92
|
- test/test_libnotify.rb
|
@@ -89,17 +104,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
89
104
|
requirements:
|
90
105
|
- - ">="
|
91
106
|
- !ruby/object:Gem::Version
|
107
|
+
hash: 3
|
108
|
+
segments:
|
109
|
+
- 0
|
92
110
|
version: "0"
|
93
111
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
112
|
none: false
|
95
113
|
requirements:
|
96
114
|
- - ">="
|
97
115
|
- !ruby/object:Gem::Version
|
116
|
+
hash: 3
|
117
|
+
segments:
|
118
|
+
- 0
|
98
119
|
version: "0"
|
99
120
|
requirements: []
|
100
121
|
|
101
122
|
rubyforge_project:
|
102
|
-
rubygems_version: 1.
|
123
|
+
rubygems_version: 1.3.7
|
103
124
|
signing_key:
|
104
125
|
specification_version: 3
|
105
126
|
summary: Ruby bindings for libnotify using FFI
|