Day 25

August 4, 2017 14:34 UTC Team berlin diamonds (Discourse) [2017]Subscribe to this teams's activities

Kaja:

  • read a tutorial on how to build your own gem
  • built my own gem called muncher
  • pushed the gem to rubygems (but the versioning is still an issue I have to learn properly)
  • read and followed the tutorial on how to build a gem with bundler and rake
  • integrated Rspec into my gem and wrote tests for it
  • modified the tests until they got green, no matter which input I gave
  • read the notifications on github and looked into Jens changes to understand them
  • read the drop-box-sdk documentation and tried the delete method
  • started building a remove_old_files method for the drop box plugin, but it is too basic yet

Jen:

  • Created the skeleton for our next plugin (Nextcloud), recycled a lot from the previous plugins: folder hierarchy, files, specs, etc. We only need to define the methods now.
  • Learnt that .present? or .blank? methods are provided by ActiveSupport. This led me to check its documentation and discover many new fancy methods. You can play with ActiveSupport stuff in irb if you write require 'active_support' and after also require the method you want to use, for example: require 'active_support/core_ext/object/blank'. Then you will be able to ask irb: a = []; a.blank? => true . The paths to require those files are in the documentation.
  • Started a tutorial about unit and e2e testing (testing with Mocha, Chai, Sinon and Protractor & Webdriver). Learnt to write nested test suites with chai.expect, wrote some example failing tests and made them green in JS.

Comments

You must be logged in to add a comment.