なるようになるブログ

読書感想文かrailsについてかrubyについてか

rails commit log流し読み(2015/09/02)

2015/09/02分のコミットです。

CHANGELOGへの追加はありませんでした。


Require sprockets-rails >= 2

rails.gemspecの修正です。

sprockets-railsについて、バージョンの指定がなかったのを、'>= 2.0.0'を指定するよう修正しています。

master branchで新規にrailsアプリを作成し、bundle installを実行した際に、sprockets 0.0.1がインストールされてしまう、という問題があったらしく、バージョン指定を追加したとの事です。


Fix: make Travis CI happy about guides again

バグレポート用ファイルの修正です。

Gemfileに、sprocketssprockets-railssass-railsの指定を追加しています。

+  gem 'sprockets', github: 'rails/sprockets'
+  gem 'sprockets-rails', github: 'rails/sprockets-rails'
+  gem 'sass-rails', github: 'rails/sass-rails'

Rails自体が上記ファイルに依存している為なのですが、これ何でいままで問題無かったんですかねえ。


Include MIT-LICENSE in railties gem

railties/railties.gemspecの修正です。

gemに入れるファイルの一覧に、MTI-LICENSEを追加しています。他のコンポーネントは入れていたのに、何故かrailtiesだけ入れるのが漏れていたようです。


Remove not used requires

Action Packの修正です。

使用していないファイルのrequireを削除しています。


Add windows version of nokogiri

Gemfile.lockの修正です。

windows versionのnokogiriを追加しています。


Respect scale of the column in the Decimal type

activerecord/lib/active_record/type/decimal.rbの修正です。

Decimal typeのカラムをキャストする際、scaleの値を加味して値を表示するよう修正しています。

type = Decimal.new(precision: 4, scale: 2)
type.cast(Rational(1, 3))  #=> BigDecimal("0.33")

typo "description not clear corrected with proper description and action_controller_overview file Rails' -> Rails" [ci skip]

actionpack/lib/action_controller/metal/helpers.rbのdoc、及び guides/source/action_controller_overview.mdの修正です。

helperメソッドについて説明している箇所のグラマーの修正、及び不要なアポストロフィーがあったのを削除しています。


[ci skip] fix invalid package name for libmysqlclient-dev

rails guidesのDevelopment Dependencies Installの修正です。

Active Record Setupの項、インストールが必要なパッケージ名に誤りがあったのを修正しています。


[ci skip] Add description about which object

activesupport/lib/active_support/notifications.rbのdocの修正です。

ActiveSupport::Notifications.subscribeメソッドの第二引数にobjectを指定する場合、そのobjectはcallメソッドが実装されている必要がある旨、説明を追加しています。


Fix route creation when format is a blank string

actionpack/lib/action_dispatch/journey/formatter.rbの修正です。

routeを生成する際、formatオプションの値が空だった場合に正しくrouteを生成出来ないバグがあったのを修正しています。