2016/11/14分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
- Remove deprecated method
ActiveSupport::Cache::FileStore#key_file_path
- Remove deprecated method
ActiveSupport::Cache::MemCacheStore#escape_key
- Remove deprecated method
ActiveSupport::Cache::Strategy::LocalCache::LocalStore#set_cache_value
- Remove deprecated method
ActiveSupport::Cache::Store#namespaced_key
- Remove deprecated file
active_support/core_ext/kernel/debugger.rb
- Remove deprecated method
Module.local_constants
- Remove deprecated file
active_support/core_ext/module/method_transplanting.rb
- Remove deprecated file
active_support/core_ext/struct.rb
- Remove deprecated file
active_support/core_ext/time/marshal.rb
- Remove deprecated method
ActiveSupport::HashWithIndifferentAccess.new_from_hash_copying_default
- Remove deprecated
:prefix
option fromnumber_to_human_size
- Remove deprecated methods
Module.qualified_const_defined?
,Module.qualified_const_get
andModule.qualified_const_set
- Remove deprecated constant
MissingSourceFile
- Remove deprecated method
alias_method_chain
- Remove deprecated method
Numeric#to_formatted_s
- Remove deprecated separator argument from
parameterize
- Remove deprecated class
ActiveSupport::Concurrency::Latch
Use literal values in assertions
activesupport/test/json/encoding_test.rb
の修正です。
jsonのテストでリテラル(1.0 / 0
-> Float::INFINITY
、0.0 / 0
-> Float::INFINITY
)を使用するよう修正しています。
が、0.0 / 0
をINFINITY
に置き換えてるのは間違い(Float::NAN
が正しい)で、後ほど修正されています。
activesupport/test/json/encoding_test.rb
の修正です。
先のコミットで0.0 / 0
の置き換えにFloat::INFINITY
を使用してしまったのを、Float::NAN
を使用するよう修正しています。
Fix typo in constant reference
activesupport/test/json/encoding_test.rb
の修正です。
Float::NAN
をFloat:NAN
にタイポしていたのを修正しています。
actionview/lib/action_view/helpers/asset_url_helper.rb
、
actionview/lib/action_view/layouts.rb
のdocの修正です。
doc内のProc
を等幅フォントで表示する為に+
で囲むよう修正、+Proc & Symbol+
となっていたのを、+Proc+ and +Symbol+
に修正しています。
Avoid build_preloader
if preloading is not needed
activerecord/lib/active_record/relation.rb
の修正です。
ActiveRecord::Relation#exec_queries
で、preloadが不要な場合、build_preloader
をよばないよう修正しています。
Remove deprecated key_file_path
activesupport/lib/active_support/cache/file_store.rb
の修正です。
deprecatedになっていたActiveSupport::Cache::FileStore#key_file_path
メソッドを削除しています。
activesupport/lib/active_support/cache/mem_cache_store.rb
の修正です。
deprecatedになっていたActiveSupport::Cache::MemCacheStore#escape_key
メソッドを削除しています。
Remove deprecated set_cache_value
activesupport/lib/active_support/cache/strategy/local_cache.rb
の修正です。
deprecatedになっていたActiveSupport::Cache::Strategy::LocalCache::LocalStore#set_cache_value
メソッドを削除しています。
Remove deprecated namespaced_key
activesupport/lib/active_support/cache.rb
の修正です。
deprecatedになっていたActiveSupport::Cache::Store#namespaced_key
メソッドを削除しています。
Remove deprecated kernel debugger file
activesupport/lib/active_support/core_ext/kernel/debugger.rb
の修正です。
deprecatedになっていたdebugger.rbを削除しています。
Remove deprecated local_constants
activesupport/lib/active_support/core_ext/module/introspection.rb
の修正です。
deprecatedになっていたModule.local_constants
メソッドを削除しています。
Remove deprecated module method_transplanting file
activesupport/lib/active_support/core_ext/module/method_transplanting.rb
の修正です。
deprecatedになっていたmethod_transplanting.rb
を削除しています。
activesupport/test/core_ext/numeric_ext_test.rb
の修正です。
Bignumクラスの値を作成する為にあった不要なループ処理を削除しています。
b = 2**64
- b *= b until Bignum === b
2**64
の時点でBignumクラスのデータが作成されている為。
(2**64).class # => Bignum
Remove deprecated struct core_ext file
activesupport/lib/active_support/core_ext/struct.rb
の修正です。
deprecatedになっていたcore_ext/struct.rb
を削除しています。
Remove deprecated time marshal core_ext file
activesupport/lib/active_support/core_ext/time/marshal.rb
の修正です
deprecatedになっていたcore_ext/time/marshal.rb
を削除しています。
Remove deprecated new_from_hash_copying_default
activesupport/lib/active_support/hash_with_indifferent_access.rb
の修正です。
deprecatedになっていたActiveSupport::HashWithIndifferentAccess.new_from_hash_copying_default
メソッドを削除しています。
Remove deprecated :prefix option
activesupport/lib/active_support/number_helper/number_to_human_size_converter.rb
の修正です。
deprecatedになっていたnumber_to_human_size
メソッドのprefixオプションを削除しています。
activesupport/CHANGELOG.md
の修正です。
ここまでのdeprecatedの削除対応について、まとめてentryを追加しています。
use correct value in example [ci skip]
actioncable/lib/action_cable/helpers/action_cable_helper.rb
のdocの修正です。
action_cable_meta_tag
メソッドのdoc内にあるexampleで、'data-turbolinks-track' => true
を指定したのですが、turbolinks 5系からはtrue
ではなくreload
を使用する必要がある為、その旨修正しています。
Fix NameError: undefined local variable or method result
ctiverecord/lib/active_record/connection_adapters/mysql/database_statements.rb
の修正です。
execute
の実行結果を格納する変数のscopeがおかしい為に、MySQL + prepared_statementsを使用している場合に、NameError
(undefined local variable or method result
)が発生してしまうバグがあったのを修正しています。
Call spawn
and bang method for none
activerecord/lib/active_record/relation/query_methods.rb
の修正です。
ActiveRecord::QueryMethods#none
メソッドで、独自に処理を定義していたのを、none!
メソッドを呼び出すよう修正しています。
def none - where("1=0").extending!(NullRelation) + spawn.none! end
他のquery methodと合わせる為、との事です。
Merge pull request #26222 from vipulnsward/26134-fix
actionpack/lib/action_dispatch/middleware/debug_exceptions.rb
の修正です。
DebugExceptions
middleware で複数行のlogを出力する際に、1行毎にlogger.fatal
を呼んでいたのを、logを1行にまとめてlogger.fatal
の呼び出しを1回で済ませるよう修正しています。
def log_array(logger, array) - array.map { |line| logger.fatal line } + if logger.formatter && logger.formatter.respond_to?(:tags_text) + logger.fatal array.join("\n#{logger.formatter.tags_text}") + else + logger.fatal array.join("\n") + end end
Merge pull request #27007 from maclover7/jm-fix-26912
actionpack/lib/action_dispatch/http/mime_negotiation.rb
の修正です。
CONTENT_TYPE
の値が空だった場合に、NoMethodError
が発生してしまうバグがあったのを修正しています。
Remove deprecated Module.qualified_const_get/set/defined?
Active Supportの修正です。
deprecatedになっていた Module.qualified_const_defined?
, Module.qualified_const_get
, Module.qualified_const_set
メソッドを削除しています。
Remove deprecated constant MissingSourceFIle
activesupport/lib/active_support/core_ext/load_error.rb
の修正です。
deprecatedになっていたMissingSourceFile
定数を削除しています。
Add :skip_sprockets
to Rails::PluginBuilder::PASSTHROUGH_OPTIONS
railties/lib/rails/generators/rails/plugin/plugin_generator.rb
の修正です。
rails engineをnewする際にskip_sprockets
オプションを使用出来るようにする為に、Rails::PluginBuilder::PASSTHROUGH_OPTIONS
に:skip_sprockets
を追加しています。
Remove deprecated method alias_method_chain
activesupport/lib/active_support/core_ext/module/aliasing.rb
の修正です。
deprecatedになっていたalias_method_chain
メソッドを削除しています。
Remove deprecated method Numeric#to_formatted_s
activesupport/lib/active_support/core_ext/numeric/conversions.rb
の修正です。
deprecatedになっていたNumeric#to_formatted_s
メソッドを削除しています。
Remove deprecated separator argument from parameterize
activesupport/lib/active_support/core_ext/string/inflections.rb
、
activesupport/lib/active_support/inflector/transliterate.rb
の修正です。
deprecatedになっていたparameterize
メソッドのseparator引数を削除しています。
Remove deprecated class ActiveSupport::Concurrency::Latch
activesupport/lib/active_support/concurrency/latch.rb
の修正です。
deprecatedになっていたActiveSupport::Concurrency::Latch
クラスを削除しています。