Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Update ransack version

Rafal Cymerys84d057467c3b
diff --git a/api/spec/requests/spree/api/v2/platform/stock_items_spec.rb b/api/spec/requests/spree/api/v2/platform/stock_items_spec.rb
index c3a801f154..3c5d3f8792 100644
--- a/api/spec/requests/spree/api/v2/platform/stock_items_spec.rb
+++ b/api/spec/requests/spree/api/v2/platform/stock_items_spec.rb
@@ -24,7 +24,7 @@ describe 'Platform API v2 Stock Items API' do
end
context 'filtering by variant product name or sku' do
- before { get "/api/v2/platform/stock_items?filter[variant_product_name_or_variant_sku_cont]=#{product_2.name}", headers: bearer_token }
+ before { get "/api/v2/platform/stock_items?filter[variants_product_name_or_variants_sku_cont]=#{product_2.name}", headers: bearer_token }
it 'returns stock_items with matching stock location ids' do
# default variant + 2 variants for product_2, each inside two stock locations
diff --git a/core/spree_core.gemspec b/core/spree_core.gemspec
index 099a8d979d..f34e6958d2 100644
--- a/core/spree_core.gemspec
+++ b/core/spree_core.gemspec
@@ -45,7 +45,7 @@ Gem::Specification.new do |s|
s.add_dependency 'money', '~> 6.13'
s.add_dependency 'monetize', '~> 1.9'
s.add_dependency 'paranoia', '~> 2.4'
- s.add_dependency 'ransack', '>= 2.3', '< 3.0'
+ s.add_dependency 'ransack', '>= 3.1', '< 4.0'
s.add_dependency 'rexml'
s.add_dependency 'state_machines-activerecord', '~> 0.6'
s.add_dependency 'state_machines-activemodel', '~> 0.7'