Download the files and then you can do something like:
require_relative 'lib/crawlers/graph'
require_relative 'lib/repositories/redis'
repository = Repositories::Redis.new
from_path = 'Chuck_Norris'
to_path = 'Jimmy_Fallon'
answer = Crawlers::Graph.new(from_path, to_path, repository: repository).call
There is no validation of the given paths. Also the base URL is set to 'https://en.wikipedia.org'. The result is an array of the paths (in order) that it took to get to the destination including the first and the destination.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Run rubocop lint (
rubocop -R --format simple
) - Run rspec tests (
bundle exec rspec
) - Push your branch (
git push origin my-new-feature
) - Create a new Pull Request