narou 1.0.0 → 1.0.1
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.
- data/.gitignore +1 -0
- data/README.md +21 -10
- data/lib/command/convert.rb +1 -1
- data/lib/command/init.rb +3 -1
- data/lib/narou.rb +1 -1
- data/lib/version.rb +2 -4
- data/narou.gemspec +11 -3
- metadata +9 -4
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,23 +1,27 @@
|
|
1
1
|
Narou.rb ― 小説家になろうダウンローダ&縦書用整形スクリプト
|
2
2
|
============
|
3
3
|
|
4
|
-
説明
|
5
|
-
|
4
|
+
説明 - Description
|
5
|
+
------------------
|
6
6
|
|
7
7
|
小説家になろうから小説をダウンロードして、縦書で読みやすいようにテキストを整形し、AozoraEPUB3を使ってEPUB化します。
|
8
8
|
小説の更新管理もできます。
|
9
9
|
|
10
|
-
|
10
|
+
作った人 - Author
|
11
|
+
-----------------
|
12
|
+
whiteleaf
|
13
|
+
Twitter: https://twitter.com/sasalove7
|
14
|
+
Blog: http://whiteleaf.hatenablog.com/
|
11
15
|
|
12
|
-
必須ツール
|
13
|
-
|
16
|
+
必須ツール - Require tools
|
17
|
+
--------------------------
|
14
18
|
* Ruby 1.9.3以上 (Windows: http://www.artonx.org/data/asr/, その他OS: 適当に)
|
15
19
|
* AozoraEpub3 1.1.0系 (http://www18.atwiki.jp/hmdev/pages/21.html)
|
16
20
|
* Java 6以降(AozoraEpub3で必須)
|
17
21
|
* kindlegen 2.7 (http://www.amazon.com/gp/feature.html?ie=UTF8&docId=1000765211)
|
18
22
|
|
19
|
-
機能っぽい一覧
|
20
|
-
|
23
|
+
機能っぽい一覧 - Functions
|
24
|
+
--------------------------
|
21
25
|
```
|
22
26
|
Usage: narou <command> [arguments...] [options...]
|
23
27
|
|
@@ -44,8 +48,8 @@ Narou.rb ― 小説家になろうダウンローダ&縦書用整形スクリ
|
|
44
48
|
(e.g. `narou d n4259s', `narou fr musyoku')
|
45
49
|
```
|
46
50
|
|
47
|
-
インストール
|
48
|
-
|
51
|
+
インストール - How to install
|
52
|
+
-----------------------------
|
49
53
|
* 事前に AozoraEpub3 をインストールしておきます。
|
50
54
|
→ http://www18.atwiki.jp/hmdev/pages/21.html
|
51
55
|
|
@@ -64,7 +68,7 @@ narou init
|
|
64
68
|
```
|
65
69
|
あとは画面の説明に従って下さい。
|
66
70
|
|
67
|
-
使い方 - How
|
71
|
+
使い方 - How to use
|
68
72
|
-------------------
|
69
73
|
基本的な使い方
|
70
74
|
|
@@ -75,3 +79,10 @@ narou update Nコード
|
|
75
79
|
narou convert Nコード
|
76
80
|
```
|
77
81
|
等と使います。
|
82
|
+
|
83
|
+
(書きかけ)
|
84
|
+
|
85
|
+
サポート - Support
|
86
|
+
------------------
|
87
|
+
https://twitter.com/sasalove7 , http://whiteleaf.hatenablog.com/
|
88
|
+
上記のツイッター及びブログで今後要望等を取り扱いたいと思います。
|
data/lib/command/convert.rb
CHANGED
@@ -149,7 +149,7 @@ module Command
|
|
149
149
|
end
|
150
150
|
|
151
151
|
unless @options["no-open"]
|
152
|
-
Helper.open_directory_by_os_filer(
|
152
|
+
Helper.open_directory_by_os_filer(File.dirname(@converted_txt_path), "小説の保存フォルダを開きますか")
|
153
153
|
end
|
154
154
|
end
|
155
155
|
rescue Interrupt
|
data/lib/command/init.rb
CHANGED
data/lib/narou.rb
CHANGED
data/lib/version.rb
CHANGED
@@ -3,9 +3,7 @@
|
|
3
3
|
# Copyright 2013 whiteleaf. All rights reserved.
|
4
4
|
#
|
5
5
|
|
6
|
-
Version = "1.0.
|
6
|
+
Version = "1.0.1"
|
7
7
|
|
8
8
|
cv_path = File.expand_path(File.join(File.dirname(__FILE__), "../commitversion"))
|
9
|
-
|
10
|
-
CommitVersion = File.read(cv_path)
|
11
|
-
end
|
9
|
+
CommitVersion = File.read(cv_path)
|
data/narou.gemspec
CHANGED
@@ -14,22 +14,30 @@ end
|
|
14
14
|
Encoding.default_external = Encoding::UTF_8
|
15
15
|
|
16
16
|
Gem::Specification.new do |gem|
|
17
|
-
|
18
17
|
gem.name = "narou"
|
19
18
|
gem.version = Version
|
20
19
|
gem.authors = ["whiteleaf7"]
|
21
20
|
gem.email = ["2nd.leaf@gmail.com"]
|
21
|
+
gem.homepage = "http://whiteleaf.hatenablog.com/"
|
22
22
|
gem.summary = %q{Narou.rb ― 小説家になろうダウンローダ&縦書用整形スクリプト}
|
23
23
|
gem.description = %q{
|
24
24
|
小説家になろうで公開されている小説の管理、及び電子書籍データへの
|
25
25
|
変換を支援します。縦書用に特化されており、横書き用に特化されたWEB小説
|
26
26
|
を違和感なく縦書で読むことが出来るようになります。
|
27
27
|
}.split("\n").join
|
28
|
-
|
28
|
+
|
29
|
+
gem.post_install_message = <<-EOS
|
30
|
+
narou コマンドのインストールが完了しました。
|
31
|
+
小説を管理するための任意のフォルダで narou init コマンドを実行して下さい。
|
32
|
+
|
33
|
+
EOS
|
34
|
+
|
35
|
+
gem.has_rdoc = true # rdoc を生成しない
|
36
|
+
gem.required_ruby_version = ">=1.9.3"
|
29
37
|
|
30
38
|
gem.files = `git ls-files`.split("\n") << Narou.create_git_commit_version
|
31
39
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
32
40
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
33
|
-
gem.require_paths = ["lib"]
|
41
|
+
#gem.require_paths = ["lib"]
|
34
42
|
#gem.add_dependency ""
|
35
43
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: narou
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -88,9 +88,14 @@ files:
|
|
88
88
|
- webnovel/ncode.syosetu.com.yaml
|
89
89
|
- webnovel/novel18.syosetu.com.yaml
|
90
90
|
- commitversion
|
91
|
-
homepage:
|
91
|
+
homepage: http://whiteleaf.hatenablog.com/
|
92
92
|
licenses: []
|
93
|
-
post_install_message:
|
93
|
+
post_install_message: ! 'narou コマンドのインストールが完了しました。
|
94
|
+
|
95
|
+
小説を管理するための任意のフォルダで narou init コマンドを実行して下さい。
|
96
|
+
|
97
|
+
|
98
|
+
'
|
94
99
|
rdoc_options: []
|
95
100
|
require_paths:
|
96
101
|
- lib
|
@@ -99,7 +104,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
99
104
|
requirements:
|
100
105
|
- - ! '>='
|
101
106
|
- !ruby/object:Gem::Version
|
102
|
-
version:
|
107
|
+
version: 1.9.3
|
103
108
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
109
|
none: false
|
105
110
|
requirements:
|