solidus_api 1.3.0.beta1 → 1.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1660d14deff32b5456115f64d5eb3defa14e6f9e
4
- data.tar.gz: a949a6bf3dceabc39885d44a83a7b3d4f9663e8a
3
+ metadata.gz: 68d3b943c472bdbe3545373f6c596a6c9018d3b3
4
+ data.tar.gz: b75a8188a808f59fb1a0755cc41ae9165c8087ce
5
5
  SHA512:
6
- metadata.gz: e54a0c3abaed5e939daf3e9b09506125701abaf78e99a06d523850e8c58a2565e7526021c0351a588583e765aace4310d4bbec044c52ac755e1bdf1b05fe5a7c
7
- data.tar.gz: ce1839a1b058a1b42259c0951201390fbab247ad05e095e059dfe384ca1f79ce1a0940cad12cd06c8992cd0fd95be724352596c405729339d956c97bdc1c80ba
6
+ metadata.gz: d05cd052be57dd9efa45120750270b3e092202dca28f331ed40a5b095612b687015f3d385c4cdcb2041ec6eb058d71e3c5453399ce936012811085820804e9b1
7
+ data.tar.gz: dff2b56b3a3c18802c545ae26ff3e3eacd1b7af7ea9db61dda05edbd82e7be95fbcab00395a47cbcf847e196c5a5115f94cd57af34eabd552193c07d4a0773c0
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- eval_gemfile File.expand_path('../../common_spree_dependencies.rb', __FILE__)
1
+ eval(File.read(File.dirname(__FILE__) + '/../common_spree_dependencies.rb'))
2
2
 
3
3
  gem 'solidus_core', path: '../core'
4
4
 
@@ -4,4 +4,4 @@ child(@countries => :countries) do
4
4
  end
5
5
  node(:count) { @countries.count }
6
6
  node(:current_page) { params[:page] || 1 }
7
- node(:pages) { @countries.num_pages }
7
+ node(:pages) { @countries.total_pages }
@@ -4,4 +4,4 @@ child(@orders => :orders) do
4
4
  end
5
5
  node(:count) { @orders.count }
6
6
  node(:current_page) { params[:page] || 1 }
7
- node(:pages) { @orders.num_pages }
7
+ node(:pages) { @orders.total_pages }
@@ -6,4 +6,4 @@ end
6
6
 
7
7
  node(:count) { @orders.count }
8
8
  node(:current_page) { params[:page] || 1 }
9
- node(:pages) { @orders.num_pages }
9
+ node(:pages) { @orders.total_pages }
@@ -4,4 +4,4 @@ child(@payments => :payments) do
4
4
  end
5
5
  node(:count) { @payments.count }
6
6
  node(:current_page) { params[:page] || 1 }
7
- node(:pages) { @payments.num_pages }
7
+ node(:pages) { @payments.total_pages }
@@ -1,7 +1,7 @@
1
1
  object false
2
2
  child(@product_properties => :product_properties) do
3
- attributes *product_property_attributes
3
+ attributes *product_property_attributes
4
4
  end
5
5
  node(:count) { @product_properties.count }
6
6
  node(:current_page) { params[:page] || 1 }
7
- node(:pages) { @product_properties.num_pages }
7
+ node(:pages) { @product_properties.total_pages }
@@ -3,7 +3,7 @@ node(:count) { @products.count }
3
3
  node(:total_count) { @products.total_count }
4
4
  node(:current_page) { params[:page] ? params[:page].to_i : 1 }
5
5
  node(:per_page) { params[:per_page] || Kaminari.config.default_per_page }
6
- node(:pages) { @products.num_pages }
6
+ node(:pages) { @products.total_pages }
7
7
  child(@products => :products) do
8
8
  extends "spree/api/products/show"
9
9
  end
@@ -4,4 +4,4 @@ child(@properties => :properties) do
4
4
  end
5
5
  node(:count) { @properties.count }
6
6
  node(:current_page) { params[:page] || 1 }
7
- node(:pages) { @properties.num_pages }
7
+ node(:pages) { @properties.total_pages }
@@ -4,4 +4,4 @@ child(@return_authorizations => :return_authorizations) do
4
4
  end
5
5
  node(:count) { @return_authorizations.count }
6
6
  node(:current_page) { params[:page] || 1 }
7
- node(:pages) { @return_authorizations.num_pages }
7
+ node(:pages) { @return_authorizations.total_pages }
@@ -2,7 +2,7 @@ object false
2
2
 
3
3
  node(:count) { @shipments.count }
