robin_cms 0.1.0 → 0.1.1
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
- data/lib/robin_cms/itemable.rb +2 -2
- data/lib/robin_cms/version.rb +1 -1
- data/lib/robin_cms/views/layout.erb +13 -13
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36e4c02115d1c4d3849376ff70e8c20fd0fb1e80c6ae806f4ae09a7a88e981bf
|
4
|
+
data.tar.gz: f6a86d8721ee1180221c19f7480341accfc3cf5e191f1fde4eab4a7747c757ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cefc9e3a84b3b19c786f2110e0baffe2ceafdea25e120320d3a0241ca4aa934775674df7157e0acb9a03dda831d5787516751ec59716ff39436e724e874a696f
|
7
|
+
data.tar.gz: ca16243899f791e64780e268aea3a45c54e2f4d9e6dfd160b4ba07adaf5d25e79f6d3fd7404f42fd67f0b849725963f17e879db10c0ace46dba641d5e95d5f51
|
data/lib/robin_cms/itemable.rb
CHANGED
@@ -7,10 +7,10 @@ module RobinCMS
|
|
7
7
|
DATETIME_FORMAT = "%Y-%m-%d"
|
8
8
|
|
9
9
|
# The keys which we don't want to serialize.
|
10
|
-
SERIALIZE_IGNORE_KEYS = [
|
10
|
+
SERIALIZE_IGNORE_KEYS = %i[id kind content image captures].freeze
|
11
11
|
|
12
12
|
def initialize(id, library, attrs = {})
|
13
|
-
[
|
13
|
+
%i[id location filetype].each do |key|
|
14
14
|
unless library.has_key?(key)
|
15
15
|
raise TypeError, "Missing required field #{key}"
|
16
16
|
end
|
data/lib/robin_cms/version.rb
CHANGED
@@ -12,18 +12,18 @@
|
|
12
12
|
<span class="controls">
|
13
13
|
<h1><a href="/admin"><%= @config[:title] %> admin</a></h1>
|
14
14
|
</span>
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
15
|
+
<span class="controls --gap-md">
|
16
|
+
<a href="<%= @config[:url] %>" target="_blank">
|
17
|
+
<%= @config[:url] %><%= erb :new_tab %>
|
18
|
+
</a>
|
19
|
+
<% if @config[:build_command] %>
|
20
|
+
<form id="publish-form" action="/admin/publish" method="post">
|
21
|
+
<button type="submit" form="publish-form">Publish site</button>
|
22
|
+
</form>
|
23
|
+
<% end %>
|
24
|
+
<a href='<%= url("/profile") %>'>Account</a>
|
25
|
+
<a href='<%= url("/logout") %>'>Log out</a>
|
26
|
+
</span>
|
27
27
|
</header>
|
28
28
|
<% end %>
|
29
29
|
<main id="site-content">
|
@@ -33,7 +33,7 @@
|
|
33
33
|
<p>
|
34
34
|
Made with 🧡
|
35
35
|
<br />
|
36
|
-
<a href="https://
|
36
|
+
<a href="https://codeberg.org/evencuriouser/robin_cms">Robin CMS</a> <%= RobinCMS::VERSION %>
|
37
37
|
</p>
|
38
38
|
</footer>
|
39
39
|
</main>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: robin_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aron Lebani
|
@@ -111,12 +111,12 @@ files:
|
|
111
111
|
- lib/robin_cms/views/richtext_field.erb
|
112
112
|
- lib/robin_cms/views/select_field.erb
|
113
113
|
- lib/robin_cms/views/style.erb
|
114
|
-
homepage: https://
|
114
|
+
homepage: https://codeberg.org/evencuriouser/robin_cms
|
115
115
|
licenses:
|
116
116
|
- MIT
|
117
117
|
metadata:
|
118
|
-
homepage_uri: https://
|
119
|
-
source_code_uri: https://
|
118
|
+
homepage_uri: https://codeberg.org/evencuriouser/robin_cms
|
119
|
+
source_code_uri: https://codeberg.org/evencuriouser/robin_cms
|
120
120
|
post_install_message:
|
121
121
|
rdoc_options: []
|
122
122
|
require_paths:
|