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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mascot-server.rb +2 -3
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 68fc432996e8a8c208e9b68c6875079a37c6acb8
4
- data.tar.gz: bf8fbb6b4a6f1af8d14b50fd0ef9a68e3b6f1b65
3
+ metadata.gz: 1faef77e6ec58d5a5b638a3682b5a3d295433824
4
+ data.tar.gz: 7b78aaf2080d03aa726c85fa89ca79801e563e69
5
5
  SHA512:
6
- metadata.gz: 27e1ed6dc516fad135417be7cbde8c32c97c17078c30e99aa485c97238fc1ed975d2960429e175e88ec1e86ee0f334130e75f7131ed4af0ce97eb3a30304cc39
7
- data.tar.gz: cbb31468e0aaba0b7fbd11a6beeb57061f2e07da183cbc908c4ca38bf8428f894f6daec1a56b29fcbf55c961a58831c5d53f00848aa53d3fc86fcb43b023ad08
6
+ metadata.gz: 5847c38a6890e5ec9d262ca0d47d8c70590831bf04c7b2ad9f19088142518cab2168e05c0ccb17d8cf6bae9e53620d63f6bb2b380f57d6a51db09c3a7a066a5f
7
+ data.tar.gz: fbbdeead490d46b6cb0a0bb73a024e3e85c519fc5a4dc35b060b2bbd83ef386808a00a558586b81ec2ea27ad64f4bb7260e7f32c954c3776c5b1fe09225d32a6
@@ -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.locals)
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.2
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-21 00:00:00.000000000 Z
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.2
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.2
68
+ version: 0.1.3
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: tilt
71
71
  requirement: !ruby/object:Gem::Requirement