4
4
  node(:current_page) { params[:page] || 1 }
5
- node(:pages) { @shipments.num_pages }
5
+ node(:pages) { @shipments.total_pages }
6
6
 
7
7
  child(@shipments => :shipments) do
8
8
  extends "spree/api/shipments/big"
@@ -7,8 +7,8 @@ child(@states => :states) do
7
7
  attributes *state_attributes
8
8
  end
9
9
 
10
- if @states.respond_to?(:num_pages)
10
+ if @states.respond_to?(:total_pages)
11
11
  node(:count) { @states.count }
12
12
  node(:current_page) { params[:page] || 1 }
13
- node(:pages) { @states.num_pages }
13
+ node(:pages) { @states.total_pages }
14
14
  end
@@ -4,4 +4,4 @@ child(@stock_items => :stock_items) do
4
4
  end
5
5
  node(:count) { @stock_items.count }
6
6
  node(:current_page) { params[:page] || 1 }
7
- node(:pages) { @stock_items.num_pages }
7
+ node(:pages) { @stock_items.total_pages }
@@ -4,4 +4,4 @@ child(@stock_locations => :stock_locations) do
4
4
  end
5
5
  node(:count) { @stock_locations.count }
6
6
  node(:current_page) { params[:page] || 1 }
7
- node(:pages) { @stock_locations.num_pages }
7
+ node(:pages) { @stock_locations.total_pages }
@@ -4,4 +4,4 @@ child(@stock_movements => :stock_movements) do
4
4
  end
5
5
  node(:count) { @stock_movements.count }
6
6
  node(:current_page) { params[:page] || 1 }
7
- node(:pages) { @stock_movements.num_pages }
7
+ node(:pages) { @stock_movements.total_pages }
@@ -7,4 +7,4 @@ end
7
7
 
8
8
  node(:count) { @store_credit_events.count }
9
9
  node(:current_page) { params[:page] || 1 }
10
- node(:pages) { @store_credit_events.num_pages }
10
+ node(:pages) { @store_credit_events.total_pages }
@@ -4,4 +4,4 @@ child(@taxonomies => :taxonomies) do
4
4
  end
5
5
  node(:count) { @taxonomies.count }
6
6
  node(:current_page) { params[:page] || 1 }
7
- node(:pages) { @taxonomies.num_pages }
7
+ node(:pages) { @taxonomies.total_pages }
@@ -3,7 +3,7 @@ node(:count) { @taxons.count }
3
3
  node(:total_count) { @taxons.total_count }
4
4
  node(:current_page) { params[:page] ? params[:page].to_i : 1 }
5
5
  node(:per_page) { params[:per_page] || Kaminari.config.default_per_page }
6
- node(:pages) { @taxons.num_pages }
6
+ node(:pages) { @taxons.total_pages }
7
7
  child @taxons => :taxons do
8
8
  attributes *taxon_attributes
9
9
  unless params[:without_children]
@@ -4,4 +4,4 @@ child(@users => :users) do
4
4
  end
5
5
  node(:count) { @users.count }
6
6
  node(:current_page) { params[:page] || 1 }
7
- node(:pages) { @users.num_pages }
7
+ node(:pages) { @users.total_pages }
@@ -2,7 +2,7 @@ object false
2
2
  node(:count) { @variants.count }
3
3
  node(:total_count) { @variants.total_count }
4
4
  node(:current_page) { params[:page] ? params[:page].to_i : 1 }
5
- node(:pages) { @variants.num_pages }
5
+ node(:pages) { @variants.total_pages }
6
6
 
7
7
  child(@variants => :variants) do
8
8
  extends "spree/api/variants/big"
@@ -4,4 +4,4 @@ child(@zones => :zones) do
4
4
  end
5
5
  node(:count) { @zones.count }
6
6
  node(:current_page) { params[:page] || 1 }
7
- node(:pages) { @zones.num_pages }
7
+ node(:pages) { @zones.total_pages }
@@ -4,4 +4,4 @@ child(@collection => :widgets) do
4
4
  end
5
5
  node(:count) { @collection.count }
6
6
  node(:current_page) { params[:page] || 1 }
7
- node(:pages) { @collection.num_pages }
7
+ node(:pages) { @collection.total_pages }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0.beta1
4
+ version: 1.3.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: 2016-04-25 00:00:00.000000000 Z
11
+ date: 2016-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.3.0.beta1
19
+ version: 1.3.0.rc1
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: 1.3.0.beta1
26
+ version: 1.3.0.rc1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rabl
29
29
  requirement: !ruby/object:Gem::Requirement