grumblr 2.4.1 → 2.4.2

Sign up to get free protection for your applications and to get access to all the features.
data/Changelog CHANGED
@@ -1,3 +1,6 @@
1
+ verison 2.4.2
2
+ * Fix reading binary files under ruby 1.9.
3
+
1
4
  version 2.4.1 (2011-06-28)
2
5
  * Bugfix release. Use FileUtils in setup script.
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.4.1
36
+ $ cd /usr/lib/ruby/gems/1.8/gems/grumblr-2.4.2
37
37
  $ sudo ruby setup.rb
38
38
 
39
39
  === Homepage ===
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.4.1
1
+ 2.4.2
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
- #
2
+ # encoding: utf-8
3
+
3
4
  =begin
4
5
  Grumblr - a Tumblr companion.
5
6
 
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  require 'yaml'
2
4
 
3
5
  module Grumblr
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  require 'ppds/tumblr'
2
4
  require 'grumblr/config'
3
5
  require 'grumblr/ui'
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  require 'gtk2'
2
4
  require 'open-uri'
3
5
  require 'fileutils'
@@ -311,7 +313,7 @@ module Grumblr
311
313
  end
312
314
 
313
315
  def post
314
- page = @notebook.get_nth_page @notebook.page
316
+ page = @notebook.get_nth_page(@notebook.page)
315
317
  message_type = @notebook.get_menu_label_text(page).downcase
316
318
 
317
319
  mandatory_data = collect_data_for(Ppds::Tumblr::MANDATORY_FIELDS, message_type)
@@ -359,7 +361,9 @@ module Grumblr
359
361
  data.merge! concurent_data
360
362
  data.merge! optional_data
361
363
 
362
- data.update({:data => File.read(data[:data])}) if data.has_key?(:data) and data[:data] != ''
364
+ data.update({
365
+ :data => File.open(data[:data], 'rb') { |f| f.read }
366
+ }) if data.has_key?(:data) and data[:data] != ''
363
367
 
364
368
  dump(data) if $DEBUG
365
369
 
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  module Ppds
2
4
  class ClassFactory
3
5
  def initialize(data=[])
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  require 'pp'
2
4
 
3
5
  def dump(data)
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  require 'ppds/class_factory'
2
4
  require 'rest_client'
3
5
  require 'xml'
data/setup.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # encoding: utf-8
2
3
 
3
4
  require 'rubygems'
4
5
  require 'fileutils'
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 2
7
7
  - 4
8
- - 1
9
- version: 2.4.1
8
+ - 2
9
+ version: 2.4.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Paul Philippov
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-06-28 00:00:00 +07:00
17
+ date: 2011-07-16 00:00:00 +07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency