narou 2.3.0.pre.test1 → 2.3.0

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: 327c038f5e42467a9985f1b1b52c7f17c5210e55
4
- data.tar.gz: 575c24c68e7096c5f9783e23ab83129008784b68
3
+ metadata.gz: 57a95d1699c444fae04b41b676b0239e3f4a2f2f
4
+ data.tar.gz: 7f8f6fee4324f6b3877bd85da0e356ee2e1da24a
5
5
  SHA512:
6
- metadata.gz: 57fb75c7730087201accffda2ef0f24b24cb5b85c7c30c236e9b6e15666690287be0e80d74304924c07222342bc69310f0bb1775e30178f09552a8f3b2294719
7
- data.tar.gz: 4f8eec0a920e12c083bca9df8987b3292782b9da7863988fb1b99d4b2601723110141426b3cc9a5238ad389d4a54a0184d0ce7b3d6b123993714bf0711f5c684
6
+ metadata.gz: c3559c0a202c8d4293598daa2759146501bf8fc668cd1d8218a6ade5383e771abd6222f7c73d3f63a5cf0cb5d6773886027034b7b9c1c6a36c470a78da175348
7
+ data.tar.gz: 2e3a54cd9d3a2f45cd53a8fe423016989cd5efb0558c2cc722dea1fb62770fc07b35700772353436a9d63f3713cd1cea624086c141508bb788402eca8d21c271
data/ChangeLog.md CHANGED
@@ -2,7 +2,7 @@
2
2
  更新履歴 - ChangeLog
3
3
  ====================
4
4
 
5
- 2.3.0 : 2015/xx/xx
5
+ 2.3.0 : 2015/03/21
6
6
  ------------------
7
7
  #### 追加機能
8
8
  - Kindle端末で単語の選択を出来るようにするために、小説別変換設定に
@@ -16,6 +16,9 @@
16
16
  device が kindle の時のみ使用可能です。また、Send to Kindle で mobi を azw3
17
17
  に変換する場合は単語選択は可能なので、設定する必要はありません
18
18
 
19
+ #### Bug Fix
20
+ - ハーメルンの仕様変更に対応しました
21
+
19
22
  2.2.0 : 2015/02/19
20
23
  ------------------
21
24
  #### 追加機能
data/lib/converterbase.rb CHANGED
@@ -1130,13 +1130,22 @@ class ConverterBase
1130
1130
  after(io, @text_type)
1131
1131
  end
1132
1132
 
1133
- WORD_SEPARATOR = "[#zws]"
1133
+ WORD_SEPARATOR = "[#zws]" # zws = zero width space
1134
1134
 
1135
+ #
1136
+ # Kindle で単語選択をまともに出来るようにするために、0幅スペースを挿入する
1137
+ #
1135
1138
  def insert_word_separator(str)
1136
1139
  return str unless @setting.enable_insert_word_separator && @device && @device.kindle?
1137
1140
  return str if @text_type != "body" && @text_type != "textfile"
1138
1141
  buffer = ""
1139
1142
  ss = StringScanner.new(str)
1143
+
1144
+ while char = ss.getch
1145
+ buffer << "#{char}#{WORD_SEPARATOR}"
1146
+ end
1147
+ return buffer
1148
+
1140
1149
  before_symbol = false
1141
1150
  while char = ss.getch
1142
1151
  symbol = false
data/lib/version.rb CHANGED
@@ -3,5 +3,5 @@
3
3
  # Copyright 2013 whiteleaf. All rights reserved.
4
4
  #
5
5
 
6
- Version = "2.3.0-test1"
6
+ Version = "2.3.0"
7
7
 
@@ -24,12 +24,11 @@ error_message: 投稿者が削除、もしくは間違ったアドレスを指
24
24
  # 本文取得設定
25
25
 
26
26
  body_pattern: |-
27
- (?:<div id=maegaki>(?<introduction>.+?)</div><BR><HR><BR>
28
- )?<font size=\+1>.+?</font><BR><BR>
27
+ <font size=\+1>.+?</font><BR><BR>
29
28
  (?<body>.+?)
30
- <BR>(?:<HR><BR><div id=atogaki>(?<postscript>.+?)</div>)?
29
+ (?:<div id=atogaki><BR><HR><BR>(?<postscript>.+?)</div>)?
31
30
 
32
- introduction_pattern: null
31
+ introduction_pattern: <div id=maegaki>(?<introduction>.+)<BR><HR><BR></div>
33
32
  postscript_pattern: null
34
33
 
35
34
  illust_current_url: null
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.3.0.pre.test1
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - whiteleaf7
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-13 00:00:00.000000000 Z
11
+ date: 2015-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: termcolorlight
@@ -445,9 +445,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
445
445
  version: 1.9.3
446
446
  required_rubygems_version: !ruby/object:Gem::Requirement
447
447
  requirements:
448
- - - ">"
448
+ - - ">="
449
449
  - !ruby/object:Gem::Version
450
- version: 1.3.1
450
+ version: '0'
451
451
  requirements: []
452
452
  rubyforge_project:
453
453
  rubygems_version: 2.4.5