From d021f3650e2d89f9e70cc29526a45a58bc809402 Mon Sep 17 00:00:00 2001 From: Mattia Roccoberton Date: Sat, 26 Mar 2022 17:54:26 +0100 Subject: [PATCH 01/12] README update --- README.md | 7 +++++-- screenshot.png => extra/screenshot.png | Bin 2 files changed, 5 insertions(+), 2 deletions(-) rename screenshot.png => extra/screenshot.png (100%) diff --git a/README.md b/README.md index 85431ad..97cbade 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,12 @@ # ActiveAdmin Quill Editor -[![gem version](https://badge.fury.io/rb/activeadmin_quill_editor.svg)](https://badge.fury.io/rb/activeadmin_quill_editor) [![gem downloads](https://badgen.net/rubygems/dt/activeadmin_quill_editor)](https://rubygems.org/gems/activeadmin_quill_editor) [![Linters](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/linters.yml/badge.svg)](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/linters.yml) [![specs](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs.yml/badge.svg)](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs.yml) +[![gem version](https://badge.fury.io/rb/activeadmin_quill_editor.svg)](https://badge.fury.io/rb/activeadmin_quill_editor) +[![gem downloads](https://badgen.net/rubygems/dt/activeadmin_quill_editor)](https://rubygems.org/gems/activeadmin_quill_editor) +[![Linters](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/linters.yml/badge.svg)](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/linters.yml) +[![specs](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs.yml/badge.svg)](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs.yml) An Active Admin plugin to use [Quill Rich Text Editor](https://github.com/quilljs/quill) in form fields. -![screenshot](screenshot.png) +![screenshot](extra/screenshot.png) Please :star: if you like it. diff --git a/screenshot.png b/extra/screenshot.png similarity index 100% rename from screenshot.png rename to extra/screenshot.png From 7af25106a2e3421c1f237838109c880c4b8e0123 Mon Sep 17 00:00:00 2001 From: Mattia Roccoberton Date: Sat, 26 Mar 2022 18:00:12 +0100 Subject: [PATCH 02/12] Remove sassc dependency --- Gemfile | 11 +++++++---- README.md | 1 + activeadmin_quill_editor.gemspec | 1 - 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Gemfile b/Gemfile index 5742c99..1bccaeb 100644 --- a/Gemfile +++ b/Gemfile @@ -6,14 +6,17 @@ gemspec group :development, :test do gem 'activestorage', '~> 6.0' - gem 'capybara', '~> 3.33' gem 'puma', '~> 4.3' - gem 'rspec_junit_formatter', '~> 0.4' - gem 'rspec-rails', '~> 4.0' - gem 'selenium-webdriver', '~> 3.142' + gem 'sassc', '~> 2.4' gem 'sprockets-rails', '~> 3.2' gem 'sqlite3', '~> 1.4' + # Testing + gem 'capybara' + gem 'rspec_junit_formatter' + gem 'rspec-rails' + gem 'selenium-webdriver' + # Linters gem 'brakeman' gem 'fasterer' diff --git a/README.md b/README.md index 97cbade..7e232f7 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ After installing Active Admin, add to your Gemfile: `gem 'activeadmin_quill_edit If you installed Active Admin without Webpacker support (default for now): +- Add a SASS/SCSS gem to your Gemfile (ex. `gem 'sassc'`) - Add at the end of your Active Admin styles (_app/assets/stylesheets/active_admin.scss_): ```scss @import 'activeadmin/quill_editor/quill.snow'; diff --git a/activeadmin_quill_editor.gemspec b/activeadmin_quill_editor.gemspec index ff3cf42..86adfe2 100644 --- a/activeadmin_quill_editor.gemspec +++ b/activeadmin_quill_editor.gemspec @@ -18,5 +18,4 @@ Gem::Specification.new do |spec| spec.require_paths = ['lib'] spec.add_runtime_dependency 'activeadmin', '~> 2.0' - spec.add_runtime_dependency 'sassc', '~> 2.4' end From 038d66f387e0000b031183f434ce7d34398ef8b3 Mon Sep 17 00:00:00 2001 From: Mattia Roccoberton Date: Sat, 26 Mar 2022 18:02:07 +0100 Subject: [PATCH 03/12] Set minimum Ruby version to 2.6.0 and enable MFA --- .github/workflows/specs.yml | 2 +- activeadmin_quill_editor.gemspec | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/specs.yml b/.github/workflows/specs.yml index b240719..0c75011 100644 --- a/.github/workflows/specs.yml +++ b/.github/workflows/specs.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - ruby: ['2.5', '2.6', '2.7'] + ruby: ['2.6', '2.7'] steps: - name: Checkout diff --git a/activeadmin_quill_editor.gemspec b/activeadmin_quill_editor.gemspec index 86adfe2..6099078 100644 --- a/activeadmin_quill_editor.gemspec +++ b/activeadmin_quill_editor.gemspec @@ -14,6 +14,12 @@ Gem::Specification.new do |spec| spec.email = 'mat@blocknot.es' spec.homepage = 'https://github.com/blocknotes/activeadmin_quill_editor' + spec.required_ruby_version = '>= 2.6.0' + + spec.metadata['homepage_uri'] = spec.homepage + spec.metadata['source_code_uri'] = spec.homepage + spec.metadata['rubygems_mfa_required'] = 'true' + spec.files = Dir['{app,lib}/**/*', 'LICENSE.txt', 'Rakefile', 'README.md'] spec.require_paths = ['lib'] From 7498cd65a13a705d4e368aaaea705e7dd5046b65 Mon Sep 17 00:00:00 2001 From: Mattia Roccoberton Date: Sat, 26 Mar 2022 18:18:25 +0100 Subject: [PATCH 04/12] Setup Appraisal --- .github/workflows/specs.yml | 18 +- .rubocop.yml | 1 + Appraisals | 26 ++ Gemfile | 6 - activeadmin_quill_editor.gemspec | 2 + bin/appraisal | 29 ++ extra/README.md | 19 ++ gemfiles/rails52_activeadmin20.gemfile | 27 ++ gemfiles/rails52_activeadmin20.gemfile.lock | 313 +++++++++++++++++++ gemfiles/rails60_activeadmin.gemfile | 27 ++ gemfiles/rails60_activeadmin.gemfile.lock | 309 ++++++++++++++++++ gemfiles/rails60_activeadmin22.gemfile | 27 ++ gemfiles/rails60_activeadmin22.gemfile.lock | 328 ++++++++++++++++++++ gemfiles/rails61_activeadmin.gemfile | 27 ++ gemfiles/rails61_activeadmin.gemfile.lock | 312 +++++++++++++++++++ gemfiles/rails61_activeadmin29.gemfile | 27 ++ gemfiles/rails61_activeadmin29.gemfile.lock | 312 +++++++++++++++++++ spec/dummy/config/application.rb | 3 +- spec/rails_helper.rb | 11 + spec/spec_helper.rb | 8 +- 20 files changed, 1815 insertions(+), 17 deletions(-) create mode 100644 Appraisals create mode 100755 bin/appraisal create mode 100644 extra/README.md create mode 100644 gemfiles/rails52_activeadmin20.gemfile create mode 100644 gemfiles/rails52_activeadmin20.gemfile.lock create mode 100644 gemfiles/rails60_activeadmin.gemfile create mode 100644 gemfiles/rails60_activeadmin.gemfile.lock create mode 100644 gemfiles/rails60_activeadmin22.gemfile create mode 100644 gemfiles/rails60_activeadmin22.gemfile.lock create mode 100644 gemfiles/rails61_activeadmin.gemfile create mode 100644 gemfiles/rails61_activeadmin.gemfile.lock create mode 100644 gemfiles/rails61_activeadmin29.gemfile create mode 100644 gemfiles/rails61_activeadmin29.gemfile.lock diff --git a/.github/workflows/specs.yml b/.github/workflows/specs.yml index 0c75011..cd08db7 100644 --- a/.github/workflows/specs.yml +++ b/.github/workflows/specs.yml @@ -3,20 +3,26 @@ name: Specs on: push: - branches: [master] + branches: + - master pull_request: - branches: [master] + branches: + - master jobs: - specs: + test: runs-on: ubuntu-latest strategy: matrix: ruby: ['2.6', '2.7'] + gemfile: ['rails60_activeadmin22', 'rails60_activeadmin', 'rails61_activeadmin29', 'rails61_activeadmin'] + + env: + BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile steps: - - name: Checkout + - name: Checkout repository uses: actions/checkout@v2 - name: Set up Ruby @@ -26,9 +32,9 @@ jobs: bundler-cache: true - name: Run tests - run: bundle exec rake + run: bundle exec rspec --profile - - name: Archive screenshots for failed tests + - name: On failure, archive screenshots as artifacts uses: actions/upload-artifact@v2 if: failure() with: diff --git a/.rubocop.yml b/.rubocop.yml index 6ac3310..5a2fff3 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -12,6 +12,7 @@ AllCops: Exclude: - bin/* - db/schema.rb + - gemfiles/**/* - spec/dummy/**/* - vendor/**/* NewCops: enable diff --git a/Appraisals b/Appraisals new file mode 100644 index 0000000..fd7c19f --- /dev/null +++ b/Appraisals @@ -0,0 +1,26 @@ +# frozen_string_literal: true + +appraise 'rails52-activeadmin20' do + gem 'activeadmin', '~> 2.0.0' + gem 'rails', '~> 5.2.0' +end + +appraise 'rails60-activeadmin22' do + gem 'activeadmin', '~> 2.2.0' + gem 'rails', '~> 6.0.0' +end + +appraise 'rails60-activeadmin' do + gem 'activeadmin' + gem 'rails', '~> 6.0.0' +end + +appraise 'rails61-activeadmin29' do + gem 'activeadmin', '~> 2.9.0' + gem 'rails', '~> 6.1.0' +end + +appraise 'rails61-activeadmin' do + gem 'activeadmin' + gem 'rails', '~> 6.1.0' +end diff --git a/Gemfile b/Gemfile index 1bccaeb..07d2472 100644 --- a/Gemfile +++ b/Gemfile @@ -5,12 +5,6 @@ source 'https://rubygems.org' gemspec group :development, :test do - gem 'activestorage', '~> 6.0' - gem 'puma', '~> 4.3' - gem 'sassc', '~> 2.4' - gem 'sprockets-rails', '~> 3.2' - gem 'sqlite3', '~> 1.4' - # Testing gem 'capybara' gem 'rspec_junit_formatter' diff --git a/activeadmin_quill_editor.gemspec b/activeadmin_quill_editor.gemspec index 6099078..9a47c28 100644 --- a/activeadmin_quill_editor.gemspec +++ b/activeadmin_quill_editor.gemspec @@ -24,4 +24,6 @@ Gem::Specification.new do |spec| spec.require_paths = ['lib'] spec.add_runtime_dependency 'activeadmin', '~> 2.0' + + spec.add_development_dependency 'appraisal', '~> 2.4' end diff --git a/bin/appraisal b/bin/appraisal new file mode 100755 index 0000000..0e7ba65 --- /dev/null +++ b/bin/appraisal @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +# frozen_string_literal: true + +# +# This file was generated by Bundler. +# +# The application 'appraisal' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +bundle_binstub = File.expand_path("../bundle", __FILE__) + +if File.file?(bundle_binstub) + if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/ + load(bundle_binstub) + else + abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run. +Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.") + end +end + +require "rubygems" +require "bundler/setup" + +load Gem.bin_path("appraisal", "appraisal") diff --git a/extra/README.md b/extra/README.md new file mode 100644 index 0000000..1489d2f --- /dev/null +++ b/extra/README.md @@ -0,0 +1,19 @@ +# Development + +## Releases + +```sh +# Update version.rb with the new version +# Update the gemfiles: +bin/appraisal +``` + +## Testing + +```sh +# Running specs using a specific configuration: +bin/appraisal rails60-activeadmin22 rspec +# Using latest activeadmin version: +bin/appraisal rails60-activeadmin rspec +# See gemfiles for more configurations +``` diff --git a/gemfiles/rails52_activeadmin20.gemfile b/gemfiles/rails52_activeadmin20.gemfile new file mode 100644 index 0000000..0f86813 --- /dev/null +++ b/gemfiles/rails52_activeadmin20.gemfile @@ -0,0 +1,27 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "activeadmin", "~> 2.0.0" +gem "rails", "~> 5.2.0" + +group :development, :test do + gem "puma" + gem "sassc" + gem "sqlite3" + gem "capybara" + gem "rspec_junit_formatter" + gem "rspec-rails" + gem "selenium-webdriver" + gem "brakeman" + gem "fasterer" + gem "reek" + gem "rubocop" + gem "rubocop-packaging" + gem "rubocop-performance" + gem "rubocop-rails" + gem "rubocop-rspec" + gem "pry-rails" +end + +gemspec path: "../" diff --git a/gemfiles/rails52_activeadmin20.gemfile.lock b/gemfiles/rails52_activeadmin20.gemfile.lock new file mode 100644 index 0000000..554497b --- /dev/null +++ b/gemfiles/rails52_activeadmin20.gemfile.lock @@ -0,0 +1,313 @@ +PATH + remote: .. + specs: + activeadmin_quill_editor (0.3.4) + activeadmin (~> 2.0) + +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.2.7) + actionpack (= 5.2.7) + nio4r (~> 2.0) + websocket-driver (>= 0.6.1) + actionmailer (5.2.7) + actionpack (= 5.2.7) + actionview (= 5.2.7) + activejob (= 5.2.7) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.2.7) + actionview (= 5.2.7) + activesupport (= 5.2.7) + rack (~> 2.0, >= 2.0.8) + rack-test (>= 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.2.7) + activesupport (= 5.2.7) + builder (~> 3.1) + erubi (~> 1.4) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activeadmin (2.0.0) + arbre (~> 1.2, >= 1.2.1) + formtastic (~> 3.1) + formtastic_i18n (~> 0.4) + inherited_resources (~> 1.7) + jquery-rails (~> 4.2) + kaminari (~> 1.0, >= 1.0.1) + railties (>= 5.0, < 6.0) + ransack (~> 2.1, >= 2.1.1) + sass (~> 3.4) + sprockets (>= 3.0, < 4.1) + sprockets-es6 (~> 0.9, >= 0.9.2) + activejob (5.2.7) + activesupport (= 5.2.7) + globalid (>= 0.3.6) + activemodel (5.2.7) + activesupport (= 5.2.7) + activerecord (5.2.7) + activemodel (= 5.2.7) + activesupport (= 5.2.7) + arel (>= 9.0) + activestorage (5.2.7) + actionpack (= 5.2.7) + activerecord (= 5.2.7) + marcel (~> 1.0.0) + activesupport (5.2.7) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 0.7, < 2) + minitest (~> 5.1) + tzinfo (~> 1.1) + addressable (2.8.0) + public_suffix (>= 2.0.2, < 5.0) + appraisal (2.4.1) + bundler + rake + thor (>= 0.14.0) + arbre (1.5.0) + activesupport (>= 3.0.0, < 7.1) + ruby2_keywords (>= 0.0.2, < 1.0) + arel (9.0.0) + ast (2.4.2) + babel-source (5.8.35) + babel-transpiler (0.7.0) + babel-source (>= 4.0, < 6) + execjs (~> 2.0) + brakeman (5.2.1) + builder (3.2.4) + capybara (3.36.0) + addressable + matrix + mini_mime (>= 0.1.3) + nokogiri (~> 1.8) + rack (>= 1.6.0) + rack-test (>= 0.6.3) + regexp_parser (>= 1.5, < 3.0) + xpath (~> 3.2) + childprocess (4.1.0) + coderay (1.1.3) + colorize (0.8.1) + concurrent-ruby (1.1.10) + crass (1.0.6) + diff-lcs (1.5.0) + erubi (1.10.0) + execjs (2.8.1) + fasterer (0.9.0) + colorize (~> 0.7) + ruby_parser (>= 3.14.1) + ffi (1.15.5) + formtastic (3.1.5) + actionpack (>= 3.2.13) + formtastic_i18n (0.7.0) + globalid (1.0.0) + activesupport (>= 5.0) + has_scope (0.8.0) + actionpack (>= 5.2) + activesupport (>= 5.2) + i18n (1.10.0) + concurrent-ruby (~> 1.0) + inherited_resources (1.13.1) + actionpack (>= 5.2, < 7.1) + has_scope (~> 0.6) + railties (>= 5.2, < 7.1) + responders (>= 2, < 4) + jquery-rails (4.4.0) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + kaminari (1.2.2) + activesupport (>= 4.1.0) + kaminari-actionview (= 1.2.2) + kaminari-activerecord (= 1.2.2) + kaminari-core (= 1.2.2) + kaminari-actionview (1.2.2) + actionview + kaminari-core (= 1.2.2) + kaminari-activerecord (1.2.2) + activerecord + kaminari-core (= 1.2.2) + kaminari-core (1.2.2) + kwalify (0.7.2) + loofah (2.15.0) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.7.1) + mini_mime (>= 0.1.1) + marcel (1.0.2) + matrix (0.4.2) + method_source (1.0.0) + mini_mime (1.1.2) + minitest (5.15.0) + nio4r (2.5.8) + nokogiri (1.13.3-x86_64-darwin) + racc (~> 1.4) + nokogiri (1.13.3-x86_64-linux) + racc (~> 1.4) + parallel (1.22.1) + parser (3.1.1.0) + ast (~> 2.4.1) + pry (0.14.1) + coderay (~> 1.1) + method_source (~> 1.0) + pry-rails (0.3.9) + pry (>= 0.10.4) + public_suffix (4.0.6) + puma (5.6.2) + nio4r (~> 2.0) + racc (1.6.0) + rack (2.2.3) + rack-test (1.1.0) + rack (>= 1.0, < 3) + rails (5.2.7) + actioncable (= 5.2.7) + actionmailer (= 5.2.7) + actionpack (= 5.2.7) + actionview (= 5.2.7) + activejob (= 5.2.7) + activemodel (= 5.2.7) + activerecord (= 5.2.7) + activestorage (= 5.2.7) + activesupport (= 5.2.7) + bundler (>= 1.3.0) + railties (= 5.2.7) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.4.2) + loofah (~> 2.3) + railties (5.2.7) + actionpack (= 5.2.7) + activesupport (= 5.2.7) + method_source + rake (>= 0.8.7) + thor (>= 0.19.0, < 2.0) + rainbow (3.1.1) + rake (13.0.6) + ransack (2.5.0) + activerecord (>= 5.2.4) + activesupport (>= 5.2.4) + i18n + rb-fsevent (0.11.1) + rb-inotify (0.10.1) + ffi (~> 1.0) + reek (6.1.0) + kwalify (~> 0.7.0) + parser (~> 3.1.0) + rainbow (>= 2.0, < 4.0) + regexp_parser (2.2.1) + responders (3.0.1) + actionpack (>= 5.0) + railties (>= 5.0) + rexml (3.2.5) + rspec-core (3.11.0) + rspec-support (~> 3.11.0) + rspec-expectations (3.11.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.11.0) + rspec-mocks (3.11.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.11.0) + rspec-rails (5.1.1) + actionpack (>= 5.2) + activesupport (>= 5.2) + railties (>= 5.2) + rspec-core (~> 3.10) + rspec-expectations (~> 3.10) + rspec-mocks (~> 3.10) + rspec-support (~> 3.10) + rspec-support (3.11.0) + rspec_junit_formatter (0.5.1) + rspec-core (>= 2, < 4, != 2.12.0) + rubocop (1.26.1) + parallel (~> 1.10) + parser (>= 3.1.0.0) + rainbow (>= 2.2.2, < 4.0) + regexp_parser (>= 1.8, < 3.0) + rexml + rubocop-ast (>= 1.16.0, < 2.0) + ruby-progressbar (~> 1.7) + unicode-display_width (>= 1.4.0, < 3.0) + rubocop-ast (1.16.0) + parser (>= 3.1.1.0) + rubocop-packaging (0.5.1) + rubocop (>= 0.89, < 2.0) + rubocop-performance (1.13.3) + rubocop (>= 1.7.0, < 2.0) + rubocop-ast (>= 0.4.0) + rubocop-rails (2.14.2) + activesupport (>= 4.2.0) + rack (>= 1.1) + rubocop (>= 1.7.0, < 2.0) + rubocop-rspec (2.9.0) + rubocop (~> 1.19) + ruby-progressbar (1.11.0) + ruby2_keywords (0.0.5) + ruby_parser (3.18.1) + sexp_processor (~> 4.16) + rubyzip (2.3.2) + sass (3.7.4) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sassc (2.4.0) + ffi (~> 1.9) + selenium-webdriver (4.1.0) + childprocess (>= 0.5, < 5.0) + rexml (~> 3.2, >= 3.2.5) + rubyzip (>= 1.2.2) + sexp_processor (4.16.0) + sprockets (4.0.3) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-es6 (0.9.2) + babel-source (>= 5.8.11) + babel-transpiler + sprockets (>= 3.0.0) + sprockets-rails (3.4.2) + actionpack (>= 5.2) + activesupport (>= 5.2) + sprockets (>= 3.0.0) + sqlite3 (1.4.2) + thor (1.2.1) + thread_safe (0.3.6) + tzinfo (1.2.9) + thread_safe (~> 0.1) + unicode-display_width (2.1.0) + websocket-driver (0.7.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.5) + xpath (3.2.0) + nokogiri (~> 1.8) + +PLATFORMS + x86_64-darwin-21 + x86_64-linux + +DEPENDENCIES + activeadmin (~> 2.0.0) + activeadmin_quill_editor! + appraisal (~> 2.4) + brakeman + capybara + fasterer + pry-rails + puma + rails (~> 5.2.0) + reek + rspec-rails + rspec_junit_formatter + rubocop + rubocop-packaging + rubocop-performance + rubocop-rails + rubocop-rspec + sassc + selenium-webdriver + sqlite3 + +BUNDLED WITH + 2.3.8 diff --git a/gemfiles/rails60_activeadmin.gemfile b/gemfiles/rails60_activeadmin.gemfile new file mode 100644 index 0000000..aedfc68 --- /dev/null +++ b/gemfiles/rails60_activeadmin.gemfile @@ -0,0 +1,27 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "activeadmin" +gem "rails", "~> 6.0.0" + +group :development, :test do + gem "puma" + gem "sassc" + gem "sqlite3" + gem "capybara" + gem "rspec_junit_formatter" + gem "rspec-rails" + gem "selenium-webdriver" + gem "brakeman" + gem "fasterer" + gem "reek" + gem "rubocop" + gem "rubocop-packaging" + gem "rubocop-performance" + gem "rubocop-rails" + gem "rubocop-rspec" + gem "pry-rails" +end + +gemspec path: "../" diff --git a/gemfiles/rails60_activeadmin.gemfile.lock b/gemfiles/rails60_activeadmin.gemfile.lock new file mode 100644 index 0000000..c4e3538 --- /dev/null +++ b/gemfiles/rails60_activeadmin.gemfile.lock @@ -0,0 +1,309 @@ +PATH + remote: .. + specs: + activeadmin_quill_editor (0.3.4) + activeadmin (~> 2.0) + +GEM + remote: https://rubygems.org/ + specs: + actioncable (6.0.4.7) + actionpack (= 6.0.4.7) + nio4r (~> 2.0) + websocket-driver (>= 0.6.1) + actionmailbox (6.0.4.7) + actionpack (= 6.0.4.7) + activejob (= 6.0.4.7) + activerecord (= 6.0.4.7) + activestorage (= 6.0.4.7) + activesupport (= 6.0.4.7) + mail (>= 2.7.1) + actionmailer (6.0.4.7) + actionpack (= 6.0.4.7) + actionview (= 6.0.4.7) + activejob (= 6.0.4.7) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (6.0.4.7) + actionview (= 6.0.4.7) + activesupport (= 6.0.4.7) + rack (~> 2.0, >= 2.0.8) + rack-test (>= 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.2.0) + actiontext (6.0.4.7) + actionpack (= 6.0.4.7) + activerecord (= 6.0.4.7) + activestorage (= 6.0.4.7) + activesupport (= 6.0.4.7) + nokogiri (>= 1.8.5) + actionview (6.0.4.7) + activesupport (= 6.0.4.7) + builder (~> 3.1) + erubi (~> 1.4) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.1, >= 1.2.0) + activeadmin (2.11.1) + arbre (~> 1.2, >= 1.2.1) + formtastic (>= 3.1, < 5.0) + formtastic_i18n (~> 0.4) + inherited_resources (~> 1.7) + jquery-rails (~> 4.2) + kaminari (~> 1.0, >= 1.2.1) + railties (>= 6.0, < 7.1) + ransack (~> 2.1, >= 2.1.1) + activejob (6.0.4.7) + activesupport (= 6.0.4.7) + globalid (>= 0.3.6) + activemodel (6.0.4.7) + activesupport (= 6.0.4.7) + activerecord (6.0.4.7) + activemodel (= 6.0.4.7) + activesupport (= 6.0.4.7) + activestorage (6.0.4.7) + actionpack (= 6.0.4.7) + activejob (= 6.0.4.7) + activerecord (= 6.0.4.7) + marcel (~> 1.0.0) + activesupport (6.0.4.7) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 0.7, < 2) + minitest (~> 5.1) + tzinfo (~> 1.1) + zeitwerk (~> 2.2, >= 2.2.2) + addressable (2.8.0) + public_suffix (>= 2.0.2, < 5.0) + appraisal (2.4.1) + bundler + rake + thor (>= 0.14.0) + arbre (1.5.0) + activesupport (>= 3.0.0, < 7.1) + ruby2_keywords (>= 0.0.2, < 1.0) + ast (2.4.2) + brakeman (5.2.1) + builder (3.2.4) + capybara (3.36.0) + addressable + matrix + mini_mime (>= 0.1.3) + nokogiri (~> 1.8) + rack (>= 1.6.0) + rack-test (>= 0.6.3) + regexp_parser (>= 1.5, < 3.0) + xpath (~> 3.2) + childprocess (4.1.0) + coderay (1.1.3) + colorize (0.8.1) + concurrent-ruby (1.1.10) + crass (1.0.6) + diff-lcs (1.5.0) + erubi (1.10.0) + fasterer (0.9.0) + colorize (~> 0.7) + ruby_parser (>= 3.14.1) + ffi (1.15.5) + formtastic (4.0.0) + actionpack (>= 5.2.0) + formtastic_i18n (0.7.0) + globalid (1.0.0) + activesupport (>= 5.0) + has_scope (0.8.0) + actionpack (>= 5.2) + activesupport (>= 5.2) + i18n (1.10.0) + concurrent-ruby (~> 1.0) + inherited_resources (1.13.1) + actionpack (>= 5.2, < 7.1) + has_scope (~> 0.6) + railties (>= 5.2, < 7.1) + responders (>= 2, < 4) + jquery-rails (4.4.0) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + kaminari (1.2.2) + activesupport (>= 4.1.0) + kaminari-actionview (= 1.2.2) + kaminari-activerecord (= 1.2.2) + kaminari-core (= 1.2.2) + kaminari-actionview (1.2.2) + actionview + kaminari-core (= 1.2.2) + kaminari-activerecord (1.2.2) + activerecord + kaminari-core (= 1.2.2) + kaminari-core (1.2.2) + kwalify (0.7.2) + loofah (2.15.0) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.7.1) + mini_mime (>= 0.1.1) + marcel (1.0.2) + matrix (0.4.2) + method_source (1.0.0) + mini_mime (1.1.2) + minitest (5.15.0) + nio4r (2.5.8) + nokogiri (1.13.3-x86_64-darwin) + racc (~> 1.4) + nokogiri (1.13.3-x86_64-linux) + racc (~> 1.4) + parallel (1.22.1) + parser (3.1.1.0) + ast (~> 2.4.1) + pry (0.14.1) + coderay (~> 1.1) + method_source (~> 1.0) + pry-rails (0.3.9) + pry (>= 0.10.4) + public_suffix (4.0.6) + puma (5.6.2) + nio4r (~> 2.0) + racc (1.6.0) + rack (2.2.3) + rack-test (1.1.0) + rack (>= 1.0, < 3) + rails (6.0.4.7) + actioncable (= 6.0.4.7) + actionmailbox (= 6.0.4.7) + actionmailer (= 6.0.4.7) + actionpack (= 6.0.4.7) + actiontext (= 6.0.4.7) + actionview (= 6.0.4.7) + activejob (= 6.0.4.7) + activemodel (= 6.0.4.7) + activerecord (= 6.0.4.7) + activestorage (= 6.0.4.7) + activesupport (= 6.0.4.7) + bundler (>= 1.3.0) + railties (= 6.0.4.7) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.4.2) + loofah (~> 2.3) + railties (6.0.4.7) + actionpack (= 6.0.4.7) + activesupport (= 6.0.4.7) + method_source + rake (>= 0.8.7) + thor (>= 0.20.3, < 2.0) + rainbow (3.1.1) + rake (13.0.6) + ransack (2.6.0) + activerecord (>= 6.0.4) + activesupport (>= 6.0.4) + i18n + reek (6.1.0) + kwalify (~> 0.7.0) + parser (~> 3.1.0) + rainbow (>= 2.0, < 4.0) + regexp_parser (2.2.1) + responders (3.0.1) + actionpack (>= 5.0) + railties (>= 5.0) + rexml (3.2.5) + rspec-core (3.11.0) + rspec-support (~> 3.11.0) + rspec-expectations (3.11.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.11.0) + rspec-mocks (3.11.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.11.0) + rspec-rails (5.1.1) + actionpack (>= 5.2) + activesupport (>= 5.2) + railties (>= 5.2) + rspec-core (~> 3.10) + rspec-expectations (~> 3.10) + rspec-mocks (~> 3.10) + rspec-support (~> 3.10) + rspec-support (3.11.0) + rspec_junit_formatter (0.5.1) + rspec-core (>= 2, < 4, != 2.12.0) + rubocop (1.26.1) + parallel (~> 1.10) + parser (>= 3.1.0.0) + rainbow (>= 2.2.2, < 4.0) + regexp_parser (>= 1.8, < 3.0) + rexml + rubocop-ast (>= 1.16.0, < 2.0) + ruby-progressbar (~> 1.7) + unicode-display_width (>= 1.4.0, < 3.0) + rubocop-ast (1.16.0) + parser (>= 3.1.1.0) + rubocop-packaging (0.5.1) + rubocop (>= 0.89, < 2.0) + rubocop-performance (1.13.3) + rubocop (>= 1.7.0, < 2.0) + rubocop-ast (>= 0.4.0) + rubocop-rails (2.14.2) + activesupport (>= 4.2.0) + rack (>= 1.1) + rubocop (>= 1.7.0, < 2.0) + rubocop-rspec (2.9.0) + rubocop (~> 1.19) + ruby-progressbar (1.11.0) + ruby2_keywords (0.0.5) + ruby_parser (3.18.1) + sexp_processor (~> 4.16) + rubyzip (2.3.2) + sassc (2.4.0) + ffi (~> 1.9) + selenium-webdriver (4.1.0) + childprocess (>= 0.5, < 5.0) + rexml (~> 3.2, >= 3.2.5) + rubyzip (>= 1.2.2) + sexp_processor (4.16.0) + sprockets (4.0.3) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.4.2) + actionpack (>= 5.2) + activesupport (>= 5.2) + sprockets (>= 3.0.0) + sqlite3 (1.4.2) + thor (1.2.1) + thread_safe (0.3.6) + tzinfo (1.2.9) + thread_safe (~> 0.1) + unicode-display_width (2.1.0) + websocket-driver (0.7.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.5) + xpath (3.2.0) + nokogiri (~> 1.8) + zeitwerk (2.5.4) + +PLATFORMS + x86_64-darwin-21 + x86_64-linux + +DEPENDENCIES + activeadmin + activeadmin_quill_editor! + appraisal (~> 2.4) + brakeman + capybara + fasterer + pry-rails + puma + rails (~> 6.0.0) + reek + rspec-rails + rspec_junit_formatter + rubocop + rubocop-packaging + rubocop-performance + rubocop-rails + rubocop-rspec + sassc + selenium-webdriver + sqlite3 + +BUNDLED WITH + 2.3.8 diff --git a/gemfiles/rails60_activeadmin22.gemfile b/gemfiles/rails60_activeadmin22.gemfile new file mode 100644 index 0000000..e51399d --- /dev/null +++ b/gemfiles/rails60_activeadmin22.gemfile @@ -0,0 +1,27 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "activeadmin", "~> 2.2.0" +gem "rails", "~> 6.0.0" + +group :development, :test do + gem "puma" + gem "sassc" + gem "sqlite3" + gem "capybara" + gem "rspec_junit_formatter" + gem "rspec-rails" + gem "selenium-webdriver" + gem "brakeman" + gem "fasterer" + gem "reek" + gem "rubocop" + gem "rubocop-packaging" + gem "rubocop-performance" + gem "rubocop-rails" + gem "rubocop-rspec" + gem "pry-rails" +end + +gemspec path: "../" diff --git a/gemfiles/rails60_activeadmin22.gemfile.lock b/gemfiles/rails60_activeadmin22.gemfile.lock new file mode 100644 index 0000000..474c802 --- /dev/null +++ b/gemfiles/rails60_activeadmin22.gemfile.lock @@ -0,0 +1,328 @@ +PATH + remote: .. + specs: + activeadmin_quill_editor (0.3.4) + activeadmin (~> 2.0) + +GEM + remote: https://rubygems.org/ + specs: + actioncable (6.0.4.7) + actionpack (= 6.0.4.7) + nio4r (~> 2.0) + websocket-driver (>= 0.6.1) + actionmailbox (6.0.4.7) + actionpack (= 6.0.4.7) + activejob (= 6.0.4.7) + activerecord (= 6.0.4.7) + activestorage (= 6.0.4.7) + activesupport (= 6.0.4.7) + mail (>= 2.7.1) + actionmailer (6.0.4.7) + actionpack (= 6.0.4.7) + actionview (= 6.0.4.7) + activejob (= 6.0.4.7) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (6.0.4.7) + actionview (= 6.0.4.7) + activesupport (= 6.0.4.7) + rack (~> 2.0, >= 2.0.8) + rack-test (>= 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.2.0) + actiontext (6.0.4.7) + actionpack (= 6.0.4.7) + activerecord (= 6.0.4.7) + activestorage (= 6.0.4.7) + activesupport (= 6.0.4.7) + nokogiri (>= 1.8.5) + actionview (6.0.4.7) + activesupport (= 6.0.4.7) + builder (~> 3.1) + erubi (~> 1.4) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.1, >= 1.2.0) + activeadmin (2.2.0) + arbre (~> 1.2, >= 1.2.1) + formtastic (~> 3.1) + formtastic_i18n (~> 0.4) + inherited_resources (~> 1.7) + jquery-rails (~> 4.2) + kaminari (~> 1.0, >= 1.0.1) + railties (>= 5.0, < 6.1) + ransack (~> 2.1, >= 2.1.1) + sassc-rails (~> 2.1) + sprockets (>= 3.0, < 4.1) + sprockets-es6 (~> 0.9, >= 0.9.2) + activejob (6.0.4.7) + activesupport (= 6.0.4.7) + globalid (>= 0.3.6) + activemodel (6.0.4.7) + activesupport (= 6.0.4.7) + activerecord (6.0.4.7) + activemodel (= 6.0.4.7) + activesupport (= 6.0.4.7) + activestorage (6.0.4.7) + actionpack (= 6.0.4.7) + activejob (= 6.0.4.7) + activerecord (= 6.0.4.7) + marcel (~> 1.0.0) + activesupport (6.0.4.7) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 0.7, < 2) + minitest (~> 5.1) + tzinfo (~> 1.1) + zeitwerk (~> 2.2, >= 2.2.2) + addressable (2.8.0) + public_suffix (>= 2.0.2, < 5.0) + appraisal (2.4.1) + bundler + rake + thor (>= 0.14.0) + arbre (1.5.0) + activesupport (>= 3.0.0, < 7.1) + ruby2_keywords (>= 0.0.2, < 1.0) + ast (2.4.2) + babel-source (5.8.35) + babel-transpiler (0.7.0) + babel-source (>= 4.0, < 6) + execjs (~> 2.0) + brakeman (5.2.1) + builder (3.2.4) + capybara (3.36.0) + addressable + matrix + mini_mime (>= 0.1.3) + nokogiri (~> 1.8) + rack (>= 1.6.0) + rack-test (>= 0.6.3) + regexp_parser (>= 1.5, < 3.0) + xpath (~> 3.2) + childprocess (4.1.0) + coderay (1.1.3) + colorize (0.8.1) + concurrent-ruby (1.1.10) + crass (1.0.6) + diff-lcs (1.5.0) + erubi (1.10.0) + execjs (2.8.1) + fasterer (0.9.0) + colorize (~> 0.7) + ruby_parser (>= 3.14.1) + ffi (1.15.5) + formtastic (3.1.5) + actionpack (>= 3.2.13) + formtastic_i18n (0.7.0) + globalid (1.0.0) + activesupport (>= 5.0) + has_scope (0.8.0) + actionpack (>= 5.2) + activesupport (>= 5.2) + i18n (1.10.0) + concurrent-ruby (~> 1.0) + inherited_resources (1.13.1) + actionpack (>= 5.2, < 7.1) + has_scope (~> 0.6) + railties (>= 5.2, < 7.1) + responders (>= 2, < 4) + jquery-rails (4.4.0) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + kaminari (1.2.2) + activesupport (>= 4.1.0) + kaminari-actionview (= 1.2.2) + kaminari-activerecord (= 1.2.2) + kaminari-core (= 1.2.2) + kaminari-actionview (1.2.2) + actionview + kaminari-core (= 1.2.2) + kaminari-activerecord (1.2.2) + activerecord + kaminari-core (= 1.2.2) + kaminari-core (1.2.2) + kwalify (0.7.2) + loofah (2.15.0) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.7.1) + mini_mime (>= 0.1.1) + marcel (1.0.2) + matrix (0.4.2) + method_source (1.0.0) + mini_mime (1.1.2) + minitest (5.15.0) + nio4r (2.5.8) + nokogiri (1.13.3-x86_64-darwin) + racc (~> 1.4) + nokogiri (1.13.3-x86_64-linux) + racc (~> 1.4) + parallel (1.22.1) + parser (3.1.1.0) + ast (~> 2.4.1) + pry (0.14.1) + coderay (~> 1.1) + method_source (~> 1.0) + pry-rails (0.3.9) + pry (>= 0.10.4) + public_suffix (4.0.6) + puma (5.6.2) + nio4r (~> 2.0) + racc (1.6.0) + rack (2.2.3) + rack-test (1.1.0) + rack (>= 1.0, < 3) + rails (6.0.4.7) + actioncable (= 6.0.4.7) + actionmailbox (= 6.0.4.7) + actionmailer (= 6.0.4.7) + actionpack (= 6.0.4.7) + actiontext (= 6.0.4.7) + actionview (= 6.0.4.7) + activejob (= 6.0.4.7) + activemodel (= 6.0.4.7) + activerecord (= 6.0.4.7) + activestorage (= 6.0.4.7) + activesupport (= 6.0.4.7) + bundler (>= 1.3.0) + railties (= 6.0.4.7) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.4.2) + loofah (~> 2.3) + railties (6.0.4.7) + actionpack (= 6.0.4.7) + activesupport (= 6.0.4.7) + method_source + rake (>= 0.8.7) + thor (>= 0.20.3, < 2.0) + rainbow (3.1.1) + rake (13.0.6) + ransack (2.6.0) + activerecord (>= 6.0.4) + activesupport (>= 6.0.4) + i18n + reek (6.1.0) + kwalify (~> 0.7.0) + parser (~> 3.1.0) + rainbow (>= 2.0, < 4.0) + regexp_parser (2.2.1) + responders (3.0.1) + actionpack (>= 5.0) + railties (>= 5.0) + rexml (3.2.5) + rspec-core (3.11.0) + rspec-support (~> 3.11.0) + rspec-expectations (3.11.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.11.0) + rspec-mocks (3.11.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.11.0) + rspec-rails (5.1.1) + actionpack (>= 5.2) + activesupport (>= 5.2) + railties (>= 5.2) + rspec-core (~> 3.10) + rspec-expectations (~> 3.10) + rspec-mocks (~> 3.10) + rspec-support (~> 3.10) + rspec-support (3.11.0) + rspec_junit_formatter (0.5.1) + rspec-core (>= 2, < 4, != 2.12.0) + rubocop (1.26.1) + parallel (~> 1.10) + parser (>= 3.1.0.0) + rainbow (>= 2.2.2, < 4.0) + regexp_parser (>= 1.8, < 3.0) + rexml + rubocop-ast (>= 1.16.0, < 2.0) + ruby-progressbar (~> 1.7) + unicode-display_width (>= 1.4.0, < 3.0) + rubocop-ast (1.16.0) + parser (>= 3.1.1.0) + rubocop-packaging (0.5.1) + rubocop (>= 0.89, < 2.0) + rubocop-performance (1.13.3) + rubocop (>= 1.7.0, < 2.0) + rubocop-ast (>= 0.4.0) + rubocop-rails (2.14.2) + activesupport (>= 4.2.0) + rack (>= 1.1) + rubocop (>= 1.7.0, < 2.0) + rubocop-rspec (2.9.0) + rubocop (~> 1.19) + ruby-progressbar (1.11.0) + ruby2_keywords (0.0.5) + ruby_parser (3.18.1) + sexp_processor (~> 4.16) + rubyzip (2.3.2) + sassc (2.4.0) + ffi (~> 1.9) + sassc-rails (2.1.2) + railties (>= 4.0.0) + sassc (>= 2.0) + sprockets (> 3.0) + sprockets-rails + tilt + selenium-webdriver (4.1.0) + childprocess (>= 0.5, < 5.0) + rexml (~> 3.2, >= 3.2.5) + rubyzip (>= 1.2.2) + sexp_processor (4.16.0) + sprockets (4.0.3) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-es6 (0.9.2) + babel-source (>= 5.8.11) + babel-transpiler + sprockets (>= 3.0.0) + sprockets-rails (3.4.2) + actionpack (>= 5.2) + activesupport (>= 5.2) + sprockets (>= 3.0.0) + sqlite3 (1.4.2) + thor (1.2.1) + thread_safe (0.3.6) + tilt (2.0.10) + tzinfo (1.2.9) + thread_safe (~> 0.1) + unicode-display_width (2.1.0) + websocket-driver (0.7.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.5) + xpath (3.2.0) + nokogiri (~> 1.8) + zeitwerk (2.5.4) + +PLATFORMS + x86_64-darwin-21 + x86_64-linux + +DEPENDENCIES + activeadmin (~> 2.2.0) + activeadmin_quill_editor! + appraisal (~> 2.4) + brakeman + capybara + fasterer + pry-rails + puma + rails (~> 6.0.0) + reek + rspec-rails + rspec_junit_formatter + rubocop + rubocop-packaging + rubocop-performance + rubocop-rails + rubocop-rspec + sassc + selenium-webdriver + sqlite3 + +BUNDLED WITH + 2.3.8 diff --git a/gemfiles/rails61_activeadmin.gemfile b/gemfiles/rails61_activeadmin.gemfile new file mode 100644 index 0000000..b54eb10 --- /dev/null +++ b/gemfiles/rails61_activeadmin.gemfile @@ -0,0 +1,27 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "activeadmin" +gem "rails", "~> 6.1.0" + +group :development, :test do + gem "puma" + gem "sassc" + gem "sqlite3" + gem "capybara" + gem "rspec_junit_formatter" + gem "rspec-rails" + gem "selenium-webdriver" + gem "brakeman" + gem "fasterer" + gem "reek" + gem "rubocop" + gem "rubocop-packaging" + gem "rubocop-performance" + gem "rubocop-rails" + gem "rubocop-rspec" + gem "pry-rails" +end + +gemspec path: "../" diff --git a/gemfiles/rails61_activeadmin.gemfile.lock b/gemfiles/rails61_activeadmin.gemfile.lock new file mode 100644 index 0000000..8dc48c0 --- /dev/null +++ b/gemfiles/rails61_activeadmin.gemfile.lock @@ -0,0 +1,312 @@ +PATH + remote: .. + specs: + activeadmin_quill_editor (0.3.4) + activeadmin (~> 2.0) + +GEM + remote: https://rubygems.org/ + specs: + actioncable (6.1.5) + actionpack (= 6.1.5) + activesupport (= 6.1.5) + nio4r (~> 2.0) + websocket-driver (>= 0.6.1) + actionmailbox (6.1.5) + actionpack (= 6.1.5) + activejob (= 6.1.5) + activerecord (= 6.1.5) + activestorage (= 6.1.5) + activesupport (= 6.1.5) + mail (>= 2.7.1) + actionmailer (6.1.5) + actionpack (= 6.1.5) + actionview (= 6.1.5) + activejob (= 6.1.5) + activesupport (= 6.1.5) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (6.1.5) + actionview (= 6.1.5) + activesupport (= 6.1.5) + rack (~> 2.0, >= 2.0.9) + rack-test (>= 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.2.0) + actiontext (6.1.5) + actionpack (= 6.1.5) + activerecord (= 6.1.5) + activestorage (= 6.1.5) + activesupport (= 6.1.5) + nokogiri (>= 1.8.5) + actionview (6.1.5) + activesupport (= 6.1.5) + builder (~> 3.1) + erubi (~> 1.4) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.1, >= 1.2.0) + activeadmin (2.11.1) + arbre (~> 1.2, >= 1.2.1) + formtastic (>= 3.1, < 5.0) + formtastic_i18n (~> 0.4) + inherited_resources (~> 1.7) + jquery-rails (~> 4.2) + kaminari (~> 1.0, >= 1.2.1) + railties (>= 6.0, < 7.1) + ransack (~> 2.1, >= 2.1.1) + activejob (6.1.5) + activesupport (= 6.1.5) + globalid (>= 0.3.6) + activemodel (6.1.5) + activesupport (= 6.1.5) + activerecord (6.1.5) + activemodel (= 6.1.5) + activesupport (= 6.1.5) + activestorage (6.1.5) + actionpack (= 6.1.5) + activejob (= 6.1.5) + activerecord (= 6.1.5) + activesupport (= 6.1.5) + marcel (~> 1.0) + mini_mime (>= 1.1.0) + activesupport (6.1.5) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 1.6, < 2) + minitest (>= 5.1) + tzinfo (~> 2.0) + zeitwerk (~> 2.3) + addressable (2.8.0) + public_suffix (>= 2.0.2, < 5.0) + appraisal (2.4.1) + bundler + rake + thor (>= 0.14.0) + arbre (1.5.0) + activesupport (>= 3.0.0, < 7.1) + ruby2_keywords (>= 0.0.2, < 1.0) + ast (2.4.2) + brakeman (5.2.1) + builder (3.2.4) + capybara (3.36.0) + addressable + matrix + mini_mime (>= 0.1.3) + nokogiri (~> 1.8) + rack (>= 1.6.0) + rack-test (>= 0.6.3) + regexp_parser (>= 1.5, < 3.0) + xpath (~> 3.2) + childprocess (4.1.0) + coderay (1.1.3) + colorize (0.8.1) + concurrent-ruby (1.1.10) + crass (1.0.6) + diff-lcs (1.5.0) + erubi (1.10.0) + fasterer (0.9.0) + colorize (~> 0.7) + ruby_parser (>= 3.14.1) + ffi (1.15.5) + formtastic (4.0.0) + actionpack (>= 5.2.0) + formtastic_i18n (0.7.0) + globalid (1.0.0) + activesupport (>= 5.0) + has_scope (0.8.0) + actionpack (>= 5.2) + activesupport (>= 5.2) + i18n (1.10.0) + concurrent-ruby (~> 1.0) + inherited_resources (1.13.1) + actionpack (>= 5.2, < 7.1) + has_scope (~> 0.6) + railties (>= 5.2, < 7.1) + responders (>= 2, < 4) + jquery-rails (4.4.0) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + kaminari (1.2.2) + activesupport (>= 4.1.0) + kaminari-actionview (= 1.2.2) + kaminari-activerecord (= 1.2.2) + kaminari-core (= 1.2.2) + kaminari-actionview (1.2.2) + actionview + kaminari-core (= 1.2.2) + kaminari-activerecord (1.2.2) + activerecord + kaminari-core (= 1.2.2) + kaminari-core (1.2.2) + kwalify (0.7.2) + loofah (2.15.0) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.7.1) + mini_mime (>= 0.1.1) + marcel (1.0.2) + matrix (0.4.2) + method_source (1.0.0) + mini_mime (1.1.2) + minitest (5.15.0) + nio4r (2.5.8) + nokogiri (1.13.3-x86_64-darwin) + racc (~> 1.4) + nokogiri (1.13.3-x86_64-linux) + racc (~> 1.4) + parallel (1.22.1) + parser (3.1.1.0) + ast (~> 2.4.1) + pry (0.14.1) + coderay (~> 1.1) + method_source (~> 1.0) + pry-rails (0.3.9) + pry (>= 0.10.4) + public_suffix (4.0.6) + puma (5.6.2) + nio4r (~> 2.0) + racc (1.6.0) + rack (2.2.3) + rack-test (1.1.0) + rack (>= 1.0, < 3) + rails (6.1.5) + actioncable (= 6.1.5) + actionmailbox (= 6.1.5) + actionmailer (= 6.1.5) + actionpack (= 6.1.5) + actiontext (= 6.1.5) + actionview (= 6.1.5) + activejob (= 6.1.5) + activemodel (= 6.1.5) + activerecord (= 6.1.5) + activestorage (= 6.1.5) + activesupport (= 6.1.5) + bundler (>= 1.15.0) + railties (= 6.1.5) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.4.2) + loofah (~> 2.3) + railties (6.1.5) + actionpack (= 6.1.5) + activesupport (= 6.1.5) + method_source + rake (>= 12.2) + thor (~> 1.0) + rainbow (3.1.1) + rake (13.0.6) + ransack (2.6.0) + activerecord (>= 6.0.4) + activesupport (>= 6.0.4) + i18n + reek (6.1.0) + kwalify (~> 0.7.0) + parser (~> 3.1.0) + rainbow (>= 2.0, < 4.0) + regexp_parser (2.2.1) + responders (3.0.1) + actionpack (>= 5.0) + railties (>= 5.0) + rexml (3.2.5) + rspec-core (3.11.0) + rspec-support (~> 3.11.0) + rspec-expectations (3.11.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.11.0) + rspec-mocks (3.11.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.11.0) + rspec-rails (5.1.1) + actionpack (>= 5.2) + activesupport (>= 5.2) + railties (>= 5.2) + rspec-core (~> 3.10) + rspec-expectations (~> 3.10) + rspec-mocks (~> 3.10) + rspec-support (~> 3.10) + rspec-support (3.11.0) + rspec_junit_formatter (0.5.1) + rspec-core (>= 2, < 4, != 2.12.0) + rubocop (1.26.1) + parallel (~> 1.10) + parser (>= 3.1.0.0) + rainbow (>= 2.2.2, < 4.0) + regexp_parser (>= 1.8, < 3.0) + rexml + rubocop-ast (>= 1.16.0, < 2.0) + ruby-progressbar (~> 1.7) + unicode-display_width (>= 1.4.0, < 3.0) + rubocop-ast (1.16.0) + parser (>= 3.1.1.0) + rubocop-packaging (0.5.1) + rubocop (>= 0.89, < 2.0) + rubocop-performance (1.13.3) + rubocop (>= 1.7.0, < 2.0) + rubocop-ast (>= 0.4.0) + rubocop-rails (2.14.2) + activesupport (>= 4.2.0) + rack (>= 1.1) + rubocop (>= 1.7.0, < 2.0) + rubocop-rspec (2.9.0) + rubocop (~> 1.19) + ruby-progressbar (1.11.0) + ruby2_keywords (0.0.5) + ruby_parser (3.18.1) + sexp_processor (~> 4.16) + rubyzip (2.3.2) + sassc (2.4.0) + ffi (~> 1.9) + selenium-webdriver (4.1.0) + childprocess (>= 0.5, < 5.0) + rexml (~> 3.2, >= 3.2.5) + rubyzip (>= 1.2.2) + sexp_processor (4.16.0) + sprockets (4.0.3) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.4.2) + actionpack (>= 5.2) + activesupport (>= 5.2) + sprockets (>= 3.0.0) + sqlite3 (1.4.2) + thor (1.2.1) + tzinfo (2.0.4) + concurrent-ruby (~> 1.0) + unicode-display_width (2.1.0) + websocket-driver (0.7.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.5) + xpath (3.2.0) + nokogiri (~> 1.8) + zeitwerk (2.5.4) + +PLATFORMS + x86_64-darwin-21 + x86_64-linux + +DEPENDENCIES + activeadmin + activeadmin_quill_editor! + appraisal (~> 2.4) + brakeman + capybara + fasterer + pry-rails + puma + rails (~> 6.1.0) + reek + rspec-rails + rspec_junit_formatter + rubocop + rubocop-packaging + rubocop-performance + rubocop-rails + rubocop-rspec + sassc + selenium-webdriver + sqlite3 + +BUNDLED WITH + 2.3.8 diff --git a/gemfiles/rails61_activeadmin29.gemfile b/gemfiles/rails61_activeadmin29.gemfile new file mode 100644 index 0000000..df62a7e --- /dev/null +++ b/gemfiles/rails61_activeadmin29.gemfile @@ -0,0 +1,27 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "activeadmin", "~> 2.9.0" +gem "rails", "~> 6.1.0" + +group :development, :test do + gem "puma" + gem "sassc" + gem "sqlite3" + gem "capybara" + gem "rspec_junit_formatter" + gem "rspec-rails" + gem "selenium-webdriver" + gem "brakeman" + gem "fasterer" + gem "reek" + gem "rubocop" + gem "rubocop-packaging" + gem "rubocop-performance" + gem "rubocop-rails" + gem "rubocop-rspec" + gem "pry-rails" +end + +gemspec path: "../" diff --git a/gemfiles/rails61_activeadmin29.gemfile.lock b/gemfiles/rails61_activeadmin29.gemfile.lock new file mode 100644 index 0000000..def79ac --- /dev/null +++ b/gemfiles/rails61_activeadmin29.gemfile.lock @@ -0,0 +1,312 @@ +PATH + remote: .. + specs: + activeadmin_quill_editor (0.3.4) + activeadmin (~> 2.0) + +GEM + remote: https://rubygems.org/ + specs: + actioncable (6.1.5) + actionpack (= 6.1.5) + activesupport (= 6.1.5) + nio4r (~> 2.0) + websocket-driver (>= 0.6.1) + actionmailbox (6.1.5) + actionpack (= 6.1.5) + activejob (= 6.1.5) + activerecord (= 6.1.5) + activestorage (= 6.1.5) + activesupport (= 6.1.5) + mail (>= 2.7.1) + actionmailer (6.1.5) + actionpack (= 6.1.5) + actionview (= 6.1.5) + activejob (= 6.1.5) + activesupport (= 6.1.5) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (6.1.5) + actionview (= 6.1.5) + activesupport (= 6.1.5) + rack (~> 2.0, >= 2.0.9) + rack-test (>= 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.2.0) + actiontext (6.1.5) + actionpack (= 6.1.5) + activerecord (= 6.1.5) + activestorage (= 6.1.5) + activesupport (= 6.1.5) + nokogiri (>= 1.8.5) + actionview (6.1.5) + activesupport (= 6.1.5) + builder (~> 3.1) + erubi (~> 1.4) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.1, >= 1.2.0) + activeadmin (2.9.0) + arbre (~> 1.2, >= 1.2.1) + formtastic (>= 3.1, < 5.0) + formtastic_i18n (~> 0.4) + inherited_resources (~> 1.7) + jquery-rails (~> 4.2) + kaminari (~> 1.0, >= 1.2.1) + railties (>= 5.2, < 6.2) + ransack (~> 2.1, >= 2.1.1) + activejob (6.1.5) + activesupport (= 6.1.5) + globalid (>= 0.3.6) + activemodel (6.1.5) + activesupport (= 6.1.5) + activerecord (6.1.5) + activemodel (= 6.1.5) + activesupport (= 6.1.5) + activestorage (6.1.5) + actionpack (= 6.1.5) + activejob (= 6.1.5) + activerecord (= 6.1.5) + activesupport (= 6.1.5) + marcel (~> 1.0) + mini_mime (>= 1.1.0) + activesupport (6.1.5) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 1.6, < 2) + minitest (>= 5.1) + tzinfo (~> 2.0) + zeitwerk (~> 2.3) + addressable (2.8.0) + public_suffix (>= 2.0.2, < 5.0) + appraisal (2.4.1) + bundler + rake + thor (>= 0.14.0) + arbre (1.5.0) + activesupport (>= 3.0.0, < 7.1) + ruby2_keywords (>= 0.0.2, < 1.0) + ast (2.4.2) + brakeman (5.2.1) + builder (3.2.4) + capybara (3.36.0) + addressable + matrix + mini_mime (>= 0.1.3) + nokogiri (~> 1.8) + rack (>= 1.6.0) + rack-test (>= 0.6.3) + regexp_parser (>= 1.5, < 3.0) + xpath (~> 3.2) + childprocess (4.1.0) + coderay (1.1.3) + colorize (0.8.1) + concurrent-ruby (1.1.10) + crass (1.0.6) + diff-lcs (1.5.0) + erubi (1.10.0) + fasterer (0.9.0) + colorize (~> 0.7) + ruby_parser (>= 3.14.1) + ffi (1.15.5) + formtastic (4.0.0) + actionpack (>= 5.2.0) + formtastic_i18n (0.7.0) + globalid (1.0.0) + activesupport (>= 5.0) + has_scope (0.8.0) + actionpack (>= 5.2) + activesupport (>= 5.2) + i18n (1.10.0) + concurrent-ruby (~> 1.0) + inherited_resources (1.13.1) + actionpack (>= 5.2, < 7.1) + has_scope (~> 0.6) + railties (>= 5.2, < 7.1) + responders (>= 2, < 4) + jquery-rails (4.4.0) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + kaminari (1.2.2) + activesupport (>= 4.1.0) + kaminari-actionview (= 1.2.2) + kaminari-activerecord (= 1.2.2) + kaminari-core (= 1.2.2) + kaminari-actionview (1.2.2) + actionview + kaminari-core (= 1.2.2) + kaminari-activerecord (1.2.2) + activerecord + kaminari-core (= 1.2.2) + kaminari-core (1.2.2) + kwalify (0.7.2) + loofah (2.15.0) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.7.1) + mini_mime (>= 0.1.1) + marcel (1.0.2) + matrix (0.4.2) + method_source (1.0.0) + mini_mime (1.1.2) + minitest (5.15.0) + nio4r (2.5.8) + nokogiri (1.13.3-x86_64-darwin) + racc (~> 1.4) + nokogiri (1.13.3-x86_64-linux) + racc (~> 1.4) + parallel (1.22.1) + parser (3.1.1.0) + ast (~> 2.4.1) + pry (0.14.1) + coderay (~> 1.1) + method_source (~> 1.0) + pry-rails (0.3.9) + pry (>= 0.10.4) + public_suffix (4.0.6) + puma (5.6.2) + nio4r (~> 2.0) + racc (1.6.0) + rack (2.2.3) + rack-test (1.1.0) + rack (>= 1.0, < 3) + rails (6.1.5) + actioncable (= 6.1.5) + actionmailbox (= 6.1.5) + actionmailer (= 6.1.5) + actionpack (= 6.1.5) + actiontext (= 6.1.5) + actionview (= 6.1.5) + activejob (= 6.1.5) + activemodel (= 6.1.5) + activerecord (= 6.1.5) + activestorage (= 6.1.5) + activesupport (= 6.1.5) + bundler (>= 1.15.0) + railties (= 6.1.5) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.4.2) + loofah (~> 2.3) + railties (6.1.5) + actionpack (= 6.1.5) + activesupport (= 6.1.5) + method_source + rake (>= 12.2) + thor (~> 1.0) + rainbow (3.1.1) + rake (13.0.6) + ransack (2.6.0) + activerecord (>= 6.0.4) + activesupport (>= 6.0.4) + i18n + reek (6.1.0) + kwalify (~> 0.7.0) + parser (~> 3.1.0) + rainbow (>= 2.0, < 4.0) + regexp_parser (2.2.1) + responders (3.0.1) + actionpack (>= 5.0) + railties (>= 5.0) + rexml (3.2.5) + rspec-core (3.11.0) + rspec-support (~> 3.11.0) + rspec-expectations (3.11.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.11.0) + rspec-mocks (3.11.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.11.0) + rspec-rails (5.1.1) + actionpack (>= 5.2) + activesupport (>= 5.2) + railties (>= 5.2) + rspec-core (~> 3.10) + rspec-expectations (~> 3.10) + rspec-mocks (~> 3.10) + rspec-support (~> 3.10) + rspec-support (3.11.0) + rspec_junit_formatter (0.5.1) + rspec-core (>= 2, < 4, != 2.12.0) + rubocop (1.26.1) + parallel (~> 1.10) + parser (>= 3.1.0.0) + rainbow (>= 2.2.2, < 4.0) + regexp_parser (>= 1.8, < 3.0) + rexml + rubocop-ast (>= 1.16.0, < 2.0) + ruby-progressbar (~> 1.7) + unicode-display_width (>= 1.4.0, < 3.0) + rubocop-ast (1.16.0) + parser (>= 3.1.1.0) + rubocop-packaging (0.5.1) + rubocop (>= 0.89, < 2.0) + rubocop-performance (1.13.3) + rubocop (>= 1.7.0, < 2.0) + rubocop-ast (>= 0.4.0) + rubocop-rails (2.14.2) + activesupport (>= 4.2.0) + rack (>= 1.1) + rubocop (>= 1.7.0, < 2.0) + rubocop-rspec (2.9.0) + rubocop (~> 1.19) + ruby-progressbar (1.11.0) + ruby2_keywords (0.0.5) + ruby_parser (3.18.1) + sexp_processor (~> 4.16) + rubyzip (2.3.2) + sassc (2.4.0) + ffi (~> 1.9) + selenium-webdriver (4.1.0) + childprocess (>= 0.5, < 5.0) + rexml (~> 3.2, >= 3.2.5) + rubyzip (>= 1.2.2) + sexp_processor (4.16.0) + sprockets (4.0.3) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.4.2) + actionpack (>= 5.2) + activesupport (>= 5.2) + sprockets (>= 3.0.0) + sqlite3 (1.4.2) + thor (1.2.1) + tzinfo (2.0.4) + concurrent-ruby (~> 1.0) + unicode-display_width (2.1.0) + websocket-driver (0.7.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.5) + xpath (3.2.0) + nokogiri (~> 1.8) + zeitwerk (2.5.4) + +PLATFORMS + x86_64-darwin-21 + x86_64-linux + +DEPENDENCIES + activeadmin (~> 2.9.0) + activeadmin_quill_editor! + appraisal (~> 2.4) + brakeman + capybara + fasterer + pry-rails + puma + rails (~> 6.1.0) + reek + rspec-rails + rspec_junit_formatter + rubocop + rubocop-packaging + rubocop-performance + rubocop-rails + rubocop-rspec + sassc + selenium-webdriver + sqlite3 + +BUNDLED WITH + 2.3.8 diff --git a/spec/dummy/config/application.rb b/spec/dummy/config/application.rb index c48da89..1052c73 100644 --- a/spec/dummy/config/application.rb +++ b/spec/dummy/config/application.rb @@ -8,7 +8,7 @@ Bundler.require(*Rails.groups) module Dummy class Application < Rails::Application # Initialize configuration defaults for originally generated Rails version. - config.load_defaults 6.0 + config.load_defaults 6.0 if Rails::VERSION::MAJOR == 6 # Settings in config/environments/* take precedence over those specified here. # Application configuration can go into files in config/initializers @@ -16,4 +16,3 @@ module Dummy # the framework and any gems in your application. end end - diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 9eb6e9d..b948026 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -33,4 +33,15 @@ RSpec.configure do |config| config.use_transactional_fixtures = true config.use_instantiated_fixtures = false config.render_views = false + + config.before(:suite) do + intro = ('-' * 80) + intro << "\n" + intro << "- Ruby: #{RUBY_VERSION}\n" + intro << "- Rails: #{Rails.version}\n" + intro << "- ActiveAdmin: #{ActiveAdmin::VERSION}\n" + intro << ('-' * 80) + + RSpec.configuration.reporter.message(intro) + end end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index a7be4b5..a6ba539 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -5,10 +5,12 @@ RSpec.configure do |config| config.filter_run focus: true config.filter_run_excluding changes_filesystem: true config.run_all_when_everything_filtered = true - config.color = true - config.order = :random - config.example_status_persistence_file_path = '.rspec_failures' + config.color = true + config.tty = true + + config.example_status_persistence_file_path = '.rspec_failures' + config.order = :random config.shared_context_metadata_behavior = :apply_to_host_groups config.expect_with :rspec do |expectations| From d8632f069a63c4a2f1e9acbf573917a0c83fbcdc Mon Sep 17 00:00:00 2001 From: Mattia Roccoberton Date: Sat, 26 Mar 2022 18:37:51 +0100 Subject: [PATCH 05/12] Setup Cuprite --- Appraisals | 2 ++ Gemfile | 6 ++++- gemfiles/rails52_activeadmin20.gemfile | 2 +- gemfiles/rails52_activeadmin20.gemfile.lock | 17 ++++++++------ gemfiles/rails60_activeadmin.gemfile | 3 ++- gemfiles/rails60_activeadmin.gemfile.lock | 10 ++++++++ gemfiles/rails60_activeadmin22.gemfile | 3 ++- gemfiles/rails60_activeadmin22.gemfile.lock | 10 ++++++++ gemfiles/rails61_activeadmin.gemfile | 2 +- gemfiles/rails61_activeadmin.gemfile.lock | 17 ++++++++------ gemfiles/rails61_activeadmin29.gemfile | 2 +- gemfiles/rails61_activeadmin29.gemfile.lock | 17 ++++++++------ spec/support/capybara.rb | 9 +++++++ spec/support/capybara_cuprite.rb | 26 +++++++++++++++++++++ spec/support/drivers.rb | 7 ------ 15 files changed, 99 insertions(+), 34 deletions(-) create mode 100644 spec/support/capybara_cuprite.rb delete mode 100644 spec/support/drivers.rb diff --git a/Appraisals b/Appraisals index fd7c19f..dc26cdd 100644 --- a/Appraisals +++ b/Appraisals @@ -8,11 +8,13 @@ end appraise 'rails60-activeadmin22' do gem 'activeadmin', '~> 2.2.0' gem 'rails', '~> 6.0.0' + gem 'selenium-webdriver', require: false end appraise 'rails60-activeadmin' do gem 'activeadmin' gem 'rails', '~> 6.0.0' + gem 'selenium-webdriver', require: false end appraise 'rails61-activeadmin29' do diff --git a/Gemfile b/Gemfile index 07d2472..b61e25e 100644 --- a/Gemfile +++ b/Gemfile @@ -5,11 +5,15 @@ source 'https://rubygems.org' gemspec group :development, :test do + gem 'puma' + gem 'sassc' + gem 'sqlite3' + # Testing gem 'capybara' + gem 'cuprite' gem 'rspec_junit_formatter' gem 'rspec-rails' - gem 'selenium-webdriver' # Linters gem 'brakeman' diff --git a/gemfiles/rails52_activeadmin20.gemfile b/gemfiles/rails52_activeadmin20.gemfile index 0f86813..81fd79e 100644 --- a/gemfiles/rails52_activeadmin20.gemfile +++ b/gemfiles/rails52_activeadmin20.gemfile @@ -10,9 +10,9 @@ group :development, :test do gem "sassc" gem "sqlite3" gem "capybara" + gem "cuprite" gem "rspec_junit_formatter" gem "rspec-rails" - gem "selenium-webdriver" gem "brakeman" gem "fasterer" gem "reek" diff --git a/gemfiles/rails52_activeadmin20.gemfile.lock b/gemfiles/rails52_activeadmin20.gemfile.lock index 554497b..82d9f65 100644 --- a/gemfiles/rails52_activeadmin20.gemfile.lock +++ b/gemfiles/rails52_activeadmin20.gemfile.lock @@ -86,17 +86,25 @@ GEM rack-test (>= 0.6.3) regexp_parser (>= 1.5, < 3.0) xpath (~> 3.2) - childprocess (4.1.0) + cliver (0.3.2) coderay (1.1.3) colorize (0.8.1) concurrent-ruby (1.1.10) crass (1.0.6) + cuprite (0.13) + capybara (>= 2.1, < 4) + ferrum (~> 0.11.0) diff-lcs (1.5.0) erubi (1.10.0) execjs (2.8.1) fasterer (0.9.0) colorize (~> 0.7) ruby_parser (>= 3.14.1) + ferrum (0.11) + addressable (~> 2.5) + cliver (~> 0.3) + concurrent-ruby (~> 1.1) + websocket-driver (>= 0.6, < 0.8) ffi (1.15.5) formtastic (3.1.5) actionpack (>= 3.2.13) @@ -247,7 +255,6 @@ GEM ruby2_keywords (0.0.5) ruby_parser (3.18.1) sexp_processor (~> 4.16) - rubyzip (2.3.2) sass (3.7.4) sass-listen (~> 4.0.0) sass-listen (4.0.0) @@ -255,10 +262,6 @@ GEM rb-inotify (~> 0.9, >= 0.9.7) sassc (2.4.0) ffi (~> 1.9) - selenium-webdriver (4.1.0) - childprocess (>= 0.5, < 5.0) - rexml (~> 3.2, >= 3.2.5) - rubyzip (>= 1.2.2) sexp_processor (4.16.0) sprockets (4.0.3) concurrent-ruby (~> 1.0) @@ -293,6 +296,7 @@ DEPENDENCIES appraisal (~> 2.4) brakeman capybara + cuprite fasterer pry-rails puma @@ -306,7 +310,6 @@ DEPENDENCIES rubocop-rails rubocop-rspec sassc - selenium-webdriver sqlite3 BUNDLED WITH diff --git a/gemfiles/rails60_activeadmin.gemfile b/gemfiles/rails60_activeadmin.gemfile index aedfc68..b0f21d9 100644 --- a/gemfiles/rails60_activeadmin.gemfile +++ b/gemfiles/rails60_activeadmin.gemfile @@ -4,15 +4,16 @@ source "https://rubygems.org" gem "activeadmin" gem "rails", "~> 6.0.0" +gem "selenium-webdriver", require: false group :development, :test do gem "puma" gem "sassc" gem "sqlite3" gem "capybara" + gem "cuprite" gem "rspec_junit_formatter" gem "rspec-rails" - gem "selenium-webdriver" gem "brakeman" gem "fasterer" gem "reek" diff --git a/gemfiles/rails60_activeadmin.gemfile.lock b/gemfiles/rails60_activeadmin.gemfile.lock index c4e3538..8f20e2f 100644 --- a/gemfiles/rails60_activeadmin.gemfile.lock +++ b/gemfiles/rails60_activeadmin.gemfile.lock @@ -93,15 +93,24 @@ GEM regexp_parser (>= 1.5, < 3.0) xpath (~> 3.2) childprocess (4.1.0) + cliver (0.3.2) coderay (1.1.3) colorize (0.8.1) concurrent-ruby (1.1.10) crass (1.0.6) + cuprite (0.13) + capybara (>= 2.1, < 4) + ferrum (~> 0.11.0) diff-lcs (1.5.0) erubi (1.10.0) fasterer (0.9.0) colorize (~> 0.7) ruby_parser (>= 3.14.1) + ferrum (0.11) + addressable (~> 2.5) + cliver (~> 0.3) + concurrent-ruby (~> 1.1) + websocket-driver (>= 0.6, < 0.8) ffi (1.15.5) formtastic (4.0.0) actionpack (>= 5.2.0) @@ -289,6 +298,7 @@ DEPENDENCIES appraisal (~> 2.4) brakeman capybara + cuprite fasterer pry-rails puma diff --git a/gemfiles/rails60_activeadmin22.gemfile b/gemfiles/rails60_activeadmin22.gemfile index e51399d..3fb95e8 100644 --- a/gemfiles/rails60_activeadmin22.gemfile +++ b/gemfiles/rails60_activeadmin22.gemfile @@ -4,15 +4,16 @@ source "https://rubygems.org" gem "activeadmin", "~> 2.2.0" gem "rails", "~> 6.0.0" +gem "selenium-webdriver", require: false group :development, :test do gem "puma" gem "sassc" gem "sqlite3" gem "capybara" + gem "cuprite" gem "rspec_junit_formatter" gem "rspec-rails" - gem "selenium-webdriver" gem "brakeman" gem "fasterer" gem "reek" diff --git a/gemfiles/rails60_activeadmin22.gemfile.lock b/gemfiles/rails60_activeadmin22.gemfile.lock index 474c802..0cf7549 100644 --- a/gemfiles/rails60_activeadmin22.gemfile.lock +++ b/gemfiles/rails60_activeadmin22.gemfile.lock @@ -100,16 +100,25 @@ GEM regexp_parser (>= 1.5, < 3.0) xpath (~> 3.2) childprocess (4.1.0) + cliver (0.3.2) coderay (1.1.3) colorize (0.8.1) concurrent-ruby (1.1.10) crass (1.0.6) + cuprite (0.13) + capybara (>= 2.1, < 4) + ferrum (~> 0.11.0) diff-lcs (1.5.0) erubi (1.10.0) execjs (2.8.1) fasterer (0.9.0) colorize (~> 0.7) ruby_parser (>= 3.14.1) + ferrum (0.11) + addressable (~> 2.5) + cliver (~> 0.3) + concurrent-ruby (~> 1.1) + websocket-driver (>= 0.6, < 0.8) ffi (1.15.5) formtastic (3.1.5) actionpack (>= 3.2.13) @@ -308,6 +317,7 @@ DEPENDENCIES appraisal (~> 2.4) brakeman capybara + cuprite fasterer pry-rails puma diff --git a/gemfiles/rails61_activeadmin.gemfile b/gemfiles/rails61_activeadmin.gemfile index b54eb10..014d339 100644 --- a/gemfiles/rails61_activeadmin.gemfile +++ b/gemfiles/rails61_activeadmin.gemfile @@ -10,9 +10,9 @@ group :development, :test do gem "sassc" gem "sqlite3" gem "capybara" + gem "cuprite" gem "rspec_junit_formatter" gem "rspec-rails" - gem "selenium-webdriver" gem "brakeman" gem "fasterer" gem "reek" diff --git a/gemfiles/rails61_activeadmin.gemfile.lock b/gemfiles/rails61_activeadmin.gemfile.lock index 8dc48c0..4cf55ff 100644 --- a/gemfiles/rails61_activeadmin.gemfile.lock +++ b/gemfiles/rails61_activeadmin.gemfile.lock @@ -96,16 +96,24 @@ GEM rack-test (>= 0.6.3) regexp_parser (>= 1.5, < 3.0) xpath (~> 3.2) - childprocess (4.1.0) + cliver (0.3.2) coderay (1.1.3) colorize (0.8.1) concurrent-ruby (1.1.10) crass (1.0.6) + cuprite (0.13) + capybara (>= 2.1, < 4) + ferrum (~> 0.11.0) diff-lcs (1.5.0) erubi (1.10.0) fasterer (0.9.0) colorize (~> 0.7) ruby_parser (>= 3.14.1) + ferrum (0.11) + addressable (~> 2.5) + cliver (~> 0.3) + concurrent-ruby (~> 1.1) + websocket-driver (>= 0.6, < 0.8) ffi (1.15.5) formtastic (4.0.0) actionpack (>= 5.2.0) @@ -255,13 +263,8 @@ GEM ruby2_keywords (0.0.5) ruby_parser (3.18.1) sexp_processor (~> 4.16) - rubyzip (2.3.2) sassc (2.4.0) ffi (~> 1.9) - selenium-webdriver (4.1.0) - childprocess (>= 0.5, < 5.0) - rexml (~> 3.2, >= 3.2.5) - rubyzip (>= 1.2.2) sexp_processor (4.16.0) sprockets (4.0.3) concurrent-ruby (~> 1.0) @@ -292,6 +295,7 @@ DEPENDENCIES appraisal (~> 2.4) brakeman capybara + cuprite fasterer pry-rails puma @@ -305,7 +309,6 @@ DEPENDENCIES rubocop-rails rubocop-rspec sassc - selenium-webdriver sqlite3 BUNDLED WITH diff --git a/gemfiles/rails61_activeadmin29.gemfile b/gemfiles/rails61_activeadmin29.gemfile index df62a7e..8a2479a 100644 --- a/gemfiles/rails61_activeadmin29.gemfile +++ b/gemfiles/rails61_activeadmin29.gemfile @@ -10,9 +10,9 @@ group :development, :test do gem "sassc" gem "sqlite3" gem "capybara" + gem "cuprite" gem "rspec_junit_formatter" gem "rspec-rails" - gem "selenium-webdriver" gem "brakeman" gem "fasterer" gem "reek" diff --git a/gemfiles/rails61_activeadmin29.gemfile.lock b/gemfiles/rails61_activeadmin29.gemfile.lock index def79ac..9404222 100644 --- a/gemfiles/rails61_activeadmin29.gemfile.lock +++ b/gemfiles/rails61_activeadmin29.gemfile.lock @@ -96,16 +96,24 @@ GEM rack-test (>= 0.6.3) regexp_parser (>= 1.5, < 3.0) xpath (~> 3.2) - childprocess (4.1.0) + cliver (0.3.2) coderay (1.1.3) colorize (0.8.1) concurrent-ruby (1.1.10) crass (1.0.6) + cuprite (0.13) + capybara (>= 2.1, < 4) + ferrum (~> 0.11.0) diff-lcs (1.5.0) erubi (1.10.0) fasterer (0.9.0) colorize (~> 0.7) ruby_parser (>= 3.14.1) + ferrum (0.11) + addressable (~> 2.5) + cliver (~> 0.3) + concurrent-ruby (~> 1.1) + websocket-driver (>= 0.6, < 0.8) ffi (1.15.5) formtastic (4.0.0) actionpack (>= 5.2.0) @@ -255,13 +263,8 @@ GEM ruby2_keywords (0.0.5) ruby_parser (3.18.1) sexp_processor (~> 4.16) - rubyzip (2.3.2) sassc (2.4.0) ffi (~> 1.9) - selenium-webdriver (4.1.0) - childprocess (>= 0.5, < 5.0) - rexml (~> 3.2, >= 3.2.5) - rubyzip (>= 1.2.2) sexp_processor (4.16.0) sprockets (4.0.3) concurrent-ruby (~> 1.0) @@ -292,6 +295,7 @@ DEPENDENCIES appraisal (~> 2.4) brakeman capybara + cuprite fasterer pry-rails puma @@ -305,7 +309,6 @@ DEPENDENCIES rubocop-rails rubocop-rspec sassc - selenium-webdriver sqlite3 BUNDLED WITH diff --git a/spec/support/capybara.rb b/spec/support/capybara.rb index 47fbd05..400342c 100644 --- a/spec/support/capybara.rb +++ b/spec/support/capybara.rb @@ -1,3 +1,12 @@ # frozen_string_literal: true Capybara.server = :puma +Capybara.default_driver = Capybara.javascript_driver = :cuprite + +RSpec.configure do |config| + # Make sure this hook runs before others + config.prepend_before(:each, type: :system) do + # Use JS driver always + driven_by Capybara.javascript_driver + end +end diff --git a/spec/support/capybara_cuprite.rb b/spec/support/capybara_cuprite.rb new file mode 100644 index 0000000..e607dba --- /dev/null +++ b/spec/support/capybara_cuprite.rb @@ -0,0 +1,26 @@ +# frozen_string_literal: true + +require 'capybara/cuprite' + +Capybara.register_driver(:cuprite) do |app| + browser_options = {}.tap do |opts| + opts['no-sandbox'] = nil if ENV['CI'] + end + + Capybara::Cuprite::Driver.new( + app, + **{ + window_size: [1600, 1280], + # See additional options for Dockerized environment in the respective section of this article + browser_options: browser_options, + # Increase Chrome startup wait time (required for stable CI builds) + process_timeout: 30, + # The number of seconds we'll wait for a response when communicating with browser. Default is 5 + timeout: 30, + # Enable debugging capabilities + inspector: true, + # Allow running Chrome in a headful mode by setting HEADLESS env var to a falsey value + headless: !ENV['CUPRITE_HEADLESS'].in?(%w[n 0 no false]) + } + ) +end diff --git a/spec/support/drivers.rb b/spec/support/drivers.rb deleted file mode 100644 index 5211d39..0000000 --- a/spec/support/drivers.rb +++ /dev/null @@ -1,7 +0,0 @@ -# frozen_string_literal: true - -RSpec.configure do |config| - config.before(:each, type: :system) do - driven_by(:selenium_chrome_headless) - end -end From e4401a469b385d31c719924e3c26bde6c1e4d70c Mon Sep 17 00:00:00 2001 From: Mattia Roccoberton Date: Sat, 26 Mar 2022 18:47:00 +0100 Subject: [PATCH 06/12] Enable Ruby 3.0 specs support --- .../{specs.yml => specs_rails60.yml} | 2 +- .github/workflows/specs_rails61.yml | 42 +++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) rename .github/workflows/{specs.yml => specs_rails60.yml} (94%) create mode 100644 .github/workflows/specs_rails61.yml diff --git a/.github/workflows/specs.yml b/.github/workflows/specs_rails60.yml similarity index 94% rename from .github/workflows/specs.yml rename to .github/workflows/specs_rails60.yml index cd08db7..3bf86f5 100644 --- a/.github/workflows/specs.yml +++ b/.github/workflows/specs_rails60.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: ruby: ['2.6', '2.7'] - gemfile: ['rails60_activeadmin22', 'rails60_activeadmin', 'rails61_activeadmin29', 'rails61_activeadmin'] + gemfile: ['rails60_activeadmin22', 'rails60_activeadmin'] env: BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile diff --git a/.github/workflows/specs_rails61.yml b/.github/workflows/specs_rails61.yml new file mode 100644 index 0000000..4415b39 --- /dev/null +++ b/.github/workflows/specs_rails61.yml @@ -0,0 +1,42 @@ +--- +name: Specs + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + ruby: ['2.6', '2.7', '3.0'] + gemfile: ['rails61_activeadmin29', 'rails61_activeadmin'] + + env: + BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + + - name: Run tests + run: bundle exec rspec --profile + + - name: On failure, archive screenshots as artifacts + uses: actions/upload-artifact@v2 + if: failure() + with: + name: test-failed-screenshots + path: spec/dummy/tmp/screenshots From 7be390701f796f0a6defd400422d6410026e1c31 Mon Sep 17 00:00:00 2001 From: Mattia Roccoberton Date: Sat, 26 Mar 2022 19:02:36 +0100 Subject: [PATCH 07/12] Enable Rails 7.0 specs support --- .github/workflows/specs_rails60.yml | 4 +- .github/workflows/specs_rails61.yml | 4 +- .github/workflows/specs_rails70.yml | 42 +++ Appraisals | 6 + gemfiles/rails61_activeadmin.gemfile | 1 + gemfiles/rails61_activeadmin.gemfile.lock | 1 + gemfiles/rails70_activeadmin.gemfile | 28 ++ gemfiles/rails70_activeadmin.gemfile.lock | 341 ++++++++++++++++++++++ spec/dummy/config/application.rb | 4 + 9 files changed, 427 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/specs_rails70.yml create mode 100644 gemfiles/rails70_activeadmin.gemfile create mode 100644 gemfiles/rails70_activeadmin.gemfile.lock diff --git a/.github/workflows/specs_rails60.yml b/.github/workflows/specs_rails60.yml index 3bf86f5..4815a74 100644 --- a/.github/workflows/specs_rails60.yml +++ b/.github/workflows/specs_rails60.yml @@ -1,5 +1,5 @@ --- -name: Specs +name: Specs Rails 6.0 on: push: @@ -10,7 +10,7 @@ on: - master jobs: - test: + tests: runs-on: ubuntu-latest strategy: diff --git a/.github/workflows/specs_rails61.yml b/.github/workflows/specs_rails61.yml index 4415b39..53c9568 100644 --- a/.github/workflows/specs_rails61.yml +++ b/.github/workflows/specs_rails61.yml @@ -1,5 +1,5 @@ --- -name: Specs +name: Specs Rails 6.1 on: push: @@ -10,7 +10,7 @@ on: - master jobs: - test: + tests: runs-on: ubuntu-latest strategy: diff --git a/.github/workflows/specs_rails70.yml b/.github/workflows/specs_rails70.yml new file mode 100644 index 0000000..dec344c --- /dev/null +++ b/.github/workflows/specs_rails70.yml @@ -0,0 +1,42 @@ +--- +name: Specs Rails 7.0 + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + tests: + runs-on: ubuntu-latest + + strategy: + matrix: + ruby: ['2.7', '3.0'] + gemfile: ['rails70_activeadmin'] + + env: + BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + + - name: Run tests + run: bundle exec rspec --profile + + - name: On failure, archive screenshots as artifacts + uses: actions/upload-artifact@v2 + if: failure() + with: + name: test-failed-screenshots + path: spec/dummy/tmp/screenshots diff --git a/Appraisals b/Appraisals index dc26cdd..bb2c105 100644 --- a/Appraisals +++ b/Appraisals @@ -26,3 +26,9 @@ appraise 'rails61-activeadmin' do gem 'activeadmin' gem 'rails', '~> 6.1.0' end + +appraise 'rails70-activeadmin' do + gem 'activeadmin' + gem 'rails', '~> 7.0.0' + gem 'sprockets-rails' +end diff --git a/gemfiles/rails61_activeadmin.gemfile b/gemfiles/rails61_activeadmin.gemfile index 014d339..f09f9a9 100644 --- a/gemfiles/rails61_activeadmin.gemfile +++ b/gemfiles/rails61_activeadmin.gemfile @@ -4,6 +4,7 @@ source "https://rubygems.org" gem "activeadmin" gem "rails", "~> 6.1.0" +gem "sprockets-rails" group :development, :test do gem "puma" diff --git a/gemfiles/rails61_activeadmin.gemfile.lock b/gemfiles/rails61_activeadmin.gemfile.lock index 4cf55ff..83d5e9d 100644 --- a/gemfiles/rails61_activeadmin.gemfile.lock +++ b/gemfiles/rails61_activeadmin.gemfile.lock @@ -309,6 +309,7 @@ DEPENDENCIES rubocop-rails rubocop-rspec sassc + sprockets-rails sqlite3 BUNDLED WITH diff --git a/gemfiles/rails70_activeadmin.gemfile b/gemfiles/rails70_activeadmin.gemfile new file mode 100644 index 0000000..c91eb4b --- /dev/null +++ b/gemfiles/rails70_activeadmin.gemfile @@ -0,0 +1,28 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "activeadmin" +gem "rails", "~> 7.0.0" +gem "sprockets-rails" + +group :development, :test do + gem "puma" + gem "sassc" + gem "sqlite3" + gem "capybara" + gem "cuprite" + gem "rspec_junit_formatter" + gem "rspec-rails" + gem "brakeman" + gem "fasterer" + gem "reek" + gem "rubocop" + gem "rubocop-packaging" + gem "rubocop-performance" + gem "rubocop-rails" + gem "rubocop-rspec" + gem "pry-rails" +end + +gemspec path: "../" diff --git a/gemfiles/rails70_activeadmin.gemfile.lock b/gemfiles/rails70_activeadmin.gemfile.lock new file mode 100644 index 0000000..fb5dde8 --- /dev/null +++ b/gemfiles/rails70_activeadmin.gemfile.lock @@ -0,0 +1,341 @@ +PATH + remote: .. + specs: + activeadmin_quill_editor (0.3.4) + activeadmin (~> 2.0) + +GEM + remote: https://rubygems.org/ + specs: + actioncable (7.0.2.3) + actionpack (= 7.0.2.3) + activesupport (= 7.0.2.3) + nio4r (~> 2.0) + websocket-driver (>= 0.6.1) + actionmailbox (7.0.2.3) + actionpack (= 7.0.2.3) + activejob (= 7.0.2.3) + activerecord (= 7.0.2.3) + activestorage (= 7.0.2.3) + activesupport (= 7.0.2.3) + mail (>= 2.7.1) + net-imap + net-pop + net-smtp + actionmailer (7.0.2.3) + actionpack (= 7.0.2.3) + actionview (= 7.0.2.3) + activejob (= 7.0.2.3) + activesupport (= 7.0.2.3) + mail (~> 2.5, >= 2.5.4) + net-imap + net-pop + net-smtp + rails-dom-testing (~> 2.0) + actionpack (7.0.2.3) + actionview (= 7.0.2.3) + activesupport (= 7.0.2.3) + rack (~> 2.0, >= 2.2.0) + rack-test (>= 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.2.0) + actiontext (7.0.2.3) + actionpack (= 7.0.2.3) + activerecord (= 7.0.2.3) + activestorage (= 7.0.2.3) + activesupport (= 7.0.2.3) + globalid (>= 0.6.0) + nokogiri (>= 1.8.5) + actionview (7.0.2.3) + activesupport (= 7.0.2.3) + builder (~> 3.1) + erubi (~> 1.4) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.1, >= 1.2.0) + activeadmin (2.11.1) + arbre (~> 1.2, >= 1.2.1) + formtastic (>= 3.1, < 5.0) + formtastic_i18n (~> 0.4) + inherited_resources (~> 1.7) + jquery-rails (~> 4.2) + kaminari (~> 1.0, >= 1.2.1) + railties (>= 6.0, < 7.1) + ransack (~> 2.1, >= 2.1.1) + activejob (7.0.2.3) + activesupport (= 7.0.2.3) + globalid (>= 0.3.6) + activemodel (7.0.2.3) + activesupport (= 7.0.2.3) + activerecord (7.0.2.3) + activemodel (= 7.0.2.3) + activesupport (= 7.0.2.3) + activestorage (7.0.2.3) + actionpack (= 7.0.2.3) + activejob (= 7.0.2.3) + activerecord (= 7.0.2.3) + activesupport (= 7.0.2.3) + marcel (~> 1.0) + mini_mime (>= 1.1.0) + activesupport (7.0.2.3) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 1.6, < 2) + minitest (>= 5.1) + tzinfo (~> 2.0) + addressable (2.8.0) + public_suffix (>= 2.0.2, < 5.0) + appraisal (2.4.1) + bundler + rake + thor (>= 0.14.0) + arbre (1.5.0) + activesupport (>= 3.0.0, < 7.1) + ruby2_keywords (>= 0.0.2, < 1.0) + ast (2.4.2) + brakeman (5.2.1) + builder (3.2.4) + capybara (3.36.0) + addressable + matrix + mini_mime (>= 0.1.3) + nokogiri (~> 1.8) + rack (>= 1.6.0) + rack-test (>= 0.6.3) + regexp_parser (>= 1.5, < 3.0) + xpath (~> 3.2) + cliver (0.3.2) + coderay (1.1.3) + colorize (0.8.1) + concurrent-ruby (1.1.10) + crass (1.0.6) + cuprite (0.13) + capybara (>= 2.1, < 4) + ferrum (~> 0.11.0) + diff-lcs (1.5.0) + digest (3.1.0) + erubi (1.10.0) + fasterer (0.9.0) + colorize (~> 0.7) + ruby_parser (>= 3.14.1) + ferrum (0.11) + addressable (~> 2.5) + cliver (~> 0.3) + concurrent-ruby (~> 1.1) + websocket-driver (>= 0.6, < 0.8) + ffi (1.15.5) + formtastic (4.0.0) + actionpack (>= 5.2.0) + formtastic_i18n (0.7.0) + globalid (1.0.0) + activesupport (>= 5.0) + has_scope (0.8.0) + actionpack (>= 5.2) + activesupport (>= 5.2) + i18n (1.10.0) + concurrent-ruby (~> 1.0) + inherited_resources (1.13.1) + actionpack (>= 5.2, < 7.1) + has_scope (~> 0.6) + railties (>= 5.2, < 7.1) + responders (>= 2, < 4) + io-wait (0.2.1) + jquery-rails (4.4.0) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + kaminari (1.2.2) + activesupport (>= 4.1.0) + kaminari-actionview (= 1.2.2) + kaminari-activerecord (= 1.2.2) + kaminari-core (= 1.2.2) + kaminari-actionview (1.2.2) + actionview + kaminari-core (= 1.2.2) + kaminari-activerecord (1.2.2) + activerecord + kaminari-core (= 1.2.2) + kaminari-core (1.2.2) + kwalify (0.7.2) + loofah (2.15.0) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.7.1) + mini_mime (>= 0.1.1) + marcel (1.0.2) + matrix (0.4.2) + method_source (1.0.0) + mini_mime (1.1.2) + minitest (5.15.0) + net-imap (0.2.3) + digest + net-protocol + strscan + net-pop (0.1.1) + digest + net-protocol + timeout + net-protocol (0.1.2) + io-wait + timeout + net-smtp (0.3.1) + digest + net-protocol + timeout + nio4r (2.5.8) + nokogiri (1.13.3-x86_64-darwin) + racc (~> 1.4) + nokogiri (1.13.3-x86_64-linux) + racc (~> 1.4) + parallel (1.22.1) + parser (3.1.1.0) + ast (~> 2.4.1) + pry (0.14.1) + coderay (~> 1.1) + method_source (~> 1.0) + pry-rails (0.3.9) + pry (>= 0.10.4) + public_suffix (4.0.6) + puma (5.6.2) + nio4r (~> 2.0) + racc (1.6.0) + rack (2.2.3) + rack-test (1.1.0) + rack (>= 1.0, < 3) + rails (7.0.2.3) + actioncable (= 7.0.2.3) + actionmailbox (= 7.0.2.3) + actionmailer (= 7.0.2.3) + actionpack (= 7.0.2.3) + actiontext (= 7.0.2.3) + actionview (= 7.0.2.3) + activejob (= 7.0.2.3) + activemodel (= 7.0.2.3) + activerecord (= 7.0.2.3) + activestorage (= 7.0.2.3) + activesupport (= 7.0.2.3) + bundler (>= 1.15.0) + railties (= 7.0.2.3) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.4.2) + loofah (~> 2.3) + railties (7.0.2.3) + actionpack (= 7.0.2.3) + activesupport (= 7.0.2.3) + method_source + rake (>= 12.2) + thor (~> 1.0) + zeitwerk (~> 2.5) + rainbow (3.1.1) + rake (13.0.6) + ransack (2.6.0) + activerecord (>= 6.0.4) + activesupport (>= 6.0.4) + i18n + reek (6.1.0) + kwalify (~> 0.7.0) + parser (~> 3.1.0) + rainbow (>= 2.0, < 4.0) + regexp_parser (2.2.1) + responders (3.0.1) + actionpack (>= 5.0) + railties (>= 5.0) + rexml (3.2.5) + rspec-core (3.11.0) + rspec-support (~> 3.11.0) + rspec-expectations (3.11.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.11.0) + rspec-mocks (3.11.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.11.0) + rspec-rails (5.1.1) + actionpack (>= 5.2) + activesupport (>= 5.2) + railties (>= 5.2) + rspec-core (~> 3.10) + rspec-expectations (~> 3.10) + rspec-mocks (~> 3.10) + rspec-support (~> 3.10) + rspec-support (3.11.0) + rspec_junit_formatter (0.5.1) + rspec-core (>= 2, < 4, != 2.12.0) + rubocop (1.26.1) + parallel (~> 1.10) + parser (>= 3.1.0.0) + rainbow (>= 2.2.2, < 4.0) + regexp_parser (>= 1.8, < 3.0) + rexml + rubocop-ast (>= 1.16.0, < 2.0) + ruby-progressbar (~> 1.7) + unicode-display_width (>= 1.4.0, < 3.0) + rubocop-ast (1.16.0) + parser (>= 3.1.1.0) + rubocop-packaging (0.5.1) + rubocop (>= 0.89, < 2.0) + rubocop-performance (1.13.3) + rubocop (>= 1.7.0, < 2.0) + rubocop-ast (>= 0.4.0) + rubocop-rails (2.14.2) + activesupport (>= 4.2.0) + rack (>= 1.1) + rubocop (>= 1.7.0, < 2.0) + rubocop-rspec (2.9.0) + rubocop (~> 1.19) + ruby-progressbar (1.11.0) + ruby2_keywords (0.0.5) + ruby_parser (3.18.1) + sexp_processor (~> 4.16) + sassc (2.4.0) + ffi (~> 1.9) + sexp_processor (4.16.0) + sprockets (4.0.3) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.4.2) + actionpack (>= 5.2) + activesupport (>= 5.2) + sprockets (>= 3.0.0) + sqlite3 (1.4.2) + strscan (3.0.1) + thor (1.2.1) + timeout (0.2.0) + tzinfo (2.0.4) + concurrent-ruby (~> 1.0) + unicode-display_width (2.1.0) + websocket-driver (0.7.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.5) + xpath (3.2.0) + nokogiri (~> 1.8) + zeitwerk (2.5.4) + +PLATFORMS + x86_64-darwin-21 + x86_64-linux + +DEPENDENCIES + activeadmin + activeadmin_quill_editor! + appraisal (~> 2.4) + brakeman + capybara + cuprite + fasterer + pry-rails + puma + rails (~> 7.0.0) + reek + rspec-rails + rspec_junit_formatter + rubocop + rubocop-packaging + rubocop-performance + rubocop-rails + rubocop-rspec + sassc + sprockets-rails + sqlite3 + +BUNDLED WITH + 2.3.8 diff --git a/spec/dummy/config/application.rb b/spec/dummy/config/application.rb index 1052c73..2f575f3 100644 --- a/spec/dummy/config/application.rb +++ b/spec/dummy/config/application.rb @@ -14,5 +14,9 @@ module Dummy # Application configuration can go into files in config/initializers # -- all .rb files in that directory are automatically loaded after loading # the framework and any gems in your application. + + ### + + config.active_record.legacy_connection_handling = false if Rails::VERSION::MAJOR > 6 end end From 664765ac795549e15a54d43323685be40dceee06 Mon Sep 17 00:00:00 2001 From: Mattia Roccoberton Date: Sat, 26 Mar 2022 19:18:35 +0100 Subject: [PATCH 08/12] Remove unused gems --- Gemfile | 2 -- gemfiles/rails52_activeadmin20.gemfile | 2 -- gemfiles/rails52_activeadmin20.gemfile.lock | 8 -------- gemfiles/rails60_activeadmin.gemfile | 2 -- gemfiles/rails60_activeadmin.gemfile.lock | 8 -------- gemfiles/rails60_activeadmin22.gemfile | 2 -- gemfiles/rails60_activeadmin22.gemfile.lock | 8 -------- gemfiles/rails61_activeadmin.gemfile | 2 -- gemfiles/rails61_activeadmin.gemfile.lock | 8 -------- gemfiles/rails61_activeadmin29.gemfile | 2 -- gemfiles/rails61_activeadmin29.gemfile.lock | 8 -------- gemfiles/rails70_activeadmin.gemfile | 2 -- gemfiles/rails70_activeadmin.gemfile.lock | 8 -------- 13 files changed, 62 deletions(-) diff --git a/Gemfile b/Gemfile index b61e25e..bb641fc 100644 --- a/Gemfile +++ b/Gemfile @@ -16,9 +16,7 @@ group :development, :test do gem 'rspec-rails' # Linters - gem 'brakeman' gem 'fasterer' - gem 'reek' gem 'rubocop' gem 'rubocop-packaging' gem 'rubocop-performance' diff --git a/gemfiles/rails52_activeadmin20.gemfile b/gemfiles/rails52_activeadmin20.gemfile index 81fd79e..abf7395 100644 --- a/gemfiles/rails52_activeadmin20.gemfile +++ b/gemfiles/rails52_activeadmin20.gemfile @@ -13,9 +13,7 @@ group :development, :test do gem "cuprite" gem "rspec_junit_formatter" gem "rspec-rails" - gem "brakeman" gem "fasterer" - gem "reek" gem "rubocop" gem "rubocop-packaging" gem "rubocop-performance" diff --git a/gemfiles/rails52_activeadmin20.gemfile.lock b/gemfiles/rails52_activeadmin20.gemfile.lock index 82d9f65..f0eeedb 100644 --- a/gemfiles/rails52_activeadmin20.gemfile.lock +++ b/gemfiles/rails52_activeadmin20.gemfile.lock @@ -75,7 +75,6 @@ GEM babel-transpiler (0.7.0) babel-source (>= 4.0, < 6) execjs (~> 2.0) - brakeman (5.2.1) builder (3.2.4) capybara (3.36.0) addressable @@ -137,7 +136,6 @@ GEM activerecord kaminari-core (= 1.2.2) kaminari-core (1.2.2) - kwalify (0.7.2) loofah (2.15.0) crass (~> 1.0.2) nokogiri (>= 1.5.9) @@ -201,10 +199,6 @@ GEM rb-fsevent (0.11.1) rb-inotify (0.10.1) ffi (~> 1.0) - reek (6.1.0) - kwalify (~> 0.7.0) - parser (~> 3.1.0) - rainbow (>= 2.0, < 4.0) regexp_parser (2.2.1) responders (3.0.1) actionpack (>= 5.0) @@ -294,14 +288,12 @@ DEPENDENCIES activeadmin (~> 2.0.0) activeadmin_quill_editor! appraisal (~> 2.4) - brakeman capybara cuprite fasterer pry-rails puma rails (~> 5.2.0) - reek rspec-rails rspec_junit_formatter rubocop diff --git a/gemfiles/rails60_activeadmin.gemfile b/gemfiles/rails60_activeadmin.gemfile index b0f21d9..928f2e4 100644 --- a/gemfiles/rails60_activeadmin.gemfile +++ b/gemfiles/rails60_activeadmin.gemfile @@ -14,9 +14,7 @@ group :development, :test do gem "cuprite" gem "rspec_junit_formatter" gem "rspec-rails" - gem "brakeman" gem "fasterer" - gem "reek" gem "rubocop" gem "rubocop-packaging" gem "rubocop-performance" diff --git a/gemfiles/rails60_activeadmin.gemfile.lock b/gemfiles/rails60_activeadmin.gemfile.lock index 8f20e2f..0b38a23 100644 --- a/gemfiles/rails60_activeadmin.gemfile.lock +++ b/gemfiles/rails60_activeadmin.gemfile.lock @@ -81,7 +81,6 @@ GEM activesupport (>= 3.0.0, < 7.1) ruby2_keywords (>= 0.0.2, < 1.0) ast (2.4.2) - brakeman (5.2.1) builder (3.2.4) capybara (3.36.0) addressable @@ -143,7 +142,6 @@ GEM activerecord kaminari-core (= 1.2.2) kaminari-core (1.2.2) - kwalify (0.7.2) loofah (2.15.0) crass (~> 1.0.2) nokogiri (>= 1.5.9) @@ -206,10 +204,6 @@ GEM activerecord (>= 6.0.4) activesupport (>= 6.0.4) i18n - reek (6.1.0) - kwalify (~> 0.7.0) - parser (~> 3.1.0) - rainbow (>= 2.0, < 4.0) regexp_parser (2.2.1) responders (3.0.1) actionpack (>= 5.0) @@ -296,14 +290,12 @@ DEPENDENCIES activeadmin activeadmin_quill_editor! appraisal (~> 2.4) - brakeman capybara cuprite fasterer pry-rails puma rails (~> 6.0.0) - reek rspec-rails rspec_junit_formatter rubocop diff --git a/gemfiles/rails60_activeadmin22.gemfile b/gemfiles/rails60_activeadmin22.gemfile index 3fb95e8..9406cc1 100644 --- a/gemfiles/rails60_activeadmin22.gemfile +++ b/gemfiles/rails60_activeadmin22.gemfile @@ -14,9 +14,7 @@ group :development, :test do gem "cuprite" gem "rspec_junit_formatter" gem "rspec-rails" - gem "brakeman" gem "fasterer" - gem "reek" gem "rubocop" gem "rubocop-packaging" gem "rubocop-performance" diff --git a/gemfiles/rails60_activeadmin22.gemfile.lock b/gemfiles/rails60_activeadmin22.gemfile.lock index 0cf7549..f2f09e6 100644 --- a/gemfiles/rails60_activeadmin22.gemfile.lock +++ b/gemfiles/rails60_activeadmin22.gemfile.lock @@ -88,7 +88,6 @@ GEM babel-transpiler (0.7.0) babel-source (>= 4.0, < 6) execjs (~> 2.0) - brakeman (5.2.1) builder (3.2.4) capybara (3.36.0) addressable @@ -151,7 +150,6 @@ GEM activerecord kaminari-core (= 1.2.2) kaminari-core (1.2.2) - kwalify (0.7.2) loofah (2.15.0) crass (~> 1.0.2) nokogiri (>= 1.5.9) @@ -214,10 +212,6 @@ GEM activerecord (>= 6.0.4) activesupport (>= 6.0.4) i18n - reek (6.1.0) - kwalify (~> 0.7.0) - parser (~> 3.1.0) - rainbow (>= 2.0, < 4.0) regexp_parser (2.2.1) responders (3.0.1) actionpack (>= 5.0) @@ -315,14 +309,12 @@ DEPENDENCIES activeadmin (~> 2.2.0) activeadmin_quill_editor! appraisal (~> 2.4) - brakeman capybara cuprite fasterer pry-rails puma rails (~> 6.0.0) - reek rspec-rails rspec_junit_formatter rubocop diff --git a/gemfiles/rails61_activeadmin.gemfile b/gemfiles/rails61_activeadmin.gemfile index f09f9a9..efa810e 100644 --- a/gemfiles/rails61_activeadmin.gemfile +++ b/gemfiles/rails61_activeadmin.gemfile @@ -14,9 +14,7 @@ group :development, :test do gem "cuprite" gem "rspec_junit_formatter" gem "rspec-rails" - gem "brakeman" gem "fasterer" - gem "reek" gem "rubocop" gem "rubocop-packaging" gem "rubocop-performance" diff --git a/gemfiles/rails61_activeadmin.gemfile.lock b/gemfiles/rails61_activeadmin.gemfile.lock index 83d5e9d..e4cacaf 100644 --- a/gemfiles/rails61_activeadmin.gemfile.lock +++ b/gemfiles/rails61_activeadmin.gemfile.lock @@ -85,7 +85,6 @@ GEM activesupport (>= 3.0.0, < 7.1) ruby2_keywords (>= 0.0.2, < 1.0) ast (2.4.2) - brakeman (5.2.1) builder (3.2.4) capybara (3.36.0) addressable @@ -146,7 +145,6 @@ GEM activerecord kaminari-core (= 1.2.2) kaminari-core (1.2.2) - kwalify (0.7.2) loofah (2.15.0) crass (~> 1.0.2) nokogiri (>= 1.5.9) @@ -209,10 +207,6 @@ GEM activerecord (>= 6.0.4) activesupport (>= 6.0.4) i18n - reek (6.1.0) - kwalify (~> 0.7.0) - parser (~> 3.1.0) - rainbow (>= 2.0, < 4.0) regexp_parser (2.2.1) responders (3.0.1) actionpack (>= 5.0) @@ -293,14 +287,12 @@ DEPENDENCIES activeadmin activeadmin_quill_editor! appraisal (~> 2.4) - brakeman capybara cuprite fasterer pry-rails puma rails (~> 6.1.0) - reek rspec-rails rspec_junit_formatter rubocop diff --git a/gemfiles/rails61_activeadmin29.gemfile b/gemfiles/rails61_activeadmin29.gemfile index 8a2479a..6cc8517 100644 --- a/gemfiles/rails61_activeadmin29.gemfile +++ b/gemfiles/rails61_activeadmin29.gemfile @@ -13,9 +13,7 @@ group :development, :test do gem "cuprite" gem "rspec_junit_formatter" gem "rspec-rails" - gem "brakeman" gem "fasterer" - gem "reek" gem "rubocop" gem "rubocop-packaging" gem "rubocop-performance" diff --git a/gemfiles/rails61_activeadmin29.gemfile.lock b/gemfiles/rails61_activeadmin29.gemfile.lock index 9404222..0c6ebe0 100644 --- a/gemfiles/rails61_activeadmin29.gemfile.lock +++ b/gemfiles/rails61_activeadmin29.gemfile.lock @@ -85,7 +85,6 @@ GEM activesupport (>= 3.0.0, < 7.1) ruby2_keywords (>= 0.0.2, < 1.0) ast (2.4.2) - brakeman (5.2.1) builder (3.2.4) capybara (3.36.0) addressable @@ -146,7 +145,6 @@ GEM activerecord kaminari-core (= 1.2.2) kaminari-core (1.2.2) - kwalify (0.7.2) loofah (2.15.0) crass (~> 1.0.2) nokogiri (>= 1.5.9) @@ -209,10 +207,6 @@ GEM activerecord (>= 6.0.4) activesupport (>= 6.0.4) i18n - reek (6.1.0) - kwalify (~> 0.7.0) - parser (~> 3.1.0) - rainbow (>= 2.0, < 4.0) regexp_parser (2.2.1) responders (3.0.1) actionpack (>= 5.0) @@ -293,14 +287,12 @@ DEPENDENCIES activeadmin (~> 2.9.0) activeadmin_quill_editor! appraisal (~> 2.4) - brakeman capybara cuprite fasterer pry-rails puma rails (~> 6.1.0) - reek rspec-rails rspec_junit_formatter rubocop diff --git a/gemfiles/rails70_activeadmin.gemfile b/gemfiles/rails70_activeadmin.gemfile index c91eb4b..4674116 100644 --- a/gemfiles/rails70_activeadmin.gemfile +++ b/gemfiles/rails70_activeadmin.gemfile @@ -14,9 +14,7 @@ group :development, :test do gem "cuprite" gem "rspec_junit_formatter" gem "rspec-rails" - gem "brakeman" gem "fasterer" - gem "reek" gem "rubocop" gem "rubocop-packaging" gem "rubocop-performance" diff --git a/gemfiles/rails70_activeadmin.gemfile.lock b/gemfiles/rails70_activeadmin.gemfile.lock index fb5dde8..6b1ad8d 100644 --- a/gemfiles/rails70_activeadmin.gemfile.lock +++ b/gemfiles/rails70_activeadmin.gemfile.lock @@ -91,7 +91,6 @@ GEM activesupport (>= 3.0.0, < 7.1) ruby2_keywords (>= 0.0.2, < 1.0) ast (2.4.2) - brakeman (5.2.1) builder (3.2.4) capybara (3.36.0) addressable @@ -154,7 +153,6 @@ GEM activerecord kaminari-core (= 1.2.2) kaminari-core (1.2.2) - kwalify (0.7.2) loofah (2.15.0) crass (~> 1.0.2) nokogiri (>= 1.5.9) @@ -232,10 +230,6 @@ GEM activerecord (>= 6.0.4) activesupport (>= 6.0.4) i18n - reek (6.1.0) - kwalify (~> 0.7.0) - parser (~> 3.1.0) - rainbow (>= 2.0, < 4.0) regexp_parser (2.2.1) responders (3.0.1) actionpack (>= 5.0) @@ -318,14 +312,12 @@ DEPENDENCIES activeadmin activeadmin_quill_editor! appraisal (~> 2.4) - brakeman capybara cuprite fasterer pry-rails puma rails (~> 7.0.0) - reek rspec-rails rspec_junit_formatter rubocop From 6d0599c39ebea4b63531fc38379564862e940898 Mon Sep 17 00:00:00 2001 From: Mattia Roccoberton Date: Sat, 26 Mar 2022 19:45:11 +0100 Subject: [PATCH 09/12] Minor improvements --- .fasterer.yml | 1 + .rubocop.yml | 19 ------------------- LICENSE.txt | 2 +- README.md | 6 ++++-- 4 files changed, 6 insertions(+), 22 deletions(-) diff --git a/.fasterer.yml b/.fasterer.yml index c8f73c0..582fe4c 100644 --- a/.fasterer.yml +++ b/.fasterer.yml @@ -2,5 +2,6 @@ exclude_paths: - bin/* - db/schema.rb + - gemfiles/**/* - spec/dummy/**/* - vendor/**/* diff --git a/.rubocop.yml b/.rubocop.yml index 5a2fff3..b0c80ba 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -17,16 +17,6 @@ AllCops: - vendor/**/* NewCops: enable -Gemspec/RequiredRubyVersion: - Enabled: false - -Naming/FileName: - Enabled: false - -Layout/LineLength: - Enabled: true - Max: 120 - RSpec/ExampleLength: # default 5 Max: 12 @@ -34,12 +24,3 @@ RSpec/ExampleLength: RSpec/MultipleExpectations: # default 1 Max: 4 - -Style/HashEachMethods: - Enabled: true - -Style/HashTransformKeys: - Enabled: true - -Style/HashTransformValues: - Enabled: true diff --git a/LICENSE.txt b/LICENSE.txt index 3578226..e46e955 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,4 +1,4 @@ -Copyright (c) 2017-2020 Mattia Roccoberton +Copyright (c) 2017-2022 Mattia Roccoberton Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/README.md b/README.md index 7e232f7..a191d8b 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,10 @@ # ActiveAdmin Quill Editor [![gem version](https://badge.fury.io/rb/activeadmin_quill_editor.svg)](https://badge.fury.io/rb/activeadmin_quill_editor) [![gem downloads](https://badgen.net/rubygems/dt/activeadmin_quill_editor)](https://rubygems.org/gems/activeadmin_quill_editor) -[![Linters](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/linters.yml/badge.svg)](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/linters.yml) -[![specs](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs.yml/badge.svg)](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs.yml) +[![linters](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/linters.yml/badge.svg)](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/linters.yml) +[![specs Rails 6.0](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs_rails60.yml/badge.svg)](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs_rails60.yml) +[![specs Rails 6.1](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs_rails61.yml/badge.svg)](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs_rails61.yml) +[![specs Rails 7.0](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs_rails70.yml/badge.svg)](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs_rails70.yml) An Active Admin plugin to use [Quill Rich Text Editor](https://github.com/quilljs/quill) in form fields. From 597cae7adb7635d3f2bc0d5d970c48a81a221222 Mon Sep 17 00:00:00 2001 From: Mattia Roccoberton Date: Sun, 27 Mar 2022 11:07:06 +0200 Subject: [PATCH 10/12] Test the Quill JS presence and version --- lib/activeadmin/quill_editor/version.rb | 1 + spec/system/quill_js_spec.rb | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 spec/system/quill_js_spec.rb diff --git a/lib/activeadmin/quill_editor/version.rb b/lib/activeadmin/quill_editor/version.rb index 43e9686..c23ade6 100644 --- a/lib/activeadmin/quill_editor/version.rb +++ b/lib/activeadmin/quill_editor/version.rb @@ -3,5 +3,6 @@ module ActiveAdmin module QuillEditor VERSION = '0.3.4' + QUILL_VERSION = '1.3.7' end end diff --git a/spec/system/quill_js_spec.rb b/spec/system/quill_js_spec.rb new file mode 100644 index 0000000..50c93ba --- /dev/null +++ b/spec/system/quill_js_spec.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +RSpec.describe 'Quill JS', type: :system do + it 'has a Javascript function defined and returns the version', :aggregate_failures do + visit '/admin/posts' + + expect(page.evaluate_script('typeof Quill')).to eq 'function' + expect(page.evaluate_script('Quill.version')).to eq(ActiveAdmin::QuillEditor::QUILL_VERSION) + end +end From c560dd5c60a80728a4c6bb2654c5b27b9834f83f Mon Sep 17 00:00:00 2001 From: Mattia Roccoberton Date: Tue, 19 Apr 2022 21:38:28 +0200 Subject: [PATCH 11/12] Changelog update --- CHANGELOG.md | 54 ++++++++++++++++++++++++++++++++ README.md | 5 ++- activeadmin_quill_editor.gemspec | 4 ++- 3 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..53884db --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,54 @@ +# Quill Editor for ActiveAdmin + +An Active Admin plugin to use Quill Rich Text Editor. + +## v1.0.0 - 2022-04-18 + +- Set minimum Ruby version to 2.6.0 +- Remove `sassc` dependency +- Enable Ruby 3.0 specs support +- Enable Rails 7.0 specs support +- Internal improvements + +## v0.3.4 - 2021-03-16 + +- Fix editor loading with Turbolinks + +## v0.3.2 - 2021-03-14 + +- Specs improvements +- Minor internal changes + +## v0.3.0 - 2020-10-01 + +- Add Webpacker support + +## v0.2.14 - 2020-09-10 + +- JS: enable strict directive +- Minor specs improvement + +## v0.2.12 - 2020-09-08 + +- JS refactoring + +## v0.2.10 - 2020-09-05 + +- Include Image Uploader plugin + +## v0.2.9 - 2020-09-04 + +- Fix not working alignments (issue #8) +- Fix empty editor problem which produces `


