Added data_encoded, data_decoded? and data? methods to CloudEvents::Event::V1, added :data_encoded as an input attribute, and clarified the encoding semantics of each field.
Changed :attributes keyword argument in event constructors to :set_attributes, to avoid any possible collision with a real extension attribute name. (The old argument name is deprecated and will be removed in 1.0.)
Fixed various inconsistencies in the data encoding behavior of JsonFormat and HttpBinding.
Support passing a data content encoder/decoder into JsonFormat#encode_event and JsonFormat#decode_event.
Provided TextFormat to handle media types with trivial encoding.
Provided Format::Multi to handle checking a series of encoders/decoders.
Full change list:
data_encoded
,data_decoded?
anddata?
methods to CloudEvents::Event::V1, added:data_encoded
as an input attribute, and clarified the encoding semantics of each field.:attributes
keyword argument in event constructors to:set_attributes
, to avoid any possible collision with a real extension attribute name. (The old argument name is deprecated and will be removed in 1.0.)