Giter Club home page Giter Club logo

sdk-ruby's People

Contributors

dazuma avatar duglin avatar f-mer avatar github-actions[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sdk-ruby's Issues

Release PR #40 failed with errors

A release job failed.

Release PR: #40
Commit: 2855c15


Release job completed with errors.

Failed to release cloud_events 0.2.0:
Command failed with exit code 1: ["gem", "push", "pkg/cloud_events-0.2.0.gem"]

undefined method `set_encoding' for #<Rack::Lint::InputWrapper> when using config.ru

Issue:

  • NoMethodError -- 'set_encoding' for Rack::Lint::InputWrapper when using a config.ru file to spin up Sinatra Application for modular or classic using the provided boiler plate on the readme. Works fine when using classic without config.ru

System info

  • Tried rvm 2.7.2 and rvm 3.0.0
  • Bundler, sinatra 2.0, cloud_events 2.0
  • Catlina

bug: extra attributes are not validated against the spec

When extra attributes are added to the CloudEvent, they are not being checked for compliance.

The spec says:

CloudEvents attribute names MUST consist of lower-case letters ('a' to 'z') or digits ('0' to '9') from the ASCII character set. Attribute names SHOULD be descriptive and terse and SHOULD NOT exceed 20 characters in length.

But currently anything can be added and it is accepted. It should throw an AttributeException as listed in the errors.rb file.

Stalled at 0.7?

This SDK appears to have stalled at 0.7, do you need some help?

feat: Add kafka binding

๐Ÿ‘‹ https://github.com/cloudevents/spec/blob/main/cloudevents/bindings/kafka-protocol-binding.md contains a few intricacies which differ from the http specification, making the existing bindings this sdk supports unsuitable for kafka transport. Currently our org extends the http binding and transforms attributes to fit the above specification, however we would be interested in contributing back a specific kafka binding to standardise on approaches. Would you be open to such contribution?

require cloudevents error, cannot load such file -- cloudevents (LoadError)

I try to import ruby cloudevent sdk into my project, and I have already installed sinatra and cloudevents using gem, but unfortunately, it reports require error as following:
/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require': cannot load such file -- cloudevents (LoadError) from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require'
from rubydownserver.rb:10:in `

'

the installed package is under following
root@xxx05422:~/mytest# gem list --local

*** LOCAL GEMS ***

bigdecimal (1.2.8)
bundle (0.0.1)
bundler (1.11.2)
cloudevents (0.0.0)
did_you_mean (1.0.0)
httpclient (2.8.3)
io-console (0.4.5)
json (1.8.3)
minitest (5.11.3, 5.8.4)
molinillo (0.4.3)
mustermann (1.0.3)
net-http-persistent (2.9.4)
net-telnet (0.1.1)
power_assert (0.2.7)
psych (2.0.17)
rack (2.0.6)
rack-protection (2.0.5)
rake (12.3.2, 10.5.0)
rdoc (4.2.1)
rubyzip (1.2.2)
sinatra (2.0.5)
soap4r (1.5.8)
test-unit (3.1.7)
thor (0.19.1)
tilt (2.0.9)
zip-zip (0.3)

Remove deprecated interfaces when advancing version to 1.0

A list of the items to remove:

  • HttpContentError
  • HttpBinding#decode_rack_env
  • HttpBinding#encode_structured_content
  • HttpBinding#encode_batched_content
  • HttpBinding#encode_binary_content
  • :attributes keyword argument for V0 and V1 event classes
  • deprecated_name positional argument for HttpBinding#register_formatter

to_h does not perform a deep dup leaving the resulting hash partially frozen

When calling to_hon an event, if the data attribute contains a nested hash, the nested hashes will remain frozen. To fix this we can use Marshal.load(Marshal.dump(@attributes)) instead of @attributes.dup. Alternatively, we could clone deep_dup from Rails, though it does miss some edge cases.

I have a PR prepared if you would like me to submit it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.