Introduction goes here.
Add spree_seur_shipping_labeler to your Gemfile:
gem 'spree_seur_shipping_labeler'
Bundle your dependencies and run the installation generator:
bundle
bundle exec rails g spree_seur_shipping_labeler:install
Add seur_api.yml to your config file like this (Parameters of each client contributed by seur):
common: &test_environment_settings
username: 'username'
password: 'password'
seur_printer: 'printer' # this it's optional, if you don't specify printer the gem generate a pdf (it's better option)
seur_printer_model: 'printer_model' # optional
seur_ecb_code: 'code'
seur_franchise: 'franchise'
seur_id: 'id'
seur_bundle_ci: 'ci'
seur_bundle_nif: 'nif'
seur_bundle_ccc: 'ccc'
seur_bundle_service: 'service'
seur_bundle_product: 'product'
production:
username: 'username'
password: 'password'
seur_printer: 'printer' # this it's optional, if you don't specify printer the gem generate a pdf (it's better option)
seur_printer_model: 'printer_model' # optional
seur_ecb_code: 'code'
seur_franchise: 'franchise'
seur_id: 'id'
seur_bundle_ci: 'ci'
seur_bundle_nif: 'nif'
seur_bundle_ccc: 'ccc'
seur_bundle_service: 'service'
seur_bundle_product: 'product'
development:
<<: *test_environment_settings
staging:
<<: *test_environment_settings
test:
<<: *test_environment_settings
First bundle your dependencies, then run rake
. 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 rake test_app
.
bundle
bundle exec rake
When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:
require 'spree_seur_shipping_labeler/factories'
Copyright (c) 2016 [name of extension creator], released under the New BSD License