emacs-ruby 0.1.0 → 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: 48feb954ed9b208c200465691884fd7b9ab838e8
4
- data.tar.gz: 6dfa9346a8f1fae937ed77f57062671c142dfec0
3
+ metadata.gz: 6b074f77e8b427edf39d10b60ca934deda73d513
4
+ data.tar.gz: 8add833b4d9248cc98be5e8d52ae4ac1c353af8d
5
5
  SHA512:
6
- metadata.gz: 0d7a23b7a6834262cd2668f3e7d3660f87188c165a05006f982edbf237cc914ddc76e43bb9a30512b58c45b824fa95607811016500293b7cc96f146e2cc7eeb3
7
- data.tar.gz: d96d734fe30a55e127377b08993a5aa7d808cf462d0867931971a1de73e5709cf629d1b3800c0e75c2bae451eaf9b448dad782f0253446ec2287968bfd1ca643
6
+ metadata.gz: e20efc82675af54d8c9f6eac9ea951c4c9bc0afa37eb36ec8c95b8b8c9562e519d8d2fc3984784be8fd7df8a80bae290bd8b6a67c3134588e6968fe3ffbc5a17
7
+ data.tar.gz: 26b01cd0fef2adc248ba58a8cc4e061aabcbc45793c190e5213116ff24a2c5c7f44acee4e0fd2a9a356bcf3fa28d17aa6f29401503a1184733811b96801fcfaa
@@ -6,9 +6,9 @@ module EmacsRuby
6
6
  @emacs = 'emacs'
7
7
  end
8
8
 
9
- def org_to_html(org_file, load: nil, func: 'org-html-export-to-html')
9
+ def org_to_html(org_file, load: nil)
10
10
  html = nil
11
- batch target: org_file, load: load, func: func
11
+ batch target: org_file, load: load, func: 'org-html-export-to-html'
12
12
  html_file = org_file.sub(/.org$/, '.html')
13
13
  return html unless File.exist? html_file
14
14
  File.open(html_file) do |file|
@@ -11,11 +11,13 @@ module Tilt
11
11
 
12
12
  def prepare
13
13
  @engine = ::EmacsRuby::Emacs.new
14
+ @engine.emacs = options[:emacs] || 'emacs'
15
+ @load = options[:load]
14
16
  @output = nil
15
17
  end
16
18
 
17
19
  def evaluate(scope, locals, &block)
18
- @output = @engine.org_to_html file
20
+ @output = @engine.org_to_html file, load: @load
19
21
  end
20
22
  end
21
23
  end
@@ -1,3 +1,3 @@
1
1
  module EmacsRuby
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emacs-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xiaoxing Hu