solidus_api 2.5.2 → 2.6.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of solidus_api might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Rakefile +3 -1
- data/app/controllers/spree/api/address_books_controller.rb +2 -0
- data/app/controllers/spree/api/addresses_controller.rb +2 -0
- data/app/controllers/spree/api/base_controller.rb +2 -0
- data/app/controllers/spree/api/checkouts_controller.rb +2 -0
- data/app/controllers/spree/api/classifications_controller.rb +2 -0
- data/app/controllers/spree/api/config_controller.rb +2 -0
- data/app/controllers/spree/api/countries_controller.rb +2 -0
- data/app/controllers/spree/api/credit_cards_controller.rb +2 -0
- data/app/controllers/spree/api/images_controller.rb +2 -0
- data/app/controllers/spree/api/inventory_units_controller.rb +2 -0
- data/app/controllers/spree/api/line_items_controller.rb +2 -0
- data/app/controllers/spree/api/option_types_controller.rb +2 -0
- data/app/controllers/spree/api/option_values_controller.rb +2 -0
- data/app/controllers/spree/api/orders_controller.rb +2 -0
- data/app/controllers/spree/api/payments_controller.rb +3 -1
- data/app/controllers/spree/api/product_properties_controller.rb +2 -0
- data/app/controllers/spree/api/products_controller.rb +2 -0
- data/app/controllers/spree/api/promotions_controller.rb +2 -0
- data/app/controllers/spree/api/properties_controller.rb +2 -0
- data/app/controllers/spree/api/resource_controller.rb +2 -0
- data/app/controllers/spree/api/return_authorizations_controller.rb +2 -0
- data/app/controllers/spree/api/shipments_controller.rb +2 -0
- data/app/controllers/spree/api/states_controller.rb +4 -2
- data/app/controllers/spree/api/stock_items_controller.rb +2 -0
- data/app/controllers/spree/api/stock_locations_controller.rb +2 -0
- data/app/controllers/spree/api/stock_movements_controller.rb +2 -0
- data/app/controllers/spree/api/store_credit_events_controller.rb +2 -0
- data/app/controllers/spree/api/stores_controller.rb +2 -0
- data/app/controllers/spree/api/taxonomies_controller.rb +2 -0
- data/app/controllers/spree/api/taxons_controller.rb +2 -0
- data/app/controllers/spree/api/users_controller.rb +2 -0
- data/app/controllers/spree/api/variants_controller.rb +2 -0
- data/app/controllers/spree/api/zones_controller.rb +2 -0
- data/app/helpers/spree/api/api_helpers.rb +6 -4
- data/app/models/spree/api_configuration.rb +2 -0
- data/app/views/spree/api/address_books/show.json.jbuilder +2 -0
- data/app/views/spree/api/addresses/_address.json.jbuilder +2 -0
- data/app/views/spree/api/addresses/show.json.jbuilder +2 -0
- data/app/views/spree/api/adjustments/_adjustment.json.jbuilder +2 -0
- data/app/views/spree/api/config/money.json.jbuilder +2 -0
- data/app/views/spree/api/config/show.json.jbuilder +2 -0
- data/app/views/spree/api/countries/index.json.jbuilder +2 -0
- data/app/views/spree/api/countries/show.json.jbuilder +2 -0
- data/app/views/spree/api/credit_cards/_credit_card.json.jbuilder +2 -0
- data/app/views/spree/api/credit_cards/index.json.jbuilder +2 -0
- data/app/views/spree/api/credit_cards/show.json.jbuilder +2 -0
- data/app/views/spree/api/errors/delete_restriction.json.jbuilder +2 -0
- data/app/views/spree/api/errors/gateway_error.json.jbuilder +2 -0
- data/app/views/spree/api/errors/invalid_api_key.json.jbuilder +2 -0
- data/app/views/spree/api/errors/invalid_resource.json.jbuilder +2 -0
- data/app/views/spree/api/errors/must_specify_api_key.json.jbuilder +2 -0
- data/app/views/spree/api/errors/not_found.json.jbuilder +2 -0
- data/app/views/spree/api/errors/unauthorized.json.jbuilder +2 -0
- data/app/views/spree/api/images/_image.json.jbuilder +2 -0
- data/app/views/spree/api/images/index.json.jbuilder +2 -0
- data/app/views/spree/api/images/show.json.jbuilder +2 -0
- data/app/views/spree/api/inventory_units/show.json.jbuilder +2 -0
- data/app/views/spree/api/line_items/_line_item.json.jbuilder +2 -0
- data/app/views/spree/api/line_items/new.json.jbuilder +2 -0
- data/app/views/spree/api/line_items/show.json.jbuilder +2 -0
- data/app/views/spree/api/option_types/_option_type.json.jbuilder +2 -0
- data/app/views/spree/api/option_types/index.json.jbuilder +2 -0
- data/app/views/spree/api/option_types/show.json.jbuilder +2 -0
- data/app/views/spree/api/option_values/_option_value.json.jbuilder +2 -0
- data/app/views/spree/api/option_values/index.json.jbuilder +2 -0
- data/app/views/spree/api/option_values/show.json.jbuilder +2 -0
- data/app/views/spree/api/orders/_big.json.jbuilder +13 -5
- data/app/views/spree/api/orders/_order.json.jbuilder +2 -0
- data/app/views/spree/api/orders/could_not_apply_coupon.json.jbuilder +2 -0
- data/app/views/spree/api/orders/could_not_transition.json.jbuilder +2 -0
- data/app/views/spree/api/orders/expected_total_mismatch.json.jbuilder +2 -0
- data/app/views/spree/api/orders/index.json.jbuilder +2 -0
- data/app/views/spree/api/orders/invalid_shipping_method.json.jbuilder +2 -0
- data/app/views/spree/api/orders/mine.json.jbuilder +2 -0
- data/app/views/spree/api/orders/show.json.jbuilder +2 -0
- data/app/views/spree/api/payments/credit_over_limit.json.jbuilder +2 -0
- data/app/views/spree/api/payments/index.json.jbuilder +2 -0
- data/app/views/spree/api/payments/new.json.jbuilder +2 -0
- data/app/views/spree/api/payments/show.json.jbuilder +2 -0
- data/app/views/spree/api/payments/source_views/_check.json.jbuilder +1 -0
- data/app/views/spree/api/payments/source_views/_gateway.json.jbuilder +6 -0
- data/app/views/spree/api/payments/source_views/_storecredit.json.jbuilder +3 -0
- data/app/views/spree/api/payments/update_forbidden.json.jbuilder +2 -0
- data/app/views/spree/api/product_properties/index.json.jbuilder +2 -0
- data/app/views/spree/api/product_properties/new.json.jbuilder +2 -0
- data/app/views/spree/api/product_properties/show.json.jbuilder +2 -0
- data/app/views/spree/api/products/_product.json.jbuilder +2 -0
- data/app/views/spree/api/products/index.json.jbuilder +2 -0
- data/app/views/spree/api/products/new.json.jbuilder +2 -0
- data/app/views/spree/api/products/show.json.jbuilder +2 -0
- data/app/views/spree/api/promotions/handler.json.jbuilder +2 -0
- data/app/views/spree/api/promotions/show.json.jbuilder +2 -0
- data/app/views/spree/api/properties/index.json.jbuilder +2 -0
- data/app/views/spree/api/properties/new.json.jbuilder +2 -0
- data/app/views/spree/api/properties/show.json.jbuilder +2 -0
- data/app/views/spree/api/return_authorizations/index.json.jbuilder +2 -0
- data/app/views/spree/api/return_authorizations/new.json.jbuilder +2 -0
- data/app/views/spree/api/return_authorizations/show.json.jbuilder +2 -0
- data/app/views/spree/api/shared/_pagination.json.jbuilder +2 -0
- data/app/views/spree/api/shipments/_big.json.jbuilder +8 -4
- data/app/views/spree/api/shipments/_small.json.jbuilder +2 -0
- data/app/views/spree/api/shipments/cannot_ready_shipment.json.jbuilder +2 -0
- data/app/views/spree/api/shipments/estimated_rates.json.jbuilder +2 -0
- data/app/views/spree/api/shipments/mine.json.jbuilder +2 -0
- data/app/views/spree/api/shipments/show.json.jbuilder +2 -0
- data/app/views/spree/api/shipping_rates/_shipping_rate.json.jbuilder +2 -0
- data/app/views/spree/api/states/index.json.jbuilder +2 -0
- data/app/views/spree/api/states/show.json.jbuilder +2 -0
- data/app/views/spree/api/stock_items/_stock_item.json.jbuilder +2 -0
- data/app/views/spree/api/stock_items/index.json.jbuilder +2 -0
- data/app/views/spree/api/stock_items/show.json.jbuilder +2 -0
- data/app/views/spree/api/stock_locations/_stock_location.json.jbuilder +2 -0
- data/app/views/spree/api/stock_locations/index.json.jbuilder +2 -0
- data/app/views/spree/api/stock_locations/show.json.jbuilder +2 -0
- data/app/views/spree/api/stock_movements/_stock_movement.json.jbuilder +2 -0
- data/app/views/spree/api/stock_movements/index.json.jbuilder +2 -0
- data/app/views/spree/api/stock_movements/show.json.jbuilder +2 -0
- data/app/views/spree/api/store_credit_events/mine.json.jbuilder +2 -0
- data/app/views/spree/api/stores/index.json.jbuilder +2 -0
- data/app/views/spree/api/stores/show.json.jbuilder +2 -0
- data/app/views/spree/api/taxonomies/_nested.json.jbuilder +2 -0
- data/app/views/spree/api/taxonomies/_taxonomy.json.jbuilder +2 -0
- data/app/views/spree/api/taxonomies/index.json.jbuilder +2 -0
- data/app/views/spree/api/taxonomies/jstree.json.jbuilder +2 -0
- data/app/views/spree/api/taxonomies/new.json.jbuilder +2 -0
- data/app/views/spree/api/taxonomies/show.json.jbuilder +2 -0
- data/app/views/spree/api/taxons/_taxon.json.jbuilder +2 -0
- data/app/views/spree/api/taxons/_taxons.json.jbuilder +2 -0
- data/app/views/spree/api/taxons/index.json.jbuilder +2 -0
- data/app/views/spree/api/taxons/jstree.json.jbuilder +2 -0
- data/app/views/spree/api/taxons/new.json.jbuilder +2 -0
- data/app/views/spree/api/taxons/show.json.jbuilder +2 -0
- data/app/views/spree/api/users/_user.json.jbuilder +2 -0
- data/app/views/spree/api/users/index.json.jbuilder +2 -0
- data/app/views/spree/api/users/new.json.jbuilder +2 -0
- data/app/views/spree/api/users/show.json.jbuilder +2 -0
- data/app/views/spree/api/variants/_big.json.jbuilder +2 -0
- data/app/views/spree/api/variants/_small.json.jbuilder +2 -0
- data/app/views/spree/api/variants/index.json.jbuilder +2 -0
- data/app/views/spree/api/variants/new.json.jbuilder +2 -0
- data/app/views/spree/api/variants/show.json.jbuilder +2 -0
- data/app/views/spree/api/zones/_zone.json.jbuilder +2 -0
- data/app/views/spree/api/zones/index.json.jbuilder +2 -0
- data/app/views/spree/api/zones/show.json.jbuilder +2 -0
- data/config/routes.rb +9 -7
- data/db/migrate/20100107141738_add_api_key_to_spree_users.rb +2 -0
- data/db/migrate/20120411123334_resize_api_key_field.rb +2 -0
- data/db/migrate/20120530054546_rename_api_key_to_spree_api_key.rb +2 -0
- data/db/migrate/20131017162334_add_index_to_user_spree_api_key.rb +2 -0
- data/lib/solidus_api.rb +2 -0
- data/lib/spree/api/engine.rb +2 -0
- data/lib/spree/api/responders/rabl_template.rb +2 -0
- data/lib/spree/api/responders.rb +2 -0
- data/lib/spree/api/testing_support/caching.rb +2 -0
- data/lib/spree/api/testing_support/helpers.rb +2 -0
- data/lib/spree/api/testing_support/setup.rb +2 -0
- data/lib/spree/api.rb +2 -0
- data/lib/spree_api.rb +2 -0
- data/script/rails +4 -2
- data/solidus_api.gemspec +4 -3
- data/spec/controllers/spree/api/base_controller_spec.rb +2 -0
- data/spec/controllers/spree/api/resource_controller_spec.rb +8 -4
- data/spec/features/checkout_spec.rb +2 -0
- data/spec/models/spree/legacy_user_spec.rb +2 -0
- data/spec/requests/api/address_books_spec.rb +2 -0
- data/spec/requests/rabl_cache_spec.rb +2 -0
- data/spec/requests/ransackable_attributes_spec.rb +2 -0
- data/spec/requests/spree/api/addresses_controller_spec.rb +2 -1
- data/spec/requests/spree/api/checkouts_controller_spec.rb +2 -1
- data/spec/requests/spree/api/classifications_controller_spec.rb +2 -0
- data/spec/requests/spree/api/config_controller_spec.rb +3 -1
- data/spec/requests/spree/api/countries_controller_spec.rb +2 -1
- data/spec/requests/spree/api/credit_cards_controller_spec.rb +2 -1
- data/spec/requests/spree/api/images_controller_spec.rb +2 -1
- data/spec/requests/spree/api/inventory_units_controller_spec.rb +2 -0
- data/spec/requests/spree/api/line_items_controller_spec.rb +2 -1
- data/spec/requests/spree/api/option_types_controller_spec.rb +2 -1
- data/spec/requests/spree/api/option_values_controller_spec.rb +3 -2
- data/spec/requests/spree/api/orders_controller_spec.rb +17 -13
- data/spec/requests/spree/api/payments_controller_spec.rb +2 -0
- data/spec/requests/spree/api/product_properties_controller_spec.rb +2 -1
- data/spec/requests/spree/api/products_controller_spec.rb +4 -3
- data/spec/requests/spree/api/promotion_application_spec.rb +2 -1
- data/spec/requests/spree/api/promotions_controller_spec.rb +2 -1
- data/spec/requests/spree/api/properties_controller_spec.rb +2 -1
- data/spec/requests/spree/api/return_authorizations_controller_spec.rb +2 -1
- data/spec/requests/spree/api/shipments_controller_spec.rb +13 -0
- data/spec/requests/spree/api/states_controller_spec.rb +2 -1
- data/spec/requests/spree/api/stock_items_controller_spec.rb +2 -1
- data/spec/requests/spree/api/stock_locations_controller_spec.rb +2 -1
- data/spec/requests/spree/api/stock_movements_controller_spec.rb +2 -1
- data/spec/requests/spree/api/store_credit_events_controller_spec.rb +2 -0
- data/spec/requests/spree/api/stores_controller_spec.rb +9 -6
- data/spec/requests/spree/api/taxonomies_controller_spec.rb +2 -1
- data/spec/requests/spree/api/taxons_controller_spec.rb +2 -1
- data/spec/requests/spree/api/unauthenticated_products_controller_spec.rb +3 -2
- data/spec/requests/spree/api/users_controller_spec.rb +2 -1
- data/spec/requests/spree/api/variants_controller_spec.rb +2 -2
- data/spec/requests/spree/api/zones_controller_spec.rb +2 -1
- data/spec/shared_examples/protect_product_actions.rb +2 -0
- data/spec/spec_helper.rb +3 -1
- data/spec/support/be_paginated_matcher.rb +2 -0
- data/spec/support/controller_hacks.rb +2 -0
- data/spec/support/database_cleaner.rb +2 -0
- data/spec/support/have_attributes_matcher.rb +2 -0
- data/spec/test_views/spree/api/widgets/_widget.json.jbuilder +2 -0
- data/spec/test_views/spree/api/widgets/index.json.jbuilder +3 -1
- data/spec/test_views/spree/api/widgets/new.json.jbuilder +2 -0
- data/spec/test_views/spree/api/widgets/show.json.jbuilder +2 -0
- metadata +27 -23
metadata
CHANGED
@@ -1,71 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.6.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Solidus Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: jbuilder
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: '2.6'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.
|
26
|
+
version: '2.6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: kaminari-activerecord
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '1.1'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '1.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: responders
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: solidus_core
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 2.6.0.rc1
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 2.6.0.rc1
|
69
69
|
description: REST API for the Solidus e-commerce framework.
|
70
70
|
email: contact@solidus.io
|
71
71
|
executables: []
|
@@ -156,6 +156,9 @@ files:
|
|
156
156
|
- app/views/spree/api/payments/index.json.jbuilder
|
157
157
|
- app/views/spree/api/payments/new.json.jbuilder
|
158
158
|
- app/views/spree/api/payments/show.json.jbuilder
|
159
|
+
- app/views/spree/api/payments/source_views/_check.json.jbuilder
|
160
|
+
- app/views/spree/api/payments/source_views/_gateway.json.jbuilder
|
161
|
+
- app/views/spree/api/payments/source_views/_storecredit.json.jbuilder
|
159
162
|
- app/views/spree/api/payments/update_forbidden.json.jbuilder
|
160
163
|
- app/views/spree/api/product_properties/index.json.jbuilder
|
161
164
|
- app/views/spree/api/product_properties/new.json.jbuilder
|
@@ -304,7 +307,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
304
307
|
- !ruby/object:Gem::Version
|
305
308
|
version: 1.8.23
|
306
309
|
requirements: []
|
307
|
-
|
310
|
+
rubyforge_project:
|
311
|
+
rubygems_version: 2.7.6
|
308
312
|
signing_key:
|
309
313
|
specification_version: 4
|
310
314
|
summary: REST API for the Solidus e-commerce framework.
|