` (pull request #9) + +## v0.2.8 - 2020-09-03 + +- Minor style improvements +- Add specs for editor in nested resources +- Add Rubocop and remove SimpleCov gems + +## v0.2.4 - 2020-09-01 + +- Update Quill editor to version 1.3.7 +- Add minimum specs (using RSpec) +- Minor internal changes diff --git a/README.md b/README.md index a191d8b..652df72 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ [![gem version](https://badge.fury.io/rb/activeadmin_quill_editor.svg)](https://badge.fury.io/rb/activeadmin_quill_editor) [![gem downloads](https://badgen.net/rubygems/dt/activeadmin_quill_editor)](https://rubygems.org/gems/activeadmin_quill_editor) [![linters](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/linters.yml/badge.svg)](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/linters.yml) -[![specs Rails 6.0](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs_rails60.yml/badge.svg)](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs_rails60.yml) [![specs Rails 6.1](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs_rails61.yml/badge.svg)](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs_rails61.yml) [![specs Rails 7.0](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs_rails70.yml/badge.svg)](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs_rails70.yml) @@ -98,6 +97,10 @@ Consider that this is just a basic example: images are uploaded as soon as they the *upload_admin_post_path*) and it doesn't provide a way to remove images (just deleting them from the editor will not destroy them, you'll need to implement a purge logic for that). +## Changelog + +The changelog is available [here](CHANGELOG.md). + ## Do you like it? Star it! If you use this component just star it. A developer is more motivated to improve a project when there is some interest. My other [Active Admin components](https://github.com/blocknotes?utf8=✓&tab=repositories&q=activeadmin&type=source). diff --git a/activeadmin_quill_editor.gemspec b/activeadmin_quill_editor.gemspec index 9a47c28..561871d 100644 --- a/activeadmin_quill_editor.gemspec +++ b/activeadmin_quill_editor.gemspec @@ -16,8 +16,10 @@ Gem::Specification.new do |spec| spec.required_ruby_version = '>= 2.6.0' - spec.metadata['homepage_uri'] = spec.homepage + spec.metadata['homepage_uri'] = spec.homepage + spec.metadata['changelog_uri'] = 'https://github.com/blocknotes/activeadmin_quill_editor/blob/master/CHANGELOG.md' spec.metadata['source_code_uri'] = spec.homepage + spec.metadata['rubygems_mfa_required'] = 'true' spec.files = Dir['{app,lib}/**/*', 'LICENSE.txt', 'Rakefile', 'README.md'] From 38e5406d5d32cc07777b83530ed438b9c6a6adb8 Mon Sep 17 00:00:00 2001 From: Mattia Roccoberton Date: Tue, 19 Apr 2022 21:39:26 +0200 Subject: [PATCH 12/12] Bump to version 1.0.0 --- gemfiles/rails52_activeadmin20.gemfile.lock | 2 +- gemfiles/rails60_activeadmin.gemfile.lock | 2 +- gemfiles/rails60_activeadmin22.gemfile.lock | 2 +- gemfiles/rails61_activeadmin.gemfile | 1 - gemfiles/rails61_activeadmin.gemfile.lock | 3 +-- gemfiles/rails61_activeadmin29.gemfile.lock | 2 +- gemfiles/rails70_activeadmin.gemfile.lock | 2 +- lib/activeadmin/quill_editor/version.rb | 2 +- package.json | 2 +- 9 files changed, 8 insertions(+), 10 deletions(-) diff --git a/gemfiles/rails52_activeadmin20.gemfile.lock b/gemfiles/rails52_activeadmin20.gemfile.lock index f0eeedb..c25b6a0 100644 --- a/gemfiles/rails52_activeadmin20.gemfile.lock +++ b/gemfiles/rails52_activeadmin20.gemfile.lock @@ -1,7 +1,7 @@ PATH remote: .. specs: - activeadmin_quill_editor (0.3.4) + activeadmin_quill_editor (1.0.0) activeadmin (~> 2.0) GEM diff --git a/gemfiles/rails60_activeadmin.gemfile.lock b/gemfiles/rails60_activeadmin.gemfile.lock index 0b38a23..3647b97 100644 --- a/gemfiles/rails60_activeadmin.gemfile.lock +++ b/gemfiles/rails60_activeadmin.gemfile.lock @@ -1,7 +1,7 @@ PATH remote: .. specs: - activeadmin_quill_editor (0.3.4) + activeadmin_quill_editor (1.0.0) activeadmin (~> 2.0) GEM diff --git a/gemfiles/rails60_activeadmin22.gemfile.lock b/gemfiles/rails60_activeadmin22.gemfile.lock index f2f09e6..dfe6daf 100644 --- a/gemfiles/rails60_activeadmin22.gemfile.lock +++ b/gemfiles/rails60_activeadmin22.gemfile.lock @@ -1,7 +1,7 @@ PATH remote: .. specs: - activeadmin_quill_editor (0.3.4) + activeadmin_quill_editor (1.0.0) activeadmin (~> 2.0) GEM diff --git a/gemfiles/rails61_activeadmin.gemfile b/gemfiles/rails61_activeadmin.gemfile index efa810e..f64b04e 100644 --- a/gemfiles/rails61_activeadmin.gemfile +++ b/gemfiles/rails61_activeadmin.gemfile @@ -4,7 +4,6 @@ source "https://rubygems.org" gem "activeadmin" gem "rails", "~> 6.1.0" -gem "sprockets-rails" group :development, :test do gem "puma" diff --git a/gemfiles/rails61_activeadmin.gemfile.lock b/gemfiles/rails61_activeadmin.gemfile.lock index e4cacaf..faf1426 100644 --- a/gemfiles/rails61_activeadmin.gemfile.lock +++ b/gemfiles/rails61_activeadmin.gemfile.lock @@ -1,7 +1,7 @@ PATH remote: .. specs: - activeadmin_quill_editor (0.3.4) + activeadmin_quill_editor (1.0.0) activeadmin (~> 2.0) GEM @@ -301,7 +301,6 @@ DEPENDENCIES rubocop-rails rubocop-rspec sassc - sprockets-rails sqlite3 BUNDLED WITH diff --git a/gemfiles/rails61_activeadmin29.gemfile.lock b/gemfiles/rails61_activeadmin29.gemfile.lock index 0c6ebe0..6394487 100644 --- a/gemfiles/rails61_activeadmin29.gemfile.lock +++ b/gemfiles/rails61_activeadmin29.gemfile.lock @@ -1,7 +1,7 @@ PATH remote: .. specs: - activeadmin_quill_editor (0.3.4) + activeadmin_quill_editor (1.0.0) activeadmin (~> 2.0) GEM diff --git a/gemfiles/rails70_activeadmin.gemfile.lock b/gemfiles/rails70_activeadmin.gemfile.lock index 6b1ad8d..4a6a62b 100644 --- a/gemfiles/rails70_activeadmin.gemfile.lock +++ b/gemfiles/rails70_activeadmin.gemfile.lock @@ -1,7 +1,7 @@ PATH remote: .. specs: - activeadmin_quill_editor (0.3.4) + activeadmin_quill_editor (1.0.0) activeadmin (~> 2.0) GEM diff --git a/lib/activeadmin/quill_editor/version.rb b/lib/activeadmin/quill_editor/version.rb index c23ade6..a7e8817 100644 --- a/lib/activeadmin/quill_editor/version.rb +++ b/lib/activeadmin/quill_editor/version.rb @@ -2,7 +2,7 @@ module ActiveAdmin module QuillEditor - VERSION = '0.3.4' + VERSION = '1.0.0' QUILL_VERSION = '1.3.7' end end diff --git a/package.json b/package.json index c77be8d..8669aa1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "activeadmin_quill_editor", - "version": "0.3.4", + "version": "1.0.0", "description": "Quill Editor for ActiveAdmin", "author": "Mattia Roccoberton ", "license": "MIT",