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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/utopia/project/base.rb +9 -7
- data/lib/utopia/project/document.rb +1 -1
- data/lib/utopia/project/guide.rb +1 -1
- data/lib/utopia/project/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +15 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bb1b060b61a6a2d8217400a95a0902c6a5445a9a7aa19cd1336ef5271c6ad109
|
|
4
|
+
data.tar.gz: 0dddf9399507803260102a0bcf2b2a3d8218b3ff59ab3f8857b3937c7f72b74d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 839445ba2548a2c7784828ca9e198f3929cb19a628395ef06ecd78d4d88c3766adf478c42d47e0707e9407032e3ff9a6a60d5e512261af1507012128201232e3
|
|
7
|
+
data.tar.gz: 2c31c2a1c6991967ebe93429413fa3c6f4b28d77275da4890c353f86b43eabf504219732e10a0a680c0cb953d37a048e505eb84e8d3c0d229e7b71721232dd8b
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/utopia/project/base.rb
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
require "utopia/path"
|
|
8
8
|
require "utopia/content/links"
|
|
9
9
|
|
|
10
|
-
require "
|
|
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 [
|
|
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
|
-
|
|
200
|
-
|
|
201
|
-
|
|
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 |
|
|
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)
|
data/lib/utopia/project/guide.rb
CHANGED
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.
|
|
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
|