未验证 提交 96e69b5a 编写于 作者: R Ryuta Kamizono 提交者: GitHub

Merge pull request #34049 from sharang-d/marshalling-text-changes

Fix spellings for 'unmarshall(ing/ed)' & 'marshall(ing/ed)'
...@@ -29,7 +29,7 @@ def __getobj__ #:nodoc: ...@@ -29,7 +29,7 @@ def __getobj__ #:nodoc:
@mail_message ||= processed_mailer.message @mail_message ||= processed_mailer.message
end end
# Unused except for delegator internals (dup, marshaling). # Unused except for delegator internals (dup, marshalling).
def __setobj__(mail_message) #:nodoc: def __setobj__(mail_message) #:nodoc:
@mail_message = mail_message @mail_message = mail_message
end end
......
...@@ -236,9 +236,9 @@ def encode! ...@@ -236,9 +236,9 @@ def encode!
end end
# Exceptions are marshaled when using the parallel test runner with DRb, so we need # Exceptions are marshalled when using the parallel test runner with DRb, so we need
# to ensure that references to the template object can be marshaled as well. This means forgoing # to ensure that references to the template object can be marshalled as well. This means forgoing
# the marshalling of the compiler mutex and instantiating that again on unmarshaling. # the marshalling of the compiler mutex and instantiating that again on unmarshalling.
def marshal_dump # :nodoc: def marshal_dump # :nodoc:
[ @source, @identifier, @handler, @compiled, @original_encoding, @locals, @virtual_path, @updated_at, @formats, @variants ] [ @source, @identifier, @handler, @compiled, @original_encoding, @locals, @virtual_path, @updated_at, @formats, @variants ]
end end
......
...@@ -217,7 +217,7 @@ def assert_valid_value(*) ...@@ -217,7 +217,7 @@ def assert_valid_value(*)
assert_equal({ foo: "1" }, attributes.to_hash) assert_equal({ foo: "1" }, attributes.to_hash)
end end
test "marshaling dump/load legacy materialized attribute hash" do test "marshalling dump/load legacy materialized attribute hash" do
builder = AttributeSet::Builder.new(foo: Type::String.new) builder = AttributeSet::Builder.new(foo: Type::String.new)
attributes = builder.build_from_database(foo: "1") attributes = builder.build_from_database(foo: "1")
......
...@@ -950,39 +950,39 @@ def test_rfc3339_parse ...@@ -950,39 +950,39 @@ def test_rfc3339_parse
end end
class TimeExtMarshalingTest < ActiveSupport::TestCase class TimeExtMarshalingTest < ActiveSupport::TestCase
def test_marshaling_with_utc_instance def test_marshalling_with_utc_instance
t = Time.utc(2000) t = Time.utc(2000)
unmarshaled = Marshal.load(Marshal.dump(t)) unmarshalled = Marshal.load(Marshal.dump(t))
assert_equal "UTC", unmarshaled.zone assert_equal "UTC", unmarshalled.zone
assert_equal t, unmarshaled assert_equal t, unmarshalled
end end
def test_marshaling_with_local_instance def test_marshalling_with_local_instance
t = Time.local(2000) t = Time.local(2000)
unmarshaled = Marshal.load(Marshal.dump(t)) unmarshalled = Marshal.load(Marshal.dump(t))
assert_equal t.zone, unmarshaled.zone assert_equal t.zone, unmarshalled.zone
assert_equal t, unmarshaled assert_equal t, unmarshalled
end end
def test_marshaling_with_frozen_utc_instance def test_marshalling_with_frozen_utc_instance
t = Time.utc(2000).freeze t = Time.utc(2000).freeze
unmarshaled = Marshal.load(Marshal.dump(t)) unmarshalled = Marshal.load(Marshal.dump(t))
assert_equal "UTC", unmarshaled.zone assert_equal "UTC", unmarshalled.zone
assert_equal t, unmarshaled assert_equal t, unmarshalled
end end
def test_marshaling_with_frozen_local_instance def test_marshalling_with_frozen_local_instance
t = Time.local(2000).freeze t = Time.local(2000).freeze
unmarshaled = Marshal.load(Marshal.dump(t)) unmarshalled = Marshal.load(Marshal.dump(t))
assert_equal t.zone, unmarshaled.zone assert_equal t.zone, unmarshalled.zone
assert_equal t, unmarshaled assert_equal t, unmarshalled
end end
def test_marshalling_preserves_fractional_seconds def test_marshalling_preserves_fractional_seconds
t = Time.parse("00:00:00.500") t = Time.parse("00:00:00.500")
unmarshaled = Marshal.load(Marshal.dump(t)) unmarshalled = Marshal.load(Marshal.dump(t))
assert_equal t.to_f, unmarshaled.to_f assert_equal t.to_f, unmarshalled.to_f
assert_equal t, unmarshaled assert_equal t, unmarshalled
end end
def test_last_quarter_on_31st def test_last_quarter_on_31st
......
...@@ -38,7 +38,7 @@ If you're upgrading an existing application, it's a great idea to have good test ...@@ -38,7 +38,7 @@ If you're upgrading an existing application, it's a great idea to have good test
Rails 3.0 requires Ruby 1.8.7 or higher. Support for all of the previous Ruby versions has been dropped officially and you should upgrade as early as possible. Rails 3.0 is also compatible with Ruby 1.9.2. Rails 3.0 requires Ruby 1.8.7 or higher. Support for all of the previous Ruby versions has been dropped officially and you should upgrade as early as possible. Rails 3.0 is also compatible with Ruby 1.9.2.
TIP: Note that Ruby 1.8.7 p248 and p249 have marshaling bugs that crash Rails 3.0. Ruby Enterprise Edition have these fixed since release 1.8.7-2010.02 though. On the 1.9 front, Ruby 1.9.1 is not usable because it outright segfaults on Rails 3.0, so if you want to use Rails 3 with 1.9.x jump on 1.9.2 for smooth sailing. TIP: Note that Ruby 1.8.7 p248 and p249 have marshalling bugs that crash Rails 3.0. Ruby Enterprise Edition have these fixed since release 1.8.7-2010.02 though. On the 1.9 front, Ruby 1.9.1 is not usable because it outright segfaults on Rails 3.0, so if you want to use Rails 3 with 1.9.x jump on 1.9.2 for smooth sailing.
### Rails Application object ### Rails Application object
......
...@@ -26,7 +26,7 @@ If you're upgrading an existing application, it's a great idea to have good test ...@@ -26,7 +26,7 @@ If you're upgrading an existing application, it's a great idea to have good test
Rails 3.1 requires Ruby 1.8.7 or higher. Support for all of the previous Ruby versions has been dropped officially and you should upgrade as early as possible. Rails 3.1 is also compatible with Ruby 1.9.2. Rails 3.1 requires Ruby 1.8.7 or higher. Support for all of the previous Ruby versions has been dropped officially and you should upgrade as early as possible. Rails 3.1 is also compatible with Ruby 1.9.2.
TIP: Note that Ruby 1.8.7 p248 and p249 have marshaling bugs that crash Rails. Ruby Enterprise Edition have these fixed since release 1.8.7-2010.02 though. On the 1.9 front, Ruby 1.9.1 is not usable because it outright segfaults, so if you want to use 1.9.x jump on 1.9.2 for smooth sailing. TIP: Note that Ruby 1.8.7 p248 and p249 have marshalling bugs that crash Rails. Ruby Enterprise Edition have these fixed since release 1.8.7-2010.02 though. On the 1.9 front, Ruby 1.9.1 is not usable because it outright segfaults, so if you want to use 1.9.x jump on 1.9.2 for smooth sailing.
### What to update in your apps ### What to update in your apps
......
...@@ -44,7 +44,7 @@ to their respective adapters. Active Job comes pre-configured with an inline ...@@ -44,7 +44,7 @@ to their respective adapters. Active Job comes pre-configured with an inline
runner that executes jobs right away. runner that executes jobs right away.
Jobs often need to take Active Record objects as arguments. Active Job passes Jobs often need to take Active Record objects as arguments. Active Job passes
object references as URIs (uniform resource identifiers) instead of marshaling object references as URIs (uniform resource identifiers) instead of marshalling
the object itself. The new [Global ID](https://github.com/rails/globalid) the object itself. The new [Global ID](https://github.com/rails/globalid)
library builds URIs and looks up the objects they reference. Passing Active library builds URIs and looks up the objects they reference. Passing Active
Record objects as job arguments just works by using Global ID internally. Record objects as job arguments just works by using Global ID internally.
......
...@@ -41,7 +41,7 @@ Rails generally stays close to the latest released Ruby version when it's releas ...@@ -41,7 +41,7 @@ Rails generally stays close to the latest released Ruby version when it's releas
* Rails 3.2.x is the last branch to support Ruby 1.8.7. * Rails 3.2.x is the last branch to support Ruby 1.8.7.
* Rails 3 and above require Ruby 1.8.7 or higher. Support for all of the previous Ruby versions has been dropped officially. You should upgrade as early as possible. * Rails 3 and above require Ruby 1.8.7 or higher. Support for all of the previous Ruby versions has been dropped officially. You should upgrade as early as possible.
TIP: Ruby 1.8.7 p248 and p249 have marshaling bugs that crash Rails. Ruby Enterprise Edition has these fixed since the release of 1.8.7-2010.02. On the 1.9 front, Ruby 1.9.1 is not usable because it outright segfaults, so if you want to use 1.9.x, jump straight to 1.9.3 for smooth sailing. TIP: Ruby 1.8.7 p248 and p249 have marshalling bugs that crash Rails. Ruby Enterprise Edition has these fixed since the release of 1.8.7-2010.02. On the 1.9 front, Ruby 1.9.1 is not usable because it outright segfaults, so if you want to use 1.9.x, jump straight to 1.9.3 for smooth sailing.
### The Update Task ### The Update Task
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册