spree_sample 3.1.14 → 3.2.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ require 'spree/sample'
4
4
 
5
5
  namespace :spree_sample do
6
6
  desc 'Loads sample data'
7
- task :load => :environment do
7
+ task load: :environment do
8
8
  if ARGV.include?("db:migrate")
9
9
  puts %Q{
10
10
  Please run db:migrate separately from spree_sample:load.
@@ -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
@@ -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
data/spree_sample.gemspec CHANGED
@@ -11,9 +11,9 @@ Gem::Specification.new do |s|
11
11
  s.author = 'Sean Schofield'
12
12
  s.email = 'sean@spreecommerce.com'
13
13
  s.homepage = 'http://spreecommerce.com'
14
- s.license = 'BSD-3'
14
+ s.license = 'BSD-3-Clause'
15
15
 
16
- s.files = `git ls-files`.split("\n").reject { |f| f.match(/^spec/) && !f.match(/^spec\/fixtures/) }
16
+ s.files = `git ls-files`.split("\n")
17
17
  s.require_path = 'lib'
18
18
  s.requirements << 'none'
19
19
 
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.1.14
4
+ version: 3.2.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: 2019-01-24 00:00:00.000000000 Z
11
+ date: 2016-12-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.1.14
19
+ version: 3.2.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.1.14
26
+ version: 3.2.0.rc1
27
27
  description: Required dependency for Spree
28
28
  email: sean@spreecommerce.com
29
29
  executables: []
@@ -90,10 +90,12 @@ files:
90
90
  - lib/spree/sample.rb
91
91
  - lib/spree_sample.rb
92
92
  - lib/tasks/sample.rake
93
+ - spec/lib/load_sample_spec.rb
94
+ - spec/spec_helper.rb
93
95
  - spree_sample.gemspec
94
96
  homepage: http://spreecommerce.com
95
97
  licenses:
96
- - BSD-3
98
+ - BSD-3-Clause
97
99
  metadata: {}
98
100
  post_install_message:
99
101
  rdoc_options: []
@@ -106,13 +108,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
108
  version: '0'
107
109
  required_rubygems_version: !ruby/object:Gem::Requirement
108
110
  requirements:
109
- - - ">="
111
+ - - ">"
110
112
  - !ruby/object:Gem::Version
111
- version: '0'
113
+ version: 1.3.1
112
114
  requirements:
113
115
  - none
114
116
  rubyforge_project:
115
- rubygems_version: 2.6.10
117
+ rubygems_version: 2.5.1
116
118
  signing_key:
117
119
  specification_version: 4
118
120
  summary: Sample data (including images) for use with Spree.