epub_book 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/epub_book/book.rb +2 -2
- data/lib/epub_book/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcf2e6b52c434a9c609291c5815c524227caa0b9
|
4
|
+
data.tar.gz: 06059a204f8a130809c19fd9bc386fe79681267b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d53320d61f9f247fecd630b8ca5540677ec4a8a9263d7803216f8ee5373f8ad87eff281cc1eda2aba22006c83b6ddcd31b0d7692aada7ee77d3ff0571730f782
|
7
|
+
data.tar.gz: cbec566608c5d506ccb5d74d901b9a3f9bd8f5fe84fff38e9a67b2fb2ed18746a19825dd396c84dec87494eaafd60f9b0fdd026abdca8e5351ed8483efede3ad
|
data/lib/epub_book/book.rb
CHANGED
@@ -204,9 +204,9 @@ module EpubBook
|
|
204
204
|
end
|
205
205
|
|
206
206
|
def generate_abs_url(url)
|
207
|
-
if
|
207
|
+
if url.start_with?("http")
|
208
208
|
url
|
209
|
-
elsif
|
209
|
+
elsif url.start_with?("/")
|
210
210
|
"#{link_host}#{url}"
|
211
211
|
else
|
212
212
|
@path_name ||= @index_url[/.*\//]
|
data/lib/epub_book/version.rb
CHANGED