spree_sample 3.0.10 → 3.1.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/samples/addresses.rb +18 -18
- data/db/samples/orders.rb +1 -1
- data/db/samples/payments.rb +1 -1
- data/db/samples/products.rb +2 -2
- data/db/samples/store_credit_categories.rb +1 -0
- data/lib/spree_sample.rb +1 -0
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c55b97521e09392782ba4f0ee7b6a12121ccc294
|
4
|
+
data.tar.gz: 1e5af71be6b503cf0302785f90a72b6c4734dd5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d883d4b1ef816b5d04b51f5a6800285e14726bcc288446f954b19c868abe32e703413ff20edf5e1b1f01e242275cdb01192c649f8fb97aad723e6bade06a2a9
|
7
|
+
data.tar.gz: dbe547d8c0e8a6ee044344f67851b6086dfa0ecd282c23faca9465e48692693665e67417fc64308a502cea77e36899e4738d60ec9e9db68e9d18e6c599cb9286
|
data/db/samples/addresses.rb
CHANGED
@@ -3,24 +3,24 @@ new_york = Spree::State.find_by_name!("New York")
|
|
3
3
|
|
4
4
|
# Billing address
|
5
5
|
Spree::Address.create!(
|
6
|
-
:
|
7
|
-
:
|
8
|
-
:
|
9
|
-
:
|
10
|
-
:
|
11
|
-
:
|
12
|
-
:
|
13
|
-
:
|
14
|
-
:
|
6
|
+
firstname: FFaker::Name.first_name,
|
7
|
+
lastname: FFaker::Name.last_name,
|
8
|
+
address1: FFaker::Address.street_address,
|
9
|
+
address2: FFaker::Address.secondary_address,
|
10
|
+
city: FFaker::Address.city,
|
11
|
+
state: new_york,
|
12
|
+
zipcode: 16804,
|
13
|
+
country: united_states,
|
14
|
+
phone: FFaker::PhoneNumber.phone_number)
|
15
15
|
|
16
16
|
#Shipping address
|
17
17
|
Spree::Address.create!(
|
18
|
-
:
|
19
|
-
:
|
20
|
-
:
|
21
|
-
:
|
22
|
-
:
|
23
|
-
:
|
24
|
-
:
|
25
|
-
:
|
26
|
-
:
|
18
|
+
firstname: FFaker::Name.first_name,
|
19
|
+
lastname: FFaker::Name.last_name,
|
20
|
+
address1: FFaker::Address.street_address,
|
21
|
+
address2: FFaker::Address.secondary_address,
|
22
|
+
city: FFaker::Address.city,
|
23
|
+
state: new_york,
|
24
|
+
zipcode: 16804,
|
25
|
+
country: united_states,
|
26
|
+
phone: FFaker::PhoneNumber.phone_number)
|
data/db/samples/orders.rb
CHANGED
data/db/samples/payments.rb
CHANGED
@@ -16,7 +16,7 @@ creditcard = Spree::CreditCard.create(:cc_type => 'visa', :month => 12, :year =>
|
|
16
16
|
:name => 'Sean Schofield', :gateway_customer_profile_id => 'BGS-1234')
|
17
17
|
|
18
18
|
Spree::Order.all.each_with_index do |order, index|
|
19
|
-
order.
|
19
|
+
order.update_with_updater!
|
20
20
|
payment = order.payments.create!(:amount => order.total, :source => creditcard.clone, :payment_method => method)
|
21
21
|
payment.update_columns(:state => 'pending', :response_code => '12345')
|
22
22
|
end
|
data/db/samples/products.rb
CHANGED
@@ -5,8 +5,8 @@ clothing = Spree::TaxCategory.find_by_name!("Clothing")
|
|
5
5
|
shipping_category = Spree::ShippingCategory.find_by_name!("Default")
|
6
6
|
|
7
7
|
default_attrs = {
|
8
|
-
:
|
9
|
-
:
|
8
|
+
description: FFaker::Lorem.paragraph,
|
9
|
+
available_on: Time.zone.now
|
10
10
|
}
|
11
11
|
|
12
12
|
products = [
|
@@ -0,0 +1 @@
|
|
1
|
+
Spree::StoreCreditCategory.find_or_create_by!(name: "Default")
|
data/lib/spree_sample.rb
CHANGED
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.0.
|
4
|
+
version: 3.1.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Schofield
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-07 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.0.
|
19
|
+
version: 3.1.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: 3.0.
|
26
|
+
version: 3.1.0.rc1
|
27
27
|
description: Required dependency for Spree
|
28
28
|
email: sean@spreecommerce.com
|
29
29
|
executables: []
|
@@ -81,6 +81,7 @@ files:
|
|
81
81
|
- db/samples/shipping_categories.rb
|
82
82
|
- db/samples/shipping_methods.rb
|
83
83
|
- db/samples/stock.rb
|
84
|
+
- db/samples/store_credit_categories.rb
|
84
85
|
- db/samples/tax_categories.rb
|
85
86
|
- db/samples/tax_rates.rb
|
86
87
|
- db/samples/taxonomies.rb
|
@@ -107,13 +108,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
107
108
|
version: '0'
|
108
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
109
110
|
requirements:
|
110
|
-
- - "
|
111
|
+
- - ">"
|
111
112
|
- !ruby/object:Gem::Version
|
112
|
-
version:
|
113
|
+
version: 1.3.1
|
113
114
|
requirements:
|
114
115
|
- none
|
115
116
|
rubyforge_project:
|
116
|
-
rubygems_version: 2.
|
117
|
+
rubygems_version: 2.4.8
|
117
118
|
signing_key:
|
118
119
|
specification_version: 4
|
119
120
|
summary: Sample data (including images) for use with Spree.
|