rcv 0.0.3 → 0.0.4

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/README.txt +4 -3
  2. data/bin/rcv +9 -9
  3. data/lib/rcv.rb +1 -1
  4. data/lib/rcv/reader.rb +6 -5
  5. metadata +3 -8
data/README.txt CHANGED
@@ -1,6 +1,7 @@
1
1
  == DESCRIPTION:
2
2
 
3
- RCV is simple comic viewer
3
+ RCV is simple comic viewer.
4
+ You can read nested zip archive.
4
5
 
5
6
  == INSTALL:
6
7
 
@@ -20,8 +21,8 @@ rcv
20
21
  o : Open file
21
22
  right : Next Image
22
23
  left : Prev Image
23
- s : save bookmark
24
- b : load bookmark
24
+ s : Save bookmark
25
+ b : Load bookmark
25
26
 
26
27
  Copyright (c) 2008 Kazuki Uchida <gioext at gmail.com>
27
28
 
data/bin/rcv CHANGED
@@ -93,18 +93,18 @@ module RCV
93
93
  end
94
94
 
95
95
  # ubuntu bug? PixbufLoader(jpg file)
96
- def get_pixbuf(temp)
97
- if temp
98
- @buf = Gdk::Pixbuf.new(temp)
99
- # loader = Gdk::PixbufLoader.new
100
- # loader.last_write(io.read)
101
- # @buf = loader.pixbuf
96
+ def get_pixbuf(stream)
97
+ if stream
98
+ # @buf = Gdk::Pixbuf.new(temp)
99
+ loader = Gdk::PixbufLoader.new
100
+ loader.last_write(stream)
101
+ @buf = loader.pixbuf
102
102
  end
103
103
  end
104
104
 
105
- def print temp
106
- if temp
107
- get_pixbuf temp
105
+ def print stream
106
+ if stream
107
+ get_pixbuf stream
108
108
  @drawing_area.signal_emit("expose_event", nil)
109
109
  end
110
110
  end
data/lib/rcv.rb CHANGED
@@ -7,7 +7,7 @@ $:.unshift(File.dirname(__FILE__)) unless
7
7
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
8
8
 
9
9
  module RCV
10
- VERSION = [0, 0, 3]
10
+ VERSION = [0, 0, 4]
11
11
 
12
12
  def self.version
13
13
  VERSION.join(".")
@@ -67,11 +67,12 @@ module RCV
67
67
  def current
68
68
  @readend = true
69
69
  @logger.debug "load : #{@name}"
70
- @temp = Tempfile.new("rcv")
71
- @temp.binmode
72
- @temp.write @entry.get_input_stream.read
73
- @temp.flush
74
- @temp.path
70
+ @entry.get_input_stream.read
71
+ # @temp = Tempfile.new("rcv")
72
+ # @temp.binmode
73
+ # @temp.write @entry.get_input_stream.read
74
+ # @temp.flush
75
+ # @temp.path
75
76
  end
76
77
 
77
78
  def current_image; current; end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rcv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuki Uchida
@@ -40,14 +40,9 @@ files:
40
40
  - test/test_rcv.rb
41
41
  has_rdoc: true
42
42
  homepage: http://rcv.rubyforge.org
43
- post_install_message: |+
44
-
45
- For more information on rcv, see http://rcv.rubyforge.org
46
-
47
- NOTE: Change this information in PostInstall.txt
48
- You can also delete it if you don't want it.
49
-
43
+ post_install_message: |
50
44
 
45
+
51
46
  rdoc_options:
52
47
  - --main
53
48
  - README.txt