From f16b67eb4abb0a613ba1da4741de18a1734227f1 Mon Sep 17 00:00:00 2001 From: Simon Neutert Date: Sat, 13 Jan 2024 15:18:56 +0100 Subject: [PATCH] Update Ruby, Node.js, and Nokogiri versions, and add "Bootstrap tag" functionality --- .github/workflows/docker-publish.yml | 5 +++-- .github/workflows/ruby-main-rust-stable.yml | 3 ++- .github/workflows/ruby-main.yml | 3 ++- .github/workflows/ruby.yml | 3 ++- .tool-versions | 4 ++-- CHANGELOG.md | 16 ++++++++++++++++ Dockerfile | 4 ++-- Gemfile.lock | 8 ++++---- views/layout.erb | 2 ++ views/memos/edit.erb | 15 +++++++++++---- 10 files changed, 46 insertions(+), 17 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 99812f1..7467f93 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -7,7 +7,7 @@ name: Docker buildx on: schedule: - - cron: "0 9 * * 0" + - cron: "0 19 1 * *" push: branches: ["main"] # Publish semver tags as releases. @@ -23,7 +23,8 @@ env: jobs: build: - runs-on: ubuntu-latest + runs-on: macos-latest-xlarge + timeout-minutes: 30 permissions: contents: read packages: write diff --git a/.github/workflows/ruby-main-rust-stable.yml b/.github/workflows/ruby-main-rust-stable.yml index 5f1e5e7..d0769cb 100644 --- a/.github/workflows/ruby-main-rust-stable.yml +++ b/.github/workflows/ruby-main-rust-stable.yml @@ -18,10 +18,11 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, macos-latest-xlarge] - ruby-version: ["3.2"] + ruby-version: ["3.3"] rust-version: ["stable"] runs-on: ${{ matrix.os }} + timeout-minutes: 30 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/ruby-main.yml b/.github/workflows/ruby-main.yml index 69ba08b..6eb9e54 100644 --- a/.github/workflows/ruby-main.yml +++ b/.github/workflows/ruby-main.yml @@ -18,10 +18,11 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, macos-latest-xlarge] - ruby-version: ["3.2"] + ruby-version: ["3.3"] rust-version: ["1.73.0"] runs-on: ${{ matrix.os }} + timeout-minutes: 30 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index e6f11e8..c8f91ac 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -18,10 +18,11 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest] - ruby-version: ["3.2"] + ruby-version: ["3.3"] rust-version: ["1.73.0"] runs-on: ${{ matrix.os }} + timeout-minutes: 30 steps: - uses: actions/checkout@v3 diff --git a/.tool-versions b/.tool-versions index 54c12d7..0bd1fca 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,3 +1,3 @@ -ruby 3.2.2 +ruby 3.3.0 rust 1.73.0 -nodejs 18.14.2 +nodejs 20.10.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index a33a37c..b9dd96f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,19 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +new entry format: + +```markdown +### next (yyyy/mm/dd) + +- [PR#](url) Description. - [@user](url) +``` + +### next (yyyy/mm/dd) + +- [#106](https://github.com/simonneutert/labradorite-notebook/pulls/106) Updates Ruby, Node.js, and Nokogiri versions, and replace unmaintained tag JS framework with "use-bootstrap-tag". - [@simonneutert](https://github.com/simonneutert) + ### 0.4.4 (2023/11/17) - Updates dependencies and ci config diff --git a/Dockerfile b/Dockerfile index f67bb3e..da80312 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ ##### Setup for Alpine ##### -FROM ruby:3.2-alpine AS builder +FROM ruby:3.3-alpine AS builder ENV LANG C.UTF-8 ENV WORKDIR="/app/" @@ -29,7 +29,7 @@ RUN bundle install -j${bundler_jobs} ##### MAIN CONTAINER ##### -FROM ruby:3.2-alpine +FROM ruby:3.3-alpine RUN apk add nodejs npm \ && rm -rf /var/cache/apk/*; \ diff --git a/Gemfile.lock b/Gemfile.lock index 32c7294..12710ce 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -21,12 +21,12 @@ GEM minitar (0.9) minitest (5.21.1) nio4r (2.7.0) - nokogiri (1.15.5) + nokogiri (1.16.0) mini_portile2 (~> 2.8.2) racc (~> 1.4) - nokogiri (1.15.5-arm64-darwin) + nokogiri (1.16.0-arm64-darwin) racc (~> 1.4) - nokogiri (1.15.5-x86_64-linux) + nokogiri (1.16.0-x86_64-linux) racc (~> 1.4) parallel (1.24.0) parser (3.2.2.4) @@ -136,4 +136,4 @@ DEPENDENCIES yard (~> 0.9.34) BUNDLED WITH - 2.4.22 + 2.5.4 diff --git a/views/layout.erb b/views/layout.erb index 3d2697d..80b5193 100644 --- a/views/layout.erb +++ b/views/layout.erb @@ -20,6 +20,7 @@ Labradorite + +
<%= yield %>
diff --git a/views/memos/edit.erb b/views/memos/edit.erb index bb5c66d..d425258 100644 --- a/views/memos/edit.erb +++ b/views/memos/edit.erb @@ -1,7 +1,5 @@ - - -
+
Back @@ -19,7 +17,13 @@
- +
@@ -114,3 +118,6 @@ // Todo: have the path put in a data attribute ready(() => initMemosUpdate("memo-form", "/api/v1<%= @current_path_memo %>/update")) +