sitepress 0.1.16 → 0.1.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sitepress/site.rb +7 -3
- data/lib/sitepress/version.rb +1 -1
- data/sitepress.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81192ab68db38e76d76cc0c6bf7f6e025cba223e
|
4
|
+
data.tar.gz: 73f4d779ba6637bdb4976d9d7e6004bca0a65b71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b28cb18b95f421ee4849d8cc5e455f08c058f7316a7b97a9cb59c4a278c6c92846ab681b6859a274060d8f22c076399b05827361c26718c486827093b60f93d2
|
7
|
+
data.tar.gz: 0fd5a6c4d712ca41f8ae1db00cacadd657c6334cf8f548d0ff22464490fe3a4d77f6dfef7ef57a907ee3925662a3eb89285d3fb6e3fdf82c2501ddd33d904cc1
|
data/lib/sitepress/site.rb
CHANGED
@@ -29,11 +29,15 @@ module Sitepress
|
|
29
29
|
# A tree representation of the resourecs wthin the site.
|
30
30
|
def root
|
31
31
|
ResourcesNode.new.tap do |node|
|
32
|
-
DirectoryCollection.new(assets:
|
32
|
+
DirectoryCollection.new(assets: pages_assets, path: pages_path).mount(node)
|
33
33
|
resources_pipeline.process node
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
37
|
+
def pages_path
|
38
|
+
root_path.join("pages")
|
39
|
+
end
|
40
|
+
|
37
41
|
# Returns a list of all the resources within #root.
|
38
42
|
def resources
|
39
43
|
@resources = nil unless cache_resources
|
@@ -56,8 +60,8 @@ module Sitepress
|
|
56
60
|
|
57
61
|
private
|
58
62
|
# Lazy stream of files that will be rendered by resources.
|
59
|
-
def
|
60
|
-
Dir.glob(
|
63
|
+
def pages_assets(glob = DEFAULT_GLOB)
|
64
|
+
Dir.glob(pages_path.join(glob)).select(&File.method(:file?)).lazy.map do |path|
|
61
65
|
Asset.new(path: path)
|
62
66
|
end
|
63
67
|
end
|
data/lib/sitepress/version.rb
CHANGED
data/sitepress.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["bradgessler@gmail.com"]
|
11
11
|
|
12
12
|
spec.summary = %q{An embeddable file-backed content management system.}
|
13
|
-
spec.homepage = "https://github.com/
|
13
|
+
spec.homepage = "https://github.com/sitepress/sitepress"
|
14
14
|
|
15
15
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
16
16
|
spec.bindir = "exe"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sitepress
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.17
|
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-09-
|
11
|
+
date: 2016-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -87,7 +87,7 @@ files:
|
|
87
87
|
- lib/sitepress/site.rb
|
88
88
|
- lib/sitepress/version.rb
|
89
89
|
- sitepress.gemspec
|
90
|
-
homepage: https://github.com/
|
90
|
+
homepage: https://github.com/sitepress/sitepress
|
91
91
|
licenses: []
|
92
92
|
metadata: {}
|
93
93
|
post_install_message:
|