Analysing Rakefile and gemspec.
Fixed with commits
TypeError no implicit conversion of nil into String /usr/local/ruby-2.4.0/lib/ruby/2.4.0/fileutils.rb:1447:in `path' /usr/local/ruby-2.4.0/lib/ruby/2.4.0/fileutils.rb:1447:in `block in fu_list' /usr/local/ruby-2.4.0/lib/ruby/2.4.0/fileutils.rb:1447:in `map' /usr/local/ruby-2.4.0/lib/ruby/2.4.0/fileutils.rb:1447:in `fu_list' /usr/local/ruby-2.4.0/lib/ruby/2.4.0/fileutils.rb:186:in `mkdir_p' /var/www/vetoquinol.bbmb.ch/vendor/bundle/ruby/2.4.0/gems/bbmb-2.2.6/lib/bbmb/util/polling_manager.rb:72:in `block in poll' /var/www/vetoquinol.bbmb.ch/vendor/bundle/ruby/2.4.0/gems/bbmb-2.2.6/lib/bbmb/util/polling_manager.rb:66:in `each' /var/www/vetoquinol.bbmb.ch/vendor/bundle/ruby/2.4.0/gems/bbmb-2.2.6/lib/bbmb/util/polling_manager.rb:66:in `poll' /var/www/vetoquinol.bbmb.ch/vendor/bundle/ruby/2.4.0/gems/bbmb-2.2.6/lib/bbmb/util/polling_manager.rb:144:in `block in poll_sources' /var/www/vetoquinol.bbmb.ch/vendor/bundle/ruby/2.4.0/gems/bbmb-2.2.6/lib/bbmb/util/polling_manager.rb:137:in `block in load_sources' /usr/local/ruby-2.4.0/lib/ruby/2.4.0/psych/deprecated.rb:32:in `each' /usr/local/ruby-2.4.0/lib/ruby/2.4.0/psych/deprecated.rb:32:in `load_documents' /var/www/vetoquinol.bbmb.ch/vendor/bundle/ruby/2.4.0/gems/bbmb-2.2.6/lib/bbmb/util/polling_manager.rb:136:in `load_sources' /var/www/vetoquinol.bbmb.ch/vendor/bundle/ruby/2.4.0/gems/bbmb-2.2.6/lib/bbmb/util/polling_manager.rb:143:in `poll_sources' /var/www/vetoquinol.bbmb.ch/vendor/bundle/ruby/2.4.0/gems/bbmb-2.2.6/lib/bbmb/util/updater.rb:13:in `run' /var/www/vetoquinol.bbmb.ch/vendor/bundle/ruby/2.4.0/gems/bbmb-2.2.6/lib/bbmb/util/server.rb:41:in `update' /var/www/vetoquinol.bbmb.ch/vendor/bundle/ruby/2.4.0/gems/bbmb-2.2.6/lib/bbmb/util/server.rb:95:in `block (2 levels) in run_updater' /var/www/vetoquinol.bbmb.ch/vendor/bundle/ruby/2.4.0/gems/bbmb-2.2.6/lib/bbmb/util/server.rb:84:in `loop' /var/www/vetoquinol.bbmb.ch/vendor/bundle/ruby/2.4.0/gems/bbmb-2.2.6/lib/bbmb/util/server.rb:84:in `block in run_updater'
Looking for clues in the log files
grep update log/2017/05/24/app_log D, [2017-05-24T05:00:00.000344 #17798] DEBUG -- : server.rb:94:in `block (2 levels) in run_updater' update starting I, [2017-05-24T05:00:00.000446 #17798] INFO -- : updater.rb:12:in `run' Updated.run started at 2017-05-24 05:00:00 +0200 D, [2017-05-24T05:00:04.212707 #17798] DEBUG -- : server.rb:96:in `block (2 levels) in run_updater' update finished D, [2017-05-24T05:00:04.212815 #17798] DEBUG -- : server.rb:92:in `block (2 levels) in run_updater' updater sleeping 86395.79 seconds. run_only_once_at_startup false
Analysing the code I see that the @backup_dir is not initialized. Also this part of the polling is never touched when running the unit tests.
Fixed the test_poll_message__normal and the underlying problem.
Pushed commits
Create a new file for each currency with the name "Currency_total.csv" summarizing "Income" and "balance" for each day across the three wallet files of each currency. We do not touch: *rate* and *balance_in_usd*.
Added some two currencies and shows the configured currencies in the help with commit Show currencies in help. Add XRP,ETH
We iterate in bin/rapflag over RAPFLAG::Config['currencies'] and RAPFLAG::Config['wallets'] I should inverse the order. But still the History class is initialized for each wallet and each currencies. Is it easier to change the History class or parse at the end each CSV? As we have spec test I will try modifying the History class. Added a global variable to keep track.
Running rapflag -b
and checking the result for BFX and 2016.08.20 reveiled some problems. No. At this date there were no movements. Testing
2017.05.24 showed that the total was correct.
Changed the -c(--clean) flag to (-b, --bitfinex). Also showing the defined currencies in the help text. Pushed commits