utopia-project 0.44.1 → 0.44.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aeb8c91bedd9b713aac858b1d21a2475e46339d263619e37c5ee5e55a96f9823
4
- data.tar.gz: 42dd69b94451317ffebd0c44e7316accba3e2e7563c911c6e47ec3ff8b61f83d
3
+ metadata.gz: bb1b060b61a6a2d8217400a95a0902c6a5445a9a7aa19cd1336ef5271c6ad109
4
+ data.tar.gz: 0dddf9399507803260102a0bcf2b2a3d8218b3ff59ab3f8857b3937c7f72b74d
5
5
  SHA512:
6
- metadata.gz: c661665e07add1839f6f49abe463e74fdc433e2184bbf802d8fbd4dcfe09c339d637625ce5ba0f63333860ee97d22414026c3bb70ab16ccdffdae8c3a3a4dcb3
7
- data.tar.gz: 429aedacf04be623ca7869fde98f40cc702743da7b53fa2f51bb81c1b387b39dea7d8b475a916a76c0a9fc5cce1c51d8db0a80e2a151f62ab06c304ad7e73a45
6
+ metadata.gz: 839445ba2548a2c7784828ca9e198f3929cb19a628395ef06ecd78d4d88c3766adf478c42d47e0707e9407032e3ff9a6a60d5e512261af1507012128201232e3
7
+ data.tar.gz: 2c31c2a1c6991967ebe93429413fa3c6f4b28d77275da4890c353f86b43eabf504219732e10a0a680c0cb953d37a048e505eb84e8d3c0d229e7b71721232dd8b
checksums.yaml.gz.sig CHANGED
Binary file
@@ -7,7 +7,7 @@
7
7
  require "utopia/path"
8
8
  require "utopia/content/links"
9
9
 
10
- require "xrb/reference"
10
+ require "protocol/url/reference"
11
11
  require "decode"
12
12
 
13
13
  require "thread/local"
@@ -187,7 +187,7 @@ module Utopia
187
187
  end
188
188
 
189
189
  # Compute a link href to the given definition for use within the HTML output.
190
- # @returns [XRB::Reference]
190
+ # @returns [Protocol::URL::Reference]
191
191
  #
192
192
  # @example Link to a definition
193
193
  # base = Utopia::Project::Base.local
@@ -195,13 +195,15 @@ module Utopia
195
195
  # base.link_for(definition).to_s # => "/reference/utopia/project/index#Utopia::Project::Base"
196
196
  def link_for(definition)
197
197
  path = definition.lexical_path.map{|entry| entry.to_s}
198
+ fragment = nil
198
199
 
199
- if definition.container?
200
- return XRB::Reference.new(@reference_path + path + "index")
201
- else
202
- name = path.pop
203
- return XRB::Reference.new(@reference_path + path + "index", fragment: id_for(definition))
200
+ unless definition.container?
201
+ path.pop
202
+ fragment = id_for(definition)
204
203
  end
204
+
205
+ path = (@reference_path + path + "index").to_url_path
206
+ return Protocol::URL::Reference.new(path, nil, fragment)
205
207
  end
206
208
 
207
209
  # Resolve inheritance information for the given definition.
@@ -147,7 +147,7 @@ module Utopia
147
147
 
148
148
  # Build a link node around a child node.
149
149
  # @parameter title [String | Nil] The link title.
150
- # @parameter url [String | XRB::Reference] The link target.
150
+ # @parameter url [String | Protocol::URL::Reference] The link target.
151
151
  # @parameter child [Markly::Node] The linked child node.
152
152
  # @returns [Markly::Node] The link node.
153
153
  def link_node(title, url, child)
@@ -4,7 +4,7 @@
4
4
  # Copyright, 2020-2026, by Samuel Williams.
5
5
 
6
6
  require "utopia/path"
7
- require "xrb/reference"
7
+ require "xrb/strings"
8
8
  require "decode"
9
9
 
10
10
  require_relative "sidebar"
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Utopia
7
7
  module Project
8
- VERSION = "0.44.1"
8
+ VERSION = "0.44.2"
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.44.1
4
+ version: 0.44.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -83,6 +83,20 @@ dependencies:
83
83
  - - "~>"
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0.17'
86
+ - !ruby/object:Gem::Dependency
87
+ name: protocol-url
88
+ requirement: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - "~>"
91
+ - !ruby/object:Gem::Version
92
+ version: '0.19'
93
+ type: :runtime
94
+ prerelease: false
95
+ version_requirements: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - "~>"
98
+ - !ruby/object:Gem::Version
99
+ version: '0.19'
86
100
  - !ruby/object:Gem::Dependency
87
101
  name: thread-local
88
102
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file