sitepress-core 3.1.3 → 3.2.0

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
  SHA256:
3
- metadata.gz: d3a21318c9c7097a4655b82a0d5d49dd2328c911cc36227dcd39d9dbfc2ce2c5
4
- data.tar.gz: fa94fc43352dd36fc1851e99bcc467d41cba18cb77dffc4d966b58186fd67dc7
3
+ metadata.gz: b2839172c3482bfcd76b700b47a31469caa3e76119f4671c77933f1ca26266e3
4
+ data.tar.gz: da657c2dc3adf936890e9e51d404367e9de5d1cafa0c322e77b21284e605b5d8
5
5
  SHA512:
6
- metadata.gz: 882cd6fc9bf67c641a1f3d1b33980149f17e6411511b41688d5d12149f89d8ebbcc40bb6d3b5d0402edf095480c983ddd66844fc1965c5eabcf2866ff8acd2a5
7
- data.tar.gz: 7fad5f1a0253f618b037d8618ce293b80ef7c0b6f20739c9af67a74a5e571876aeca8c9da72cbf10176e6e7ae651a2402999d7d706ed572d23e3530afeafc521
6
+ metadata.gz: da9b20b6beddb74ea92903d2283938e6ba3ef442a875a724330e4225240e7865fcff208ef2251432814fd54b8ed12aa1eea43a994733b348950fddff8197929b
7
+ data.tar.gz: 2da0235e25b98a8353ce7d254ccab76b3ef6148c09ba35a6ebfb4431c05187bb15ef20739903416f56940f1e53a17197160b80487fb75c8ade79377ceb05ce6e
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Sitepress
2
- VERSION = "3.1.3".freeze
2
+ VERSION = "3.2.0".freeze
3
3
  end
@@ -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://github.com/sitepress/sitepress"
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.1.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-09-12 00:00:00.000000000 Z
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://github.com/sitepress/sitepress
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.20
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.