sitepress-core 3.1.4 → 3.2.0
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 +24 -5
- data/lib/sitepress/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2839172c3482bfcd76b700b47a31469caa3e76119f4671c77933f1ca26266e3
|
4
|
+
data.tar.gz: da657c2dc3adf936890e9e51d404367e9de5d1cafa0c322e77b21284e605b5d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da9b20b6beddb74ea92903d2283938e6ba3ef442a875a724330e4225240e7865fcff208ef2251432814fd54b8ed12aa1eea43a994733b348950fddff8197929b
|
7
|
+
data.tar.gz: 2da0235e25b98a8353ce7d254ccab76b3ef6148c09ba35a6ebfb4431c05187bb15ef20739903416f56940f1e53a17197160b80487fb75c8ade79377ceb05ce6e
|
data/lib/sitepress/site.rb
CHANGED
@@ -15,8 +15,8 @@ module Sitepress
|
|
15
15
|
DEFAULT_NODE_MAPPER = AssetNodeMapper
|
16
16
|
|
17
17
|
attr_reader :root_path
|
18
|
-
attr_writer :resources_pipeline
|
19
18
|
attr_accessor :node_mapper
|
19
|
+
attr_writer :resources_pipeline
|
20
20
|
|
21
21
|
# TODO: Get rid of these so that folks have ot call site.resources.get ...
|
22
22
|
extend Forwardable
|
@@ -53,19 +53,38 @@ module Sitepress
|
|
53
53
|
|
54
54
|
# Location of website pages.
|
55
55
|
def pages_path
|
56
|
-
root_path.join("pages")
|
56
|
+
@pages_path ||= root_path.join("pages")
|
57
57
|
end
|
58
58
|
|
59
|
+
def pages_path=(path)
|
60
|
+
@pages_path = Pathname.new(path)
|
61
|
+
end
|
62
|
+
|
63
|
+
# Location of helper files.
|
59
64
|
def helpers_path
|
60
|
-
root_path.join("helpers")
|
65
|
+
@helpers_path ||= root_path.join("helpers")
|
66
|
+
end
|
67
|
+
|
68
|
+
def helpers_path=(path)
|
69
|
+
@helpers_path = Pathname.new(path)
|
61
70
|
end
|
62
71
|
|
72
|
+
# Location of rails assets
|
63
73
|
def assets_path
|
64
|
-
root_path.join("assets")
|
74
|
+
@assets_path ||= root_path.join("assets")
|
75
|
+
end
|
76
|
+
|
77
|
+
def assets_path=(path)
|
78
|
+
@assets_path = Pathname.new(path)
|
65
79
|
end
|
66
80
|
|
81
|
+
# Location of pages models.
|
67
82
|
def models_path
|
68
|
-
root_path.join("models")
|
83
|
+
@models_path ||= root_path.join("models")
|
84
|
+
end
|
85
|
+
|
86
|
+
def models_path=(path)
|
87
|
+
@models_path = Pathname.new(path)
|
69
88
|
end
|
70
89
|
|
71
90
|
# Quick and dirty way to manipulate resources in the site without
|
data/lib/sitepress/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sitepress-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brad Gessler
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
114
|
- !ruby/object:Gem::Version
|
115
115
|
version: '0'
|
116
116
|
requirements: []
|
117
|
-
rubygems_version: 3.3.
|
117
|
+
rubygems_version: 3.3.7
|
118
118
|
signing_key:
|
119
119
|
specification_version: 4
|
120
120
|
summary: An embeddable file-backed content management system.
|