coplan-engine 0.1.0 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d7eb4f27bf285882f682573c1d041888e43302705198d9e1c6fbd22381d79105
4
- data.tar.gz: 8306fb39d88a3299878e745710f0c563a44fc5c56d45555766fa60d0ed579aa9
3
+ metadata.gz: 7978a493f24f0424cd5a4170890ff0e41e27dc10e9b7dfff2de3e456df2a5c56
4
+ data.tar.gz: 541671d9b00b2d10ddae7269c78074db1eb025a75b94d05654a529a1809668c7
5
5
  SHA512:
6
- metadata.gz: cdfb09bca7fbab22ab978c126606339b9a9c3b5cafe5ab79600f4d944c40b74f974da606a6db3199e6966b8b97843dabf94bdb29879514dbcbd8e06d8e2f960b
7
- data.tar.gz: 66af414c9c0c9e777718a248c021d9f256209b721f95943d30af3be7c0dc7a2814a1a10315195cf53063661f5da0831c76973401c0986e23ccad0f5a1cadec43
6
+ metadata.gz: 5b670e1689fc107975f40915ae5cd3b9ee509863a7b3f690b399710d3220308834d5043af9e1dec61f993bbc5759e134f5364aa43c9b3e66503612fb9d7138d0
7
+ data.tar.gz: 8cf385dcdbf1309395113203c186f7813e0ec51518e49ea0f7a3120075ce7b4b07453555cfd576db3c279fe415e7157e7cc756407d6297467018ffd52d199cae
@@ -113,6 +113,12 @@ img, svg {
113
113
  gap: var(--space-sm);
114
114
  }
115
115
 
116
+ .site-nav__logo {
117
+ width: 28px;
118
+ height: 28px;
119
+ border-radius: 6px;
120
+ }
121
+
116
122
  .site-nav__brand:hover {
117
123
  text-decoration: none;
118
124
  color: var(--color-primary);
@@ -12,7 +12,10 @@
12
12
  <body>
13
13
  <nav class="site-nav">
14
14
  <div class="site-nav__inner">
15
- <%= link_to "📋 CoPlan", coplan.root_path, class: "site-nav__brand" %>
15
+ <%= link_to coplan.root_path, class: "site-nav__brand" do %>
16
+ <%= image_tag "coplan/coplan-logo-sm.png", alt: "CoPlan", class: "site-nav__logo" %>
17
+ CoPlan
18
+ <% end %>
16
19
  <ul class="site-nav__links">
17
20
  <% if signed_in? %>
18
21
  <li><%= link_to "Plans", coplan.plans_path %></li>
@@ -0,0 +1,9 @@
1
+ class ExpandContentMarkdownToMediumtext < ActiveRecord::Migration[8.0]
2
+ def up
3
+ change_column :coplan_plan_versions, :content_markdown, :text, limit: 16.megabytes - 1, null: false
4
+ end
5
+
6
+ def down
7
+ change_column :coplan_plan_versions, :content_markdown, :text, null: false
8
+ end
9
+ end
data/lib/coplan/engine.rb CHANGED
@@ -15,6 +15,7 @@ module CoPlan
15
15
 
16
16
  initializer "coplan.assets" do |app|
17
17
  app.config.assets.paths << Engine.root.join("app/assets/stylesheets")
18
+ app.config.assets.paths << Engine.root.join("app/assets/images")
18
19
  app.config.assets.paths << Engine.root.join("app/javascript")
19
20
  end
20
21
 
@@ -1,3 +1,3 @@
1
1
  module CoPlan
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/coplan.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require "commonmarker"
2
+ require "diffy"
2
3
  require "coplan/configuration"
3
4
  require "coplan/engine"
4
5
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coplan-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Block
@@ -140,6 +140,7 @@ executables: []
140
140
  extensions: []
141
141
  extra_rdoc_files: []
142
142
  files:
143
+ - app/assets/images/coplan/coplan-logo-sm.png
143
144
  - app/assets/stylesheets/coplan/application.css
144
145
  - app/controllers/coplan/api/v1/base_controller.rb
145
146
  - app/controllers/coplan/api/v1/comments_controller.rb
@@ -214,6 +215,7 @@ files:
214
215
  - config/importmap.rb
215
216
  - config/routes.rb
216
217
  - db/migrate/20260226200000_create_coplan_schema.rb
218
+ - db/migrate/20260313210000_expand_content_markdown_to_mediumtext.rb
217
219
  - lib/coplan.rb
218
220
  - lib/coplan/configuration.rb
219
221
  - lib/coplan/engine.rb