Code Monkey home page Code Monkey logo

sonata's Introduction

Prepare the container

docker build -f Dockerfile  -t sonata .

Run the container

docker run -it -v $(pwd):/app/ sonata

Run the tests

# bundle exec rspec --format=d spec/
SonataSoftware::SoccerExtractor
  .call
    when it loads the data form the scores file
      must have a file_path attr
      must load 20 records
      use a MINIMAL_COLUMNS_LENGTH_PER_ROW constant
      must print the name of the team with the smallest difference in ‘for’ and ‘against’ goals (i.e. Aston_Villa).

SonataSoftware::WeatherExtractor
  .call
    when it loads the data form the daily file
      must have a file_path attr
      must load 31 records
      use a MINIMAL_COLUMNS_LENGTH_PER_ROW constant
      must output the day number (column one) with the smallest temperature spread (i.e. 14 2).

Finished in 0.01341 seconds (files took 0.084 seconds to load)
8 examples, 0 failures

Release 1.1.0

Changelog

 * All hardcoded values were extracted into its own file
 * Extractor class was added in order to delegate correctly the classes responsibilities.
 * find_smallest, initialize_smallest_spread are now commonly used methods.
 * Preserve SOLID principles as good practices
 * Introduced new module SonataSoftware to share global properties

ToDo

* Including its own folder regarding the class hierarchy

sonata's People

Contributors

harsh04081997 avatar

Watchers

 avatar

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.