ruby-libappindicator 0.1.4 → 0.1.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/{CHANGELOG → CHANGELOG.txt} +1 -4
- data/{LICENSE → LICENSE.txt} +0 -0
- data/README.rdoc +8 -10
- data/ext/libappindicator/extconf.rb +8 -6
- data/lib/ruby-libappindicator.rb +7 -0
- data/lib/ruby-libappindicator/version.rb +5 -0
- metadata +62 -97
- data/Manifest +0 -8
- data/Rakefile +0 -14
- data/ruby-libappindicator.gemspec +0 -39
data/{CHANGELOG → CHANGELOG.txt}
RENAMED
@@ -1,9 +1,6 @@
|
|
1
|
+
v0.1.5. Use system gtk2, glib2 ruby libs if available (by rubiojr)
|
1
2
|
v0.1.4. Use the correct rubygem's Gem methods depending on its version
|
2
|
-
|
3
3
|
v0.1.3. Add romario333 (on github) in list of authors
|
4
|
-
|
5
4
|
v0.1.2. Replace deprecated functions for use with recent rubygems
|
6
|
-
|
7
5
|
v0.1.1. Add runtime dependency on gtk2, load it automatically, change the .so file name
|
8
|
-
|
9
6
|
v0.1.0. Initial version
|
data/{LICENSE → LICENSE.txt}
RENAMED
File without changes
|
data/README.rdoc
CHANGED
@@ -1,27 +1,25 @@
|
|
1
1
|
= Ruby-libappindicator
|
2
2
|
|
3
3
|
== Summary
|
4
|
-
Ruby bindings for libappindicator[http://people.canonical.com/~ted/libappindicator/current/]
|
5
|
-
|
6
|
-
|
4
|
+
Ruby bindings for libappindicator[http://people.canonical.com/~ted/libappindicator/current/]
|
5
|
+
used by Ubuntu's {Application Indicators}[https://wiki.ubuntu.com/DesktopExperienceTeam/ApplicationIndicators]
|
6
|
+
released under the {LGPLv3 license}[http://www.gnu.org/copyleft/lesser.html]
|
7
7
|
|
8
8
|
== Versioning
|
9
|
-
This gem uses the same version numbering than libappindicator itself for major and minor, micro is used for bugfixes and gem enhancements.
|
9
|
+
This gem uses the same version numbering than libappindicator itself for major and minor, micro is used for bugfixes and gem enhancements.
|
10
|
+
Right now libappindicator-0.1 is available which means it will be supported by ruby-libappindicator-0.1.x .
|
10
11
|
|
11
12
|
== Minimal "hello world"
|
12
13
|
require "rubygems"
|
13
14
|
require "ruby-libappindicator"
|
14
|
-
|
15
|
+
|
15
16
|
ai = AppIndicator::AppIndicator.new("test", "indicator-messages", AppIndicator::Category::APPLICATION_STATUS);
|
16
|
-
|
17
|
+
|
17
18
|
ai.set_menu(Gtk::Menu.new)
|
18
19
|
ai.set_status(AppIndicator::Status::ACTIVE)
|
19
|
-
|
20
|
+
|
20
21
|
Gtk.main
|
21
22
|
|
22
23
|
The two necessary steps to make your application indicator visible are:
|
23
24
|
* setting a menu (even empty, but you need one)
|
24
25
|
* setting the status as active or requiring attention
|
25
|
-
|
26
|
-
== TODO
|
27
|
-
* Write/generate some documentation
|
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
require 'mkmf'
|
3
2
|
require 'rubygems'
|
4
3
|
require 'pkg-config'
|
@@ -15,14 +14,18 @@ PKGConfig.have_package(package_id) || failure("Couldn't find #{package_id}")
|
|
15
14
|
proc_find_headers =
|
16
15
|
if Gem::Version.new(Gem::VERSION) < Gem::Version.new("1.8.0")
|
17
16
|
Proc.new { |gem, header|
|
18
|
-
(header_fp = Gem::required_location(gem, header)) || failure("Couldn't find #{header} file in #{gem}
|
17
|
+
(header_fp = Gem::required_location(gem, header)) || failure("Couldn't find #{header} file in #{gem} gem")
|
19
18
|
find_header(header, header_fp.rpartition("/")[0])
|
20
19
|
}
|
21
20
|
else
|
22
21
|
Proc.new { |gem, header|
|
23
|
-
|
24
|
-
|
25
|
-
|
22
|
+
begin
|
23
|
+
gem_spec = Gem::Specification.find_by_name(gem)
|
24
|
+
dirs = Dir.glob(gem_spec.lib_dirs_glob)
|
25
|
+
dirs.each {|dir| find_header(header, dir)}
|
26
|
+
rescue Gem::LoadError
|
27
|
+
find_header(header, RbConfig::CONFIG['vendorarchdir'])
|
28
|
+
end
|
26
29
|
}
|
27
30
|
end
|
28
31
|
|
@@ -30,4 +33,3 @@ proc_find_headers =
|
|
30
33
|
[['glib2','rbgobject.h'],['gtk2','rbgtk.h']].each &proc_find_headers
|
31
34
|
|
32
35
|
create_makefile 'appindicator'
|
33
|
-
|
data/lib/ruby-libappindicator.rb
CHANGED
metadata
CHANGED
@@ -1,126 +1,91 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-libappindicator
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.5
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 4
|
10
|
-
version: 0.1.4
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
13
|
-
-
|
7
|
+
authors:
|
8
|
+
- funky bibimbap
|
9
|
+
- romario333
|
10
|
+
- rubiojr
|
14
11
|
autorequire:
|
15
12
|
bindir: bin
|
16
13
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
prerelease: false
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
14
|
+
date: 2012-12-15 00:00:00.000000000 Z
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: pkg-config
|
18
|
+
requirement: !ruby/object:Gem::Requirement
|
24
19
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 0
|
31
|
-
version: "0"
|
20
|
+
requirements:
|
21
|
+
- - ! '>='
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '0'
|
32
24
|
type: :runtime
|
33
|
-
version_requirements: *id001
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: pkg-config
|
36
25
|
prerelease: false
|
37
|
-
|
26
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
27
|
none: false
|
39
|
-
requirements:
|
40
|
-
- -
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
|
43
|
-
|
44
|
-
- 0
|
45
|
-
version: "0"
|
46
|
-
type: :development
|
47
|
-
version_requirements: *id002
|
48
|
-
- !ruby/object:Gem::Dependency
|
28
|
+
requirements:
|
29
|
+
- - ! '>='
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: '0'
|
32
|
+
- !ruby/object:Gem::Dependency
|
49
33
|
name: gtk2
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
35
|
+
none: false
|
36
|
+
requirements:
|
37
|
+
- - ! '>='
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
type: :runtime
|
50
41
|
prerelease: false
|
51
|
-
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
43
|
none: false
|
53
|
-
requirements:
|
54
|
-
- -
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
type: :development
|
61
|
-
version_requirements: *id003
|
62
|
-
description: Ruby bindings for libappindicator
|
63
|
-
email: leander256@gmail.com
|
64
|
-
executables: []
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
description: ! 'Ruby bindings for libappindicator used by Ubuntu''s Application Indicators,
|
49
|
+
|
50
|
+
released under the LGPLv3 license.
|
65
51
|
|
66
|
-
|
52
|
+
'
|
53
|
+
email:
|
54
|
+
- funky.bibimbap@gmail.com
|
55
|
+
executables: []
|
56
|
+
extensions:
|
67
57
|
- ext/libappindicator/extconf.rb
|
68
|
-
extra_rdoc_files:
|
69
|
-
|
70
|
-
-
|
58
|
+
extra_rdoc_files: []
|
59
|
+
files:
|
60
|
+
- CHANGELOG.txt
|
61
|
+
- LICENSE.txt
|
71
62
|
- README.rdoc
|
72
63
|
- lib/ruby-libappindicator.rb
|
73
|
-
-
|
64
|
+
- lib/ruby-libappindicator/version.rb
|
74
65
|
- ext/libappindicator/libappindicator.c
|
75
|
-
files:
|
76
|
-
- CHANGELOG
|
77
|
-
- LICENSE
|
78
|
-
- README.rdoc
|
79
|
-
- Rakefile
|
80
|
-
- lib/ruby-libappindicator.rb
|
81
66
|
- ext/libappindicator/extconf.rb
|
82
|
-
|
83
|
-
- Manifest
|
84
|
-
- ruby-libappindicator.gemspec
|
85
|
-
homepage: http://github.com/leander256/ruby-libappindicator
|
67
|
+
homepage: https://bitbucket.org/funky_bibimbap/ruby-libappindicator
|
86
68
|
licenses: []
|
87
|
-
|
88
69
|
post_install_message:
|
89
|
-
rdoc_options:
|
90
|
-
|
91
|
-
- --inline-source
|
92
|
-
- --title
|
93
|
-
- Ruby-libappindicator
|
94
|
-
- --main
|
95
|
-
- README.rdoc
|
96
|
-
require_paths:
|
70
|
+
rdoc_options: []
|
71
|
+
require_paths:
|
97
72
|
- lib
|
98
|
-
|
99
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
73
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
100
74
|
none: false
|
101
|
-
requirements:
|
102
|
-
- -
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
|
105
|
-
|
106
|
-
- 0
|
107
|
-
version: "0"
|
108
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
76
|
+
- - ! '>='
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
79
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
109
80
|
none: false
|
110
|
-
requirements:
|
111
|
-
- -
|
112
|
-
- !ruby/object:Gem::Version
|
113
|
-
|
114
|
-
segments:
|
115
|
-
- 1
|
116
|
-
- 2
|
117
|
-
version: "1.2"
|
81
|
+
requirements:
|
82
|
+
- - ! '>='
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0'
|
118
85
|
requirements: []
|
119
|
-
|
120
|
-
|
121
|
-
rubygems_version: 1.8.6
|
86
|
+
rubyforge_project:
|
87
|
+
rubygems_version: 1.8.24
|
122
88
|
signing_key:
|
123
89
|
specification_version: 3
|
124
90
|
summary: Ruby bindings for libappindicator
|
125
91
|
test_files: []
|
126
|
-
|
data/Manifest
DELETED
data/Rakefile
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'rake'
|
3
|
-
require 'echoe'
|
4
|
-
|
5
|
-
Echoe.new('ruby-libappindicator') do |p|
|
6
|
-
p.summary = "Ruby bindings for libappindicator"
|
7
|
-
p.url = "http://github.com/leander256/ruby-libappindicator"
|
8
|
-
p.author = [ "Thomas Kister" , "romario333" ]
|
9
|
-
p.email = "leander256@gmail.com"
|
10
|
-
p.runtime_dependencies = ["gtk2"]
|
11
|
-
p.development_dependencies = ["pkg-config", "gtk2"]
|
12
|
-
end
|
13
|
-
|
14
|
-
Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext }
|
@@ -1,39 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
Gem::Specification.new do |s|
|
4
|
-
s.name = %q{ruby-libappindicator}
|
5
|
-
s.version = "0.1.4"
|
6
|
-
|
7
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
|
-
s.authors = [%q{Thomas Kister, romario333}]
|
9
|
-
s.date = %q{2011-10-08}
|
10
|
-
s.description = %q{Ruby bindings for libappindicator}
|
11
|
-
s.email = %q{leander256@gmail.com}
|
12
|
-
s.extensions = [%q{ext/libappindicator/extconf.rb}]
|
13
|
-
s.extra_rdoc_files = [%q{CHANGELOG}, %q{LICENSE}, %q{README.rdoc}, %q{lib/ruby-libappindicator.rb}, %q{ext/libappindicator/extconf.rb}, %q{ext/libappindicator/libappindicator.c}]
|
14
|
-
s.files = [%q{CHANGELOG}, %q{LICENSE}, %q{README.rdoc}, %q{Rakefile}, %q{lib/ruby-libappindicator.rb}, %q{ext/libappindicator/extconf.rb}, %q{ext/libappindicator/libappindicator.c}, %q{Manifest}, %q{ruby-libappindicator.gemspec}]
|
15
|
-
s.homepage = %q{http://github.com/leander256/ruby-libappindicator}
|
16
|
-
s.rdoc_options = [%q{--line-numbers}, %q{--inline-source}, %q{--title}, %q{Ruby-libappindicator}, %q{--main}, %q{README.rdoc}]
|
17
|
-
s.require_paths = [%q{lib}, %q{ext}]
|
18
|
-
s.rubyforge_project = %q{ruby-libappindicator}
|
19
|
-
s.rubygems_version = %q{1.8.6}
|
20
|
-
s.summary = %q{Ruby bindings for libappindicator}
|
21
|
-
|
22
|
-
if s.respond_to? :specification_version then
|
23
|
-
s.specification_version = 3
|
24
|
-
|
25
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
26
|
-
s.add_runtime_dependency(%q<gtk2>, [">= 0"])
|
27
|
-
s.add_development_dependency(%q<pkg-config>, [">= 0"])
|
28
|
-
s.add_development_dependency(%q<gtk2>, [">= 0"])
|
29
|
-
else
|
30
|
-
s.add_dependency(%q<gtk2>, [">= 0"])
|
31
|
-
s.add_dependency(%q<pkg-config>, [">= 0"])
|
32
|
-
s.add_dependency(%q<gtk2>, [">= 0"])
|
33
|
-
end
|
34
|
-
else
|
35
|
-
s.add_dependency(%q<gtk2>, [">= 0"])
|
36
|
-
s.add_dependency(%q<pkg-config>, [">= 0"])
|
37
|
-
s.add_dependency(%q<gtk2>, [">= 0"])
|
38
|
-
end
|
39
|
-
end
|