maglove 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/maglove/server.rb +6 -1
- data/lib/maglove/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b22a9419f0ff8e87a3212443cfe557ede2e9624
|
4
|
+
data.tar.gz: bbb9b6bf7c974fdea54e7ea65bbb2e9426732155
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a9d79dca313ebef3fe1b33de0ab1691d2e680830c3c582dc579f3dcb3f99fc54c9711abf5750205177d7a182b383929743daca98f55c558803f5da39c94a9dd
|
7
|
+
data.tar.gz: 51295fe8128f91012d6345f25fd99316d3da13565ab600e799e7887dbc35c080908ea7ea9c25d62875178ae8d460e7b51e9778f2b5ba7b3005d23ae6eb627a84
|
data/Gemfile.lock
CHANGED
data/lib/maglove/server.rb
CHANGED
@@ -38,7 +38,12 @@ module MagLove
|
|
38
38
|
end
|
39
39
|
|
40
40
|
# render editor view
|
41
|
-
|
41
|
+
if File.exists?(theme_path("theme.haml", self.theme))
|
42
|
+
layout_path = theme_path("theme.haml", self.theme)
|
43
|
+
else
|
44
|
+
layout_path = File.join(Gem.datadir("maglove"), "sdk.haml")
|
45
|
+
end
|
46
|
+
haml_contents = File.read(layout_path)
|
42
47
|
res.body = Hamloft.render(haml_contents, theme: self.theme, contents: contents, templates: templates, template: template)
|
43
48
|
end
|
44
49
|
end
|
data/lib/maglove/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maglove
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Strebitzer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|