utopia-project 0.2.0 → 0.2.1

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: d079c534edadc8369f297c530d544cece5c97b38d024e7aaf47a0fa8a2773d38
4
- data.tar.gz: 4c85546bb35c5c72050241ab1ed2067f3c43e9ac8a2da243dbe06866dcdb785c
3
+ metadata.gz: a9254ec1335e8bb5b9b4a72277c0c758127db694186b8290253776c2fc55388d
4
+ data.tar.gz: eb0c13feab735f177d597a0bc73b312b6d44bdac2b95bdcbbc618ab60073784a
5
5
  SHA512:
6
- metadata.gz: 85e9bcab3e4b773701589a3fad01032bcfd5ec627d94dd0f3562d622ed27826b1235215038d3a339a7ba2a02f7b0e0ca74f7ef3f2bb7c8cc7e38b2941a0807bd
7
- data.tar.gz: 2e3bf584b57cb29f3d11a68a794e6db7e351ea463ad4bc60a8ce8b945006e54cfe6f00cc2eeb1586add8d8df4c0d7e6a552332b2ad11758cb71e49d1c8cee350
6
+ metadata.gz: f0ab5ee3f504207a4b93d6363b39d6159655d716368cceb3bb3603c7f6159cffbf65cba06965faade1ca28d2616d8dcdf50b96cd9fe4856e01374cacbceacd5a
7
+ data.tar.gz: 8fd4a5f81cbe6b20fcd0bc4e7a803e891e07cc8931dc4c5310b4b6a7f221d0af070e1262e89bf617f7976b38e6089a4b89a739443935f4dc71468ecbc05d960e
@@ -25,7 +25,6 @@ require "utopia/project/version"
25
25
  require 'variant'
26
26
 
27
27
  require 'utopia/localization'
28
- require 'utopia/gallery'
29
28
 
30
29
  require_relative 'project/base'
31
30
 
@@ -89,7 +88,7 @@ module Utopia
89
88
  cache_root = File.expand_path("_gallery", root)
90
89
 
91
90
  builder.use Utopia::Content, root: PAGES_ROOT, namespaces: {
92
- 'gallery' => Utopia::Gallery::Tags.new
91
+ # 'gallery' => Utopia::Gallery::Tags.new
93
92
  }
94
93
 
95
94
  builder.run lambda { |env| [404, {}, []] }
@@ -96,8 +96,11 @@ module Utopia
96
96
  end
97
97
 
98
98
  def format(text, symbol = nil, language: symbol&.language)
99
- if text.is_a?(Enumerable)
99
+ case text
100
+ when Enumerable
100
101
  text = text.to_a.join("\n")
102
+ when nil
103
+ return nil
101
104
  end
102
105
 
103
106
  if language
@@ -22,6 +22,6 @@
22
22
 
23
23
  module Utopia
24
24
  module Project
25
- VERSION = "0.2.0"
25
+ VERSION = "0.2.1"
26
26
  end
27
27
  end
@@ -17,13 +17,10 @@ Gem::Specification.new do |spec|
17
17
  spec.require_paths = ["lib"]
18
18
 
19
19
  spec.add_dependency "utopia", "~> 2.14"
20
- spec.add_dependency "utopia-gallery"
20
+ # spec.add_dependency "utopia-gallery"
21
21
 
22
22
  spec.add_dependency "kramdown"
23
- spec.add_dependency "kramdown-parser-gfm"
24
-
25
23
  spec.add_dependency "decode"
26
-
27
24
  spec.add_dependency "rackula"
28
25
  spec.add_dependency "falcon"
29
26
  spec.add_dependency "thread-local"
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.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.14'
27
- - !ruby/object:Gem::Dependency
28
- name: utopia-gallery
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: kramdown
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -52,20 +38,6 @@ dependencies:
52
38
  - - ">="
53
39
  - !ruby/object:Gem::Version
54
40
  version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: kramdown-parser-gfm
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :runtime
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
41
  - !ruby/object:Gem::Dependency
70
42
  name: decode
71
43
  requirement: !ruby/object:Gem::Requirement