solidus_marketplace 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +18 -0
  3. data/.rspec +1 -0
  4. data/.travis.yml +11 -0
  5. data/Gemfile +8 -0
  6. data/LICENSE +26 -0
  7. data/README.md +123 -0
  8. data/Rakefile +15 -0
  9. data/Versionfile +6 -0
  10. data/app/assets/javascripts/spree/backend/solidus_marketplace.js +5 -0
  11. data/app/assets/javascripts/spree/backend/solidus_marketplace_routes.js +1 -0
  12. data/app/assets/javascripts/spree/backend/suppliers_autocomplete.js +55 -0
  13. data/app/assets/javascripts/spree/frontend/solidus_marketplace.js +1 -0
  14. data/app/assets/stylesheets/spree/backend/solidus_marketplace.scss +22 -0
  15. data/app/assets/stylesheets/spree/frontend/solidus_marketplace.css +3 -0
  16. data/app/controllers/ckeditor/attachment_files_controller_decorator.rb +20 -0
  17. data/app/controllers/ckeditor/pictures_controller_decorator.rb +17 -0
  18. data/app/controllers/spree/admin/marketplace_settings_controller.rb +19 -0
  19. data/app/controllers/spree/admin/products_controller_decorator.rb +79 -0
  20. data/app/controllers/spree/admin/reports_controller_decorator.rb +68 -0
  21. data/app/controllers/spree/admin/shipments_controller.rb +47 -0
  22. data/app/controllers/spree/admin/stock_items_controller_decorator.rb +10 -0
  23. data/app/controllers/spree/admin/stock_locations_controller_decorator.rb +23 -0
  24. data/app/controllers/spree/admin/suppliers_controller.rb +54 -0
  25. data/app/controllers/spree/admin/users_controller_decorator.rb +34 -0
  26. data/app/controllers/spree/api/suppliers_controller.rb +16 -0
  27. data/app/controllers/spree/api/v1/stock_locations_controller_decorator.rb +18 -0
  28. data/app/controllers/spree/base_controller_decorator.rb +13 -0
  29. data/app/helpers/spree/api/api_helpers_decorator.rb +22 -0
  30. data/app/mailers/spree/marketplace_order_mailer.rb +13 -0
  31. data/app/mailers/spree/supplier_mailer.rb +12 -0
  32. data/app/models/ckeditor/asset_decorator.rb +5 -0
  33. data/app/models/spree.rb +5 -0
  34. data/app/models/spree/marketplace_configuration.rb +14 -0
  35. data/app/models/spree/order_decorator.rb +44 -0
  36. data/app/models/spree/payment_decorator.rb +7 -0
  37. data/app/models/spree/product_decorator.rb +52 -0
  38. data/app/models/spree/shipment_decorator.rb +40 -0
  39. data/app/models/spree/stock/splitter/marketplace.rb +47 -0
  40. data/app/models/spree/stock_location_decorator.rb +23 -0
  41. data/app/models/spree/supplier.rb +120 -0
  42. data/app/models/spree/supplier_ability.rb +35 -0
  43. data/app/models/spree/supplier_variant.rb +6 -0
  44. data/app/models/spree/user_decorator.rb +23 -0
  45. data/app/models/spree/variant_decorator.rb +24 -0
  46. data/app/overrides/spree/admin/menus.rb +15 -0
  47. data/app/overrides/spree/admin/products/_form/converted_admin_product_form_right.html.erb.deface +5 -0
  48. data/app/overrides/spree/admin/products/edit/override_rows.html.erb.deface +22 -0
  49. data/app/overrides/spree/admin/stock_locations/_form/add_supplier.html.erb.deface +12 -0
  50. data/app/views/spree/admin/marketplace_settings/edit.html.erb +21 -0
  51. data/app/views/spree/admin/orders/index.html.erb +187 -0
  52. data/app/views/spree/admin/products/_form.html.erb +198 -0
  53. data/app/views/spree/admin/reports/earnings.html.erb +34 -0
  54. data/app/views/spree/admin/shared/_marketplace_settings.html.erb +1 -0
  55. data/app/views/spree/admin/shared/_marketplace_tabs.html.erb +4 -0
  56. data/app/views/spree/admin/shipments/edit.html.erb +24 -0
  57. data/app/views/spree/admin/shipments/index.html.erb +93 -0
  58. data/app/views/spree/admin/suppliers/_form.html.erb +75 -0
  59. data/app/views/spree/admin/suppliers/edit.html.erb +22 -0
  60. data/app/views/spree/admin/suppliers/index.html.erb +68 -0
  61. data/app/views/spree/admin/suppliers/new.html.erb +17 -0
  62. data/app/views/spree/api/shared/_pagination.json.jbuilder +5 -0
  63. data/app/views/spree/api/suppliers/_supplier.json.jbuilder +1 -0
  64. data/app/views/spree/api/suppliers/index.json.jbuilder +4 -0
  65. data/app/views/spree/marketplace_order_mailer/supplier_order.html.erb +119 -0
  66. data/app/views/spree/shared/unauthorized.erb +1 -0
  67. data/app/views/spree/supplier_mailer/welcome.html.erb +53 -0
  68. data/config/locales/en.yml +107 -0
  69. data/config/locales/es.yml +133 -0
  70. data/config/routes.rb +24 -0
  71. data/db/default/spree/marketplace_roles.rb +14 -0
  72. data/db/migrate/20121006073854_create_suppliers.rb +20 -0
  73. data/db/migrate/20130216070944_product_belongs_to_supplier.rb +6 -0
  74. data/db/migrate/20130405005502_stock_locations_belongs_to_supplier.rb +6 -0
  75. data/db/migrate/20130405011127_user_belongs_to_supplier.rb +6 -0
  76. data/db/migrate/20130428063053_add_balanced_token_to_suppliers.rb +7 -0
  77. data/db/migrate/20130510181443_add_supplier_id_to_ckeditor_assets.rb +8 -0
  78. data/db/migrate/20130606220913_add_permalink_to_suppliers.rb +6 -0
  79. data/db/migrate/20140323170638_add_supplier_commission_to_shipments.rb +5 -0
  80. data/db/migrate/20140416184616_migrate_payment_and_commission.rb +7 -0
  81. data/db/migrate/20140529041325_create_spree_supplier_variants.rb +15 -0
  82. data/db/migrate/20171027180043_add_paypal_email_to_suppliers.rb +5 -0
  83. data/db/seeds.rb +8 -0
  84. data/lib/generators/solidus_marketplace/install/install_generator.rb +36 -0
  85. data/lib/solidus_marketplace.rb +6 -0
  86. data/lib/solidus_marketplace/engine.rb +53 -0
  87. data/lib/solidus_marketplace/factories.rb +107 -0
  88. data/lib/solidus_marketplace/version.rb +3 -0
  89. data/lib/spree/permitted_attributes_decorator.rb +18 -0
  90. data/lib/tasks/spree_sample.rake +72 -0
  91. data/log/awesome.log +1 -0
  92. data/script/rails +7 -0
  93. data/solidus_marketplace.gemspec +46 -0
  94. data/spec/features/admin/orders_spec.rb +11 -0
  95. data/spec/features/admin/products_spec.rb +25 -0
  96. data/spec/features/admin/return_authorizations_spec.rb +7 -0
  97. data/spec/features/admin/settings_spec.rb +33 -0
  98. data/spec/features/admin/shipments_spec.rb +80 -0
  99. data/spec/features/admin/stock_management_spec.rb +156 -0
  100. data/spec/features/admin/stock_spec.rb +98 -0
  101. data/spec/features/admin/suppliers_spec.rb +130 -0
  102. data/spec/models/spree/order_decorator_spec.rb +80 -0
  103. data/spec/models/spree/payment_decorator_spec.rb +7 -0
  104. data/spec/models/spree/product_decorator_spec.rb +56 -0
  105. data/spec/models/spree/shipment_decorator_spec.rb +48 -0
  106. data/spec/models/spree/stock/splitter/marketplace_spec.rb +62 -0
  107. data/spec/models/spree/stock_location_decorator_spec.rb +33 -0
  108. data/spec/models/spree/supplier_ability_spec.rb +182 -0
  109. data/spec/models/spree/supplier_spec.rb +123 -0
  110. data/spec/models/spree/supplier_variant_spec.rb +5 -0
  111. data/spec/models/spree/user_decorator_spec.rb +57 -0
  112. data/spec/models/spree/variant_decorator_spec.rb +7 -0
  113. data/spec/spec_helper.rb +91 -0
  114. data/spec/support/ability_helpers.rb +11 -0
  115. data/spec/support/integration_helpers.rb +15 -0
  116. metadata +473 -0
