narou 2.7.1 → 2.7.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of narou might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 407da347cd55b510277decbd4f2d37f66f69711b
4
- data.tar.gz: 3960f0f33a41c36d6f259362026a830bc3803695
3
+ metadata.gz: 1ad085db750e9517ea6e321687b914ea18275ea4
4
+ data.tar.gz: fdfbe6a80526eab552540244dda1e37e6aa7fc6d
5
5
  SHA512:
6
- metadata.gz: 8012c8f919fd51e6bf15fee2dbff4a55aad3e861dc62cbd9b11abd2a35cd03a6ef6f671ce4f6ae1cce7ffcfbe4505efa0ecc0688cf18a7c6a603fea317a4d4e8
7
- data.tar.gz: 65024656efdc233c53c5be4df2c8b4968b9fb12bdd652c22c808dd4628b30e8f52bd0769fc508997437266edf7708e83184e9cc686ae1b100e18fb59ac6a80be
6
+ metadata.gz: 084c69ed505c510ea2842beb88ab1b4252be05d8d2db280a8be22d1f3961368489cdfd4c31bef2a07bf88a6afd73973fcb6adc229551b473878648300602315e
7
+ data.tar.gz: a401ff433b37e9b7c66d23684eb45e9e028bd3ec24af1ac4685ecfd1dbaf536a1e184661c3a9761d5a608ce1ef522748f7ff30ad66b67ef8b9d351ba63ea2380
@@ -2,6 +2,15 @@
2
2
  更新履歴 - ChangeLog
3
3
  ====================
4
4
 
5
+ 2.7.2 : 2015/12/01
6
+ ------------------
7
+ #### Bug Fix
8
+ - ハーメルンの仕様変更に伴い、本文が取得できなくなっていたのを修正
9
+ - ハーメルンにおいて前書き・後書きが前話以前のもが使われてしまう場合があるのを
10
+ 修正
11
+ - 標準入力に null を渡すとエラーになっていたのを修正 #73
12
+
13
+
5
14
  2.7.1 : 2015/09/20
6
15
  ------------------
7
16
  #### お知らせ
@@ -41,7 +41,7 @@ module CommandLine
41
41
  end
42
42
  unless STDIN.tty?
43
43
  # pipeで接続された場合、標準入力からIDリストを受け取って引数に繋げる
44
- argv += STDIN.gets.split
44
+ argv += (STDIN.gets || "").split
45
45
  end
46
46
  Command.get_list[arg].new.execute(argv)
47
47
  ensure
@@ -1045,6 +1045,7 @@ class Downloader
1045
1045
  element["data_type"] = "text"
1046
1046
  else
1047
1047
  save_raw_data(raw, subtitle_info, ".html")
1048
+ %w(introduction body postscript).each { |type| @setting[type] = nil }
1048
1049
  @setting.multi_match(raw, "body_pattern", "introduction_pattern", "postscript_pattern")
1049
1050
  element = { "data_type" => "html" }
1050
1051
  %w(introduction body postscript).each { |type|
@@ -3,5 +3,5 @@
3
3
  # Copyright 2013 whiteleaf. All rights reserved.
4
4
  #
5
5
 
6
- Version = "2.7.1"
6
+ Version = "2.7.2"
7
7
 
@@ -24,7 +24,7 @@ error_message: 投稿者が削除、もしくは間違ったアドレスを指
24
24
  # 本文取得設定
25
25
 
26
26
  body_pattern: |-
27
- <font size=\+1>.+?</font><BR><BR>
27
+ <span style="font-size:120%">.+?</span><BR><BR>
28
28
  (?<body>.+?)
29
29
  (?:<div id=atogaki><BR><HR><BR>(?<postscript>.+?)</div>)?
30
30
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: narou
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.1
4
+ version: 2.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - whiteleaf7
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-20 00:00:00.000000000 Z
11
+ date: 2015-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: termcolorlight