bin_checker_rb
is a simple ruby wrapper for bincheck-api.
- You need to signup for Prompt API
- You need to subscribe bincheck-api, test drive is free!!!
- You need to set
PROMPTAPI_TOKEN
environment variable after subscription.
then;
$ gem install bin_checker_rb
or; install from GitHub:
$ gem install bin_checker_rb --version "0.2.1" --source "https://rubygems.pkg.github.com/promptapi"
require "bin_checker_rb"
bin_information = BinCheckerRb.check('302596')
bin_information[:bank_name] # "Diners Club International"
# {
# :bank_name=>"Diners Club International",
# :country=>"United States Of America",
# :url=>"www.dinersclub.com",
# :type=>"Credit",
# :scheme=>"Discover",
# :bin=>"302596"
# }
After checking out the repo, run bin/setup
to install dependencies. Then,
run rake test
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
$ rake -T
rake build # Build bin_checker_rb-X.X.X.gem into the pkg directory
rake clean # Remove any temporary products
rake clobber # Remove any generated files
rake install # Build and install bin_checker_rb-X.X.X.gem into system gems
rake install:local # Build and install bin_checker_rb-X.X.X.gem into system gems without network access
rake release[remote] # Create tag v0.0.0 and build and push bin_checker_rb-X.X.X.gem to rubygems.org
rake test # Run tests
This project is licensed under MIT
- Prompt API - Creator, maintainer
Bug reports and pull requests are welcome on GitHub:
fork
(https://github.com/promptapi/bin_checker_rb/fork)- Create your
branch
(git checkout -b my-feature
) commit
yours (git commit -am 'Add awesome features...'
)push
yourbranch
(git push origin my-feature
)- Than create a new Pull Request!
This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.