Project

spree_cpf

0.0
No commit activity in last 3 years
No release in over 3 years
Spree extension that adds CPF to address field
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

SpreeCpf

Build Status Coverage Status Dependency Status

Spree Extension that adds CPF field in an order

Installation

Add spree_cpf to your Gemfile:

gem 'spree_cpf'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_cpf:install

Set the preference in an initializer such as config/initializers/spree.rb:

Spree.config do |config|
  config.ship_address_has_cpf = true # Default is false
end

Testing

Be sure to bundle your dependencies and then create a dummy test app for the specs to run against.

bundle
bundle exec rake test_app
bundle exec rspec spec

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_cpf/factories'

Copyright (c) 2014 Tiago Amaro, released under the MIT License