aozoragen 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,7 +27,7 @@ module Aozoragen
27
27
 
28
28
  def each_chapter
29
29
  @entity.each_chapter do |c|
30
- c[:text] = c[:text].normalize_char
30
+ c[:text] = c[:text].normalize_char.han2zen
31
31
  yield c
32
32
  end
33
33
  end
@@ -36,7 +36,10 @@ class String
36
36
  # normalize invalid charcters
37
37
  #
38
38
  def normalize_char
39
- self.tr( "\u7626\u6451\u5653\u7e6b\uFF0D/", '痩掴嘘繋─' )
39
+ self.tr(
40
+ "\u5699\u9830\u525d\u7626\u6451\u5653\u7e6b\uFF0D/",
41
+ '噛頬剥痩掴嘘繋─'
42
+ )
40
43
  end
41
44
  end
42
45
 
@@ -1,3 +1,3 @@
1
1
  module Aozoragen
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aozoragen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-29 00:00:00.000000000 Z
12
+ date: 2012-03-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
16
- requirement: &73196080 !ruby/object:Gem::Requirement
16
+ requirement: &72035520 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *73196080
24
+ version_requirements: *72035520
25
25
  description: Scraping some Ebook web site and generating AOZORA format text files.
26
26
  email:
27
27
  - t@tdtds.jp