solidus_sample 2.5.2 → 2.6.0.rc1

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: 6f4c0490fc10cfe02ca9ed98d7559658fa716a4a2211550fc46fc9bf98f63fb5
4
- data.tar.gz: bb183ad14c2d4b8e86975d82bf844898def2e067508a964afd8913b9eafc0987
3
+ metadata.gz: 554555b87f8e8857824a4c283287125f04a9f797822f5c06512cf0000c34b2e0
4
+ data.tar.gz: 8034008fbefe672b60657513124c2c43bf82bc086ca1ebd96bb1e136c9219c88
5
5
  SHA512:
6
- metadata.gz: 77ae3f072c8c1dc805b15b5fac5446b647135df9faaa1875ca41f6957598484df16f9f4129cb3617d543c78d923d3ba0d30bd00aaa3dccad284f9bd1a533c07a
7
- data.tar.gz: 6d6938af7e48c6bb4d2e27ee95bfa3494c7d25eaa5e0d8e476dd89476f081a6ee11408ae80f56250df5c3165aed642610d1b24b47ea091759fac151cb8649844
6
+ metadata.gz: c498e05d0526e231de0f7defe13450922e04d2073ebe91091ff4a79b7607d87ba047eaf5c0a2ad51e5f5fc34821f138c7f0dac1b9f81c0d50f49750fb19577f1
7
+ data.tar.gz: f030f4c85a5302921bea74515010eb2b43f0ffcedf0adfb56069ac3a7feca9ab89407a891553e433a31ddd32a4ff3fcbaf6c8fc1d347226c5eb93428f8ec4f04
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rake'
2
4
  require 'rake/testtask'
3
5
  require 'rspec/core/rake_task'
@@ -7,7 +9,7 @@ RSpec::Core::RakeTask.new
7
9
  task default: :spec
8
10
 
9
11
  DummyApp::RakeTasks.new(
10
- gem_root: File.expand_path('../', __FILE__),
12
+ gem_root: File.expand_path(__dir__),
11
13
  lib_name: 'solidus_sample'
12
14
  )
13
15
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  united_states = Spree::Country.find_by!(iso: "US")
2
4
  new_york = Spree::State.find_by!(name: "New York")
3
5
 
data/db/samples/assets.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Spree::Sample.load_sample("products")
2
4
  Spree::Sample.load_sample("variants")
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Spree::OptionType.create!([
2
4
  {
3
5
  name: "tshirt-size",
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Spree::Sample.load_sample("option_types")
2
4
 
3
5
  size = Spree::OptionType.find_by!(presentation: "Size")
data/db/samples/orders.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Spree::Sample.load_sample("addresses")
2
4
  Spree::Sample.load_sample("stores")
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Spree::PaymentMethod::BogusCreditCard.create!(
2
4
  {
3
5
  name: "Credit Card",
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # create payments based on the totals since they can't be known in YAML (quantities are random)
2
4
  method = Spree::PaymentMethod.where(name: 'Credit Card', active: true).first
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Spree::Sample.load_sample("products")
2
4
 
3
5
  size = Spree::OptionType.find_by!(presentation: "Size")
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  products =
2
4
  {
3
5
  "Ruby on Rails Baseball Jersey" =>
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Spree::Sample.load_sample("tax_categories")
2
4
  Spree::Sample.load_sample("shipping_categories")
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Spree::Sample.load_sample("orders")
2
4
 
3
5
  order = Spree::Order.last
@@ -1 +1,3 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Spree::ShippingCategory.find_or_create_by!(name: "Default")
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  begin
2
4
  north_america = Spree::Zone.find_by!(name: "North America")
3
5
  rescue ActiveRecord::RecordNotFound
data/db/samples/stock.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Spree::Sample.load_sample("variants")
2
4
 
3
5
  country = Spree::Country.find_by(iso: 'US')
data/db/samples/stores.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  unless Spree::Store.where(code: 'sample-store').exists?
2
4
  Spree::Store.create!(
3
5
  name: "Sample Store",
@@ -1 +1,3 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Spree::TaxCategory.find_or_create_by!(name: "Default")
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  north_america = Spree::Zone.find_by!(name: "North America")
2
4
  clothing = Spree::TaxCategory.find_by!(name: "Default")
3
5
  tax_rate = Spree::TaxRate.create(
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  taxonomies = [
2
4
  { name: "Categories" },
3
5
  { name: "Brand" }
data/db/samples/taxons.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Spree::Sample.load_sample("taxonomies")
2
4
  Spree::Sample.load_sample("products")
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Spree::Sample.load_sample("option_values")
2
4
  Spree::Sample.load_sample("products")
3
5
 
data/db/samples.rb CHANGED
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Spree::Sample.load_sample("payment_methods")
2
4
  Spree::Sample.load_sample("shipping_categories")
@@ -1 +1,3 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spree_sample'
data/lib/spree/sample.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spree_core'
2
4
  module Spree
3
5
  module Sample
data/lib/spree_sample.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spree_core'
2
4
  require 'spree/sample'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'pathname'
2
4
  require 'spree/sample'
3
5
 
@@ -1,4 +1,5 @@
1
- # encoding: UTF-8
1
+ # frozen_string_literal: true
2
+
2
3
  require_relative '../core/lib/spree/core/version.rb'
3
4
 
4
5
  Gem::Specification.new do |s|
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  describe "Load samples" do
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # This file is copied to ~/spec when you run 'ruby script/generate rspec'
2
4
  # from the project root directory.
3
5
  ENV["RAILS_ENV"] ||= 'test'
@@ -5,7 +7,7 @@ ENV["RAILS_ENV"] ||= 'test'
5
7
  require 'solidus_sample'
6
8
  require 'spree/testing_support/dummy_app'
7
9
  DummyApp.setup(
8
- gem_root: File.expand_path('../../', __FILE__),
10
+ gem_root: File.expand_path('..', __dir__),
9
11
  lib_name: 'solidus_sample'
10
12
  )
11
13
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_sample
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.2
4
+ version: 2.6.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: 2019-08-22 00:00:00.000000000 Z
11
+ date: 2018-05-10 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: 2.5.2
19
+ version: 2.6.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: 2.5.2
26
+ version: 2.6.0.rc1
27
27
  description: Sample data (including images) for use with Solidus.
28
28
  email: contact@solidus.io
29
29
  executables: []
@@ -101,7 +101,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  version: 1.8.23
102
102
  requirements:
103
103
  - none
104
- rubygems_version: 3.0.6
104
+ rubyforge_project:
105
+ rubygems_version: 2.7.6
105
106
  signing_key:
106
107
  specification_version: 4
107
108
  summary: Sample data (including images) for use with Solidus.