reviewed 0.1.4 → 0.1.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. data/lib/faraday/api_key.rb +2 -4
  2. data/lib/reviewed/article.rb +1 -3
  3. data/lib/reviewed/base.rb +2 -19
  4. data/lib/reviewed/client.rb +7 -44
  5. data/lib/reviewed/product.rb +0 -2
  6. data/lib/reviewed/request.rb +35 -7
  7. data/lib/reviewed/version.rb +1 -1
  8. data/lib/reviewed.rb +2 -14
  9. data/reviewed.gemspec +0 -1
  10. data/spec/article_spec.rb +13 -12
  11. data/spec/base_spec.rb +2 -28
  12. data/spec/client_spec.rb +5 -72
  13. data/spec/collection_spec.rb +2 -1
  14. data/spec/faraday/api_key_spec.rb +21 -26
  15. data/spec/fixtures/vcr/article/find_page.yml +179 -0
  16. data/spec/fixtures/vcr/article/grill.yml +500 -0
  17. data/spec/fixtures/vcr/article/products.yml +500 -0
  18. data/spec/fixtures/vcr/collection/products.yml +525 -0
  19. data/spec/fixtures/vcr/product/attachments.yml +98 -0
  20. data/spec/fixtures/vcr/product/manufacturer_specs.yml +98 -0
  21. data/spec/fixtures/vcr/request/collection.yml +290 -0
  22. data/spec/fixtures/vcr/request/object.yml +7135 -0
  23. data/spec/fixtures/vcr/request/perform/no_params.yml +290 -0
  24. data/spec/fixtures/vcr/request/perform/params.yml +112 -0
  25. data/spec/fixtures/vcr/request/where/collection.yml +754 -0
  26. data/spec/product_spec.rb +4 -2
  27. data/spec/request_spec.rb +64 -9
  28. data/spec/reviewed_spec.rb +0 -9
  29. data/spec/spec_helper.rb +5 -6
  30. data/spec/website_spec.rb +2 -1
  31. metadata +25 -105
  32. data/lib/faraday/errors.rb +0 -14
  33. data/lib/reviewed/award.rb +0 -4
  34. data/spec/award_spec.rb +0 -4
  35. data/spec/faraday/errors_spec.rb +0 -73
  36. data/spec/fixtures/vcr/Reviewed_Article/associations/attachments/does_not_have_any_matching_attachments.yml +0 -601
  37. data/spec/fixtures/vcr/Reviewed_Article/associations/attachments/finds_attachments_by_tag.yml +0 -601
  38. data/spec/fixtures/vcr/Reviewed_Article/associations/attachments/has_many_attachments.yml +0 -601
  39. data/spec/fixtures/vcr/Reviewed_Article/associations/attachments/returns_all_attachments.yml +0 -601
  40. data/spec/fixtures/vcr/Reviewed_Article/associations/attachments/returns_attachments_of_the_correct_class.yml +0 -601
  41. data/spec/fixtures/vcr/Reviewed_Article/associations/pages/has_many_pages.yml +0 -601
  42. data/spec/fixtures/vcr/Reviewed_Article/associations/products/has_many_products.yml +0 -582
  43. data/spec/fixtures/vcr/Reviewed_Article/associations/products/returns_products_of_the_correct_class.yml +0 -601
  44. data/spec/fixtures/vcr/Reviewed_Article/find_page/finds_a_page_with_a_matching_slug.yml +0 -784
  45. data/spec/fixtures/vcr/Reviewed_Article/primary_product/returns_a_product_of_the_correct_class.yml +0 -1199
  46. data/spec/fixtures/vcr/Reviewed_Article/primary_product/returns_nil_if_does_not_respond_to_products.yml +0 -1199
  47. data/spec/fixtures/vcr/Reviewed_Article/primary_product/returns_the_primary_product.yml +0 -1199
  48. data/spec/fixtures/vcr/Reviewed_Client/_perform/request_params/not_set/has_nil_query_params.yml +0 -254
  49. data/spec/fixtures/vcr/Reviewed_Client/_perform/request_params/set/merges_quest_params.yml +0 -98
  50. data/spec/fixtures/vcr/Reviewed_Collection/collection_data/fetches_the_first_page_by_default.yml +0 -183
  51. data/spec/fixtures/vcr/Reviewed_Collection/collection_data/is_enumerable.yml +0 -183
  52. data/spec/fixtures/vcr/Reviewed_Collection/next_page/fetches_the_next_page_of_results.yml +0 -310
  53. data/spec/fixtures/vcr/Reviewed_Collection/page_attributes_pagination_/indicates_if_the_page_number_is_out_of_bounds.yml +0 -183
  54. data/spec/fixtures/vcr/Reviewed_Collection/page_attributes_pagination_/indicates_whether_this_is_the_first_or_last_page.yml +0 -183
  55. data/spec/fixtures/vcr/Reviewed_Collection/page_attributes_pagination_/returns_the_limit_value_max_per_page_.yml +0 -183
  56. data/spec/fixtures/vcr/Reviewed_Collection/page_attributes_pagination_/returns_the_number_of_entries_on_the_current_page.yml +0 -183
  57. data/spec/fixtures/vcr/Reviewed_Collection/page_attributes_pagination_/returns_the_offset.yml +0 -183
  58. data/spec/fixtures/vcr/Reviewed_Collection/page_attributes_pagination_/returns_the_total_item_count.yml +0 -183
  59. data/spec/fixtures/vcr/Reviewed_Collection/page_attributes_pagination_/returns_the_total_number_of_pages.yml +0 -183
  60. data/spec/fixtures/vcr/Reviewed_Collection/previous_page/fetches_the_previous_page_of_results.yml +0 -490
  61. data/spec/fixtures/vcr/Reviewed_Collection/previous_page/returns_nil_if_there_is_no_previous_page.yml +0 -183
  62. data/spec/fixtures/vcr/Reviewed_Product/associations/attachments/does_not_have_any_matching_attachments.yml +0 -116
  63. data/spec/fixtures/vcr/Reviewed_Product/associations/attachments/finds_attachments_by_tag.yml +0 -116
  64. data/spec/fixtures/vcr/Reviewed_Product/associations/attachments/has_many_attachments.yml +0 -119
  65. data/spec/fixtures/vcr/Reviewed_Product/associations/attachments/returns_all_attachments.yml +0 -116
  66. data/spec/fixtures/vcr/Reviewed_Product/associations/attachments/returns_attachments_of_the_correct_class.yml +0 -119
  67. data/spec/fixtures/vcr/Reviewed_Product/manufacturer_specs/has_many_manufacturer_specs.yml +0 -116
  68. data/spec/fixtures/vcr/Reviewed_Product/manufacturer_specs/returns_attachments_of_the_correct_class.yml +0 -116
  69. data/spec/fixtures/vcr/Reviewed_Request/_where/filters_collections_using_other_supported_options.yml +0 -110
  70. data/spec/fixtures/vcr/Reviewed_Request/_where/returns_a_collection.yml +0 -254
  71. data/spec/fixtures/vcr/Reviewed_Request/_where/returns_an_empty_set_if_no_matching_data_was_found.yml +0 -86
  72. data/spec/fixtures/vcr/Reviewed_Request/_where/returns_the_appropriate_page_of_results.yml +0 -288
  73. data/spec/fixtures/vcr/Reviewed_Request/collection_from_response/returns_a_collection_object.yml +0 -254
  74. data/spec/fixtures/vcr/Reviewed_Request/collection_from_response/returns_objects_of_the_correct_class.yml +0 -254
  75. data/spec/fixtures/vcr/Reviewed_Request/object_from_response/returns_an_object_of_the_correct_class.yml +0 -601

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.