mascot-server 0.1.10 → 0.1.11

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 +4 -4
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 16351f98378715f792c828c78e0b8f6fa645cce8
4
- data.tar.gz: 249575bc4fa0c37b4b2058ee32cc5e0c45dbe36a
3
+ metadata.gz: ff27ad30519bccb2d9f5157cb5bb6083ee9c1f6c
4
+ data.tar.gz: 742eeb9de5b7e8951a8ee178746cbab7859e73ec
5
5
  SHA512:
6
- metadata.gz: c4a2d9fc9fd4ce8cc86ffc1a5c63c80f5f3d3a589a260e2fbf7c43cb3931471fb2d67d3e8a4ea2f2fe9b96bd54426f7a6fa56d5445025ee97fdcc13adc9e74a2
7
- data.tar.gz: 72ec73fc7b5aef4e83cf67c89f6c81cf77993087154c0c4ec05375fe2d0c488be0d121b02853fa988efefa908008ad7e8904425b719c12796cc8a1442c773c79
6
+ metadata.gz: 03b425d24b40bab3e5ceb76170388b19eece36399e7c52bf49f5c19ff78da37865362f8da3cb03c60ec5e76bde79274998f51f1792616701cbfd819cd668908a
7
+ data.tar.gz: 83448dd2a437587bfd281e8802a27b8ee8a096c2c1be5128323260c51bf865697c93924174e7687fcffc9d75b2cd83dec783d41d202e6b57e43723d68b1e0c1b
@@ -23,16 +23,16 @@ module Mascot
23
23
  class Server
24
24
  ROOT_PATH = Pathname.new("/")
25
25
 
26
- def initialize(sitemap: , relative_to: "/")
26
+ def initialize(site: , relative_to: "/")
27
27
  @relative_to = Pathname.new(relative_to)
28
- @sitemap = sitemap
28
+ @site = site
29
29
  end
30
30
 
31
31
  def call(env)
32
32
  req = Rack::Request.new(env)
33
- resource = @sitemap.get req.path
33
+ resource = @site.get req.path
34
34
  # TODO: Memoize this per request and between requests eventually.
35
- resources = @sitemap.resources
35
+ resources = @site.resources
36
36
 
37
37
  if resource
38
38
  body = if resource.asset.template_extensions.empty?
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.10
4
+ version: 0.1.11
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-08-03 00:00:00.000000000 Z
11
+ date: 2016-08-10 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.10
61
+ version: 0.1.11
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.10
68
+ version: 0.1.11
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: tilt
71
71
  requirement: !ruby/object:Gem::Requirement