solidus_sample 2.4.2 → 2.5.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +1 -5
- data/Rakefile +8 -7
- data/db/samples/stores.rb +8 -6
- data/spec/lib/load_sample_spec.rb +1 -3
- data/spec/spec_helper.rb +7 -11
- metadata +5 -6
- data/Gemfile +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d87f5260cb9bc8048141e56fb5cf8548c28d6f24b736099328f9b4528108067d
|
4
|
+
data.tar.gz: bbe8120a5ae9ed9f2e71e55fc3767078fde2c141a263be5d2c00ddee43328c71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc86b5df105f6525f18a19319b4b943496fcda8473ac4ef95756b27d70e98e80efbfafc95b15dd6262d4b6f00e7654a0ebe00e7ce508530a28b3967e0c01fff9
|
7
|
+
data.tar.gz: cf144c20dc563ed49cbad0a462eb1c2e0f0347f5d833b4f7f493e8db9d35eed926bfb890a6103ba22cc4f97a316130784baf69d64259caf3f4830b771dd21b78
|
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
require 'rake'
|
2
2
|
require 'rake/testtask'
|
3
3
|
require 'rspec/core/rake_task'
|
4
|
-
require 'spree/testing_support/
|
5
|
-
|
6
|
-
desc "Generates a dummy app for testing"
|
7
|
-
task :test_app do
|
8
|
-
ENV['LIB_NAME'] = 'spree/sample'
|
9
|
-
Rake::Task['common:test_app'].invoke
|
10
|
-
end
|
4
|
+
require 'spree/testing_support/dummy_app/rake_tasks'
|
11
5
|
|
12
6
|
RSpec::Core::RakeTask.new
|
13
7
|
task default: :spec
|
8
|
+
|
9
|
+
DummyApp::RakeTasks.new(
|
10
|
+
gem_root: File.expand_path('../', __FILE__),
|
11
|
+
lib_name: 'solidus_sample'
|
12
|
+
)
|
13
|
+
|
14
|
+
task test_app: 'db:reset'
|
data/db/samples/stores.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
-
Spree::Store.
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
unless Spree::Store.where(code: 'sample-store').exists?
|
2
|
+
Spree::Store.create!(
|
3
|
+
name: "Sample Store",
|
4
|
+
code: "sample-store",
|
5
|
+
url: "example.com",
|
6
|
+
mail_from_address: "store@example.com"
|
7
|
+
)
|
8
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -2,16 +2,15 @@
|
|
2
2
|
# from the project root directory.
|
3
3
|
ENV["RAILS_ENV"] ||= 'test'
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
5
|
+
require 'solidus_sample'
|
6
|
+
require 'spree/testing_support/dummy_app'
|
7
|
+
DummyApp.setup(
|
8
|
+
gem_root: File.expand_path('../../', __FILE__),
|
9
|
+
lib_name: 'solidus_sample'
|
10
|
+
)
|
11
11
|
|
12
12
|
require 'rspec/rails'
|
13
|
-
require '
|
14
|
-
require 'spree_sample'
|
13
|
+
require 'database_cleaner'
|
15
14
|
|
16
15
|
RSpec.configure do |config|
|
17
16
|
config.color = true
|
@@ -32,9 +31,6 @@ RSpec.configure do |config|
|
|
32
31
|
# instead of true.
|
33
32
|
config.use_transactional_fixtures = false
|
34
33
|
|
35
|
-
config.include FactoryGirl::Syntax::Methods
|
36
|
-
config.fail_fast = ENV['FAIL_FAST'] || false
|
37
|
-
|
38
34
|
config.example_status_persistence_file_path = "./spec/examples.txt"
|
39
35
|
|
40
36
|
config.order = :random
|
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.
|
4
|
+
version: 2.5.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:
|
11
|
+
date: 2018-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: solidus_core
|
@@ -16,21 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: 2.5.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: 2.
|
26
|
+
version: 2.5.0.beta1
|
27
27
|
description: Sample data (including images) for use with Solidus.
|
28
28
|
email: contact@solidus.io
|
29
29
|
executables: []
|
30
30
|
extensions: []
|
31
31
|
extra_rdoc_files: []
|
32
32
|
files:
|
33
|
-
- Gemfile
|
34
33
|
- LICENSE
|
35
34
|
- README.md
|
36
35
|
- Rakefile
|
@@ -103,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
102
|
requirements:
|
104
103
|
- none
|
105
104
|
rubyforge_project:
|
106
|
-
rubygems_version: 2.
|
105
|
+
rubygems_version: 2.7.3
|
107
106
|
signing_key:
|
108
107
|
specification_version: 4
|
109
108
|
summary: Sample data (including images) for use with Solidus.
|