reviewed 0.1.4 → 0.1.21
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/faraday/api_key.rb +2 -4
- data/lib/reviewed/article.rb +1 -3
- data/lib/reviewed/base.rb +2 -19
- data/lib/reviewed/client.rb +7 -44
- data/lib/reviewed/product.rb +0 -2
- data/lib/reviewed/request.rb +35 -7
- data/lib/reviewed/version.rb +1 -1
- data/lib/reviewed.rb +2 -14
- data/reviewed.gemspec +0 -1
- data/spec/article_spec.rb +13 -12
- data/spec/base_spec.rb +2 -28
- data/spec/client_spec.rb +5 -72
- data/spec/collection_spec.rb +2 -1
- data/spec/faraday/api_key_spec.rb +21 -26
- data/spec/fixtures/vcr/article/find_page.yml +179 -0
- data/spec/fixtures/vcr/article/grill.yml +500 -0
- data/spec/fixtures/vcr/article/products.yml +500 -0
- data/spec/fixtures/vcr/collection/products.yml +525 -0
- data/spec/fixtures/vcr/product/attachments.yml +98 -0
- data/spec/fixtures/vcr/product/manufacturer_specs.yml +98 -0
- data/spec/fixtures/vcr/request/collection.yml +290 -0
- data/spec/fixtures/vcr/request/object.yml +7135 -0
- data/spec/fixtures/vcr/request/perform/no_params.yml +290 -0
- data/spec/fixtures/vcr/request/perform/params.yml +112 -0
- data/spec/fixtures/vcr/request/where/collection.yml +754 -0
- data/spec/product_spec.rb +4 -2
- data/spec/request_spec.rb +64 -9
- data/spec/reviewed_spec.rb +0 -9
- data/spec/spec_helper.rb +5 -6
- data/spec/website_spec.rb +2 -1
- metadata +25 -105
- data/lib/faraday/errors.rb +0 -14
- data/lib/reviewed/award.rb +0 -4
- data/spec/award_spec.rb +0 -4
- data/spec/faraday/errors_spec.rb +0 -73
- data/spec/fixtures/vcr/Reviewed_Article/associations/attachments/does_not_have_any_matching_attachments.yml +0 -601
- data/spec/fixtures/vcr/Reviewed_Article/associations/attachments/finds_attachments_by_tag.yml +0 -601
- data/spec/fixtures/vcr/Reviewed_Article/associations/attachments/has_many_attachments.yml +0 -601
- data/spec/fixtures/vcr/Reviewed_Article/associations/attachments/returns_all_attachments.yml +0 -601
- data/spec/fixtures/vcr/Reviewed_Article/associations/attachments/returns_attachments_of_the_correct_class.yml +0 -601
- data/spec/fixtures/vcr/Reviewed_Article/associations/pages/has_many_pages.yml +0 -601
- data/spec/fixtures/vcr/Reviewed_Article/associations/products/has_many_products.yml +0 -582
- data/spec/fixtures/vcr/Reviewed_Article/associations/products/returns_products_of_the_correct_class.yml +0 -601
- data/spec/fixtures/vcr/Reviewed_Article/find_page/finds_a_page_with_a_matching_slug.yml +0 -784
- data/spec/fixtures/vcr/Reviewed_Article/primary_product/returns_a_product_of_the_correct_class.yml +0 -1199
- data/spec/fixtures/vcr/Reviewed_Article/primary_product/returns_nil_if_does_not_respond_to_products.yml +0 -1199
- data/spec/fixtures/vcr/Reviewed_Article/primary_product/returns_the_primary_product.yml +0 -1199
- data/spec/fixtures/vcr/Reviewed_Client/_perform/request_params/not_set/has_nil_query_params.yml +0 -254
- data/spec/fixtures/vcr/Reviewed_Client/_perform/request_params/set/merges_quest_params.yml +0 -98
- data/spec/fixtures/vcr/Reviewed_Collection/collection_data/fetches_the_first_page_by_default.yml +0 -183
- data/spec/fixtures/vcr/Reviewed_Collection/collection_data/is_enumerable.yml +0 -183
- data/spec/fixtures/vcr/Reviewed_Collection/next_page/fetches_the_next_page_of_results.yml +0 -310
- data/spec/fixtures/vcr/Reviewed_Collection/page_attributes_pagination_/indicates_if_the_page_number_is_out_of_bounds.yml +0 -183
- data/spec/fixtures/vcr/Reviewed_Collection/page_attributes_pagination_/indicates_whether_this_is_the_first_or_last_page.yml +0 -183
- data/spec/fixtures/vcr/Reviewed_Collection/page_attributes_pagination_/returns_the_limit_value_max_per_page_.yml +0 -183
- data/spec/fixtures/vcr/Reviewed_Collection/page_attributes_pagination_/returns_the_number_of_entries_on_the_current_page.yml +0 -183
- data/spec/fixtures/vcr/Reviewed_Collection/page_attributes_pagination_/returns_the_offset.yml +0 -183
- data/spec/fixtures/vcr/Reviewed_Collection/page_attributes_pagination_/returns_the_total_item_count.yml +0 -183
- data/spec/fixtures/vcr/Reviewed_Collection/page_attributes_pagination_/returns_the_total_number_of_pages.yml +0 -183
- data/spec/fixtures/vcr/Reviewed_Collection/previous_page/fetches_the_previous_page_of_results.yml +0 -490
- data/spec/fixtures/vcr/Reviewed_Collection/previous_page/returns_nil_if_there_is_no_previous_page.yml +0 -183
- data/spec/fixtures/vcr/Reviewed_Product/associations/attachments/does_not_have_any_matching_attachments.yml +0 -116
- data/spec/fixtures/vcr/Reviewed_Product/associations/attachments/finds_attachments_by_tag.yml +0 -116
- data/spec/fixtures/vcr/Reviewed_Product/associations/attachments/has_many_attachments.yml +0 -119
- data/spec/fixtures/vcr/Reviewed_Product/associations/attachments/returns_all_attachments.yml +0 -116
- data/spec/fixtures/vcr/Reviewed_Product/associations/attachments/returns_attachments_of_the_correct_class.yml +0 -119
- data/spec/fixtures/vcr/Reviewed_Product/manufacturer_specs/has_many_manufacturer_specs.yml +0 -116
- data/spec/fixtures/vcr/Reviewed_Product/manufacturer_specs/returns_attachments_of_the_correct_class.yml +0 -116
- data/spec/fixtures/vcr/Reviewed_Request/_where/filters_collections_using_other_supported_options.yml +0 -110
- data/spec/fixtures/vcr/Reviewed_Request/_where/returns_a_collection.yml +0 -254
- data/spec/fixtures/vcr/Reviewed_Request/_where/returns_an_empty_set_if_no_matching_data_was_found.yml +0 -86
- data/spec/fixtures/vcr/Reviewed_Request/_where/returns_the_appropriate_page_of_results.yml +0 -288
- data/spec/fixtures/vcr/Reviewed_Request/collection_from_response/returns_a_collection_object.yml +0 -254
- data/spec/fixtures/vcr/Reviewed_Request/collection_from_response/returns_objects_of_the_correct_class.yml +0 -254
- 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.