Sha256: d1a4d0d8a34bcf6caba1015fa12a352eccbaefe753a64b62cd4c384b27eec29c

Contents?: true

Size: 1.72 KB

Versions: 3

Compression:

Stored size: 1.72 KB

Contents

# SwissBankValidator

Allow to valid a Swiss Iban passed on the rules of http://www.swissiban.com/

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'swiss_bank_validator'
```

And then execute:

    $ bundle install

Or install it yourself as:

    $ gem install swiss_bank_validator

## Usage

```ruby
 class Account < ActiveRecord::Base
   validates_iban_format_of :account_number
 end

 # or

 class Account < ActiveRecord::Base
   validates :account_number, iban: true
 end
```

## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/iban_validator. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/iban_validator/blob/master/CODE_OF_CONDUCT.md).


## License

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

## Code of Conduct

Everyone interacting in the SwissBankValidator project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/iban_validator/blob/master/CODE_OF_CONDUCT.md).

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
swiss_bank_validator-0.6.0 README.md
swiss_bank_validator-0.5.1 README.md
swiss_bank_validator-0.5.0 README.md