spree_api 4.6.2 → 4.7.0

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: ca6e41418ba5d0ddc9dc9ed814868ec20d468bbb8fb1b10845e9078def1ccdc5
4
- data.tar.gz: 171750078216bc3e8d8e5a9e2e1773a8b6e2705beecb38c5047c61088e0775bd
3
+ metadata.gz: d4c1b653a8041f3089a016406e0612b721169c7ea613905e76cf99b5bc8decc7
4
+ data.tar.gz: 9410c774d3f60cc81358444da4b6d528028b59228c0d4b93f8c3daf5e6557d39
5
5
  SHA512:
6
- metadata.gz: f604a991df01b68132b640881b2ea70e930c2fe2a5aa13dbf1b7eece72070d808a69bc37fa58964266980718e7cc33b799622c9ac7c5c0567a58c346c98e81b4
7
- data.tar.gz: 7b4ef2f30857cbf1bba6154068139b8046cf1eccf509ace86ebbceafe9e629129171e6a984505c735c473f5d240f28f7f146c76b4aa41236af68b5d5fe68be89
6
+ metadata.gz: 8b52431d88a01dc6eb519a7def4b126fd6795bb9bf451ac304bab70321495cd6f658079aaefbc9fbf3d66b14c5753e83aa0cdddf33ad7f584b059c1e1cb56fbf
7
+ data.tar.gz: ebacc43686fd781c00818182606074d8928690d0cb9a5db0121107a9e4bc7578d0a22115da9a385946c189c823a25a9ba2ad2fcf9579b87cf3462ee88bdd5e27
@@ -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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.6.2
4
+ version: 4.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Bigg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-04 00:00:00.000000000 Z
11
+ date: 2023-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n-tasks
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - '='
116
116
  - !ruby/object:Gem::Version
117
- version: 4.6.2
117
+ version: 4.7.0
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.2
124
+ version: 4.7.0
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.2
409
+ changelog_uri: https://github.com/spree/spree/releases/tag/v4.7.0
410
410
  documentation_uri: https://dev-docs.spreecommerce.org/
411
- source_code_uri: https://github.com/spree/spree/tree/v4.6.2
411
+ source_code_uri: https://github.com/spree/spree/tree/v4.7.0
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
  - - ">="