solidus_sample 1.1.0 → 1.1.1

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: 4af83cce74cf76fd03bc58ea2afaf5644600be9a
4
- data.tar.gz: 32bfeb984876c44b699a80f5d55f63dee9e195fc
3
+ metadata.gz: 65a318ece7c8c91e3b50469417bc8c2c82cef8ab
4
+ data.tar.gz: 4f755eb1d6a8299ee1d6f3d966ed246b028448a3
5
5
  SHA512:
6
- metadata.gz: a93e5729f6a25e3afd7e6751a80c190f91a1d3777dd49d1e906aa29fae537b7c69647017110db11a3d2c78d2bb709213c7879e38520469705bbcad391b32f64d
7
- data.tar.gz: 145a63720c47d1533fcc5a107f2bf5b9c68954882679b389a12bcdc3da585466b0bb30f19f3f55c11d1ec3097ebab1be8e776c7b777dca2440d8b821bbd373a6
6
+ metadata.gz: 7e25d2800024d0da48438430c4c76cdb912a6c54cffc31334387d5f864cedf6e46e068f40c0a1ba0428bc6f1201560b769d4f1f001d06dbfdb1eaff4d10f006a
7
+ data.tar.gz: efa381175a1662d3b795e23310c68f60c9eef10e8a5be31705f003cb1abd2da6b4564ce58ecea236385999dcf0bf4eb3e5dce912364fbfdf6741234142e9a2a7
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ eval(File.read(File.dirname(__FILE__) + '/../common_spree_dependencies.rb'))
2
+
3
+ gem 'solidus_core', :path => '../core'
4
+
5
+ gemspec
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
@@ -0,0 +1,39 @@
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.expect_with :rspec do |c|
20
+ c.syntax = :expect
21
+ end
22
+ config.mock_with :rspec do |c|
23
+ c.syntax = :expect
24
+ end
25
+
26
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
27
+ # examples within a transaction, comment the following line or assign false
28
+ # instead of true.
29
+ config.use_transactional_fixtures = true
30
+
31
+ config.include FactoryGirl::Syntax::Methods
32
+ config.fail_fast = ENV['FAIL_FAST'] || false
33
+
34
+ config.example_status_persistence_file_path = "./spec/examples.txt"
35
+
36
+ config.order = :random
37
+
38
+ Kernel.srand config.seed
39
+ 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.1.0
4
+ version: 1.1.1
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-25 00:00:00.000000000 Z
11
+ date: 2015-12-22 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.1.0
19
+ version: 1.1.1
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.1.0
26
+ version: 1.1.1
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