agreement_engine 0.2.1 → 0.2.2
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +7 -1
- data/lib/agreement_engine/configuration.rb +1 -0
- data/lib/agreement_engine/seed.rb +1 -1
- data/lib/agreement_engine/upgrade.rb +1 -0
- data/lib/agreement_engine/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6b0552f0b8eaf140851ac0c721314dc330319de4399f437653385bfc100f8ee1
|
|
4
|
+
data.tar.gz: 91a7b9503fd1f7aa20840ad63ddcb01de75ffb77099114d2c13f828d66e42c9a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9dcf848868b0cbf1c827fa5f4cd16c06e75540db232057d2a9de8eef4e16f306769549d4ee8839efd939dc85a8e0dab9538c701b9a1a870138d161532f9929e3
|
|
7
|
+
data.tar.gz: 3adaf556bca2a3a69878763b7e93640c1ad2ddd87e020967398c4d560142cc98f7f255e8cc7ae76df81dc69e8484505faf53df50c46b299a6b338127c7e9c691
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.2.2] - 2026-11-20
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- `config.pages_place` names the keystone_ui-pages place the seed task and the upgrade create their pages in, for hosts that register places
|
|
10
|
+
|
|
5
11
|
## [0.2.1] - 2026-11-20
|
|
6
12
|
|
|
7
13
|
### Fixed
|
data/README.md
CHANGED
|
@@ -79,7 +79,13 @@ rails agreement_engine:seed
|
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
The seed task issues a starting version for every registered standing type
|
|
82
|
-
that has none, from a page you then edit in the builder.
|
|
82
|
+
that has none, from a page you then edit in the builder. A host that registers
|
|
83
|
+
keystone_ui-pages places names the place those pages go in:
|
|
84
|
+
|
|
85
|
+
```ruby
|
|
86
|
+
KeystoneUi::Pages.register_place("legal", label: "Legal documents", slug: false)
|
|
87
|
+
AgreementEngine.configure { |config| config.pages_place = "legal" }
|
|
88
|
+
```
|
|
83
89
|
|
|
84
90
|
## Acceptance evidence
|
|
85
91
|
|
|
@@ -17,7 +17,7 @@ module AgreementEngine
|
|
|
17
17
|
def issue_starting_version(type, text)
|
|
18
18
|
return if Document.where(document_type: type.key.to_s, subject_id: nil).exists?
|
|
19
19
|
|
|
20
|
-
page = KeystoneUi::Pages::Page.create!(name: type.title, slug: "agreement-#{type.key.to_s.dasherize}", document: document_of(text))
|
|
20
|
+
page = KeystoneUi::Pages::Page.create!(name: type.title, slug: "agreement-#{type.key.to_s.dasherize}", place: AgreementEngine.config.pages_place, document: document_of(text))
|
|
21
21
|
page.publish
|
|
22
22
|
Document.issue!(type: type.key, page_version: page.live_version, version: "1.0", effective_at: Time.current)
|
|
23
23
|
end
|
|
@@ -61,6 +61,7 @@ module AgreementEngine
|
|
|
61
61
|
def page_for(document_type)
|
|
62
62
|
KeystoneUi::Pages::Page.find_or_create_by!(slug: "agreement-#{document_type.to_s.dasherize}") do |page|
|
|
63
63
|
page.name = document_type.to_s.titleize
|
|
64
|
+
page.place = AgreementEngine.config.pages_place
|
|
64
65
|
end
|
|
65
66
|
end
|
|
66
67
|
|