Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #54

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/pb/serializable/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def message(klass)
# @raise [Pb::Serializer::UnknownFieldError] if the field does not defined in .proto
# @raise [Pb::Serializer::InvalidAttributeOptionError] if unknown options are passed
def attribute(name, opts = {})
raise ::Pb::Serializer::MissingMessageTypeError, "message specificaiton is missed" unless __pb_serializer_message_class
raise ::Pb::Serializer::MissingMessageTypeError, "message specification is missed" unless __pb_serializer_message_class

fd = __pb_serializer_message_class.descriptor.find { |fd| fd.name.to_sym == name }

Expand Down
4 changes: 2 additions & 2 deletions lib/pb/serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def missing_field_behavior=(v)
class << self
# @example
# Pb::Serializer.configuration do |c|
# c.missing_field_behavior = :raise # :raise, :warn or :ignore (defualt: :raise)
# c.missing_field_behavior = :raise # :raise, :warn or :ignore (default: :raise)
# end
# @yield [c]
# @yieldparam [Configuration] config
Expand All @@ -55,7 +55,7 @@ def configure

# @return [Pb::Serializer::Configuration]
def configuration
@configuraiton ||= Configuration.new
@configuration ||= Configuration.new
end

# @return [Logger]
Expand Down
2 changes: 1 addition & 1 deletion spec/examples/errors_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}.to raise_error Pb::Serializer::InvalidAttributeOptionError
end

it 'raises an error when unknown fied is declared' do
it 'raises an error when unknown field is declared' do
expect {
Class.new(Pb::Serializer::Base) do
message TestFixture::Simple::Message
Expand Down