utopia-project 0.30.1 → 0.32.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e329f5ef5d7797f277782c21151b364c08f7a26355b42f2b5d9200df298ea019
4
- data.tar.gz: 90ab37a2bb8216432401741515f2171b6e00e0d666f3e506357aee2e6c5da4e4
3
+ metadata.gz: cc64c130459791ef60f2d944da446cc0230afcf3f9de70a540cfad88628acc6d
4
+ data.tar.gz: 27a33e6afef9086f18fecc65b069db3da5923b5c8b7d71e43493a70b8d301d2e
5
5
  SHA512:
6
- metadata.gz: 591a7d0f49aa8bc849de5e7a6003bcb06682f3dd7fa1404e7d3450b49cb0b2ca8797a736dc94047e5c7b387581d6a69f9e6cdc937cf95b6e17383f6243394dd7
7
- data.tar.gz: 32ed713e15b65f3e670a6575933c9b6c3ad89fe34748c68f776b220f0ee5069ca5b2a4ec3f38bac220a24947f80c97c40cb6f8982e32c11bde190cb1528a23e7
6
+ metadata.gz: c3fa4c852779d97625b4fae040a821a02f7535045a344f10cf35fe0be3b560dedffb92713747f4b83f2b59c242eb101679cb49398630ea3959a95d8466fee9ef
7
+ data.tar.gz: 401481c8992b5c18805469de787a293228739463aef439b36b8f0669132e61ee8528cc08bac97eca929ddf96ae6fb128d8df2f1be1526c265816ec1f589cd3f9
checksums.yaml.gz.sig CHANGED
Binary file
@@ -61,19 +61,33 @@ def public_documentation_url
61
61
  end
62
62
 
63
63
  def usage_section(documentation_url, project)
64
- template = XRB::Template.load_file(File.expand_path("usage.xrb", __dir__))
65
- scope = Scope.new(documentation_url, project)
64
+ buffer = String.new
66
65
 
67
- output = template.to_string(scope)
66
+ buffer << "Please see the [project documentation](#{documentation_url}) for more details.\n"
68
67
 
69
- return Markly.parse(output)
68
+ project.guides.each do |guide|
69
+ buffer << " - [#{guide.title}](#{guide.href(documentation_url)}) - #{guide.description.to_markdown}\n"
70
+ end
71
+
72
+ return Markly.parse(buffer)
70
73
  end
71
74
 
72
75
  def releases_section(documentation_url, project)
73
- template = XRB::Template.load_file(File.expand_path("releases.xrb", __dir__))
74
- scope = Scope.new(documentation_url, project)
76
+ buffer = String.new
75
77
 
76
- output = template.to_string(scope)
78
+ buffer << "Please see the [project releases](#{documentation_url}releases/index) for all releases.\n"
79
+
80
+ project.releases.first(10).each do |release|
81
+ buffer << "\n### #{release.name}\n\n"
82
+
83
+ if notes = release.notes
84
+ buffer << notes.to_markdown
85
+ end
86
+
87
+ release.changes.each do |change|
88
+ buffer << " - [#{change.to_markdown}](#{release.href(documentation_url, anchor: change.id)})\n"
89
+ end
90
+ end
77
91
 
78
- return Markly.parse(output)
92
+ return Markly.parse(buffer)
79
93
  end
@@ -33,6 +33,20 @@ module Utopia
33
33
  @node = node
34
34
  end
35
35
 
36
+ def notes
37
+ node = @node.next
38
+
39
+ notes = Markly::Node.new(:document)
40
+
41
+ while node and node.type != :header
42
+ notes.append_child(node.dup)
43
+
44
+ node = node.next
45
+ end
46
+
47
+ return notes
48
+ end
49
+
36
50
  def changes
37
51
  return to_enum(:changes) unless block_given?
38
52
 
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Utopia
7
7
  module Project
8
- VERSION = "0.30.1"
8
+ VERSION = "0.32.0"
9
9
  end
10
10
  end
data/readme.md CHANGED
@@ -31,6 +31,10 @@ Please see the [project documentation](https://socketry.github.io/utopia-project
31
31
 
32
32
  Please see the [project releases](https://socketry.github.io/utopia-project/releases/index) for all releases.
33
33
 
34
+ ### v0.31.0
35
+
36
+ - Support brief release notes in `releases.md` document.
37
+
34
38
  ### v0.30.0
35
39
 
36
40
  - [Rename `changes.md` to `releases.md`](https://socketry.github.io/utopia-project/releases/index#rename-changes.md-to-releases.md)
data/releases.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  This document outlines major changes and new features in each release of the project.
4
4
 
5
+ ## v0.31.0
6
+
7
+ - Support brief release notes in `releases.md` document.
8
+
5
9
  ## v0.30.0
6
10
 
7
11
  ### Rename `changes.md` to `releases.md`
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utopia-project
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.30.1
4
+ version: 0.32.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -40,7 +40,7 @@ cert_chain:
40
40
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
41
41
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
42
42
  -----END CERTIFICATE-----
43
- date: 2024-08-23 00:00:00.000000000 Z
43
+ date: 2024-10-12 00:00:00.000000000 Z
44
44
  dependencies:
45
45
  - !ruby/object:Gem::Dependency
46
46
  name: decode
@@ -133,9 +133,7 @@ extensions: []
133
133
  extra_rdoc_files: []
134
134
  files:
135
135
  - bake/utopia/project.rb
136
- - bake/utopia/project/readme/releases.xrb
137
136
  - bake/utopia/project/readme/update.rb
138
- - bake/utopia/project/readme/usage.xrb
139
137
  - lib/utopia/project.rb
140
138
  - lib/utopia/project/base.md
141
139
  - lib/utopia/project/base.rb
metadata.gz.sig CHANGED
Binary file
@@ -1,13 +0,0 @@
1
- Please see the [project releases](#{documentation_url}releases/index) for all releases.
2
-
3
- <?r
4
- project.releases.first(10).each do |release|
5
- ?>
6
- ### #{release.name}
7
-
8
- <?r release.changes do |change| ?>
9
- - [#{change.to_markdown}](#{release.href(documentation_url, anchor: change.id)})
10
- <?r
11
- end
12
- end
13
- ?>
@@ -1,5 +0,0 @@
1
- Please see the [project documentation](#{documentation_url}) for more details.
2
-
3
- <?r project.guides.each do |guide| ?>
4
- - [#{guide.title}](#{guide.href(documentation_url)}) - #{guide.description.to_markdown}
5
- <?r end ?>