utopia-project 0.26.1 → 0.27.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: 031a2fb7688d5c5e60678e60f0a216ea55039da6a5a4bf141e8386edf54514f3
4
- data.tar.gz: 3736adf1368a145efad98b7328e5bc08d3ac379eaf54395f859abd10f40bbe58
3
+ metadata.gz: 7571eadd6ab883d2405f012181f6079c01c3775a9678e8529920b7768445c7b3
4
+ data.tar.gz: 967608452801fd109a543d90d0b5bc7d5020148e90e2ccf9d87052160f43a893
5
5
  SHA512:
6
- metadata.gz: 6dd5cc41d3b475b025186b7b5bc00c00255b78f73e360e13a160e54e134af79091f40eb5661a6659bee524af8ed2b7c20f1dddf0c26fa545c4fa7dc3373f82e8
7
- data.tar.gz: ab196b8b02a0bd98251c6b2d34e8076a991d2d9ab94efc8a563846dad4310418d05701d3335e53cfc4322fd1e73336e45755c55b7cd1cb43797916f2c395cee4
6
+ metadata.gz: 832377189cf4125315baf88d81691e6dea3173cfdbef2a7ccb291cadb7fe8f62186561374d5295c2ee1f68860c4c5cd911c3a6409431acc70fae9de75cba5f45
7
+ data.tar.gz: c886453e9447576f9983f7dd476f09042bbb7df9ea1af627896ecee051162d276544e6d7f56b60bc2d3a2893f455210337f9af7eef677217870c59ca58dc5bce
checksums.yaml.gz.sig CHANGED
Binary file
@@ -57,3 +57,23 @@ def static(output_path: "docs", force: true)
57
57
 
58
58
  FileUtils.touch File.expand_path(".nojekyll", output_path)
59
59
  end
60
+
61
+ # Extract a description for the project.
62
+ def description(root: context.root)
63
+ require 'markly'
64
+
65
+ readme_path = File.join(root, "readme.md")
66
+ if File.exist?(readme_path)
67
+ document = Markly.parse(File.read(readme_path))
68
+ child = document.first_child
69
+
70
+ if child&.type == :header
71
+ title = child.first_child.string_content
72
+
73
+ # First sentence
74
+ if introduction = child.next
75
+ $stdout.puts introduction.to_plaintext[/.*?\./]
76
+ end
77
+ end
78
+ end
79
+ end
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Utopia
7
7
  module Project
8
- VERSION = "0.26.1"
8
+ VERSION = "0.27.0"
9
9
  end
10
10
  end
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.26.1
4
+ version: 0.27.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-07-22 00:00:00.000000000 Z
43
+ date: 2024-07-24 00:00:00.000000000 Z
44
44
  dependencies:
45
45
  - !ruby/object:Gem::Dependency
46
46
  name: decode
metadata.gz.sig CHANGED
Binary file