aozoragen 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.tachikoma.yml +1 -0
- data/lib/aozoragen/syosetu.rb +2 -1
- data/lib/aozoragen/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de62178d5740cc72cfbbdcbd7c2cf10a32c996c5
|
4
|
+
data.tar.gz: 0f0b0bfb99ea018ed97b9804b6dd006a3f87c125
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd6a40aa750b65e409abf0f73516ac0eb22724f803e7438a63e416a984fe2f156eea12ba0772165fa19634b7ab22c4901292317ddc04ec1a0780e6255aa0c944
|
7
|
+
data.tar.gz: 804b3a8af31cb54688deb97b6fa910dad083c8d886fea1c46612922d627b70b3fcefd0583d2137cfb1eef81f8ac2af0dbbcb9c9bf5a99674d23210a55499988c
|
data/.tachikoma.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
strategy: 'bundler'
|
data/lib/aozoragen/syosetu.rb
CHANGED
@@ -29,7 +29,8 @@ module Aozoragen
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def each_chapter
|
32
|
-
(@index_html / '.subtitle a').
|
32
|
+
(@index_html / '.subtitle a').each_with_index do |a, idx|
|
33
|
+
sleep 5 unless idx == 0 # sleep 5 secs against access deny by host
|
33
34
|
uri = @index_uri + a.attr('href')
|
34
35
|
|
35
36
|
chapter = Nokogiri(open(uri, 'r:utf-8', &:read).tr('《》.|', '『』・|'))
|
data/lib/aozoragen/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aozoragen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TADA Tadashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -34,6 +34,7 @@ extensions: []
|
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
36
|
- ".gitignore"
|
37
|
+
- ".tachikoma.yml"
|
37
38
|
- Gemfile
|
38
39
|
- README.md
|
39
40
|
- Rakefile
|
@@ -66,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
67
|
version: '0'
|
67
68
|
requirements: []
|
68
69
|
rubyforge_project:
|
69
|
-
rubygems_version: 2.
|
70
|
+
rubygems_version: 2.6.8
|
70
71
|
signing_key:
|
71
72
|
specification_version: 4
|
72
73
|
summary: Generating AOZORA format text of eBook novels via some Web sites.
|