grumblr 2.0.0 → 2.0.1

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.
Files changed (5) hide show
  1. data/Changelog +8 -0
  2. data/Rakefile +4 -3
  3. data/VERSION +1 -0
  4. data/lib/grumblr/ui.rb +14 -4
  5. metadata +9 -5
@@ -0,0 +1,8 @@
1
+ version 2.0.1 (2009-08-26)
2
+
3
+ * Added Changelog file.
4
+ * Tags support. Separated by either comma or space.
5
+
6
+ version 2.0.0 (2009-08-24)
7
+
8
+ * Multiple blogs support.
data/Rakefile CHANGED
@@ -8,9 +8,9 @@ require 'spec/rake/spectask'
8
8
 
9
9
  spec = Gem::Specification.new do |s|
10
10
  s.name = 'grumblr'
11
- s.version = '2.0.0'
11
+ s.version = File.open('VERSION') { |f| f.read }
12
12
  s.has_rdoc = false
13
- s.extra_rdoc_files = ['README', 'LICENSE']
13
+ s.extra_rdoc_files = ['README', 'LICENSE', 'Changelog', 'VERSION']
14
14
  s.summary = "Tumblr companion for GNOME"
15
15
  s.description = "Grumblr is a message poster to Tumblr blogs from GNOME"
16
16
  s.author = 'Paul Philippov'
@@ -18,7 +18,8 @@ spec = Gem::Specification.new do |s|
18
18
  s.homepage = 'http://themactep.com/grumblr/'
19
19
  s.rubyforge_project = 'grumblr'
20
20
  s.executables = ['grumblr']
21
- s.files = %w(LICENSE README Rakefile) + Dir.glob("{bin,data,lib,spec}/**/*")
21
+ s.files = Dir.glob("{bin,data,lib,spec}/**/*") + \
22
+ %w(LICENSE README Rakefile Changelog VERSION)
22
23
  s.require_path = "lib"
23
24
  s.bindir = "bin"
24
25
  s.add_dependency "ppds-libs"
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 2.0.1
@@ -2,7 +2,9 @@ require 'gtk2'
2
2
 
3
3
  module Grumblr
4
4
 
5
- DATA_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'data'))
5
+ APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..', '..'))
6
+ DATA_ROOT = File.join(APP_ROOT, 'data')
7
+ VERSION = File.open(File.join(APP_ROOT,'VERSION')) { |f| f.read }
6
8
 
7
9
  class UI < Gtk::Window
8
10
 
@@ -264,10 +266,14 @@ module Grumblr
264
266
  post
265
267
  end
266
268
 
269
+ @tags = Gtk::Entry.new
270
+
267
271
  button_box = Gtk::HBox.new false, 4
268
272
  button_box.pack_start clear_button, false
269
273
  button_box.pack_start @private_button, false
270
- button_box.pack_start submit_button
274
+ button_box.pack_start Gtk::Label.new('Tags'), false
275
+ button_box.pack_start @tags, true
276
+ button_box.pack_start submit_button, true
271
277
 
272
278
  ##
273
279
  ### Layout
@@ -298,6 +304,8 @@ module Grumblr
298
304
 
299
305
  optional_data.delete_if { |x,y| y == "" or y.nil? }
300
306
 
307
+ tags = @tags.get_value.gsub(/\s+/,',').split(',').uniq.sort - ['']
308
+
301
309
  data = {
302
310
  :generator => 'Grumblr',
303
311
  :email => $cfg.get(:email),
@@ -305,6 +313,7 @@ module Grumblr
305
313
  :channel_id => $app.blog.name,
306
314
  :group => $app.blog.name + '.tumblr.com',
307
315
  :type => message_type,
316
+ :tags => tags.join(','),
308
317
  :format => @format.active? ? 'markdown' : 'html',
309
318
  :private => @private_button.active? ? 1 : 0
310
319
  }
@@ -377,6 +386,7 @@ module Grumblr
377
386
  Ppds::Tumblr::OPTIONAL_FIELDS ].each do |fieldset|
378
387
  reset_fields_for(fieldset, message_type)
379
388
  end
389
+ @tags.clear
380
390
  end
381
391
  end
382
392
 
@@ -427,7 +437,7 @@ module Grumblr
427
437
 
428
438
  header = Gtk::Label.new
429
439
  header.set_alignment 0.0, 0.8
430
- header.set_markup '<big><big><b>Grumblr 2.0</b></big></big>'
440
+ header.set_markup '<big><big><b>Grumblr 2</b></big></big>'
431
441
 
432
442
  vbox = Gtk::VBox.new false, 4
433
443
  vbox.pack_start header
@@ -472,7 +482,7 @@ module Grumblr
472
482
  super
473
483
  self.logo = $gui.logo
474
484
  self.program_name = 'Grumblr'
475
- self.version = '2.0.0'
485
+ self.version = Grumblr::VERSION
476
486
  self.copyright = "Copyright (c)2009, Paul Philippov"
477
487
  self.comments = "Tumblr companion for GNOME"
478
488
  self.license = "New BSD License.\nhttp://creativecommons.org/licenses/BSD/"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grumblr
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Philippov
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-24 00:00:00 +07:00
12
+ date: 2009-08-27 00:00:00 +07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -51,10 +51,9 @@ extensions: []
51
51
  extra_rdoc_files:
52
52
  - README
53
53
  - LICENSE
54
+ - Changelog
55
+ - VERSION
54
56
  files:
55
- - LICENSE
56
- - README
57
- - Rakefile
58
57
  - bin/grumblr
59
58
  - data/grumblr.desktop
60
59
  - data/pixmaps/quote.bmp
@@ -69,6 +68,11 @@ files:
69
68
  - lib/ppds/tumblr.rb
70
69
  - lib/grumblr/core.rb
71
70
  - lib/grumblr/ui.rb
71
+ - LICENSE
72
+ - README
73
+ - Rakefile
74
+ - Changelog
75
+ - VERSION
72
76
  has_rdoc: true
73
77
  homepage: http://themactep.com/grumblr/
74
78
  licenses: []