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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a55d3eb1e023e53fd30b75ab0405bec7c9a28cc
4
- data.tar.gz: 72a9cab7172eef5a3588dd3e16b47ba19b3441f2
3
+ metadata.gz: 2c741d82ad3f1b6fcf74fc603f75bbc787ff22ae
4
+ data.tar.gz: 2982dac6d3b09b0e9ea5388e0d2a2b9f6bfa3985
5
5
  SHA512:
6
- metadata.gz: 1101624f7886b88920786f53f3fa7445e05e78d21bab81b464e39a93a65657399cbf5ce013efe660cbbd4858d0c1f8d7bfd3af92cc3ba92f213c3e1b748f831c
7
- data.tar.gz: 2daf48c7e17653f877939169698e1c0b4e7fee0fc366ee11daab1c3279b5052edd2ed89b28d31d8c0e17e65e71c2544838baeac9fa51e7bd869ae733c7b26d5e
6
+ metadata.gz: 7e2d49963df932cfe14f63523708742e2bf0ed9de40a2e35891b462b0bfb6b9a8f3c672d509343302eb01666ba767766c35e603c55dc1602a0fed33049f15b4e
7
+ data.tar.gz: d9d86a1a53041d70527b0f0fad3c43772699bef77bdfbe88aa5e95d3efc85448b4153c5d6c7e1b5e9defe88769bb8fec18b95d3e5fb31239bf7553a3758e5966
data/README.md CHANGED
@@ -1,10 +1,6 @@
1
1
  # RabbitViewer
2
2
 
3
- It's file viewer. Support a multi format.
4
-
5
- png, gif, jpeg, txt ...
6
-
7
- Powered by [Rabbit](http://rabbit-shocker.org/)
3
+ A file viewer by [Rabbit](http://rabbit-shocker.org/).
8
4
 
9
5
  ## Installation
10
6
 
@@ -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
- begin
28
- URI.parse(viewfile)
29
- rescue URI::InvalidURIError
30
- STDERR.puts($!.message)
31
- STDERR.puts("Sorry, don't support multibyte file name as yet.")
32
- next
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
@@ -1,3 +1,3 @@
1
1
  module RabbitViewer
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -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{File viewer. Multi format, CLI launch, wildcard, etc. Powered by Rabbit.}
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 "bundler", "~> 1.3"
24
- spec.add_development_dependency "rake"
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.2
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-03-21 00:00:00.000000000 Z
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: File viewer. Multi format, CLI launch, wildcard, etc. Powered by Rabbit.
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: File viewer. Multi format, CLI launch, wildcard, etc. Powered by Rabbit.
141
+ summary: A file viewer by Rabbit.
100
142
  test_files:
101
143
  - test/run-test.rb
102
144
  - test/test-rabbit_viewer.rb