Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

luciotbc/score_diff_json_challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Score Diff Json

This software generates a comparison score between two JSON files.

How to execute

First of all, have sure that Ruby 2.7.1 is installed in your local environment.

To execute use the command:

ruby -r "./score_diff.rb" -e "ScoreDiff.print_json_score('./data/BreweriesMaster.json', './data/BreweriesSample2.json')"

There is an included script for comparing all of the sample data provided called runall.sh

./runall.sh

Running tests

To execute the tests can be run with the following command:

bundle install
rspec .

About

Just a code challenge solved!

Resources

Stars

Watchers

Forks