2015/06/01分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Use any?
rather than present?
to check args
actionpack/lib/action_controller/test_case.rb
、
actionpack/lib/action_dispatch/testing/integration.rb
の修正です。
引数の配列に値が設定されているかどうか確認するのに、present?
メソッドを使用していたのを、any?
メソッドを使用するよう修正しています。
present
メソッドはActiveSupportで提供しているメソッドであり、極力他のライブラリに依存しないようにする為に、Ruby標準のany?
メソッドを使用するようにしたとの事です。
guides/source/documents.yaml
の修正です。
各guideのdescription
にあった、タイポ・グラマーの修正を行っています。
rails guideのDevelopment Dependencies Install
の修正です。
The Hard Way
の項、see section below
をsee section above
にタイポしていたのを修正しています。
Remove description of dependency_loading
option
rails guideのConfiguring Rails Applications
の修正です。
既に存在しないconfig.dependency_loading
についての説明を削除しています。
Fix a range of values for parameters of the Time#change
activesupport/lib/active_support/core_ext/time/calculations.rb
の修正です。
Time#change
メソッドのnsec
オプションに999999999を指定した場合に、エラーにならないよう修正しています。
以下のような値を指定した場合に、エラーになってしまっていたとの事です。
Time.new(2015, 5, 9, 10, 00, 00, '+03:00').change(nsec: 999999999) # => ArgumentError: argument out of range Time.new(2015, 5, 9, 10, 00, 00, '+03:00').change(usec: Rational(999999999, 1000)) # => ArgumentError: argument out of range
[ci skip] Used 'instance_variables' in example for consistency.
rails guideのDebugging Rails Applications
の修正です。
byebugの使い方に説明している箇所で、instance_variables
メソッドについて説明している箇所で、実際の実行結果とexampleが違う箇所があったのを修正しています。
actually test what the name says
actionpack/test/controller/http_token_authentication_test.rb
の修正です。
Authorization
ヘッダーのテストで、実際のデータに近い値でテストを行うよう修正しています。
actionpack/lib/action_controller/metal/http_authentication.rb
の修正です。
Authorization-Header
のtokenキーワードにBearer
を指定できるよう修正しています。
RFC 6750 - The OAuth 2.0 Authorization Framework: Bearer Token Usage によると、Bearer
も指定可能との事です。知らなかった。
[skip ci] Update documentation for QueueAdapters::lookup
activejob/lib/active_job/queue_adapters.rb
のdocの修正です。
QueueAdapters::lookup
メソッドにdocを追加しています。
Map :bigint as NUMBER(19) sql_type by using :limit => 19
for Oracle
activerecord/test/cases/connection_adapters/type_lookup_test.rb
、
activerecord/test/cases/migration/change_schema_test.rb
の修正です。
OracleAdapterの場合、bigintを指定した場合NUMBER(19)
にmapされるので、テストを`NUMBER(19)'に変換される旨内容を修正しています。
if current_adapter?(:OracleAdapter) - assert_equal 'NUMBER(8)', eight.sql_type + assert_equal 'NUMBER(19)', eight.sql_type elsif current_adapter?(:SQLite3Adapter)
Use --no-document option instead of --no-rdoc and --no-ri option
install.rb
の修正です。
gemのインストールの際、--no-ri --no-rdoc
オプションの代わりに、--no-document
オプションを使用するよう修正しています。--no-ri
、--no-rodc
オプションがdeprecateになっていたんですね。知らなかった。ご参考: Command Reference - RubyGems Guides 。