Skip to content

This is an implementation of hyphenizing in Ruby. It also includes a fake module for generating isbn numbers.

Notifications You must be signed in to change notification settings

thebigw4lrus/IsbnTool-Gem-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IsbnTools gem


Running the tests

rake test

Hyphenizing

irb> require 'hypenizer'

irb> hyp = IsbnsTools::Hyphenizer.new

irb> hyp.Hyphenize("9783635266942")

=> 978-3-635-26694-2

Faking an Isbn

irb> require 'faker'

irb> faker = IsbnsTools::Faker.new

irb> faker.fake_isbn()

=> 978-3-635-26694-2

irb> faker.fake_isbn(start: 9783, range: 635)

=> 978-3-635-26694-2

NOTE: Since this gem reads the official isbn XML definition, the internet connection is required in order to test and run it.

About

This is an implementation of hyphenizing in Ruby. It also includes a fake module for generating isbn numbers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages