Code Monkey home page Code Monkey logo

ruby-xdr's People

Contributors

abuiles avatar bekkibolthouse avatar charlie-wasp avatar dependabot[bot] avatar github-actions[bot] avatar megabug avatar nebolsin avatar nullstyle avatar

Stargazers

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

Watchers

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

ruby-xdr's Issues

Fix build warnings.

We get the following warnings when building a new version of this gem.

WARNING:  license value 'Apache 2.0' is invalid.  Use a license identifier from
http://spdx.org/licenses or 'Nonstandard' for a nonstandard license.
Did you mean 'Apache-2.0'?
WARNING:  open-ended dependency on activesupport (>= 5.2.0) is not recommended
  if activesupport is semantically versioned, use:
    add_runtime_dependency 'activesupport', '~> 5.2', '>= 5.2.0'
WARNING:  open-ended dependency on activemodel (>= 5.2.0) is not recommended
  if activemodel is semantically versioned, use:
    add_runtime_dependency 'activemodel', '~> 5.2', '>= 5.2.0'
WARNING:  open-ended dependency on guard-rspec (>= 0, development) is not recommended
  use a bounded requirement, such as '~> x.y'
WARNING:  open-ended dependency on simplecov (>= 0, development) is not recommended
  use a bounded requirement, such as '~> x.y'
WARNING:  See http://guides.rubygems.org/specification-reference/ for help

Add Assertions for `from_xdr` that ensures that the entire string is consumed

Since XDR is not prefix-free, you can interpret data incorrectly if you provide the deserialize from the wrong class. For example, in stellar-core, Transaction is a prefix of TransactionEnvelope, structure wise, and so you can successfully read a Transaction from what is an encoded TransactionEnvelope.

The only indication that you did something wrong is that there is unconsumed input, and so we should notify users of this.

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.