bbiff 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/lib/bbiff/executable.rb +7 -2
- data/lib/bbiff/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd30ca75c040f69a2d133839bacf119a872c9061
|
4
|
+
data.tar.gz: 83e817bfd77e054edf0503945580e43534e87e61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3252f846fd7ccd4675456df483f400b962e98b5c9217a5d8e378c6468a7e62c8773a48ae600e23971622e08624351d1c5bccc7690d213e9024cec8e58f9a4c0b
|
7
|
+
data.tar.gz: cf3e620a32d8fa61be5f2453082591932ed234cdc948966375d51177090a8eb667f3215a94780ef6c616f214577b2748ebe449fc04e46b53de2abf3396d559b8
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
notify-send コマンド
|
6
6
|
|
7
|
-
sudo apt-get libnotify-bin
|
7
|
+
sudo apt-get install libnotify-bin
|
8
8
|
|
9
9
|
## インストール
|
10
10
|
|
@@ -49,6 +49,10 @@ ver 0.2.0
|
|
49
49
|
ver 0.2.1
|
50
50
|
* スレタイに ( を含むスレのある掲示板のスレを指定すると落ちるバグを修正。
|
51
51
|
|
52
|
+
ver 0.2.2
|
53
|
+
* 最後に読み込んだスレの情報が無い状態で、引数なしで bbiff を起動し
|
54
|
+
た時にエラーになっていたのを修正。
|
55
|
+
|
52
56
|
## 作者
|
53
57
|
|
54
58
|
予定地 <plonk@piano.email.ne.jp>
|
data/lib/bbiff/executable.rb
CHANGED
@@ -3,6 +3,9 @@ require 'unicode/display_width'
|
|
3
3
|
module Bbiff
|
4
4
|
|
5
5
|
class Executable
|
6
|
+
class UsageError < StandardError
|
7
|
+
end
|
8
|
+
|
6
9
|
class LineIndicator
|
7
10
|
def initialize(out = STDOUT)
|
8
11
|
@width = 0
|
@@ -119,8 +122,7 @@ EOD
|
|
119
122
|
|
120
123
|
def main
|
121
124
|
if ARGV.include?('-h') || ARGV.include?('--help')
|
122
|
-
|
123
|
-
exit 1
|
125
|
+
raise UsageError
|
124
126
|
end
|
125
127
|
|
126
128
|
if ARGV.size < 1 && !@settings.current['thread_url']
|
@@ -147,6 +149,9 @@ EOD
|
|
147
149
|
thread = Bbs::C板.new(*ita).thread(sure)
|
148
150
|
start_no = ARGV[1] ? ARGV[1].to_i : thread.last + 1
|
149
151
|
start_polling(thread, start_no)
|
152
|
+
rescue UsageError
|
153
|
+
usage
|
154
|
+
exit 1
|
150
155
|
ensure
|
151
156
|
@settings.save
|
152
157
|
end
|
data/lib/bbiff/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bbiff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoteichi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|