epuber 0.3.5 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e871217ca7b9c9c84e676c2fc93b3e06020e5b9e
4
- data.tar.gz: 3dda7ef83f00653bfede17172fc5132fb93e1c93
3
+ metadata.gz: b784ae6daa5781f38a8107035260143cc3c5e9ea
4
+ data.tar.gz: 1e3b8c7310d459f6ca6d85267000f0b89df97087
5
5
  SHA512:
6
- metadata.gz: 05d7c9075a019fc65e02b388cc98ac5aa640d3a42092732894a547fd41406e8d92847ed7dcf2ce491bddea5c376c018b95ef2a6c129e0f75b6af48f950a0d99e
7
- data.tar.gz: e4b805811f7d2fba1e1bf143b13eecee70390621198ed871185698b2ee6db571ead5d5f4dba775536c9f0f2e6da4f5d0564acadcdd58105280410a47c93c2421
6
+ metadata.gz: 00027176edd50911a1a80774800602b8f4d31a2bea41bb4af7b8a276bc39d15a40d9ac62bbee3831f5cddfc9996f5817d1653599d4a3f31d058071b6bc75f7c0
7
+ data.tar.gz: cbb1aa92491bd09e034c91738191747098409bdf2fa3d748d8ab147c659ffb04e17cb59d9c69e50ced590f0a08efb46f7373de149387924e4096111eec8b5b6a
data/Gemfile CHANGED
@@ -4,3 +4,5 @@ source 'https://rubygems.org'
4
4
 
5
5
  # Specify your gem's dependencies in Epuber.gemspec
6
6
  gemspec
7
+
8
+ gem 'coveralls', require: false
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Epuber
2
2
 
3
- [![Build Status](https://travis-ci.org/epuber-io/epuber.svg?branch=master)](https://travis-ci.org/epuber-io/epuber)
3
+ [![Gem Version](https://badge.fury.io/rb/epuber.svg)](http://badge.fury.io/rb/epuber) [![Build Status](https://travis-ci.org/epuber-io/epuber.svg?branch=master)](https://travis-ci.org/epuber-io/epuber) [![Coverage Status](https://coveralls.io/repos/epuber-io/epuber/badge.svg?branch=master&service=github)](https://coveralls.io/github/epuber-io/epuber?branch=master)
4
4
 
5
5
  Epuber is simple tool to compile and pack source files into EPUB format. Offers to define multiple "targets" which allows to create multiple versions of the book by running only one command. Eliminates copying code and information, eliminates needs to use _git_ branches to differ ebook content.
6
6
 
@@ -9,7 +9,7 @@ Epuber is simple tool to compile and pack source files into EPUB format. Offers
9
9
 
10
10
  - creating multiple versions of book with requirement to maintain only one source (e.g. for iBooks, Google Play, ...)
11
11
  - defined constants are usable in almost all source files
12
- - using template engines (currenlty only [Bade](https://github.com/epuber-io/bade)), css preprocessors (currently only Stylus) and standard EPUB formats at the same time
12
+ - using template engines (currently only [Bade](https://github.com/epuber-io/bade)), css preprocessors (currently only Stylus) and standard EPUB formats at the same time
13
13
  - have local development server which
14
14
  - automatically refresh web browser when some source file changes
15
15
  - quick jumping to next page with arrow keys on keyboard
@@ -32,7 +32,7 @@ To install this gem onto your local machine, run `bundle exec rake install`.
32
32
 
33
33
  ## Contributing
34
34
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/samnung/bade. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/epuber-io/epuber. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
36
36
 
37
37
 
38
38
  ## TODO
@@ -1,8 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
- require 'unicode_normalize'
4
-
5
-
6
3
  module Epuber
7
4
  class Compiler
8
5
  module FileFinders
@@ -1,8 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
- require 'unicode_normalize'
4
-
5
-
6
3
  module Epuber
7
4
  class Compiler
8
5
  module FileFinders
@@ -1,8 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
- require 'unicode_normalize'
4
-
5
-
6
3
  module Epuber
7
4
  class Compiler
8
5
  module FileFinders
@@ -1,8 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
- require 'unicode_normalize'
4
-
5
-
3
+ require_relative '../ruby_extensions/string'
6
4
 
7
5
  module Epuber
8
6
  class Compiler
@@ -0,0 +1,16 @@
1
+
2
+ begin
3
+ require 'unicode_normalize'
4
+ rescue LoadError
5
+ # silently fail
6
+
7
+ require 'active_support/multibyte/unicode'
8
+
9
+ class String
10
+ unless respond_to?(:unicode_normalize)
11
+ def unicode_normalize
12
+ ActiveSupport::Multibyte::Unicode.normalize(self)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Epuber
3
- VERSION = '0.3.5'
3
+ VERSION = '0.3.6'
4
4
  end
data/lib/epuber.rb CHANGED
@@ -3,8 +3,6 @@
3
3
  module Epuber
4
4
  require_relative 'epuber/version'
5
5
 
6
- require 'bundler/setup'
7
-
8
6
  autoload :Book, 'epuber/book'
9
7
  autoload :Command, 'epuber/command'
10
8
  autoload :Compiler, 'epuber/compiler'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epuber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Kříž
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-05 00:00:00.000000000 Z
11
+ date: 2015-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -375,6 +375,7 @@ files:
375
375
  - lib/epuber/lockfile.rb
376
376
  - lib/epuber/plugin.rb
377
377
  - lib/epuber/ruby_extensions/match_data.rb
378
+ - lib/epuber/ruby_extensions/string.rb
378
379
  - lib/epuber/ruby_extensions/thread.rb
379
380
  - lib/epuber/server.rb
380
381
  - lib/epuber/server/auto_refresh/auto_refresh.coffee