Skip to content
Merged
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ doc/
pkg/
tmp/
features/conformance
vendor/
2 changes: 1 addition & 1 deletion lib/cloud_events/content_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def parse(str)
@subtype_base, @subtype_format = @subtype.split("+", 2)
until str.empty?
str = consume_special(str, ";")
name, str = consume_token(str, downcase: true, error_message: "Faled to parse attribute name")
name, str = consume_token(str, downcase: true, error_message: "Failed to parse attribute name")
str = consume_special(str, "=", error_message: "Failed to find value for attribute #{name}")
val, str = consume_token_or_quoted(str, error_message: "Failed to parse value for attribute #{name}")
@params << [name, val]
Expand Down
2 changes: 1 addition & 1 deletion lib/cloud_events/event/opaque.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module Event
# single event or a batch of events.
#
# The event data is retained in a form that can be reserialized (in a
# structured cotent mode in the same format) but cannot otherwise be
# structured content mode in the same format) but cannot otherwise be
# inspected.
#
# This object is immutable, and Ractor-shareable on Ruby 3.
Expand Down
2 changes: 1 addition & 1 deletion lib/cloud_events/format.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module CloudEvents
#
# Both the keyword arguments recognized and the returned hash members may
# vary from formatter to formatter; similarly, the keyword arguments provided
# and the resturned hash members recognized may also vary for different
# and the returned hash members recognized may also vary for different
# callers. This interface will define a set of common argument and result key
# names, but both callers and formatters must gracefully handle the case of
# missing or extra information. For example, if a formatter expects a certain
Expand Down
2 changes: 1 addition & 1 deletion lib/cloud_events/text_format.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def decode_data(content: nil, content_type: nil, **_other_kwargs)
end

##
# Trivially an event data object using text format.
# Trivially encode an event data object using text format.
# See {CloudEvents::Format#encode_data} for a general description.
#
# Expects `:data` and `:content_type` arguments, and will decline the
Expand Down
2 changes: 1 addition & 1 deletion test/test_content_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
assert Ractor.shareable?(content_type) if defined? Ractor
end

it "recognizes charseet param" do
it "recognizes charset param" do
content_type = CloudEvents::ContentType.new("application/json; charset=utf-8")
assert_equal [["charset", "utf-8"]], content_type.params
assert_equal "utf-8", content_type.charset
Expand Down