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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a336858969f74c19921c4bcbbb9372c9b248b86a
4
- data.tar.gz: 637d9a30868080c684f45e98be3e4b3cae0fa724
3
+ metadata.gz: cd30ca75c040f69a2d133839bacf119a872c9061
4
+ data.tar.gz: 83e817bfd77e054edf0503945580e43534e87e61
5
5
  SHA512:
6
- metadata.gz: fcc542d4956eca74ea3ce9ef64b65828dfacc71212ab3498e69c35e27dc47442fa8e720ce869cb5b5759def5e01e4cd5e26e00c5e614b5ca88d7f5540e8b5961
7
- data.tar.gz: 56c12ff08643a69dafe39feab20e0a49fb518dd135529e61bae7a28a7cd437ddea0a7b09a25a76a40a5dded7c41fb1ba2bdb0b6214d078db64b45c0c9d10846b
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>
@@ -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
- usage
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
@@ -1,3 +1,3 @@
1
1
  module Bbiff
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
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.1
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-03-12 00:00:00.000000000 Z
11
+ date: 2016-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler