solidus_sample 1.0.7 → 1.1.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/samples/payment_methods.rb +1 -29
- metadata +7 -12
- data/Gemfile +0 -5
- data/Rakefile +0 -14
- data/solidus_sample.gemspec +0 -22
- data/spec/lib/load_sample_spec.rb +0 -16
- data/spec/spec_helper.rb +0 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0549ec9a4605650b181a6d47fb907414451e2a7e
|
4
|
+
data.tar.gz: 10abc22eccc2bf507151735d110d8770ff5f0597
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 810b306d8cd9b7b43e59ebd382bb0e072f71040482f1f19e30a707f905e433b9b6d9fc357c1ac03f86c37c1890fb47c0083dea8676ed13e2159bc8f4e5e60a30
|
7
|
+
data.tar.gz: c1a424b381094cc7dd936100afb8b35a2995891f32cda7d3bf2d74147edbb30a6182cd942784f0ae50e3e7db0f28a4d5993fe2cd2ae32c0a1513a25765082149
|
@@ -1,35 +1,7 @@
|
|
1
1
|
Spree::Gateway::Bogus.create!(
|
2
2
|
{
|
3
3
|
:name => "Credit Card",
|
4
|
-
:description => "Bogus payment gateway
|
5
|
-
:environment => "development",
|
6
|
-
:active => true
|
7
|
-
}
|
8
|
-
)
|
9
|
-
|
10
|
-
Spree::Gateway::Bogus.create!(
|
11
|
-
{
|
12
|
-
:name => "Credit Card",
|
13
|
-
:description => "Bogus payment gateway for production.",
|
14
|
-
:environment => "production",
|
15
|
-
:active => true
|
16
|
-
}
|
17
|
-
)
|
18
|
-
|
19
|
-
Spree::Gateway::Bogus.create!(
|
20
|
-
{
|
21
|
-
:name => "Credit Card",
|
22
|
-
:description => "Bogus payment gateway for staging.",
|
23
|
-
:environment => "staging",
|
24
|
-
:active => true
|
25
|
-
}
|
26
|
-
)
|
27
|
-
|
28
|
-
Spree::Gateway::Bogus.create!(
|
29
|
-
{
|
30
|
-
:name => "Credit Card",
|
31
|
-
:description => "Bogus payment gateway for test.",
|
32
|
-
:environment => "test",
|
4
|
+
:description => "Bogus payment gateway",
|
33
5
|
:active => true
|
34
6
|
}
|
35
7
|
)
|
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.1.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: 2015-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: solidus_core
|
@@ -16,23 +16,21 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.0.
|
19
|
+
version: 1.1.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: 1.0.
|
26
|
+
version: 1.1.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
|
-
- Rakefile
|
36
34
|
- db/samples.rb
|
37
35
|
- db/samples/addresses.rb
|
38
36
|
- db/samples/assets.rb
|
@@ -78,9 +76,6 @@ files:
|
|
78
76
|
- lib/spree/sample.rb
|
79
77
|
- lib/spree_sample.rb
|
80
78
|
- lib/tasks/sample.rake
|
81
|
-
- solidus_sample.gemspec
|
82
|
-
- spec/lib/load_sample_spec.rb
|
83
|
-
- spec/spec_helper.rb
|
84
79
|
homepage: http://solidus.io/
|
85
80
|
licenses:
|
86
81
|
- BSD-3
|
@@ -96,13 +91,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
96
91
|
version: 2.1.0
|
97
92
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
93
|
requirements:
|
99
|
-
- - "
|
94
|
+
- - ">"
|
100
95
|
- !ruby/object:Gem::Version
|
101
|
-
version:
|
96
|
+
version: 1.3.1
|
102
97
|
requirements:
|
103
98
|
- none
|
104
99
|
rubyforge_project:
|
105
|
-
rubygems_version: 2.
|
100
|
+
rubygems_version: 2.4.5
|
106
101
|
signing_key:
|
107
102
|
specification_version: 4
|
108
103
|
summary: Sample data (including images) for use with Solidus.
|
data/Gemfile
DELETED
data/Rakefile
DELETED
@@ -1,14 +0,0 @@
|
|
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
|
data/solidus_sample.gemspec
DELETED
@@ -1,22 +0,0 @@
|
|
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
|
@@ -1,16 +0,0 @@
|
|
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
DELETED
@@ -1,34 +0,0 @@
|
|
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
|