Coder Social home page Coder Social logo

Comments (2)

whiteleaf7 avatar whiteleaf7 commented on June 12, 2024

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.

topstone avatar topstone commented on June 12, 2024

スタンス的には 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.