mireru 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -1
- data/lib/mireru/command/mireru.rb +6 -0
- data/lib/mireru/version.rb +1 -1
- data/lib/mireru/window.rb +10 -0
- data/mireru.gemspec +2 -2
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a5e44166849dd0f28a9ca3fed76087cafe5e3e9
|
4
|
+
data.tar.gz: 04edc5e6fed3407dbc9ccaf755b393a5ea6c652f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab3cc3ee7bdb3a33e4a179d629778366e442c2fe26e8a7798052270337a9d14b9f26cfae2998c42d2c3bc8798f7ecad5deb6ba0492b7433eaf08f6daab676ddb
|
7
|
+
data.tar.gz: ca3c1b7cfc990c67b649a555667eae975fa3a77441aefdf798d3e588ef841157171de166518d6be5dfaa5f5a64d3c8f6ca089d607d8b60ecc208c4765cef4f9a
|
data/README.md
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
-
# Mireru - Flexible File Viewer
|
1
|
+
# Mireru - Flexible File Viewer Keyboard Friend
|
2
2
|
|
3
3
|
A file viewer with a focus on flexibility by Ruby/GTK3.
|
4
4
|
|
5
|
+
A friend of a keyboard.
|
6
|
+
|
5
7
|
## Installation
|
6
8
|
|
7
9
|
$ gem install mireru
|
@@ -26,6 +28,16 @@ r: reload
|
|
26
28
|
|
27
29
|
q: quit
|
28
30
|
|
31
|
+
#### Scroll
|
32
|
+
|
33
|
+
h: left
|
34
|
+
|
35
|
+
j: down
|
36
|
+
|
37
|
+
k: up
|
38
|
+
|
39
|
+
l: right
|
40
|
+
|
29
41
|
#### Image
|
30
42
|
|
31
43
|
f: fits window size
|
data/lib/mireru/version.rb
CHANGED
data/lib/mireru/window.rb
CHANGED
@@ -40,6 +40,14 @@ module Mireru
|
|
40
40
|
pixbuf = Gdk::Pixbuf.new(@file)
|
41
41
|
@widget.pixbuf = pixbuf
|
42
42
|
end
|
43
|
+
when Gdk::Keyval::GDK_KEY_h
|
44
|
+
@scroll.hadjustment.value -= 17
|
45
|
+
when Gdk::Keyval::GDK_KEY_j
|
46
|
+
@scroll.vadjustment.value += 17
|
47
|
+
when Gdk::Keyval::GDK_KEY_k
|
48
|
+
@scroll.vadjustment.value -= 17
|
49
|
+
when Gdk::Keyval::GDK_KEY_l
|
50
|
+
@scroll.hadjustment.value += 17
|
43
51
|
when Gdk::Keyval::GDK_KEY_q
|
44
52
|
Gtk.main_quit
|
45
53
|
end
|
@@ -47,6 +55,8 @@ module Mireru
|
|
47
55
|
end
|
48
56
|
|
49
57
|
def add_from_file(file)
|
58
|
+
@scroll.hadjustment.value = 0
|
59
|
+
@scroll.vadjustment.value = 0
|
50
60
|
@scroll.each {|child| @scroll.remove(child) }
|
51
61
|
@widget = Mireru::Widget.create(file, *self.size)
|
52
62
|
if @widget.is_a?(Gtk::Scrollable)
|
data/mireru.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = Mireru::VERSION
|
9
9
|
spec.authors = ["Masafumi Yokoyama"]
|
10
10
|
spec.email = ["myokoym@gmail.com"]
|
11
|
-
spec.summary = %q{Flexible File Viewer}
|
12
|
-
spec.description = %q{A file viewer with a focus on flexibility by Ruby/GTK3.}
|
11
|
+
spec.summary = %q{Flexible File Viewer Keyboard Friend}
|
12
|
+
spec.description = %q{A file viewer with a focus on flexibility by Ruby/GTK3. A friend of a keyboard.}
|
13
13
|
spec.homepage = "https://github.com/myokoym/mireru"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mireru
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masafumi Yokoyama
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-04-
|
11
|
+
date: 2013-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gtk3
|
@@ -108,7 +108,8 @@ dependencies:
|
|
108
108
|
- - '>='
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
-
description: A file viewer with a focus on flexibility by Ruby/GTK3.
|
111
|
+
description: A file viewer with a focus on flexibility by Ruby/GTK3. A friend of a
|
112
|
+
keyboard.
|
112
113
|
email:
|
113
114
|
- myokoym@gmail.com
|
114
115
|
executables:
|
@@ -164,7 +165,7 @@ rubyforge_project:
|
|
164
165
|
rubygems_version: 2.0.0
|
165
166
|
signing_key:
|
166
167
|
specification_version: 4
|
167
|
-
summary: Flexible File Viewer
|
168
|
+
summary: Flexible File Viewer Keyboard Friend
|
168
169
|
test_files:
|
169
170
|
- test/fixtures/LICENSE.txt
|
170
171
|
- test/fixtures/nijip.png
|