rabbit_viewer 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -5
- data/lib/rabbit_viewer/command/rabbit_viewer.rb +9 -6
- data/lib/rabbit_viewer/version.rb +1 -1
- data/rabbit_viewer.gemspec +6 -3
- metadata +46 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c741d82ad3f1b6fcf74fc603f75bbc787ff22ae
|
4
|
+
data.tar.gz: 2982dac6d3b09b0e9ea5388e0d2a2b9f6bfa3985
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e2d49963df932cfe14f63523708742e2bf0ed9de40a2e35891b462b0bfb6b9a8f3c672d509343302eb01666ba767766c35e603c55dc1602a0fed33049f15b4e
|
7
|
+
data.tar.gz: d9d86a1a53041d70527b0f0fad3c43772699bef77bdfbe88aa5e95d3efc85448b4153c5d6c7e1b5e9defe88769bb8fec18b95d3e5fb31239bf7553a3758e5966
|
data/README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require "rabbit_viewer/version"
|
2
2
|
require "rabbit/command/rabbit"
|
3
|
+
require "rabbit/version"
|
3
4
|
require "tempfile"
|
4
5
|
require "uri"
|
5
6
|
|
@@ -24,12 +25,14 @@ module RabbitViewer
|
|
24
25
|
viewfile = File.expand_path(viewfile_relative)
|
25
26
|
next unless File.file?(viewfile)
|
26
27
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
28
|
+
if Rabbit::VERSION <= "2.0.6"
|
29
|
+
begin
|
30
|
+
URI.parse(viewfile)
|
31
|
+
rescue URI::InvalidURIError
|
32
|
+
STDERR.puts($!.message)
|
33
|
+
STDERR.puts("Support multibyte file path by Rabbit 2.0.7. Encourage update!")
|
34
|
+
next
|
35
|
+
end
|
33
36
|
end
|
34
37
|
|
35
38
|
case viewfile
|
data/rabbit_viewer.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = RabbitViewer::VERSION
|
9
9
|
spec.authors = ["Masafumi Yokoyama"]
|
10
10
|
spec.email = ["myokoym@gmail.com"]
|
11
|
-
spec.summary = %q{
|
11
|
+
spec.summary = %q{A file viewer by Rabbit.}
|
12
12
|
spec.description = spec.summary # FIXME
|
13
13
|
spec.homepage = "https://github.com/myokoym/rabbit_viewer"
|
14
14
|
spec.license = "GPLv2+"
|
@@ -20,6 +20,9 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_runtime_dependency("rabbit", ">= 2.0.2")
|
22
22
|
|
23
|
-
spec.add_development_dependency
|
24
|
-
spec.add_development_dependency
|
23
|
+
spec.add_development_dependency("test-unit")
|
24
|
+
spec.add_development_dependency("test-unit-notify")
|
25
|
+
spec.add_development_dependency("test-unit-rr")
|
26
|
+
spec.add_development_dependency("bundler", "~> 1.3")
|
27
|
+
spec.add_development_dependency("rake")
|
25
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rabbit_viewer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
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-
|
11
|
+
date: 2013-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rabbit
|
@@ -24,6 +24,48 @@ dependencies:
|
|
24
24
|
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 2.0.2
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: test-unit
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: test-unit-notify
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: test-unit-rr
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
27
69
|
- !ruby/object:Gem::Dependency
|
28
70
|
name: bundler
|
29
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,7 +94,7 @@ dependencies:
|
|
52
94
|
- - '>='
|
53
95
|
- !ruby/object:Gem::Version
|
54
96
|
version: '0'
|
55
|
-
description:
|
97
|
+
description: A file viewer by Rabbit.
|
56
98
|
email:
|
57
99
|
- myokoym@gmail.com
|
58
100
|
executables:
|
@@ -96,7 +138,7 @@ rubyforge_project:
|
|
96
138
|
rubygems_version: 2.0.0
|
97
139
|
signing_key:
|
98
140
|
specification_version: 4
|
99
|
-
summary:
|
141
|
+
summary: A file viewer by Rabbit.
|
100
142
|
test_files:
|
101
143
|
- test/run-test.rb
|
102
144
|
- test/test-rabbit_viewer.rb
|