amtrak 0.0.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. checksums.yaml +4 -4
  2. data/lib/amtrak/train_fetcher/main_page.rb +2 -4
  3. data/lib/amtrak/train_parser.rb +31 -31
  4. data/lib/amtrak/version.rb +1 -1
  5. data/spec/amtrak/train_fetcher/main_page_spec.rb +4 -4
  6. data/spec/amtrak/train_fetcher/train_page_spec.rb +5 -5
  7. data/spec/amtrak/train_fetcher_spec.rb +16 -16
  8. data/spec/amtrak/train_parser_spec.rb +20 -177
  9. data/spec/amtrak_spec.rb +5 -228
  10. data/spec/fixtures/html/pvd_to_bby.html +2803 -2392
  11. data/spec/fixtures/json/_get.json +1 -0
  12. data/spec/fixtures/json/_parse.json +1 -0
  13. data/spec/fixtures/vcr/Amtrak/_get/returns_a_list_of_train_times.yml +599 -690
  14. data/spec/fixtures/vcr/Amtrak_TrainFetcher/_get/does_the_same_as_get.yml +455 -718
  15. data/spec/fixtures/vcr/Amtrak_TrainFetcher/_get/given_a_valid_date_and_invalid_train_stations/does_not_include_various_classes_and_includes_an_error.yml +129 -115
  16. data/spec/fixtures/vcr/Amtrak_TrainFetcher/_get/given_a_valid_date_and_train_stations/includes_various_classes.yml +449 -717
  17. data/spec/fixtures/vcr/Amtrak_TrainFetcher/_get/given_an_invalid_date_and_valid_train_stations/does_not_include_various_classes_and_includes_an_error.yml +127 -109
  18. data/spec/fixtures/vcr/Amtrak_TrainFetcher_MainPage/_session_id/pulls_the_session_id_from_the_cookies.yml +295 -366
  19. data/spec/fixtures/vcr/Amtrak_TrainFetcher_MainPage/_total_pages/when_more_than_one_page_exists_on_the_website/returns_2.yml +295 -358
  20. data/spec/fixtures/vcr/Amtrak_TrainFetcher_MainPage/_total_pages/when_only_one_page_exists_on_the_website/returns_1.yml +289 -363
  21. data/spec/fixtures/vcr/Amtrak_TrainFetcher_TrainPage/_get/when_it_works/includes_various_classes.yml +164 -213
  22. metadata +6 -4
  23. data/spec/fixtures/vcr/Amtrak_TrainFetcher_MainPage/_total_pages/when_more_than_one_page_exists_on_the_website/returns_1.yml +0 -1076

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the gem file manually.