spree_api 4.6.4 → 4.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11a6124b8149615bf55bd8ef6defd7653481348ac0ed85d8c3ef9ab205593829
4
- data.tar.gz: 5d39adab7bf95abeccba4eec046a036a2008141bf0202ef152c04d16053efea4
3
+ metadata.gz: ed84d02d56ed7a219d4d7518497233314f1dc8a7bd042f974308fd60fa1067cc
4
+ data.tar.gz: f0d588c49ba9a468741a51f48cf94b3166cd60a13fe4edf8345c67e2f5995de7
5
5
  SHA512:
6
- metadata.gz: af735c40d1868ca67e95761f7d9faaac6a68fff25e0bd9f4a1633da573a725758ca762585d5219142703a4530f2d41aab2ff0e7504009d854322eed97e34a9e7
7
- data.tar.gz: f078c7e859128b0e28c7463322c6b1b6d6fed183482370048de763226f61005d957873cbb2703aa10031c7bf9216477a66bce60ea2deb3d49f3dff59935db140
6
+ metadata.gz: e0ed214f2047450c4eaff7aa4e779fef91268ab375725495b0276ad16b691661a0db603a79a8572848a0c81d3ce299581e4bf984dd41454f3fb8468893fb814f
7
+ data.tar.gz: 28ba2b69276b7d6617653827bd535dddba7ee20067ed3371aca0d370f5af7ed159210a4c6a3d605f5f5be434bce2b6423b6f53ea0474dda16202d0a47bffb09c
@@ -39,7 +39,7 @@ module Spree
39
39
  end
40
40
 
41
41
  def serialize_order(order)
42
- ActiveSupport::Deprecation.warn(<<-DEPRECATION, caller)
42
+ Spree::Deprecation.warn(<<-DEPRECATION, caller)
43
43
  `OrderConcern#serialize_order` is deprecated and will be removed in Spree 5.0.
44
44
  Please use `serializer_resource` method
45
45
  DEPRECATION
@@ -5,7 +5,12 @@ module Spree
5
5
  include Spree::VendorConcern
6
6
  end
7
7
 
8
- has_secure_token :secret_key
8
+ if Rails::VERSION::STRING >= '7.1.0'
9
+ has_secure_token :secret_key, on: :save
10
+ else
11
+ has_secure_token :secret_key
12
+ end
13
+
9
14
 
10
15
  has_many :events, inverse_of: :subscriber
11
16
 
@@ -5,21 +5,11 @@ module Spree
5
5
  end
6
6
 
7
7
  shared_examples 'an ActiveJob serializable hash' do
8
- context 'Rails < 6', if: Rails::VERSION::MAJOR < 6 do
9
- it 'can not be serialized by ActiveJob' do
10
- expect { Spree::TestArgumentsJob.perform_later(subject) }.to(
11
- raise_error(ActiveJob::SerializationError, 'Unsupported argument type: Symbol')
12
- )
13
- end
14
- end
15
-
16
- context 'Rails >= 6', if: Rails::VERSION::MAJOR >= 6 do
17
- it 'can be serialized by ActiveJob' do
18
- # It should fail if subject contains any custom instance (e.g Spree::Money)
19
- expect { Spree::TestArgumentsJob.perform_later(subject) }.not_to raise_error
20
- expect { Spree::TestArgumentsJob.perform_later(subject.merge(price: Spree::Money.new(0))) }.to(
21
- raise_error(ActiveJob::SerializationError)
22
- )
23
- end
8
+ it 'can be serialized by ActiveJob' do
9
+ # It should fail if subject contains any custom instance (e.g Spree::Money)
10
+ expect { Spree::TestArgumentsJob.perform_later(subject) }.not_to raise_error
11
+ expect { Spree::TestArgumentsJob.perform_later(subject.merge(price: Spree::Money.new(0))) }.to(
12
+ raise_error(ActiveJob::SerializationError)
13
+ )
24
14
  end
25
15
  end
data/spree_api.gemspec CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
17
17
  'source_code_uri' => "https://github.com/spree/spree/tree/v#{s.version}",
18
18
  }
19
19
 
20
- s.required_ruby_version = '>= 2.5'
20
+ s.required_ruby_version = '>= 3.0'
21
21
 
22
22
  s.files = `git ls-files`.split($\).reject { |f| f.match(/^spec/) && !f.match(/^spec\/fixtures/) }
23
23
  s.executables = s.files.grep(%r{^bin/}).map { |f| File.basename(f) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.6.4
4
+ version: 4.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Bigg
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - '='
116
116
  - !ruby/object:Gem::Version
117
- version: 4.6.4
117
+ version: 4.7.1
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - '='
123
123
  - !ruby/object:Gem::Version
124
- version: 4.6.4
124
+ version: 4.7.1
125
125
  description: Spree's API
126
126
  email:
127
127
  - ryan@spreecommerce.com
@@ -406,9 +406,9 @@ licenses:
406
406
  - BSD-3-Clause
407
407
  metadata:
408
408
  bug_tracker_uri: https://github.com/spree/spree/issues
409
- changelog_uri: https://github.com/spree/spree/releases/tag/v4.6.4
409
+ changelog_uri: https://github.com/spree/spree/releases/tag/v4.7.1
410
410
  documentation_uri: https://dev-docs.spreecommerce.org/
411
- source_code_uri: https://github.com/spree/spree/tree/v4.6.4
411
+ source_code_uri: https://github.com/spree/spree/tree/v4.7.1
412
412
  post_install_message:
413
413
  rdoc_options: []
414
414
  require_paths:
@@ -417,7 +417,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
417
417
  requirements:
418
418
  - - ">="
419
419
  - !ruby/object:Gem::Version
420
- version: '2.5'
420
+ version: '3.0'
421
421
  required_rubygems_version: !ruby/object:Gem::Requirement
422
422
  requirements:
423
423
  - - ">="