themactep-grumblr 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README +0 -4
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/{images → data/images}/audio.bmp +0 -0
- data/{images → data/images}/chat.bmp +0 -0
- data/{images → data/images}/grumblr.svg +0 -0
- data/{images → data/images}/link.bmp +0 -0
- data/{images → data/images}/photo.bmp +0 -0
- data/{images → data/images}/quote.bmp +0 -0
- data/{images → data/images}/spinner.gif +0 -0
- data/{images → data/images}/text.bmp +0 -0
- data/{images → data/images}/video.bmp +0 -0
- data/grumblr.gemspec +14 -13
- data/lib/grumblr/core.rb +0 -1
- data/lib/grumblr/ui.rb +6 -3
- metadata +21 -13
- data/lib/ppds/class_factory.rb +0 -17
- data/lib/ppds/config.rb +0 -47
data/README
CHANGED
@@ -15,10 +15,6 @@ Grumblr is a tool to post messages to your Tumblr blog from GNOME.
|
|
15
15
|
* GTK+
|
16
16
|
http://www.mozilla.org/
|
17
17
|
|
18
|
-
* Ruby Gtk2 bindings and Ruby/GTK bindings for Mozilla
|
19
|
-
from Ruby-GNOME2 Project
|
20
|
-
http://ruby-gnome2.sourceforge.jp/
|
21
|
-
|
22
18
|
* LibXml Ruby
|
23
19
|
http://libxml.rubyforge.org/
|
24
20
|
|
data/Rakefile
CHANGED
@@ -11,6 +11,7 @@ begin
|
|
11
11
|
gemspec.email = "themactep@gmail.com"
|
12
12
|
gemspec.homepage = "http://github.com/themactep/grumblr"
|
13
13
|
gemspec.authors = ["Paul Philippov"]
|
14
|
+
gemspec.add_dependency "ppds-libs"
|
14
15
|
gemspec.add_dependency "libxml-ruby"
|
15
16
|
gemspec.add_dependency "rest-client"
|
16
17
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.1.1
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/grumblr.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{grumblr}
|
8
|
-
s.version = "2.
|
8
|
+
s.version = "2.1.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Paul Philippov"]
|
12
|
-
s.date = %q{2009-08-
|
12
|
+
s.date = %q{2009-08-23}
|
13
13
|
s.default_executable = %q{grumblr}
|
14
14
|
s.description = %q{Grumblr is a message poster to Tumblr blogs from GNOME.}
|
15
15
|
s.email = %q{themactep@gmail.com}
|
@@ -26,20 +26,18 @@ Gem::Specification.new do |s|
|
|
26
26
|
"VERSION",
|
27
27
|
"bin/grumblr",
|
28
28
|
"data/grumblr.desktop",
|
29
|
+
"data/images/audio.bmp",
|
30
|
+
"data/images/chat.bmp",
|
31
|
+
"data/images/grumblr.svg",
|
32
|
+
"data/images/link.bmp",
|
33
|
+
"data/images/photo.bmp",
|
34
|
+
"data/images/quote.bmp",
|
35
|
+
"data/images/spinner.gif",
|
36
|
+
"data/images/text.bmp",
|
37
|
+
"data/images/video.bmp",
|
29
38
|
"grumblr.gemspec",
|
30
|
-
"images/audio.bmp",
|
31
|
-
"images/chat.bmp",
|
32
|
-
"images/grumblr.svg",
|
33
|
-
"images/link.bmp",
|
34
|
-
"images/photo.bmp",
|
35
|
-
"images/quote.bmp",
|
36
|
-
"images/spinner.gif",
|
37
|
-
"images/text.bmp",
|
38
|
-
"images/video.bmp",
|
39
39
|
"lib/grumblr/core.rb",
|
40
40
|
"lib/grumblr/ui.rb",
|
41
|
-
"lib/ppds/class_factory.rb",
|
42
|
-
"lib/ppds/config.rb",
|
43
41
|
"lib/ppds/tumblr.rb"
|
44
42
|
]
|
45
43
|
s.homepage = %q{http://github.com/themactep/grumblr}
|
@@ -53,13 +51,16 @@ Gem::Specification.new do |s|
|
|
53
51
|
s.specification_version = 3
|
54
52
|
|
55
53
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
54
|
+
s.add_runtime_dependency(%q<ppds-libs>, [">= 0"])
|
56
55
|
s.add_runtime_dependency(%q<libxml-ruby>, [">= 0"])
|
57
56
|
s.add_runtime_dependency(%q<rest-client>, [">= 0"])
|
58
57
|
else
|
58
|
+
s.add_dependency(%q<ppds-libs>, [">= 0"])
|
59
59
|
s.add_dependency(%q<libxml-ruby>, [">= 0"])
|
60
60
|
s.add_dependency(%q<rest-client>, [">= 0"])
|
61
61
|
end
|
62
62
|
else
|
63
|
+
s.add_dependency(%q<ppds-libs>, [">= 0"])
|
63
64
|
s.add_dependency(%q<libxml-ruby>, [">= 0"])
|
64
65
|
s.add_dependency(%q<rest-client>, [">= 0"])
|
65
66
|
end
|
data/lib/grumblr/core.rb
CHANGED
data/lib/grumblr/ui.rb
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
require 'gtk2'
|
2
2
|
|
3
3
|
module Grumblr
|
4
|
+
|
5
|
+
DATA_ROOT = File.expand_path(File.join(File.dirname(__FILE__),'..','..','data'))
|
6
|
+
|
4
7
|
class UI < Gtk::Window
|
5
8
|
|
6
9
|
attr_accessor :logo
|
@@ -8,7 +11,7 @@ module Grumblr
|
|
8
11
|
def initialize
|
9
12
|
super Gtk::Window::TOPLEVEL
|
10
13
|
|
11
|
-
filename = File.join(Grumblr::
|
14
|
+
filename = File.join(Grumblr::DATA_ROOT, 'grumblr.svg')
|
12
15
|
self.logo = Gdk::Pixbuf.new filename, 128, 128
|
13
16
|
|
14
17
|
self.set_size_request 480, 360
|
@@ -484,7 +487,7 @@ module Grumblr
|
|
484
487
|
class StatusIcon < Gtk::StatusIcon
|
485
488
|
def initialize
|
486
489
|
super
|
487
|
-
self.file = File.join(Grumblr::
|
490
|
+
self.file = File.join(Grumblr::DATA_ROOT, 'grumblr.svg')
|
488
491
|
self.tooltip = "Application Name Goes Here"
|
489
492
|
self.signal_connect(:activate) do
|
490
493
|
if $gui.visible?
|
@@ -573,7 +576,7 @@ end
|
|
573
576
|
|
574
577
|
class Gtk::Notebook
|
575
578
|
def add_page_with_tab(page, text)
|
576
|
-
filename = File.join(Grumblr::
|
579
|
+
filename = File.join(Grumblr::DATA_ROOT, 'icons', '%s.bmp' % text.downcase)
|
577
580
|
icon = Gtk::Image.new filename
|
578
581
|
icon.set_padding 2, 4
|
579
582
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: themactep-grumblr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Philippov
|
@@ -9,9 +9,19 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-08-
|
12
|
+
date: 2009-08-23 00:00:00 -07:00
|
13
13
|
default_executable: grumblr
|
14
14
|
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: ppds-libs
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "0"
|
24
|
+
version:
|
15
25
|
- !ruby/object:Gem::Dependency
|
16
26
|
name: libxml-ruby
|
17
27
|
type: :runtime
|
@@ -49,20 +59,18 @@ files:
|
|
49
59
|
- VERSION
|
50
60
|
- bin/grumblr
|
51
61
|
- data/grumblr.desktop
|
62
|
+
- data/images/audio.bmp
|
63
|
+
- data/images/chat.bmp
|
64
|
+
- data/images/grumblr.svg
|
65
|
+
- data/images/link.bmp
|
66
|
+
- data/images/photo.bmp
|
67
|
+
- data/images/quote.bmp
|
68
|
+
- data/images/spinner.gif
|
69
|
+
- data/images/text.bmp
|
70
|
+
- data/images/video.bmp
|
52
71
|
- grumblr.gemspec
|
53
|
-
- images/audio.bmp
|
54
|
-
- images/chat.bmp
|
55
|
-
- images/grumblr.svg
|
56
|
-
- images/link.bmp
|
57
|
-
- images/photo.bmp
|
58
|
-
- images/quote.bmp
|
59
|
-
- images/spinner.gif
|
60
|
-
- images/text.bmp
|
61
|
-
- images/video.bmp
|
62
72
|
- lib/grumblr/core.rb
|
63
73
|
- lib/grumblr/ui.rb
|
64
|
-
- lib/ppds/class_factory.rb
|
65
|
-
- lib/ppds/config.rb
|
66
74
|
- lib/ppds/tumblr.rb
|
67
75
|
has_rdoc: false
|
68
76
|
homepage: http://github.com/themactep/grumblr
|
data/lib/ppds/class_factory.rb
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
module Ppds
|
2
|
-
class ClassFactory
|
3
|
-
def initialize(data=[])
|
4
|
-
for att in data
|
5
|
-
set(att.name.gsub(/-/,'_'), att.value)
|
6
|
-
end
|
7
|
-
end
|
8
|
-
|
9
|
-
def get(name)
|
10
|
-
instance_variable_get("@#{name}")
|
11
|
-
end
|
12
|
-
|
13
|
-
def set(name, value)
|
14
|
-
instance_variable_set("@#{name}", value)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
data/lib/ppds/config.rb
DELETED
@@ -1,47 +0,0 @@
|
|
1
|
-
require 'gconf2'
|
2
|
-
|
3
|
-
module Ppds
|
4
|
-
class Config
|
5
|
-
@@gconf = GConf::Client.default
|
6
|
-
|
7
|
-
def gconf
|
8
|
-
@@gconf
|
9
|
-
end
|
10
|
-
|
11
|
-
def initialize(app)
|
12
|
-
@root = '/apps/%s' % app
|
13
|
-
gconf.add_dir(@root)
|
14
|
-
end
|
15
|
-
|
16
|
-
def name_from_key(key)
|
17
|
-
key.split('/').last
|
18
|
-
end
|
19
|
-
|
20
|
-
def key_from_name(name)
|
21
|
-
[ @root, name ].join("/")
|
22
|
-
end
|
23
|
-
|
24
|
-
def all
|
25
|
-
gconf.all_entries(@root)
|
26
|
-
end
|
27
|
-
|
28
|
-
def get(name)
|
29
|
-
gconf[key_from_name(name)]
|
30
|
-
end
|
31
|
-
|
32
|
-
def set(name, value)
|
33
|
-
gconf[key_from_name(name)] = value
|
34
|
-
end
|
35
|
-
|
36
|
-
def save
|
37
|
-
gconf.suggest_sync
|
38
|
-
end
|
39
|
-
|
40
|
-
def destroy
|
41
|
-
for one in all
|
42
|
-
gconf.unset(one.key)
|
43
|
-
end
|
44
|
-
save
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|