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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 61497abc2ef7a51f4865d22daf7e6e0c948a82f8
4
- data.tar.gz: a47cb830f382e39ac34a9af45733c1d74b489c8b
3
+ metadata.gz: c55b97521e09392782ba4f0ee7b6a12121ccc294
4
+ data.tar.gz: 1e5af71be6b503cf0302785f90a72b6c4734dd5c
5
5
  SHA512:
6
- metadata.gz: 14bbb12e9f8688d123d5015019083211bfcf68af664fed520e8415d8b2a1af0707a26587304e6f25869907b9e7632ad48e56211eae01e78557179b23b8f0c5d7
7
- data.tar.gz: 470ada9623d782b2198fc50ffcdfc1d4a8307ff1a31409d279a816cd66227a15bf67d68c2fb5755c7f8ec319dcaad3072f7b0532b3de2c58cce17da915336757
6
+ metadata.gz: 5d883d4b1ef816b5d04b51f5a6800285e14726bcc288446f954b19c868abe32e703413ff20edf5e1b1f01e242275cdb01192c649f8fb97aad723e6bade06a2a9
7
+ data.tar.gz: dbe547d8c0e8a6ee044344f67851b6086dfa0ecd282c23faca9465e48692693665e67417fc64308a502cea77e36899e4738d60ec9e9db68e9d18e6c599cb9286
@@ -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
- :firstname => Faker::Name.first_name,
7
- :lastname => Faker::Name.last_name,
8
- :address1 => Faker::Address.street_address,
9
- :address2 => Faker::Address.secondary_address,
10
- :city => Faker::Address.city,
11
- :state => new_york,
12
- :zipcode => 16804,
13
- :country => united_states,
14
- :phone => Faker::PhoneNumber.phone_number)
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
- :firstname => Faker::Name.first_name,
19
- :lastname => Faker::Name.last_name,
20
- :address1 => Faker::Address.street_address,
21
- :address2 => Faker::Address.secondary_address,
22
- :city => Faker::Address.city,
23
- :state => new_york,
24
- :zipcode => 16804,
25
- :country => united_states,
26
- :phone => Faker::PhoneNumber.phone_number)
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
@@ -33,6 +33,6 @@ orders.each(&:create_proposed_shipments)
33
33
 
34
34
  orders.each do |order|
35
35
  order.state = "complete"
36
- order.completed_at = Time.now - 1.day
36
+ order.completed_at = Time.current - 1.day
37
37
  order.save!
38
38
  end
@@ -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.update!
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
@@ -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
- :description => Faker::Lorem.paragraph,
9
- :available_on => Time.zone.now
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
@@ -26,6 +26,7 @@ module SpreeSample
26
26
  Spree::Sample.load_sample("orders")
27
27
  Spree::Sample.load_sample("adjustments")
28
28
  Spree::Sample.load_sample("payments")
29
+ Spree::Sample.load_sample("store_credit_categories")
29
30
  end
30
31
  end
31
32
  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.0.10
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-08-16 00:00:00.000000000 Z
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.10
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.10
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: '0'
113
+ version: 1.3.1
113
114
  requirements:
114
115
  - none
115
116
  rubyforge_project:
116
- rubygems_version: 2.5.1
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.