sitepress 0.1.16 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c8a8a7debfe6f2131c3d521a3ad47f9e9d611559
4
- data.tar.gz: 7f9484da938a71bbbb513d9534a83637bbcdf3d9
3
+ metadata.gz: 81192ab68db38e76d76cc0c6bf7f6e025cba223e
4
+ data.tar.gz: 73f4d779ba6637bdb4976d9d7e6004bca0a65b71
5
5
  SHA512:
6
- metadata.gz: c11e63ac83610ca7377381a6f8453c021a95385f7134284b16c8dc0d61087d5d2130d5249dfef3c1700be8fa71e023fe7c37ec07d18bb738f6b36cd1a7164228
7
- data.tar.gz: d51d1e0f7a0998288b7cb2bc9a6c06f73d67072dd80beda9b516533091b323af55ab789c1df47b69d6b62e1f13998c95ceda9f3eab21bcc2bea596acab09d721
6
+ metadata.gz: b28cb18b95f421ee4849d8cc5e455f08c058f7316a7b97a9cb59c4a278c6c92846ab681b6859a274060d8f22c076399b05827361c26718c486827093b60f93d2
7
+ data.tar.gz: 0fd5a6c4d712ca41f8ae1db00cacadd657c6334cf8f548d0ff22464490fe3a4d77f6dfef7ef57a907ee3925662a3eb89285d3fb6e3fdf82c2501ddd33d904cc1
@@ -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: assets, path: root_path).mount(node)
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 assets(glob = DEFAULT_GLOB)
60
- Dir.glob(root_path.join(glob)).select(&File.method(:file?)).lazy.map do |path|
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
@@ -1,3 +1,3 @@
1
1
  module Sitepress
2
- VERSION = "0.1.16"
2
+ VERSION = "0.1.17"
3
3
  end
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/bradgessler/sitepress"
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.16
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-12 00:00:00.000000000 Z
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/bradgessler/sitepress
90
+ homepage: https://github.com/sitepress/sitepress
91
91
  licenses: []
92
92
  metadata: {}
93
93
  post_install_message: