solidus_sample 1.3.2 → 1.4.0.beta1

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: 275d2e02476f4330671fca2741e076e3cdb24bd7
4
- data.tar.gz: cb4a04cf216bf77d97cdbcb13239a19a70a85951
3
+ metadata.gz: ad44fd1a58a2d5d80fa4a1f1d63194d9b16b8cd7
4
+ data.tar.gz: 056aa83c7eb7aecbd5b0306bfee4fc1bf74f809c
5
5
  SHA512:
6
- metadata.gz: 316357c9d42a82c94d213ba9f0a076069b069a92278f6609a78c1968c556215b0aba90a385b0122ad7f5d316c2eb39ad085517bc7f10ca54d2fafff9449dcdfb
7
- data.tar.gz: ebd0503c64630b49890e402eda417276845f6eff23d387176e54b9ac6b79cc80705ac80e4fbed75f22ddfe88443d91f5d6df9005b19209fb885098253a3d5b38
6
+ metadata.gz: 6c11d9e571a5a20f8148f92af6df0eb4e275514ed607c114d85f36ae7d531a3e97872017f8dbc4ebeb6c30375bf8fcd246b8544dc8c879a007663ac31642fe04
7
+ data.tar.gz: e5c7e75044f266a62dfb82d5040a959e812f146d6a276e7801b347b103e6137a1ba7245441137786bf0652fa77910c069b8c636fcea8ac331b5cecde65ac16f2
data/README.md ADDED
@@ -0,0 +1,22 @@
1
+ # solidus\_sample
2
+
3
+ Sample contains a set of test data which is used to generate the sandbox can be
4
+ used to test out stores.
5
+
6
+ Applications including the `solidus_sample` gem are provided a rake task to
7
+ load the sample data:
8
+
9
+ ```
10
+ bundle exec rake spree_sample:load
11
+ ```
12
+
13
+
14
+ ## Testing
15
+
16
+ Create the test site
17
+
18
+ bundle exec rake test_app
19
+
20
+ Run the tests
21
+
22
+ bundle exec rake spec
@@ -0,0 +1,21 @@
1
+ Spree::Sample.load_sample("orders")
2
+
3
+ order = Spree::Order.last
4
+ inventory_unit = order.inventory_units.first
5
+ stock_location = inventory_unit.find_stock_item.stock_location
6
+
7
+ return_item = Spree::ReturnItem.create(inventory_unit: inventory_unit)
8
+
9
+ return_item.exchange_variant = return_item.eligible_exchange_variants.last
10
+ return_item.build_exchange_inventory_unit
11
+ return_item.accept!
12
+
13
+ customer_return = Spree::CustomerReturn.create(
14
+ stock_location: stock_location,
15
+ return_items: [return_item]
16
+ )
17
+
18
+ order.reimbursements.create(
19
+ customer_return: customer_return,
20
+ return_items: [return_item]
21
+ )
data/lib/spree_sample.rb CHANGED
@@ -25,6 +25,7 @@ module SpreeSample
25
25
 
26
26
  Spree::Sample.load_sample("orders")
27
27
  Spree::Sample.load_sample("payments")
28
+ Spree::Sample.load_sample("reimbursements")
28
29
  end
29
30
  end
30
31
  end
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: 1.3.2
4
+ version: 1.4.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Solidus Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-12 00:00:00.000000000 Z
11
+ date: 2016-08-19 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: 1.3.2
19
+ version: 1.4.0.beta1
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: 1.3.2
26
+ version: 1.4.0.beta1
27
27
  description: Sample data (including images) for use with Solidus.
28
28
  email: contact@solidus.io
29
29
  executables: []
@@ -32,6 +32,7 @@ extra_rdoc_files: []
32
32
  files:
33
33
  - Gemfile
34
34
  - LICENSE
35
+ - README.md
35
36
  - Rakefile
36
37
  - db/samples.rb
37
38
  - db/samples/addresses.rb
@@ -65,6 +66,7 @@ files:
65
66
  - db/samples/product_properties.rb
66
67
  - db/samples/products.rb
67
68
  - db/samples/prototypes.rb
69
+ - db/samples/reimbursements.rb
68
70
  - db/samples/shipping_categories.rb
69
71
  - db/samples/shipping_methods.rb
70
72
  - db/samples/stock.rb
@@ -96,13 +98,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
96
98
  version: 2.1.0
97
99
  required_rubygems_version: !ruby/object:Gem::Requirement
98
100
  requirements:
99
- - - ">="
101
+ - - ">"
100
102
  - !ruby/object:Gem::Version
101
- version: '0'
103
+ version: 1.3.1
102
104
  requirements:
103
105
  - none
104
106
  rubyforge_project:
105
- rubygems_version: 2.6.11
107
+ rubygems_version: 2.5.1
106
108
  signing_key:
107
109
  specification_version: 4
108
110
  summary: Sample data (including images) for use with Solidus.