jage / rbankgiro Goto Github PK
View Code? Open in Web Editor NEW:moneybag: Parse Bankgiro transaction files in Ruby
License: Other
:moneybag: Parse Bankgiro transaction files in Ruby
License: Other
(in /Users/jage/Source/rbankgiro)
rake aborted!
/Users/jage/Source/rbankgiro/Rakefile:13: invalid multibyte char (US-ASCII)
/Users/jage/Source/rbankgiro/Rakefile:13: invalid multibyte char (US-ASCII)
/Users/jage/Source/rbankgiro/Rakefile:13: syntax error, unexpected $end, expecting ']'
gemspec.authors = ["Johan Eckerström"]
^
(See full trace by running task with --trace)
Add a multiple transaction test
(in /ustorage/home/jage/.gem/ruby/1.8/gems/rbankgiro-0.1.3)
Jeweler not available. Install it with: sudo gem install jeweler
/usr/local/bin/ruby -I"lib:lib:test" "/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/test_transaction.rb" "test/test_transactions.rb"
Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
E...FEF
Finished in 0.039323 seconds.
Error:
test_transaction(TestTransaction):
NoMethodError: undefined method reduce' for [1]:Array ./test/../lib/rbankgiro.rb:97:in
parse_row'
./test/../lib/rbankgiro.rb:40:in initialize' ./test/../lib/rbankgiro.rb:38:in
each_line'
./test/../lib/rbankgiro.rb:38:in initialize' ./test/test_transaction.rb:5:in
new'
./test/test_transaction.rb:5:in `test_transaction'
Failure:
test_missing_transaction(TestTransactions) [./test/test_transactions.rb:13]:
Rbankgiro::PartSumError exception expected but was
Class:
Message: <"undefined method reduce' for []:Array"> ---Backtrace--- ./test/../lib/rbankgiro.rb:97:in
parse_row'
./test/../lib/rbankgiro.rb:40:in initialize' ./test/../lib/rbankgiro.rb:38:in
each_line'
./test/../lib/rbankgiro.rb:38:in initialize' ./test/test_transactions.rb:14:in
new'
./test/test_transactions.rb:14:in `test_missing_transaction'
Error:
test_one_transaction(TestTransactions):
NoMethodError: undefined method reduce' for [1]:Array ./test/../lib/rbankgiro.rb:97:in
parse_row'
./test/../lib/rbankgiro.rb:40:in initialize' ./test/../lib/rbankgiro.rb:38:in
each_line'
./test/../lib/rbankgiro.rb:38:in initialize' ./test/test_transactions.rb:5:in
new'
./test/test_transactions.rb:5:in `test_one_transaction'
Failure:
test_transaction_count_error(TestTransactions) [./test/test_transactions.rb:37]:
Rbankgiro::TransactionCountError exception expected but was
Class:
Message: <"undefined method reduce' for [1, 0]:Array"> ---Backtrace--- ./test/../lib/rbankgiro.rb:97:in
parse_row'
./test/../lib/rbankgiro.rb:40:in initialize' ./test/../lib/rbankgiro.rb:38:in
each_line'
./test/../lib/rbankgiro.rb:38:in initialize' ./test/test_transactions.rb:38:in
new'
./test/test_transactions.rb:38:in `test_transaction_count_error'
7 tests, 5 assertions, 2 failures, 2 errors
rake aborted!
Command failed with status (1): [/usr/local/bin/ruby -I"lib:lib:test" "/usr...]
(See full trace by running task with --trace)
Rbankgiro uses Time
for transaction dates. Should use Date
instead, with better tests.
README file with example
Rbankgiro::Transactions.new
should be more flexible, now it's only usable if you store the files in a filesystem. If you say store it in a database you can't use Rbankgiro
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.