项目作者: kainio

项目描述 :
Adding multi vendor capability to solidus
高级语言: Ruby
项目地址: git://github.com/kainio/solidus_multi_vendor.git
创建时间: 2018-07-20T22:04:08Z
项目社区:https://github.com/kainio/solidus_multi_vendor

开源协议:BSD 3-Clause "New" or "Revised" License

下载


Solidus Multi Vendor

[A modest multi vendor solution for solidus, initialy a port of spree_muti_vendor.]

Installation

Add solidus_multi_vendor to your Gemfile:

  1. gem 'solidus_multi_vendor'

Bundle your dependencies and run the installation generator:

  1. bundle
  2. bundle exec rails g solidus_multi_vendor:install

Usage

[Explain how to use your extension once it’s been installed.]

Development

Testing the extension

First bundle your dependencies, then run bin/rake. bin/rake will default to building the dummy
app if it does not exist, then it will run specs. The dummy app can be regenerated by using
bin/rake extension:test_app.

  1. bundle
  2. bin/rake

To run Rubocop static code analysis run

  1. bundle exec rubocop

When testing your application’s integration with this extension you may use its factories.
Simply add this require statement to your spec_helper:

  1. require 'solidus_multi_vendor/factories'

Running the sandbox

To run this extension in a sandboxed Solidus application, you can run bin/sandbox. The path for
the sandbox app is ./sandbox and bin/rails will forward any Rails commands to
sandbox/bin/rails.

Here’s an example:

  1. $ bin/rails server
  2. => Booting Puma
  3. => Rails 6.0.2.1 application starting in development
  4. * Listening on tcp://127.0.0.1:3000
  5. Use Ctrl-C to stop

Releasing new versions

Your new extension version can be released using gem-release like this:

  1. bundle exec gem bump -v VERSION --tag --push --remote upstream && gem release

License

Copyright (c) 2020 [kainio], released under the New BSD License.