sitepress-core 3.1.3 → 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
- data/sitepress-core.gemspec +5 -2
- metadata +8 -5
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
data/sitepress-core.gemspec
CHANGED
@@ -9,9 +9,12 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Brad Gessler"]
|
10
10
|
spec.email = ["bradgessler@gmail.com"]
|
11
11
|
spec.licenses = ["MIT"]
|
12
|
-
|
13
12
|
spec.summary = %q{An embeddable file-backed content management system.}
|
14
|
-
spec.homepage = "https://
|
13
|
+
spec.homepage = "https://sitepress.cc/"
|
14
|
+
|
15
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
16
|
+
spec.metadata["source_code_uri"] = "https://github.com/sitepress/sitepress"
|
17
|
+
spec.metadata["changelog_uri"] = "https://github.com/sitepress/sitepress/tags"
|
15
18
|
|
16
19
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
20
|
spec.bindir = "exe"
|
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
|
@@ -92,10 +92,13 @@ files:
|
|
92
92
|
- lib/sitepress/site.rb
|
93
93
|
- lib/sitepress/version.rb
|
94
94
|
- sitepress-core.gemspec
|
95
|
-
homepage: https://
|
95
|
+
homepage: https://sitepress.cc/
|
96
96
|
licenses:
|
97
97
|
- MIT
|
98
|
-
metadata:
|
98
|
+
metadata:
|
99
|
+
homepage_uri: https://sitepress.cc/
|
100
|
+
source_code_uri: https://github.com/sitepress/sitepress
|
101
|
+
changelog_uri: https://github.com/sitepress/sitepress/tags
|
99
102
|
post_install_message:
|
100
103
|
rdoc_options: []
|
101
104
|
require_paths:
|
@@ -111,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
114
|
- !ruby/object:Gem::Version
|
112
115
|
version: '0'
|
113
116
|
requirements: []
|
114
|
-
rubygems_version: 3.3.
|
117
|
+
rubygems_version: 3.3.7
|
115
118
|
signing_key:
|
116
119
|
specification_version: 4
|
117
120
|
summary: An embeddable file-backed content management system.
|