mascot-server 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mascot-server.rb +2 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1faef77e6ec58d5a5b638a3682b5a3d295433824
|
4
|
+
data.tar.gz: 7b78aaf2080d03aa726c85fa89ca79801e563e69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5847c38a6890e5ec9d262ca0d47d8c70590831bf04c7b2ad9f19088142518cab2168e05c0ccb17d8cf6bae9e53620d63f6bb2b380f57d6a51db09c3a7a066a5f
|
7
|
+
data.tar.gz: fbbdeead490d46b6cb0a0bb73a024e3e85c519fc5a4dc35b060b2bbd83ef386808a00a558586b81ec2ea27ad64f4bb7260e7f32c954c3776c5b1fe09225d32a6
|
data/lib/mascot-server.rb
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
require "mascot"
|
2
|
+
require "tilt"
|
2
3
|
|
3
4
|
module Mascot
|
4
|
-
require "tilt"
|
5
|
-
|
6
5
|
class TiltRenderer
|
7
6
|
def initialize(resource)
|
8
7
|
@resource = resource
|
@@ -10,7 +9,7 @@ module Mascot
|
|
10
9
|
|
11
10
|
def render
|
12
11
|
template = engine.new { |t| @resource.body }
|
13
|
-
template.render(Object.new, @resource
|
12
|
+
template.render(Object.new, {current_page: @resource})
|
14
13
|
end
|
15
14
|
|
16
15
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mascot-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brad Gessler
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: haml
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.1.
|
61
|
+
version: 0.1.3
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.1.
|
68
|
+
version: 0.1.3
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: tilt
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|