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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 33206f074a140df9093a6e389cafa436b11c8161
4
- data.tar.gz: 6ee6e1c7c0ac8ff994f79988b589169d6415ef48
3
+ metadata.gz: 3b22a9419f0ff8e87a3212443cfe557ede2e9624
4
+ data.tar.gz: bbb9b6bf7c974fdea54e7ea65bbb2e9426732155
5
5
  SHA512:
6
- metadata.gz: 3539459dfe8500af683941a117c382b23a984f538fdd4f3fdaf5eeb0ceab5f775a12ac1d73199d994ae008e171ca81a5ce2faf0380d8308c99ce0e5b8a76dec4
7
- data.tar.gz: d204508d5c8a62d772674504945d3fcb924032c3406ec4ab29fe5b3342f96eee5a42cdf3686b2629967f892f68defbd7fa6a4a3eeabe7671d835d0021815c1b9
6
+ metadata.gz: 6a9d79dca313ebef3fe1b33de0ab1691d2e680830c3c582dc579f3dcb3f99fc54c9711abf5750205177d7a182b383929743daca98f55c558803f5da39c94a9dd
7
+ data.tar.gz: 51295fe8128f91012d6345f25fd99316d3da13565ab600e799e7887dbc35c080908ea7ea9c25d62875178ae8d460e7b51e9778f2b5ba7b3005d23ae6eb627a84
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- maglove (0.6.1)
4
+ maglove (0.6.2)
5
5
  activesupport (~> 4.2)
6
6
  bundler (~> 1.10)
7
7
  coffee-script (~> 2.4)
@@ -38,7 +38,12 @@ module MagLove
38
38
  end
39
39
 
40
40
  # render editor view
41
- haml_contents = File.read(File.join(Gem.datadir("maglove"), "sdk.haml"))
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
@@ -1,3 +1,3 @@
1
1
  module MagLove
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
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.1
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-09 00:00:00.000000000 Z
11
+ date: 2016-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler