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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4fbf894e92d463a649deb5a35f5e7dbe6053c2d02b582c2a286ebed0c66b22da
4
- data.tar.gz: c4e5ee5768732cedc4c0789083df8e03144a4dcd70b7d68c520547dec9d36a08
3
+ metadata.gz: 36e4c02115d1c4d3849376ff70e8c20fd0fb1e80c6ae806f4ae09a7a88e981bf
4
+ data.tar.gz: f6a86d8721ee1180221c19f7480341accfc3cf5e191f1fde4eab4a7747c757ce
5
5
  SHA512:
6
- metadata.gz: ba7ce3b355e910b330279514917ce33de24372c4659dac5706c54a3cfc92d2d1d87436818b098bf8f027eb9ae3fcb64796568f7076eef936878d1251754aaff1
7
- data.tar.gz: ddfc74c1b20eae5327a37fac66ae66a1a6d1027b26a77900dad1f44b42eb445b1cf617c250dc0f302d8c531b6101f80d5e74bfb5da2d7ee62f51aee02b7683f3
6
+ metadata.gz: cefc9e3a84b3b19c786f2110e0baffe2ceafdea25e120320d3a0241ca4aa934775674df7157e0acb9a03dda831d5787516751ec59716ff39436e724e874a696f
7
+ data.tar.gz: ca16243899f791e64780e268aea3a45c54e2f4d9e6dfd160b4ba07adaf5d25e79f6d3fd7404f42fd67f0b849725963f17e879db10c0ace46dba641d5e95d5f51
@@ -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 = [:id, :kind, :content, :image, :captures].freeze
10
+ SERIALIZE_IGNORE_KEYS = %i[id kind content image captures].freeze
11
11
 
12
12
  def initialize(id, library, attrs = {})
13
- [:id, :location, :filetype].each do |key|
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RobinCMS
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
@@ -12,18 +12,18 @@
12
12
  <span class="controls">
13
13
  <h1><a href="/admin"><%= @config[:title] %> admin</a></h1>
14
14
  </span>
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>
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://git.sr.ht/~evencuriouser/robin-cms">Robin CMS</a> <%= RobinCMS::VERSION %>
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.0
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://git.sr.ht/~evencuriouser/robin-cms
114
+ homepage: https://codeberg.org/evencuriouser/robin_cms
115
115
  licenses:
116
116
  - MIT
117
117
  metadata:
118
- homepage_uri: https://git.sr.ht/~evencuriouser/robin-cms
119
- source_code_uri: https://git.sr.ht/~evencuriouser/robin-cms
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: