grumblr 2.3.6 → 2.3.7

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 +3 -0
  2. data/README +1 -1
  3. data/VERSION +1 -1
  4. data/lib/grumblr/ui.rb +12 -3
  5. metadata +5 -5
data/Changelog CHANGED
@@ -1,3 +1,6 @@
1
+ version 2.3.7 (2011-04-09)
2
+ * Fixed sending messages to private blogs.
3
+
1
4
  version 2.3.6 (2011-02-27)
2
5
  * Fixed file uploading.
3
6
 
data/README CHANGED
@@ -33,7 +33,7 @@ from a GTK-enabled Linux desktop environment.
33
33
  Change directory to the installed gem folder (may vary) and run
34
34
  setup script to copy images and a launcher to their places:
35
35
 
36
- $ cd /usr/lib/ruby/gems/1.8/gems/grumblr-2.3.6
36
+ $ cd /usr/lib/ruby/gems/1.8/gems/grumblr-2.3.7
37
37
  $ sudo ruby setup.rb
38
38
 
39
39
  === Homepage ===
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.6
1
+ 2.3.7
@@ -232,14 +232,18 @@ module Grumblr
232
232
  icon = Gtk::Image.new Gtk::Stock::HOME, Gtk::IconSize::MENU
233
233
  item = Gtk::ToolButton.new icon, 'Tumblelog'
234
234
  item.signal_connect(:clicked) do
235
- Thread.new { system('xdg-open "%s"' % $app.blog.url) }
235
+ url = $app.blog.url || "http://www.tumblr.com/dashboard"
236
+ Thread.new { system('xdg-open "%s"' % url) }
236
237
  end
237
238
  toolbar.insert 0, item
238
239
 
239
240
  icon = Gtk::Image.new Gtk::Stock::PREFERENCES, Gtk::IconSize::MENU
240
241
  item = Gtk::ToolButton.new icon, 'Dashboard'
241
242
  item.signal_connect(:clicked) do
242
- Thread.new { system('xdg-open "http://www.tumblr.com/tumblelog/%s"' % $app.blog.name) }
243
+ url = $app.blog.name ?
244
+ "http://www.tumblr.com/tumblelog/#{$app.blog.name}" :
245
+ "http://www.tumblr.com/dashboard"
246
+ Thread.new { system('xdg-open "%s"' % url) }
243
247
  end
244
248
  toolbar.insert 1, item
245
249
 
@@ -336,12 +340,17 @@ module Grumblr
336
340
  :private => @private_button.active? ? 1 : 0,
337
341
  :tags => tags.join(','),
338
342
  :format => @format_button.active? ? 'markdown' : 'html',
339
- :group => $app.blog.name + '.tumblr.com',
340
343
  #:slug => '',
341
344
  #:state => @state, # published, draft, submission, queue
342
345
  :channel_id => $app.blog.name,
343
346
  :send_to_twitter => @twitter_button.active? ? 'auto' : 'no'
344
347
  }
348
+ data.merge!({
349
+ :group => ($app.blog.name << '.tumblr.com')
350
+ }) if $app.blog.type == 'public' and $app.blog.name
351
+ data.merge!({
352
+ :group => ($app.blog.private_id)
353
+ }) if $app.blog.type = 'private' and $app.blog.private_id
345
354
 
346
355
  # datetime format: 2010-01-01T13:34:00
347
356
  # data.merge!({:publish_on => @publish_on}) if @state == 'queue'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grumblr
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 3
9
- - 6
10
- version: 2.3.6
9
+ - 7
10
+ version: 2.3.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Paul Philippov
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-27 00:00:00 +06:00
18
+ date: 2011-04-09 00:00:00 +07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  requirements: []
130
130
 
131
131
  rubyforge_project: grumblr
132
- rubygems_version: 1.5.2
132
+ rubygems_version: 1.6.2
133
133
  signing_key:
134
134
  specification_version: 3
135
135
  summary: a Tumblr companion