Comments (2)
gem.required_ruby_version = ">=2.3.0" は 2.5.0 にする方がよいかと思います。
スタンス的には 2.7 以上必須ですが、
https://github.com/whiteleaf7/narou/wiki#%E5%BF%85%E9%A0%88%E3%83%84%E3%83%BC%E3%83%AB
古い環境でも動く可能性はあったので、required_ruby_version はあげてませんでした
最近明確に古い環境では動かなくなったのであげた方が良いですね(どこまで動かないのかを調べるのが面倒でした)
narou.rb には Gemfile.lock を含めない方がよいと思います。
bundle install で利用者の環境を用意するのは Gemfile の役割なので、Gemfile.lock が役立つことはないと思います
利用者が bundle install をすることをそもそも想定していません。開発者用です
gem 経由でインストールする場合には参照されないので問題ないと思っています
from narou.
スタンス的には 2.7 以上必須ですが、 https://github.com/whiteleaf7/narou/wiki#%E5%BF%85%E9%A0%88%E3%83%84%E3%83%BC%E3%83%AB 古い環境でも動く可能性はあったので、required_ruby_version はあげてませんでした 最近明確に古い環境では動かなくなったのであげた方が良いですね(どこまで動かないのかを調べるのが面倒でした)
Ruby 2.5.8 で rake spec
を実行したところ、以下の通り2件失敗しました。2.6.0 以上に限定してよいかと思います。
Failures:
1) NovelSetting setting.ini 書き出し関係 読み込んだ設定を setting.ini に書き出せるか
Failure/Error: result = ERB.new(src, trim_mode: "-").result(_binding)
TypeError:
no implicit conversion of Hash into Integer
# ./lib/template.rb:53:in `block in get'
# ./lib/template.rb:49:in `each'
# ./lib/template.rb:49:in `get'
# ./lib/template.rb:31:in `write'
# ./lib/novelsetting.rb:144:in `save_settings'
# ./spec/novelsetting_spec.rb:23:in `block (3 levels) in <top (required)>'
2) NovelSetting setting.ini 書き出し関係 オリジナル設定も setting.ini に書きだされるか
Failure/Error: result = ERB.new(src, trim_mode: "-").result(_binding)
TypeError:
no implicit conversion of Hash into Integer
# ./lib/template.rb:53:in `block in get'
# ./lib/template.rb:49:in `each'
# ./lib/template.rb:49:in `get'
# ./lib/template.rb:31:in `write'
# ./lib/novelsetting.rb:144:in `save_settings'
# ./spec/novelsetting_spec.rb:29:in `block (3 levels) in <top (required)>'
利用者が bundle install をすることをそもそも想定していません。開発者用です gem 経由でインストールする場合には参照されないので問題ないと思っています
まあ確かに、開発者なら Gemfile.lock を削除すればよいということは知っているので、大きな問題はなさそうですね。
from narou.
Related Issues (20)
- dependency 'sass' から 'sassc' へ
- AozoraEpub3 実行中 file not exist エラーに見舞われる HOT 10
- 初回ダウンロード時に setting.ini の output_filename を自動で設定するオプション HOT 2
- 作者ページから全小説や活動報告等をダウンロードしたい HOT 2
- WEB UI の websocket uri を変わりたい HOT 1
- Kindle Paperwhite端末にて挿絵がサムネイルとして表示されてしまう HOT 1
- psych-4.0.0 に update すると narou がエラーで止まる HOT 5
- WEB UI の update で default_args.update が効かない
- Ubuntuで使用不可のエラー HOT 2
- Split large epubs HOT 4
- split epubs based on groups not size HOT 1
- 変換できない[解決済み] HOT 3
- last_commit_year の意図 HOT 3
- Windows で使っている Java が Adopt Open JDK だと "AozoraEpub3でEPUBに変換" するときにエラーになる HOT 12
- 「JavaがインストールされていないかAozoraEpub3実行時にエラーが発生しました。EPUBを作成出来ませんでした」というエラー発生 HOT 8
- メールで送信がタイトルではなく全てをIDで送信されている事になりました。 HOT 6
- IO#write は単一引数でなくなった
- 外部プログラム呼び出しパスのUnicode化 HOT 2
- web UI エラー?タッチ反応なし HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from narou.