BookToolkit
幾個常用功能包起來。
還會支援 openlibrary api 還有 campusbooks api。
止飢可以先看這篇。
Installation
Add this line to your application's Gemfile:
gem 'book_toolkit'
And then execute:
$ bundle
Or install it yourself as:
$ gem install book_toolkit
Usage
# convert isbn 通.用.技
valid_isbn_13 = BookToolkit.to_isbn13("YOUR_ISBN_HERE")
# will accept length 9/10/12/13
checksum = BookToolkit.calculate_checksum("YOUR_ISBN_HERE")
Contributing
- Fork it ( https://github.com/[my-github-username]/book_toolkit/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request