verku 0.16.2 → 0.16.3

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: c0c6ddd9b6592e6d553b7b6d7c86f02a8bab809c
4
- data.tar.gz: 228f2cc68543e1c507e8ccce34c56029d0dac157
3
+ metadata.gz: 478eca1831d9d451967343ecb8abb3251c8aabc1
4
+ data.tar.gz: 1e80dbf31a672a172ad05204ef2bcb5cd840844f
5
5
  SHA512:
6
- metadata.gz: 5fa8891f2dac535a2316f442bce79243906dfec243ec052d7e1ebb10c235abf1fcbb18bd01c3f1dcbde9bfd76afc5baa7ade9cce04f0941e25d31dccc9dc4ecb
7
- data.tar.gz: b172277fc37efb000e6e6e994d8e8b7958cc5f69f4f13d2830057370000323e74a017887fac67ae99c1de15bad568558150673d20fe4d2153b8b6b17a97f1062
6
+ metadata.gz: f2e51a9a94642545aaa6c1f797daa70d8dc47ee22429603b59e91926011566dd7a901d5183f143874eb717497db5505e9b16a00a9b1592710d4dab761cc8f9aa
7
+ data.tar.gz: ea5f555ddcd3653ef89f1e0fabeaa397e2028178100052bfe0d617929f9283428ffdd47dec89364761dabf4dacd74ca105a350d2dc63e701212aea513cb9e732
data/Gemfile.lock CHANGED
@@ -1,13 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- verku (0.16.2)
4
+ verku (0.16.3)
5
5
  activesupport (~> 5.0, >= 5.0.0)
6
6
  awesome_print (~> 0)
7
7
  eeepub (~> 0)
8
+ kramdown
8
9
  nokogiri (~> 1.6, >= 1.6.0)
9
10
  notifier (~> 0)
10
- pandoc-ruby
11
11
  rubyzip (~> 1.0, >= 1.0.0)
12
12
  safe_yaml (~> 1.0)
13
13
  thor (~> 0.19, >= 0.19.1)
@@ -27,19 +27,20 @@ GEM
27
27
  eeepub (0.8.1)
28
28
  builder
29
29
  rubyzip
30
- i18n (0.8.6)
30
+ i18n (0.9.1)
31
+ concurrent-ruby (~> 1.0)
32
+ kramdown (1.15.0)
31
33
  mini_portile2 (2.3.0)
32
34
  minitest (5.10.3)
33
35
  nokogiri (1.8.1)
34
36
  mini_portile2 (~> 2.3.0)
35
37
  notifier (0.5.2)
36
- pandoc-ruby (2.0.2)
37
38
  rake (12.1.0)
38
39
  rubyzip (1.2.1)
39
40
  safe_yaml (1.0.4)
40
41
  thor (0.20.0)
41
42
  thread_safe (0.3.6)
42
- tzinfo (1.2.3)
43
+ tzinfo (1.2.4)
43
44
  thread_safe (~> 0.1)
44
45
  zip-zip (0.3)
45
46
  rubyzip (>= 1.0.0)
data/README.md CHANGED
@@ -63,7 +63,7 @@ This command creates a directory <tt>mybook</tt> with the following structure:
63
63
  │ ├── layout.css
64
64
  │ ├── layout.erb
65
65
  │ ├── syntax.css
66
- │ └── user.css
66
+ │ └── user.css
67
67
  ├── builds
68
68
  ├── docs
69
69
  └── research other supporting documentation
@@ -113,7 +113,7 @@ To create valid Mobi for Kindle, you need an appropriate cover image. **Verku**
113
113
 
114
114
  ## Maintainer
115
115
 
116
- * Ben Wilson [http://dausha.net](http://dausha.net)
116
+ * Ben Wilson [http://merovex.com](http://merovex.com)
117
117
 
118
118
  ## License
119
119
 
@@ -17,8 +17,12 @@ module Verku
17
17
  def content
18
18
  source_list.map do |file|
19
19
  d = File.read_content(file)
20
- raise d.inspect
21
- PandocRuby.markdown(read_content(file)[0]).to_html.sectionize
20
+ # raise d.inspect
21
+ Kramdown::Document.new(
22
+ read_content(file)[0],
23
+ :latex_headers => %w{chapter section subsection subsubsection paragraph subparagraph}
24
+ ).to_html
25
+ # PandocRuby.markdown(read_content(file)[0]).to_html.sectionize
22
26
  end.join("\n\n")
23
27
  end
24
28
  end
@@ -34,8 +34,11 @@ module Verku
34
34
  private
35
35
  def content
36
36
  source_list.map do |file|
37
- # --top-level-division=chapter
38
- PandocRuby.markdown(read_content(file)[0], "top-level-division" => 'chapter').to_latex.fix_scenebreaks
37
+ Kramdown::Document.new(
38
+ read_content(file)[0],
39
+ :latex_headers => %w{chapter section subsection subsubsection paragraph subparagraph}
40
+ ).to_latex
41
+ # PandocRuby.markdown(read_content(file)[0], "top-level-division" => 'chapter').to_latex.fix_scenebreaks
39
42
  end.join("\n\n")
40
43
  end
41
44
  end
data/lib/verku/version.rb CHANGED
@@ -1,11 +1,3 @@
1
1
  module Verku
2
- VERSION = '0.16.2'
3
- # module Version
4
- # MAJOR = 0
5
- # MINOR = 9
6
- # PATCH = 0
7
- # BUILD = 1
8
-
9
- # STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
10
- # end
2
+ VERSION = '0.16.3'
11
3
  end
data/verku.gemspec CHANGED
@@ -34,7 +34,8 @@ Gem::Specification.new do |spec|
34
34
  spec.add_runtime_dependency "eeepub", "~> 0"
35
35
  spec.add_runtime_dependency "nokogiri", "~> 1.6", ">= 1.6.0"
36
36
  spec.add_runtime_dependency "notifier", "~> 0"
37
- spec.add_runtime_dependency 'pandoc-ruby'
37
+ # spec.add_runtime_dependency 'pandoc-ruby'
38
+ spec.add_runtime_dependency 'kramdown'
38
39
  spec.add_runtime_dependency "rubyzip", "~> 1.0", ">= 1.0.0"
39
40
  spec.add_runtime_dependency "safe_yaml", "~> 1.0"
40
41
  spec.add_runtime_dependency 'thor', "~> 0.19", ">= 0.19.1"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: verku
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.2
4
+ version: 0.16.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Merovex
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-04 00:00:00.000000000 Z
11
+ date: 2017-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -121,7 +121,7 @@ dependencies:
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0'
123
123
  - !ruby/object:Gem::Dependency
124
- name: pandoc-ruby
124
+ name: kramdown
125
125
  requirement: !ruby/object:Gem::Requirement
126
126
  requirements:
127
127
  - - ">="
@@ -222,7 +222,6 @@ files:
222
222
  - LICENSE.md
223
223
  - README.md
224
224
  - Rakefile
225
- - VERSION
226
225
  - bin/verku
227
226
  - lib/verku.rb
228
227
  - lib/verku/build.rb
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.7.0