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 +4 -4
- data/lib/emacs-ruby/emacs.rb +2 -2
- data/lib/emacs-ruby/tilt.rb +3 -1
- data/lib/emacs-ruby/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: 6b074f77e8b427edf39d10b60ca934deda73d513
|
4
|
+
data.tar.gz: 8add833b4d9248cc98be5e8d52ae4ac1c353af8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e20efc82675af54d8c9f6eac9ea951c4c9bc0afa37eb36ec8c95b8b8c9562e519d8d2fc3984784be8fd7df8a80bae290bd8b6a67c3134588e6968fe3ffbc5a17
|
7
|
+
data.tar.gz: 26b01cd0fef2adc248ba58a8cc4e061aabcbc45793c190e5213116ff24a2c5c7f44acee4e0fd2a9a356bcf3fa28d17aa6f29401503a1184733811b96801fcfaa
|
data/lib/emacs-ruby/emacs.rb
CHANGED
@@ -6,9 +6,9 @@ module EmacsRuby
|
|
6
6
|
@emacs = 'emacs'
|
7
7
|
end
|
8
8
|
|
9
|
-
def org_to_html(org_file, load: nil
|
9
|
+
def org_to_html(org_file, load: nil)
|
10
10
|
html = nil
|
11
|
-
batch target: org_file, load: load, 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|
|
data/lib/emacs-ruby/tilt.rb
CHANGED
@@ -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
|
data/lib/emacs-ruby/version.rb
CHANGED