utopia-project 0.11.1 → 0.11.2

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: 745b6fc7b75aef2727d42a368ccc62ffc9513aad14bef1e368422a283d25eb81
4
- data.tar.gz: 21d95c4de0238e0e3a0c222de04566ed704e4be783e9fb8162b3e941267159c1
3
+ metadata.gz: 1a6eb04fb1a45e27cedfe5b735cf063fe37f571a1d78a06c63a74ff8457d8d78
4
+ data.tar.gz: 214094fb6097b3246f2b449e97f0c8256bb474c96af3a04ff30df1191d7bf6b2
5
5
  SHA512:
6
- metadata.gz: 4903eb1c19d6c9742d1d6b897221260faed6add539a600aa444288a3ae64c7b1203e0103b5152524c9f1deecb300698ffb0a1c85496fa3268a72612f9ad3d42c
7
- data.tar.gz: 6bb48a510a95c21999d111496197150592aa1ac7d62a625eecbbfe69c3eebf0c68b08802350a7901bbd6a56ea5d4d9abd8f599a3ec4a64a21c405bd0c9f34939
6
+ metadata.gz: 972d6fa18553a40f1740978e4cdfe23265d8e76648383097072f77a2a3ae1b236db748f35003e2bf6bc88c95db4b9f6c2092527be660e3cd44d9508d3d68f450
7
+ data.tar.gz: 0bf9971c843e0c59273fd4e30f9bcacbe4590fbf971bc299a67eef78d9b02f3fdbcc06a3dd8b10c218ea1457520d61f01d11c1d658ee266ccb7e3568a133cffb
@@ -24,7 +24,7 @@ def serve(port: nil, bind: nil)
24
24
  end
25
25
 
26
26
  if port
27
- opttions << "--port" << port
27
+ options << "--port" << port
28
28
  end
29
29
 
30
30
  system("falcon", "serve", "--config", config_path, "--preload", preload_path, *options)
@@ -52,7 +52,7 @@ module Utopia
52
52
  header = child
53
53
 
54
54
  # We found the matched header:
55
- if header.first_child.string_content == name
55
+ if header.first_child.to_plaintext.include?(name)
56
56
  # Now subsequent children:
57
57
  current = header.next
58
58
  while current.type != :header and following = current.next
@@ -69,7 +69,8 @@ module Utopia
69
69
  end
70
70
 
71
71
  def to_html(node = self.root)
72
- Trenni::MarkupString.raw(node.to_html(flags: Markly::UNSAFE))
72
+ renderer = Markly::HTMLRenderer.new(ids: true, flags: Markly::UNSAFE)
73
+ Trenni::MarkupString.raw(renderer.render(node))
73
74
  end
74
75
 
75
76
  def paragraph_node(child)
@@ -22,6 +22,6 @@
22
22
 
23
23
  module Utopia
24
24
  module Project
25
- VERSION = "0.11.1"
25
+ VERSION = "0.11.2"
26
26
  end
27
27
  end
@@ -11,8 +11,8 @@
11
11
  case title.type
12
12
  when :text
13
13
  ?><content:heading>#{title.string_content}</content:heading><?r
14
- when :img
15
- ?><header><img src="#{title.src}" /></header><?r
14
+ when :image
15
+ ?><header><img src="#{title.url}" /></header><?r
16
16
  else
17
17
  ?><content:heading>Project</content:heading><?r
18
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utopia-project
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-25 00:00:00.000000000 Z
11
+ date: 2020-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: utopia
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: markly
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '0.3'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '0.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: decode
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -178,7 +178,7 @@ dependencies:
178
178
  - - ">="
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
- description:
181
+ description:
182
182
  email:
183
183
  - samuel.williams@oriontransfer.co.nz
184
184
  executables: []
@@ -294,7 +294,7 @@ licenses:
294
294
  metadata:
295
295
  source_code_uri: https://github.com/socketry/utopia-project/
296
296
  funding_uri: https://github.com/sponsors/ioquatix/
297
- post_install_message:
297
+ post_install_message:
298
298
  rdoc_options: []
299
299
  require_paths:
300
300
  - lib
@@ -310,7 +310,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
310
310
  version: '0'
311
311
  requirements: []
312
312
  rubygems_version: 3.1.2
313
- signing_key:
313
+ signing_key:
314
314
  specification_version: 4
315
315
  summary: A project documentation tool based on Utopia.
316
316
  test_files: []