spree_sample 3.7.14.1 → 4.0.0.beta

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: bff484437acec2b73b91da680c96a28bc805ea75bc595991c6dbe7449eac40b0
4
- data.tar.gz: a0a77ecdca8ac6799354e66536aa298681e4ddec81b6b3ca4c367f401b65ee8e
3
+ metadata.gz: 99737715e7352687cbb7467731065106ea193fca1c34ca3c85aa18439e268324
4
+ data.tar.gz: fcc56c7cf25e963b4652fa664bbef76f6d5151faee13ece13e4e24b41343a9d1
5
5
  SHA512:
6
- metadata.gz: 3b9724a78be239c12c10cf5d8126ca33201134f34d67b86c9ed387e50bc55d965e519d5a13e604fb9fa32ff3e7762b0f6de7cd97a3aef29cd60b2a28417d17cd
7
- data.tar.gz: 5b6cccc3626544d9d53321fc0c95b9a913a35171323682dcd4060600c94635adca67bd8daa629eb26954314aba909783c1bce6110887a09ed76aab5c63bd93bb
6
+ metadata.gz: bc89f8838d7963ec50661d98cba6e830c720aeb166a7c479dc2a77f1a595951ec2a487f87c36be1d8eeced496dadf99acfddf7b2d20ca7aecf8be4d6ad83339f
7
+ data.tar.gz: c7b2b1e705d557703b7716baa7b8508eb5ca016e1d438224c4d5d09321af1c4866d5ff341b12998745be1681ba6402c7de9b8d769ca5bd28ed7ab76e5eadb927
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- eval(File.read(File.dirname(__FILE__) + '/../common_spree_dependencies.rb'))
1
+ eval_gemfile('../common_spree_dependencies.rb')
2
2
 
3
3
  gem 'spree_core', path: '../core'
4
4
 
data/db/samples/assets.rb CHANGED
@@ -187,25 +187,15 @@ unless ENV['SKIP_SAMPLE_IMAGES']
187
187
  products[:ror_baseball_jersey].variants.each do |variant|
188
188
  color = variant.option_value('tshirt-color').downcase
189
189
 
190
- if Rails.application.config.use_paperclip
191
- attach_paperclip_image(variant, "ror_baseball_jersey_#{color}", 'png')
192
- attach_paperclip_image(variant, "ror_baseball_jersey_back_#{color}", 'png')
193
- else
194
- attach_active_storage_image(variant, "ror_baseball_jersey_#{color}", 'png')
195
- attach_active_storage_image(variant, "ror_baseball_jersey_back_#{color}", 'png')
196
- end
190
+ attach_active_storage_image(variant, "ror_baseball_jersey_#{color}", 'png')
191
+ attach_active_storage_image(variant, "ror_baseball_jersey_back_#{color}", 'png')
197
192
  end
198
193
 
199
194
  images.each do |variant, attachments|
200
195
  puts "Loading images for #{variant.product.name}"
201
196
  attachments.each do |attrs|
202
- if Rails.application.config.use_paperclip
203
- file_name = attrs.delete(:name)
204
- variant.images.create!(attrs) if variant.images.where(attachment_file_name: file_name).none?
205
- else
206
- name, type = attrs.delete(:name).split('.')
207
- attach_active_storage_image(variant, name, type)
208
- end
197
+ name, type = attrs.delete(:name).split('.')
198
+ attach_active_storage_image(variant, name, type)
209
199
  end
210
200
  end
211
201
  end
@@ -162,5 +162,5 @@ variants.each do |attrs|
162
162
  end
163
163
 
164
164
  masters.each do |product, variant_attrs|
165
- product.master.update_attributes!(variant_attrs)
165
+ product.master.update!(variant_attrs)
166
166
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_sample
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.14.1
4
+ version: 4.0.0.beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Schofield
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-05 00:00:00.000000000 Z
11
+ date: 2019-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: spree_core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.7.14.1
19
+ version: 4.0.0.beta
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: 3.7.14.1
26
+ version: 4.0.0.beta
27
27
  description: Required dependency for Spree
28
28
  email: sean@spreecommerce.com
29
29
  executables: []
@@ -96,7 +96,7 @@ homepage: http://spreecommerce.org
96
96
  licenses:
97
97
  - BSD-3-Clause
98
98
  metadata: {}
99
- post_install_message:
99
+ post_install_message:
100
100
  rdoc_options: []
101
101
  require_paths:
102
102
  - lib
@@ -107,13 +107,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
107
107
  version: '0'
108
108
  required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  requirements:
110
- - - ">="
110
+ - - ">"
111
111
  - !ruby/object:Gem::Version
112
- version: '0'
112
+ version: 1.3.1
113
113
  requirements:
114
114
  - none
115
- rubygems_version: 3.1.4
116
- signing_key:
115
+ rubygems_version: 3.0.2
116
+ signing_key:
117
117
  specification_version: 4
118
118
  summary: Sample data (including images) for use with Spree.
119
119
  test_files: []