@@ -0,0 +1,123 @@
1
+ require 'spec_helper'
2
+
3
+ describe Spree::Supplier do
4
+
5
+ it { should belong_to(:address) }
6
+
7
+ it { should have_many(:products).through(:variants) }
8
+ it { should have_many(:stock_locations) }
9
+ it { should have_many(:users) }
10
+ it { should have_many(:variants).through(:supplier_variants) }
11
+
12
+ it { should validate_presence_of(:email) }
13
+ it { should validate_presence_of(:name) }
14
+
15
+ it '#deleted?' do
16
+ subject.deleted_at = nil
17
+ expect(subject.deleted_at?).to eql(false)
18
+ subject.deleted_at = Time.now
19
+ expect(subject.deleted_at?).to eql(true)
20
+ end
21
+
22
+ context '#assign_user' do
23
+
24
+ before do
25
+ @instance = build(:supplier)
26
+ end
27
+
28
+ it 'with user' do
29
+ expect(Spree.user_class).to_not receive(:find_by_email)
30
+ @instance.email = 'test@test.com'
31
+ @instance.users << create(:user)
32
+ @instance.save
33
+ end
34
+
35
+ it 'with existing user email' do
36
+ user = create(:user, email: 'test@test.com')
37
+ expect(Spree.user_class).to receive(:find_by_email).with(user.email).and_return(user)
38
+ @instance.email = user.email
39
+ @instance.save
40
+ expect(@instance.reload.users.first).to eql(user)
41
+ end
42
+
43
+ end
44
+
45
+ it '#create_stock_location' do
46
+ expect(Spree::StockLocation.count).to eql(0)
47
+ supplier = create :supplier
48
+ expect(Spree::StockLocation.first.active).to be true
49
+ expect(Spree::StockLocation.first.country).to eql(supplier.address.country)
50
+ expect(Spree::StockLocation.first.supplier).to eql(supplier)
51
+ end
52
+
53
+ context '#send_welcome' do
54
+
55
+ after do
56
+ SolidusMarketplace::Config[:send_supplier_email] = true
57
+ end
58
+
59
+ before do
60
+ @instance = build(:supplier)
61
+ @mail_message = double('Mail::Message')
62
+ end
63
+
64
+ context 'with SolidusMarketplace::Config[:send_supplier_email] == false' do
65
+
66
+ it 'should not send' do
67
+ SolidusMarketplace::Config[:send_supplier_email] = false
68
+ expect {
69
+ expect(Spree::SupplierMailer).to_not receive(:welcome).with(an_instance_of(Integer))
70
+ }
71
+ @instance.save
72
+ end
73
+
74
+ end
75
+
76
+ context 'with SolidusMarketplace::Config[:send_supplier_email] == true' do
77
+
78
+ it 'should send welcome email' do
79
+ expect {
80
+ expect(Spree::SupplierMailer).to receive(:welcome).with(an_instance_of(Integer))
81
+ }
82
+ @instance.save
83
+ end
84
+
85
+ end
86
+
87
+ end
88
+
89
+ it '#set_commission' do
90
+ SolidusMarketplace::Config.set default_commission_flat_rate: 1
91
+ SolidusMarketplace::Config.set default_commission_percentage: 1
92
+ supplier = create :supplier
93
+ SolidusMarketplace::Config.set default_commission_flat_rate: 0
94
+ SolidusMarketplace::Config.set default_commission_percentage: 0
95
+ # Default configuration is 0.0 for each.
96
+ expect(supplier.commission_flat_rate.to_f).to eql(1.0)
97
+ expect(supplier.commission_percentage.to_f).to eql(10.0)
98
+ # With custom commission applied.
99
+ supplier = create :supplier, commission_flat_rate: 123, commission_percentage: 25
100
+ expect(supplier.commission_flat_rate).to eql(123.0)
101
+ expect(supplier.commission_percentage).to eql(25.0)
102
+ end
103
+
104
+ describe '#shipments' do
105
+
106
+ let!(:supplier) { create(:supplier) }
107
+
108
+ it 'should return shipments for suppliers stock locations' do
109
+ stock_location_1 = supplier.stock_locations.first
110
+ stock_location_2 = create(:stock_location, supplier: supplier)
111
+ shipment_1 = create(:shipment)
112
+ shipment_2 = create(:shipment, stock_location: stock_location_1)
113
+ shipment_3 = create(:shipment)
114
+ shipment_4 = create(:shipment, stock_location: stock_location_2)
115
+ shipment_5 = create(:shipment)
116
+ shipment_6 = create(:shipment, stock_location: stock_location_1)
117
+
118
+ expect(supplier.shipments).to match_array([shipment_2, shipment_4, shipment_6])
119
+ end
120
+
121
+ end
122
+
123
+ end
@@ -0,0 +1,5 @@
1
+ require 'spec_helper'
2
+
3
+ describe Spree::SupplierVariant do
4
+ skip "add some examples to (or delete) #{__FILE__}"
5
+ end
@@ -0,0 +1,57 @@
1
+ require 'spec_helper'
2
+
3
+ describe Spree.user_class do
4
+
5
+ it { should belong_to(:supplier) }
6
+
7
+ it { should have_many(:variants).through(:supplier) }
8
+
9
+ let(:user) { build :user }
10
+ let(:admin_role) { build :admin_role }
11
+ let(:supplier_admin_role) { build :role, name: "supplier_admin" }
12
+
13
+ describe '#supplier?' do
14
+ it "returns true if user is a supplier" do
15
+ user.supplier = build :supplier
16
+ expect(user.supplier?).to eq true
17
+ end
18
+
19
+ it "returns false if user is not a supplier" do
20
+ expect(user.supplier?).to eq false
21
+ end
22
+ end
23
+
24
+ describe '#supplier_admin?' do
25
+ it "returns true if user has supplier admin role" do
26
+ user.spree_roles << supplier_admin_role
27
+ expect(user.supplier_admin?).to eq true
28
+ end
29
+
30
+ it "returns false if user doesn't have a supplier admin role" do
31
+ expect(user.supplier_admin?).to eq false
32
+ end
33
+ end
34
+
35
+ describe '#market_maker?' do
36
+ it "returns true if user has an admin role" do
37
+ user.spree_roles << admin_role
38
+ expect(user.market_maker?).to eq true
39
+ end
40
+
41
+ it "returns false if user doesn't have an admin role" do
42
+ expect(user.market_maker?).to eq false
43
+ end
44
+ end
45
+
46
+ describe "#has_admin_role?" do
47
+ it "returns false if user is not an admin" do
48
+ expect(user.has_admin_role?).to eq false
49
+ end
50
+
51
+ it "returns true if user is an admin" do
52
+ user.spree_roles << admin_role
53
+ expect(user.has_admin_role?).to eq true
54
+ end
55
+ end
56
+
57
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe Spree::Variant do
4
+ it 'should populate stock item for each of the master variant suppliers' do
5
+ skip 'todo'
6
+ end
7
+ end
@@ -0,0 +1,91 @@
1
+ require 'coveralls'
2
+ Coveralls.wear!
3
+
4
+ # Configure Rails Environment
5
+ ENV['RAILS_ENV'] = 'test'
6
+
7
+ require File.expand_path('../dummy/config/environment.rb', __FILE__)
8
+
9
+ require 'rspec/rails'
10
+ require 'database_cleaner'
11
+ require 'factory_girl'
12
+ FactoryGirl.find_definitions
13
+ require 'ffaker'
14
+ require 'shoulda-matchers'
15
+
16
+ # Requires supporting ruby files with custom matchers and macros, etc,
17
+ # in spec/support/ and its subdirectories.
18
+ Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f }
19
+
20
+ require 'spree/testing_support/authorization_helpers'
21
+ require 'spree/testing_support/capybara_ext'
22
+ require 'spree/testing_support/controller_requests'
23
+ require 'spree/testing_support/factories'
24
+ require 'spree/testing_support/preferences'
25
+ require 'spree/testing_support/url_helpers'
26
+
27
+ require 'solidus_marketplace/factories'
28
+
29
+ RSpec.configure do |config|
30
+ config.include FactoryGirl::Syntax::Methods
31
+ config.include IntegrationHelpers
32
+ config.include Spree::TestingSupport::Preferences
33
+
34
+ config.include Warden::Test::Helpers, type: :feature
35
+ config.include Devise::TestHelpers, type: :controller
36
+ config.before(:suite) { Warden.test_mode! }
37
+ config.after(:each) { Warden.test_reset! }
38
+
39
+ # == URL Helpers
40
+ #
41
+ # Allows access to Spree's routes in specs:
42
+ #
43
+ # visit spree.admin_path
44
+ # current_path.should eql(spree.products_path)
45
+ config.include Spree::TestingSupport::UrlHelpers
46
+ config.include Spree::TestingSupport::ControllerRequests, type: :controller
47
+
48
+ # Capybara javascript drivers require transactional fixtures set to false, and we use DatabaseCleaner
49
+ # to cleanup after each test instead. Without transactional fixtures set to false the records created
50
+ # to setup a test will be unavailable to the browser, which runs under a seperate server instance.
51
+ config.use_transactional_fixtures = false
52
+
53
+ # Ensure Suite is set to use transactions for speed.
54
+ config.before :suite do
55
+ DatabaseCleaner.strategy = :transaction
56
+ DatabaseCleaner.clean_with :truncation
57
+ end
58
+
59
+ # Before each spec check if it is a Javascript test and switch between using database transactions or not where necessary.
60
+ config.before :each do
61
+ DatabaseCleaner.strategy = RSpec.current_example.metadata[:js] ? :truncation : :transaction
62
+ DatabaseCleaner.start
63
+ reset_spree_preferences
64
+ end
65
+
66
+ # After each spec clean the database.
67
+ config.after :each do
68
+ DatabaseCleaner.clean
69
+ end
70
+
71
+ # If true, the base class of anonymous controllers will be inferred
72
+ # automatically. This will be the default behavior in future versions of
73
+ # rspec-rails.
74
+ config.infer_base_class_for_anonymous_controllers = false
75
+
76
+ config.infer_spec_type_from_file_location!
77
+ # Run specs in random order to surface order dependencies. If you find an
78
+ # order dependency and want to debug it, you can fix the order by providing
79
+ # the seed, which is printed after each run.
80
+ # --seed 1234
81
+ # config.order = "random"
82
+ config.color = true
83
+ config.infer_spec_type_from_file_location!
84
+ end
85
+
86
+ Shoulda::Matchers.configure do |config|
87
+ config.integrate do |with|
88
+ with.test_framework :rspec
89
+ with.library :rails
90
+ end
91
+ end
@@ -0,0 +1,11 @@
1
+ shared_examples_for 'read and update access granted' do
2
+ it 'should allow read' do
3
+ expect(ability).to be_able_to(:read, resource, token) if token
4
+ expect(ability).to be_able_to(:read, resource) unless token
5
+ end
6
+
7
+ it 'should allow update' do
8
+ expect(ability).to be_able_to(:update, resource, token) if token
9
+ expect(ability).to be_able_to(:update, resource) unless token
10
+ end
11
+ end
@@ -0,0 +1,15 @@
1
+ module IntegrationHelpers
2
+
3
+ def login_user(user = nil, options = {})
4
+ options[:password] ||= 'secret'
5
+ user ||= create(:user, password: options[:password])
6
+
7
+ visit spree.root_path
8
+ click_link 'Login'
9
+ fill_in 'spree_user[email]', with: user.email
10
+ fill_in 'spree_user[password]', with: options[:password]
11
+ click_button 'Login'
12
+ expect(page).to_not have_content 'Login'
13
+ end
14
+
15
+ end
metadata ADDED
@@ -0,0 +1,473 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: solidus_marketplace
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Boomer Digital
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-11-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: durable_decorator
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.2.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.2.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: solidus_api
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: solidus_backend
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: solidus_core
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: solidus_gateway
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: capybara
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '2.2'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '2.2'
97
+ - !ruby/object:Gem::Dependency
98
+ name: coffee-rails
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: coveralls
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: database_cleaner
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: factory_girl_rails
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '4.2'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '4.2'
153
+ - !ruby/object:Gem::Dependency
154
+ name: ffaker
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: launchy
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: rspec-rails
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: sass-rails
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: 5.0.0.beta1
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: 5.0.0.beta1
209
+ - !ruby/object:Gem::Dependency
210
+ name: selenium-webdriver
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ - !ruby/object:Gem::Dependency
224
+ name: shoulda-matchers
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
237
+ - !ruby/object:Gem::Dependency
238
+ name: solidus_sample
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - ">="
242
+ - !ruby/object:Gem::Version
243
+ version: '0'
244
+ type: :development
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: '0'
251
+ - !ruby/object:Gem::Dependency
252
+ name: sqlite3
253
+ requirement: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - ">="
256
+ - !ruby/object:Gem::Version
257
+ version: '0'
258
+ type: :development
259
+ prerelease: false
260
+ version_requirements: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - ">="
263
+ - !ruby/object:Gem::Version
264
+ version: '0'
265
+ - !ruby/object:Gem::Dependency
266
+ name: log_buddy
267
+ requirement: !ruby/object:Gem::Requirement
268
+ requirements:
269
+ - - ">="
270
+ - !ruby/object:Gem::Version
271
+ version: '0'
272
+ type: :development
273
+ prerelease: false
274
+ version_requirements: !ruby/object:Gem::Requirement
275
+ requirements:
276
+ - - ">="
277
+ - !ruby/object:Gem::Version
278
+ version: '0'
279
+ - !ruby/object:Gem::Dependency
280
+ name: awesome_print
281
+ requirement: !ruby/object:Gem::Requirement
282
+ requirements:
283
+ - - ">="
284
+ - !ruby/object:Gem::Version
285
+ version: '0'
286
+ type: :development
287
+ prerelease: false
288
+ version_requirements: !ruby/object:Gem::Requirement
289
+ requirements:
290
+ - - ">="
291
+ - !ruby/object:Gem::Version
292
+ version: '0'
293
+ - !ruby/object:Gem::Dependency
294
+ name: pry
295
+ requirement: !ruby/object:Gem::Requirement
296
+ requirements:
297
+ - - ">="
298
+ - !ruby/object:Gem::Version
299
+ version: '0'
300
+ type: :development
301
+ prerelease: false
302
+ version_requirements: !ruby/object:Gem::Requirement
303
+ requirements:
304
+ - - ">="
305
+ - !ruby/object:Gem::Version
306
+ version: '0'
307
+ description: Adds marketplace functionality to Solidus stores.
308
+ email: ''
309
+ executables: []
310
+ extensions: []
311
+ extra_rdoc_files: []
312
+ files:
313
+ - ".gitignore"
314
+ - ".rspec"
315
+ - ".travis.yml"
316
+ - Gemfile
317
+ - LICENSE
318
+ - README.md
319
+ - Rakefile
320
+ - Versionfile
321
+ - app/assets/javascripts/spree/backend/solidus_marketplace.js
322
+ - app/assets/javascripts/spree/backend/solidus_marketplace_routes.js
323
+ - app/assets/javascripts/spree/backend/suppliers_autocomplete.js
324
+ - app/assets/javascripts/spree/frontend/solidus_marketplace.js
325
+ - app/assets/stylesheets/spree/backend/solidus_marketplace.scss
326
+ - app/assets/stylesheets/spree/frontend/solidus_marketplace.css
327
+ - app/controllers/ckeditor/attachment_files_controller_decorator.rb
328
+ - app/controllers/ckeditor/pictures_controller_decorator.rb
329
+ - app/controllers/spree/admin/marketplace_settings_controller.rb
330
+ - app/controllers/spree/admin/products_controller_decorator.rb
331
+ - app/controllers/spree/admin/reports_controller_decorator.rb
332
+ - app/controllers/spree/admin/shipments_controller.rb
333
+ - app/controllers/spree/admin/stock_items_controller_decorator.rb
334
+ - app/controllers/spree/admin/stock_locations_controller_decorator.rb
335
+ - app/controllers/spree/admin/suppliers_controller.rb
336
+ - app/controllers/spree/admin/users_controller_decorator.rb
337
+ - app/controllers/spree/api/suppliers_controller.rb
338
+ - app/controllers/spree/api/v1/stock_locations_controller_decorator.rb
339
+ - app/controllers/spree/base_controller_decorator.rb
340
+ - app/helpers/spree/api/api_helpers_decorator.rb
341
+ - app/mailers/spree/marketplace_order_mailer.rb
342
+ - app/mailers/spree/supplier_mailer.rb
343
+ - app/models/ckeditor/asset_decorator.rb
344
+ - app/models/spree.rb
345
+ - app/models/spree/marketplace_configuration.rb
346
+ - app/models/spree/order_decorator.rb
347
+ - app/models/spree/payment_decorator.rb
348
+ - app/models/spree/product_decorator.rb
349
+ - app/models/spree/shipment_decorator.rb
350
+ - app/models/spree/stock/splitter/marketplace.rb
351
+ - app/models/spree/stock_location_decorator.rb
352
+ - app/models/spree/supplier.rb
353
+ - app/models/spree/supplier_ability.rb
354
+ - app/models/spree/supplier_variant.rb
355
+ - app/models/spree/user_decorator.rb
356
+ - app/models/spree/variant_decorator.rb
357
+ - app/overrides/spree/admin/menus.rb
358
+ - app/overrides/spree/admin/products/_form/converted_admin_product_form_right.html.erb.deface
359
+ - app/overrides/spree/admin/products/edit/override_rows.html.erb.deface
360
+ - app/overrides/spree/admin/stock_locations/_form/add_supplier.html.erb.deface
361
+ - app/views/spree/admin/marketplace_settings/edit.html.erb
362
+ - app/views/spree/admin/orders/index.html.erb
363
+ - app/views/spree/admin/products/_form.html.erb
364
+ - app/views/spree/admin/reports/earnings.html.erb
365
+ - app/views/spree/admin/shared/_marketplace_settings.html.erb
366
+ - app/views/spree/admin/shared/_marketplace_tabs.html.erb
367
+ - app/views/spree/admin/shipments/edit.html.erb
368
+ - app/views/spree/admin/shipments/index.html.erb
369
+ - app/views/spree/admin/suppliers/_form.html.erb
370
+ - app/views/spree/admin/suppliers/edit.html.erb
371
+ - app/views/spree/admin/suppliers/index.html.erb
372
+ - app/views/spree/admin/suppliers/new.html.erb
373
+ - app/views/spree/api/shared/_pagination.json.jbuilder
374
+ - app/views/spree/api/suppliers/_supplier.json.jbuilder
375
+ - app/views/spree/api/suppliers/index.json.jbuilder
376
+ - app/views/spree/marketplace_order_mailer/supplier_order.html.erb
377
+ - app/views/spree/shared/unauthorized.erb
378
+ - app/views/spree/supplier_mailer/welcome.html.erb
379
+ - config/locales/en.yml
380
+ - config/locales/es.yml
381
+ - config/routes.rb
382
+ - db/default/spree/marketplace_roles.rb
383
+ - db/migrate/20121006073854_create_suppliers.rb
384
+ - db/migrate/20130216070944_product_belongs_to_supplier.rb
385
+ - db/migrate/20130405005502_stock_locations_belongs_to_supplier.rb
386
+ - db/migrate/20130405011127_user_belongs_to_supplier.rb
387
+ - db/migrate/20130428063053_add_balanced_token_to_suppliers.rb
388
+ - db/migrate/20130510181443_add_supplier_id_to_ckeditor_assets.rb
389
+ - db/migrate/20130606220913_add_permalink_to_suppliers.rb
390
+ - db/migrate/20140323170638_add_supplier_commission_to_shipments.rb
391
+ - db/migrate/20140416184616_migrate_payment_and_commission.rb
392
+ - db/migrate/20140529041325_create_spree_supplier_variants.rb
393
+ - db/migrate/20171027180043_add_paypal_email_to_suppliers.rb
394
+ - db/seeds.rb
395
+ - lib/generators/solidus_marketplace/install/install_generator.rb
396
+ - lib/solidus_marketplace.rb
397
+ - lib/solidus_marketplace/engine.rb
398
+ - lib/solidus_marketplace/factories.rb
399
+ - lib/solidus_marketplace/version.rb
400
+ - lib/spree/permitted_attributes_decorator.rb
401
+ - lib/tasks/spree_sample.rake
402
+ - log/awesome.log
403
+ - script/rails
404
+ - solidus_marketplace.gemspec
405
+ - spec/features/admin/orders_spec.rb
406
+ - spec/features/admin/products_spec.rb
407
+ - spec/features/admin/return_authorizations_spec.rb
408
+ - spec/features/admin/settings_spec.rb
409
+ - spec/features/admin/shipments_spec.rb
410
+ - spec/features/admin/stock_management_spec.rb
411
+ - spec/features/admin/stock_spec.rb
412
+ - spec/features/admin/suppliers_spec.rb
413
+ - spec/models/spree/order_decorator_spec.rb
414
+ - spec/models/spree/payment_decorator_spec.rb
415
+ - spec/models/spree/product_decorator_spec.rb
416
+ - spec/models/spree/shipment_decorator_spec.rb
417
+ - spec/models/spree/stock/splitter/marketplace_spec.rb
418
+ - spec/models/spree/stock_location_decorator_spec.rb
419
+ - spec/models/spree/supplier_ability_spec.rb
420
+ - spec/models/spree/supplier_spec.rb
421
+ - spec/models/spree/supplier_variant_spec.rb
422
+ - spec/models/spree/user_decorator_spec.rb
423
+ - spec/models/spree/variant_decorator_spec.rb
424
+ - spec/spec_helper.rb
425
+ - spec/support/ability_helpers.rb
426
+ - spec/support/integration_helpers.rb
427
+ homepage: https://github.com/boomerdigital/solidus_marketplace
428
+ licenses: []
429
+ metadata: {}
430
+ post_install_message:
431
+ rdoc_options: []
432
+ require_paths:
433
+ - lib
434
+ required_ruby_version: !ruby/object:Gem::Requirement
435
+ requirements:
436
+ - - ">="
437
+ - !ruby/object:Gem::Version
438
+ version: 2.0.0
439
+ required_rubygems_version: !ruby/object:Gem::Requirement
440
+ requirements:
441
+ - - ">="
442
+ - !ruby/object:Gem::Version
443
+ version: '0'
444
+ requirements:
445
+ - none
446
+ rubyforge_project:
447
+ rubygems_version: 2.6.11
448
+ signing_key:
449
+ specification_version: 4
450
+ summary: Solidus Marketplace Extension
451
+ test_files:
452
+ - spec/features/admin/orders_spec.rb
453
+ - spec/features/admin/products_spec.rb
454
+ - spec/features/admin/return_authorizations_spec.rb
455
+ - spec/features/admin/settings_spec.rb
456
+ - spec/features/admin/shipments_spec.rb
457
+ - spec/features/admin/stock_management_spec.rb
458
+ - spec/features/admin/stock_spec.rb
459
+ - spec/features/admin/suppliers_spec.rb
460
+ - spec/models/spree/order_decorator_spec.rb
461
+ - spec/models/spree/payment_decorator_spec.rb
462
+ - spec/models/spree/product_decorator_spec.rb
463
+ - spec/models/spree/shipment_decorator_spec.rb
464
+ - spec/models/spree/stock/splitter/marketplace_spec.rb
465
+ - spec/models/spree/stock_location_decorator_spec.rb
466
+ - spec/models/spree/supplier_ability_spec.rb
467
+ - spec/models/spree/supplier_spec.rb
468
+ - spec/models/spree/supplier_variant_spec.rb
469
+ - spec/models/spree/user_decorator_spec.rb
470
+ - spec/models/spree/variant_decorator_spec.rb
471
+ - spec/spec_helper.rb
472
+ - spec/support/ability_helpers.rb
473
+ - spec/support/integration_helpers.rb