Skip to content

Commit

Permalink
Defined license
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandoalmeida committed Sep 22, 2013
1 parent db8954c commit 01d3e6a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
20 changes: 20 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2013 Fernando Almeida

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The recommended installation method is via Rubygems.
Begin by creating a Epub::Reader instance that points to a EPUB file. Document
level information (metadata, toc, page count, etc) is available via this object.

reader = Epub::Reader.open("somefile.epub")
reader = Epub::Reader.open("/path/to/ebook.epub")
puts reader.epub_version
puts reader.title
puts reader.author
Expand All @@ -30,10 +30,10 @@ level information (metadata, toc, page count, etc) is available via this object.
There are two key exceptions that you will need to watch out for when processing a
EPUB file:

FileNotFoundError - The argument passed to Epub::Reader.open('file.epub') is a file
*FileNotFoundError* - The argument passed to Epub::Reader.open('/path/to/ebook.epub') is a file
path. If the file does not exist the FileNotFoundError is thrown.

MalformedEpubError - The EPUB appears to be corrupt in some way. If you believe the
*MalformedEpubError* - The EPUB appears to be corrupt in some way. If you believe the
file should be valid, or that a corrupt file didn't raise an exception, please
forward a copy of the file to the maintainers using the Bitbucket issue tracker
and we will attempt to improve the code.
Expand All @@ -50,7 +50,7 @@ report it!).

# Licensing

This is a proprietary library and all rights are reserved to eBookPlus.com.
This is a open source library released under the MIT license.

# References

Expand All @@ -62,4 +62,4 @@ This is a proprietary library and all rights are reserved to eBookPlus.com.

[EPUB Open Container Formats Specifications](http://idpf.org/epub/30/spec/epub30-ocf.html)

[Shared Workspace for Emerging Specifications and Schemas for EPUB 3](http://code.google.com/p/epub-revision/downloads/list)
[Shared Workspace for Emerging Specifications and Schemas for EPUB 3](http://code.google.com/p/epub-revision/downloads/list)
2 changes: 1 addition & 1 deletion epub-reader.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Gem::Specification.new do |s|
s.version = Epub::Reader::VERSION
s.authors = ["Fernando Almeida"]
s.email = ["fernando@fernandoalmeida.net"]
s.homepage = "http://bitbucket.com/fernandoalmeida/epub-reader"
s.homepage = "http://fernandoalmeida.github.io/epub-reader"
s.summary = "A library for accessing the content of EPUB files"
s.description = "The epub-reader library implements a EPUB parser conforming as much as possible to the EPUB 3 specification from IDPF"

Expand Down

0 comments on commit 01d3e6a

Please sign in to comment.