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 CHANGED
@@ -18,6 +18,7 @@ debug
18
18
 
19
19
  archive
20
20
  commitversion
21
+ narou.bat
21
22
 
22
23
  #
23
24
  # for gem
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 To Use
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
+ 上記のツイッター及びブログで今後要望等を取り扱いたいと思います。
@@ -149,7 +149,7 @@ module Command
149
149
  end
150
150
 
151
151
  unless @options["no-open"]
152
- Helper.open_directory_by_os_filer(converted_txt_dir, "小説の保存フォルダを開きますか")
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
@@ -54,7 +54,9 @@ module Command
54
54
  Narou.init
55
55
  puts "-" * 30
56
56
  init_aozoraepub3
57
- puts "初期化が完了しました"
57
+ puts "初期化が完了しました!"
58
+ puts "現在のフォルダ下で各種コマンドが使用出来るようになりました。"
59
+ puts "まずは narou --help で簡単な説明を御覧ください。"
58
60
  end
59
61
  end
60
62
 
data/lib/narou.rb CHANGED
@@ -58,7 +58,7 @@ module Narou
58
58
  end
59
59
 
60
60
  def self.get_script_dir
61
- File.expand_path(File.join(File.dirname(__FILE__), ".."))
61
+ @@script_dir ||= File.expand_path(File.join(File.dirname(__FILE__), ".."))
62
62
  end
63
63
 
64
64
  def self.already_init?
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.0"
6
+ Version = "1.0.1"
7
7
 
8
8
  cv_path = File.expand_path(File.join(File.dirname(__FILE__), "../commitversion"))
9
- if File.exists?(cv_path)
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
- gem.homepage = "https://github.com/whiteleaf7/narou"
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.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: https://github.com/whiteleaf7/narou
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: '0'
107
+ version: 1.9.3
103
108
  required_rubygems_version: !ruby/object:Gem::Requirement
104
109
  none: false
105
110
  requirements: