Sha256: e5cd9c7cfa55ac8f94e2d4fb2bc83dfc45f39dc04938e699b00bd31abb7e8742

Contents?: true

Size: 1.27 KB

Versions: 1

Compression:

Stored size: 1.27 KB

Contents

SpreeCpf
========

[![Build Status](https://travis-ci.org/tiagoamaro/spree_cpf.png?branch=2-1-stable)](https://travis-ci.org/tiagoamaro/spree_cpf)
[![Coverage Status](https://coveralls.io/repos/tiagoamaro/spree_cpf/badge.png?branch=2-1-stable)](https://coveralls.io/r/tiagoamaro/spree_cpf?branch=2-1-stable)
[![Dependency Status](https://gemnasium.com/tiagoamaro/spree_cpf.png)](https://gemnasium.com/tiagoamaro/spree_cpf)

Spree Extension that adds CPF field in an order

Installation
------------

Add spree_cpf to your Gemfile:

```ruby
gem 'spree_cpf'
```

Bundle your dependencies and run the installation generator:

```shell
bundle
bundle exec rails g spree_cpf:install
```

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

```ruby
Spree.config do |config|
  config.add_cpf_to_ship_address = 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.

```shell
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:

```ruby
require 'spree_cpf/factories'
```

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_cpf-2.1.2 README.md