diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index acaa973e5..1ad0e266e 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -31,16 +31,14 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Install libvips + run: sudo apt-get install -y libvips + - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: ${{matrix.ruby-version}} bundler-cache: true - - - name: StandardRB - uses: andrewmcodes/standardrb-action@v1.0.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Setup Code Climate test-reporter run: | diff --git a/CHANGELOG.md b/CHANGELOG.md index e184c7944..7cef6593e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Spina CMS Changelog +## 2.14 + +### 2.14.0 (February 22nd, 2023) +* Added Spina::Parts::PageLink part +* Added search to the media library +* Added collapsable nested pages (remember to install the new migration) +* Added hint for Spina::Parts::MultiLine +* Fixed CSS bugs in Trix +* Fixed bug with AttrJson 2.0 +* Fixed missing translations +* Updated gem dependencies +* Removed StandardRB + ## 2.13 ### 2.13.1 (December 13th, 2022) diff --git a/Gemfile.lock b/Gemfile.lock index 1b51fb787..39ea063b5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - spina (2.13.1) + spina (2.14.0) ancestry attr_json babosa @@ -17,7 +17,6 @@ PATH rack-rewrite (>= 1.5.0) rails (>= 6.0) sprockets-rails - standard stimulus-rails (>= 0.7.0) tailwindcss-rails (>= 2.0.0) turbo-rails (>= 0.9, < 2.0) @@ -96,7 +95,6 @@ GEM ancestry (4.2.0) activerecord (>= 5.2.6) ansi (1.5.0) - ast (2.4.2) attr_json (2.0.0) activerecord (>= 6.0.0, < 7.1) babosa (2.0.0) @@ -150,7 +148,6 @@ GEM activerecord kaminari-core (= 1.2.2) kaminari-core (1.2.2) - language_server-protocol (3.17.0.3) launchy (2.5.0) addressable (~> 2.7) letter_opener (1.8.1) @@ -193,9 +190,6 @@ GEM nokogiri (1.14.2) mini_portile2 (~> 2.8.0) racc (~> 1.4) - parallel (1.22.1) - parser (3.2.1.0) - ast (~> 2.4.1) pg (1.4.5) pry (0.14.1) coderay (~> 1.1) @@ -240,27 +234,11 @@ GEM rake (>= 12.2) thor (~> 1.0) zeitwerk (~> 2.5) - rainbow (3.1.1) rake (13.0.6) regexp_parser (2.7.0) request_store (1.5.1) rack (>= 1.4) rexml (3.2.5) - rubocop (1.44.1) - json (~> 2.3) - parallel (~> 1.10) - parser (>= 3.2.0.0) - rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.8, < 3.0) - rexml (>= 3.2.5, < 4.0) - rubocop-ast (>= 1.24.1, < 2.0) - ruby-progressbar (~> 1.7) - unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.26.0) - parser (>= 3.2.1.0) - rubocop-performance (1.15.2) - rubocop (>= 1.7.0, < 2.0) - rubocop-ast (>= 0.4.0) ruby-progressbar (1.11.0) ruby-vips (2.1.4) ffi (~> 1.12) @@ -275,30 +253,25 @@ GEM json (>= 1.8, < 3) simplecov-html (~> 0.10.0) simplecov-html (0.10.2) - sprockets (4.1.1) + sprockets (4.2.0) concurrent-ruby (~> 1.0) - rack (> 1, < 3) + rack (>= 2.2.4, < 4) sprockets-rails (3.4.2) actionpack (>= 5.2) activesupport (>= 5.2) sprockets (>= 3.0.0) - standard (1.24.3) - language_server-protocol (~> 3.17.0.2) - rubocop (= 1.44.1) - rubocop-performance (= 1.15.2) stimulus-rails (1.2.1) railties (>= 6.0.0) tailwindcss-rails (2.0.23) railties (>= 6.0.0) thor (1.2.1) - timeout (0.3.1) + timeout (0.3.2) turbo-rails (1.3.3) actionpack (>= 6.0.0) activejob (>= 6.0.0) railties (>= 6.0.0) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - unicode-display_width (2.4.2) view_component (2.82.0) activesupport (>= 5.2.0, < 8.0) concurrent-ruby (~> 1.0) diff --git a/docs/v2/rendering_content/9_page_link.md b/docs/v2/rendering_content/9_page_link.md new file mode 100644 index 000000000..495489cc4 --- /dev/null +++ b/docs/v2/rendering_content/9_page_link.md @@ -0,0 +1,30 @@ +# PageLink + +An PageLink is a part where you can link to another page. You can optionally scope it to a resource. + +## Theme configuration + +``` +config.parts = [ + # ... + { + name: "page", + title: "Page", + part_type: "Spina::Parts::PageLink" + } +] +``` + +``` +config.parts = [ + # ... + { + name: "blogpost", + title: "Blogpost", + part_type: "Spina::Parts::PageLink", + options: { + resource: "blog" + } + } +] +``` diff --git a/lib/spina/version.rb b/lib/spina/version.rb index 7f6f897fc..28588b8e5 100644 --- a/lib/spina/version.rb +++ b/lib/spina/version.rb @@ -1,3 +1,3 @@ module Spina - VERSION = "2.13.1" + VERSION = "2.14.0" end diff --git a/spina.gemspec b/spina.gemspec index d52d12a3e..196c5068b 100644 --- a/spina.gemspec +++ b/spina.gemspec @@ -14,6 +14,11 @@ Gem::Specification.new do |gem| gem.summary = "Spina" gem.description = "CMS" gem.license = "MIT" + gem.post_install_message = %q{ + Spina v2.14 includes a new migration, don't forget to run spina:install:migrations. + + For details on this specific release, refer to the CHANGELOG file. + } gem.required_ruby_version = ">= 2.7.0" @@ -46,5 +51,4 @@ Gem::Specification.new do |gem| gem.add_dependency "jsonapi-serializer" gem.add_dependency "browser" gem.add_dependency "tailwindcss-rails", ">= 2.0.0" - gem.add_dependency "standard" end