Giter VIP home page Giter VIP logo

stripe-iiftoqbo's Issues

Nil value issues

Using Ubuntu 18.04.2 LTS
If I run the last release in ruby-2.6.3 I get

/home/*****/.rvm/gems/ruby-2.6.3/gems/stripe-iiftoqbo-0.1.4/lib/ofx.rb:44: warning: BigDecimal.new is deprecated; use BigDecimal() method instead.

An IFF file is generated with header but no data.

In ruby-2.1.0 in an attempt to avoid the deprecation issue I get:

/home/*****/.rvm/gems/ruby-2.1.0/gems/stripe-iiftoqbo-0.1.4/lib/ofx/transaction.rb:11:in `initialize': no implicit conversion of nil into String (TypeError)
        from /home/clive/.rvm/gems/ruby-2.1.0/gems/stripe-iiftoqbo-0.1.4/lib/ofx/transaction.rb:11:in `new'
        from /home/clive/.rvm/gems/ruby-2.1.0/gems/stripe-iiftoqbo-0.1.4/lib/ofx/transaction.rb:11:in `trnamt='
        from /home/clive/.rvm/gems/ruby-2.1.0/gems/stripe-iiftoqbo-0.1.4/lib/stripe-iiftoqbo.rb:159:in `block (2 levels) in to_qbo'
        from /home/clive/.rvm/gems/ruby-2.1.0/gems/stripe-iiftoqbo-0.1.4/lib/ofx.rb:49:in `transaction'
        from /home/clive/.rvm/gems/ruby-2.1.0/gems/stripe-iiftoqbo-0.1.4/lib/stripe-iiftoqbo.rb:157:in `block in to_qbo'
        from /home/clive/.rvm/gems/ruby-2.1.0/gems/stripe-iiftoqbo-0.1.4/lib/stripe-iiftoqbo.rb:156:in `each'
        from /home/clive/.rvm/gems/ruby-2.1.0/gems/stripe-iiftoqbo-0.1.4/lib/stripe-iiftoqbo.rb:156:in `to_qbo'
        from /home/clive/.rvm/gems/ruby-2.1.0/gems/stripe-iiftoqbo-0.1.4/bin/stripe-iiftoqbo:58:in `<top (required)>'
        from /home/clive/.rvm/gems/ruby-2.1.0/bin/stripe-iiftoqbo:23:in `load'
        from /home/clive/.rvm/gems/ruby-2.1.0/bin/stripe-iiftoqbo:23:in `<main>'
        from /home/clive/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:24:in `eval'
        from /home/clive/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:24:in `<main>'

I cannot figure out what is returning the nil value that the code is unable to handle. Could this be due to a change in Stripe's IIF format?

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.