spree_sample 3.0.5 → 3.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +5 -0
- data/Rakefile +28 -0
- data/spec/lib/load_sample_spec.rb +18 -0
- data/spec/spec_helper.rb +23 -0
- data/spree_sample.gemspec +21 -0
- metadata +10 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a113d10dae41a0b3c9fdcb4a254fbfe61e9c6b6d
|
4
|
+
data.tar.gz: 82c3180f018deef8d28ae6e8cba8f5e230b88735
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3617e80c1d438e00c0105cae2e4271b5145875350a8516068110a571efeb498adf07b74196c34e8684e9bcc72be091387e3d246ad57418f559f174177a60a3fb
|
7
|
+
data.tar.gz: 48dba8cb5fda2d8bd96a7e0c17f234b0f22f86eb27369b5865d04a54b1e2f1050852a354dde84ee99509db89fc5da9e9f6f4f90037b6d44af564aaf173e39eb4
|
data/Gemfile
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'rake'
|
2
|
+
require 'rake/testtask'
|
3
|
+
require 'rake/packagetask'
|
4
|
+
require 'rubygems/package_task'
|
5
|
+
require 'rspec/core/rake_task'
|
6
|
+
require 'spree/testing_support/common_rake'
|
7
|
+
|
8
|
+
spec = eval(File.read('spree_sample.gemspec'))
|
9
|
+
|
10
|
+
Gem::PackageTask.new(spec) do |p|
|
11
|
+
p.gem_spec = spec
|
12
|
+
end
|
13
|
+
|
14
|
+
desc "Release to gemcutter"
|
15
|
+
task :release do
|
16
|
+
version = File.read(File.expand_path("../../SPREE_VERSION", __FILE__)).strip
|
17
|
+
cmd = "cd pkg && gem push spree_sample-#{version}.gem"; puts cmd; system cmd
|
18
|
+
end
|
19
|
+
|
20
|
+
desc "Generates a dummy app for testing"
|
21
|
+
task :test_app do
|
22
|
+
ENV['LIB_NAME'] = 'spree/sample'
|
23
|
+
Rake::Task['common:test_app'].invoke
|
24
|
+
Rake::Task['common:seed'].invoke
|
25
|
+
end
|
26
|
+
|
27
|
+
RSpec::Core::RakeTask.new
|
28
|
+
task :default => :spec
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "Load samples" do
|
4
|
+
before do
|
5
|
+
# Seeds are only run for rake test_app so to allow this spec to pass without
|
6
|
+
# rerunning rake test_app every time we must load them in if not already.
|
7
|
+
unless Spree::Zone.find_by_name("North America")
|
8
|
+
load Rails.root + 'Rakefile'
|
9
|
+
load Rails.root + 'db/seeds.rb'
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
it "doesn't raise any error" do
|
14
|
+
expect {
|
15
|
+
SpreeSample::Engine.load_samples
|
16
|
+
}.to_not raise_error
|
17
|
+
end
|
18
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,23 @@
|
|
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
|
+
require File.expand_path("../dummy/config/environment", __FILE__)
|
5
|
+
require 'rspec/rails'
|
6
|
+
require 'ffaker'
|
7
|
+
require 'spree_sample'
|
8
|
+
require 'spree/testing_support/shoulda_matcher_configuration'
|
9
|
+
|
10
|
+
RSpec.configure do |config|
|
11
|
+
config.color = true
|
12
|
+
config.fail_fast = ENV['FAIL_FAST'] || false
|
13
|
+
config.infer_spec_type_from_file_location!
|
14
|
+
config.mock_with :rspec
|
15
|
+
config.raise_errors_for_deprecations!
|
16
|
+
|
17
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
18
|
+
# examples within a transaction, comment the following line or assign false
|
19
|
+
# instead of true.
|
20
|
+
config.use_transactional_fixtures = true
|
21
|
+
|
22
|
+
config.include FactoryGirl::Syntax::Methods
|
23
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
version = File.read(File.expand_path("../../SPREE_VERSION", __FILE__)).strip
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.platform = Gem::Platform::RUBY
|
6
|
+
s.name = 'spree_sample'
|
7
|
+
s.version = version
|
8
|
+
s.summary = 'Sample data (including images) for use with Spree.'
|
9
|
+
s.description = 'Required dependency for Spree'
|
10
|
+
|
11
|
+
s.author = 'Sean Schofield'
|
12
|
+
s.email = 'sean@spreecommerce.com'
|
13
|
+
s.homepage = 'http://spreecommerce.com'
|
14
|
+
s.license = %q{BSD-3}
|
15
|
+
|
16
|
+
s.files = `git ls-files`.split("\n")
|
17
|
+
s.require_path = 'lib'
|
18
|
+
s.requirements << 'none'
|
19
|
+
|
20
|
+
s.add_dependency 'spree_core', version
|
21
|
+
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.
|
4
|
+
version: 3.0.6
|
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-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: spree_core
|
@@ -16,21 +16,23 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.0.
|
19
|
+
version: 3.0.6
|
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.0.6
|
27
27
|
description: Required dependency for Spree
|
28
28
|
email: sean@spreecommerce.com
|
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/adjustments.rb
|
@@ -87,6 +89,9 @@ files:
|
|
87
89
|
- lib/spree/sample.rb
|
88
90
|
- lib/spree_sample.rb
|
89
91
|
- lib/tasks/sample.rake
|
92
|
+
- spec/lib/load_sample_spec.rb
|
93
|
+
- spec/spec_helper.rb
|
94
|
+
- spree_sample.gemspec
|
90
95
|
homepage: http://spreecommerce.com
|
91
96
|
licenses:
|
92
97
|
- BSD-3
|
@@ -108,9 +113,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
113
|
requirements:
|
109
114
|
- none
|
110
115
|
rubyforge_project:
|
111
|
-
rubygems_version: 2.4.
|
116
|
+
rubygems_version: 2.4.8
|
112
117
|
signing_key:
|
113
118
|
specification_version: 4
|
114
119
|
summary: Sample data (including images) for use with Spree.
|
115
120
|
test_files: []
|
116
|
-
has_rdoc:
|