solidus_sample 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +5 -0
- data/Rakefile +14 -0
- data/solidus_sample.gemspec +22 -0
- data/spec/lib/load_sample_spec.rb +16 -0
- data/spec/spec_helper.rb +34 -0
- metadata +9 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d82791c5a97f461fbd50dc7bb762d7238bc564d5
|
4
|
+
data.tar.gz: cd1bfaf47019b630bd2abf62bdf0b05f6f44ca67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f9641ae3140684892aad16bfc0e21df22364b2ec6178e8ade9dc0227d5ae1e5e6a9231fdf8f3176dd3edc7f9fa47746c69bbb1a3a49dc008b72b4248f6ebaf4
|
7
|
+
data.tar.gz: d49340b5b9ef656ab40236fe8e064c38b3a94557ed8822f0068664b2826fe7329f2811f8e763f967f5ea7eaf514f837c3ee4f029b105caab89ce323137eefb40
|
data/Gemfile
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'rake'
|
2
|
+
require 'rake/testtask'
|
3
|
+
require 'rspec/core/rake_task'
|
4
|
+
require 'spree/testing_support/common_rake'
|
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
|
+
Rake::Task['common:seed'].invoke
|
11
|
+
end
|
12
|
+
|
13
|
+
RSpec::Core::RakeTask.new
|
14
|
+
task :default => :spec
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
version = File.read(File.expand_path("../../SOLIDUS_VERSION", __FILE__)).strip
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.platform = Gem::Platform::RUBY
|
6
|
+
s.name = 'solidus_sample'
|
7
|
+
s.version = version
|
8
|
+
s.summary = 'Sample data (including images) for use with Solidus.'
|
9
|
+
s.description = s.summary
|
10
|
+
|
11
|
+
s.required_ruby_version = '>= 2.1.0'
|
12
|
+
s.author = 'Solidus Team'
|
13
|
+
s.email = 'contact@solidus.io'
|
14
|
+
s.homepage = 'http://solidus.io/'
|
15
|
+
s.license = %q{BSD-3}
|
16
|
+
|
17
|
+
s.files = `git ls-files`.split("\n")
|
18
|
+
s.require_path = 'lib'
|
19
|
+
s.requirements << 'none'
|
20
|
+
|
21
|
+
s.add_dependency 'solidus_core', version
|
22
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "Load samples" do
|
4
|
+
it "doesn't raise any error" do
|
5
|
+
expect {
|
6
|
+
# Seeds are only run for rake test_app so to allow this spec to pass without
|
7
|
+
# rerunning rake test_app every time we must load them in if not already.
|
8
|
+
unless Spree::Zone.find_by_name("North America")
|
9
|
+
load Rails.root + 'Rakefile'
|
10
|
+
load Rails.root + 'db/seeds.rb'
|
11
|
+
end
|
12
|
+
|
13
|
+
SpreeSample::Engine.load_samples
|
14
|
+
}.to output.to_stdout
|
15
|
+
end
|
16
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# This file is copied to ~/spec when you run 'ruby script/generate rspec'
|
2
|
+
# from the project root directory.
|
3
|
+
ENV["RAILS_ENV"] ||= 'test'
|
4
|
+
|
5
|
+
begin
|
6
|
+
require File.expand_path("../dummy/config/environment", __FILE__)
|
7
|
+
rescue LoadError
|
8
|
+
$stderr.puts "Could not load dummy application. Please ensure you have run `bundle exec rake test_app`"
|
9
|
+
exit 1
|
10
|
+
end
|
11
|
+
|
12
|
+
require 'rspec/rails'
|
13
|
+
require 'ffaker'
|
14
|
+
require 'spree_sample'
|
15
|
+
|
16
|
+
RSpec.configure do |config|
|
17
|
+
config.color = true
|
18
|
+
config.infer_spec_type_from_file_location!
|
19
|
+
config.mock_with :rspec
|
20
|
+
|
21
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
22
|
+
# examples within a transaction, comment the following line or assign false
|
23
|
+
# instead of true.
|
24
|
+
config.use_transactional_fixtures = true
|
25
|
+
|
26
|
+
config.include FactoryGirl::Syntax::Methods
|
27
|
+
config.fail_fast = ENV['FAIL_FAST'] || false
|
28
|
+
|
29
|
+
config.example_status_persistence_file_path = "./spec/examples.txt"
|
30
|
+
|
31
|
+
config.order = :random
|
32
|
+
|
33
|
+
Kernel.srand config.seed
|
34
|
+
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.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Solidus Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: solidus_core
|
@@ -16,21 +16,23 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.0.
|
19
|
+
version: 1.0.3
|
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.0.
|
26
|
+
version: 1.0.3
|
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
|
33
34
|
- LICENSE
|
35
|
+
- Rakefile
|
34
36
|
- db/samples.rb
|
35
37
|
- db/samples/addresses.rb
|
36
38
|
- db/samples/assets.rb
|
@@ -76,6 +78,9 @@ files:
|
|
76
78
|
- lib/spree/sample.rb
|
77
79
|
- lib/spree_sample.rb
|
78
80
|
- lib/tasks/sample.rake
|
81
|
+
- solidus_sample.gemspec
|
82
|
+
- spec/lib/load_sample_spec.rb
|
83
|
+
- spec/spec_helper.rb
|
79
84
|
homepage: http://solidus.io/
|
80
85
|
licenses:
|
81
86
|
- BSD-3
|