EPUBChop 0.0.10 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2ff6270a266184b41507e29e43994de705c56357
4
- data.tar.gz: a257fd9d69ba6eb453c936626b509cc40596adf5
3
+ metadata.gz: eae1dc4152536744c7d2a51ee3231526632c742b
4
+ data.tar.gz: de5b13b1bfe346629bf89ff4c9c7764db3cb1746
5
5
  SHA512:
6
- metadata.gz: 5b8d5d76d9aabb81e9f0afe92d2c0b3aa058b6be46ce9eb3dc6c61f15eceaaaa49a27a696a2063b6bc9158ddb4992be0020ba1f7072ff9b90c2cbdf73b286527
7
- data.tar.gz: 47742a21f5173c931b35f82df4c4fa5ea2f23e2b040073a9f575f38cab819c34a100b3bf3f1dcdd6e05d88ebe3c44445c2dfadb5e378d6f509332371caa00577
6
+ metadata.gz: 410cec8dcdda2bd1aeff728fbb22d87c12d797ca805d19eab81ee8f1152b9b8be52fb78e11cd9ca942e6544fe70c32f9ecd378fc09d06299a0c5a2b7221adb8e
7
+ data.tar.gz: ae763206822c42f8df9887c8ec9df52bf9e7bfc97c419a243ae9435990c82819ddb17df2c8b37cd0d0e65d8310329bdd6a12221f8c738e5357ee89b6d2bf8ab7
data/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  EPUBChop [![Continuous Integration](https://travis-ci.org/mehmetc/EPUBChop.png?branch=master)](http://travis-ci.org/mehmetc/EPUBChop)
2
2
  ========
3
3
 
4
- Creates EPUB previews
4
+ Creates EPUB samples
5
5
 
6
6
  ```
7
7
  $ ./bin/epubchop --help
8
- EPUBChop will create a preview version of an EPUB file.
8
+ EPUBChop will create a sample version of an EPUB.
9
9
 
10
10
  Usage:
11
11
  epubchop [options] <filename>
@@ -27,6 +27,11 @@ epubchop --words 10 --base percentage -line1 "Want to read more?" -line2 "Buy th
27
27
  This gem depends on [![epubinfo](http://github.com/chdorner/epubinfo)] I made some additions to the gem but they are still in a branch. Until they get accepted I'll be using the [![epubinfo_with_toc](https://github.com/mehmetc/epubinfo/tree/table_of_contents)]
28
28
  gem.
29
29
 
30
+ ### Changes
31
+ * 0.1.0
32
+ - Warning!!! I monkey patch rubyzip until they release an update(it is already fixed in the main branch). Apparently the latest Rubyzip inserts a placeholder for 64bit addressing by default. This breaks file recognition for tools like FIDO.
33
+
34
+
30
35
  ## Contributing to EPUBChop
31
36
  * Fork the project.
32
37
  * Create a new branch to implement your bugfixes or features
@@ -35,4 +40,4 @@ gem.
35
40
 
36
41
  ## Copyright
37
42
 
38
- Copyright (c) 2013 LIBIS/KULeuven, Mehmet Celik. See LICENSE for further details.
43
+ Copyright (c) 2013-2014 LIBIS/KULeuven, Mehmet Celik. See LICENSE for further details.
data/lib/EPUBChop/chop.rb CHANGED
@@ -3,6 +3,7 @@ require 'nokogiri'
3
3
  require 'epubinfo'
4
4
  require 'tempfile'
5
5
  require 'zip'
6
+ require_relative 'zip/entry' # Monkey patch
6
7
 
7
8
  module EPUBChop
8
9
  class Chop
@@ -1,3 +1,3 @@
1
1
  module EPUBChop
2
- VERSION = "0.0.10"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -0,0 +1,10 @@
1
+ # Monkey patching bug in rubyzip, currently fixed on master, but not yet released
2
+ # and EPUBChop brings in the 1.0 release.
3
+
4
+ module Zip
5
+ class Entry
6
+ private
7
+ def prep_zip64_extra(for_local_header)
8
+ end
9
+ end
10
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: EPUBChop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mehmet Celik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-20 00:00:00.000000000 Z
11
+ date: 2014-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -113,6 +113,7 @@ files:
113
113
  - lib/EPUBChop.rb
114
114
  - lib/EPUBChop/chop.rb
115
115
  - lib/EPUBChop/version.rb
116
+ - lib/EPUBChop/zip/entry.rb
116
117
  - lib/trollop.rb
117
118
  - spec/epub/Verne_20000_West_pg11393.epub
118
119
  - spec/epub/default.epub