From f248f21767df3806c80f3d18b922ac1282f6f72a Mon Sep 17 00:00:00 2001 From: Andy Pfister Date: Mon, 15 Jan 2024 14:11:57 +0100 Subject: [PATCH] Setup `standardrb` --- .github/workflows/ci.yml | 18 +++++ .gitignore | 2 +- .ruby-version | 2 +- Gemfile | 1 + Gemfile.lock | 146 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 167 insertions(+), 2 deletions(-) create mode 100644 Gemfile.lock diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 75f0aea..221afb8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,20 @@ name: CI on: [ push, pull_request ] jobs: + standard: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.6 # keep it on the lowest supported Ruby version + bundler-cache: true + + - name: Run Standard + run: bundle exec standardrb + tests: runs-on: ubuntu-latest strategy: @@ -39,6 +53,10 @@ jobs: steps: - uses: actions/checkout@v4 + # we otherwise run into issues with different versions of actionpack / activesupport with Appraisal + - name: Remove Gemfile.lock + run: rm Gemfile.lock + - name: Set up Ruby uses: ruby/setup-ruby@v1 with: diff --git a/.gitignore b/.gitignore index a8c13c5..931b79b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ *.gem .bundle pkg/* -*.lock +gemfiles/*.lock coverage diff --git a/.ruby-version b/.ruby-version index 6a81b4c..a04abec 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.7.8 +2.6.10 diff --git a/Gemfile b/Gemfile index e45e8a9..ff8b692 100644 --- a/Gemfile +++ b/Gemfile @@ -3,3 +3,4 @@ source "http://rubygems.org" # Specify your gem's dependencies in datatrans.gemspec gemspec gem "simplecov", group: :test, require: nil +gem "standard", group: :development, require: false diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..c1c6fa0 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,146 @@ +PATH + remote: . + specs: + datatrans (5.1.0) + activesupport (>= 5.2) + builder + httparty + i18n + multi_xml (>= 0.5.1) + +GEM + remote: http://rubygems.org/ + specs: + 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) + 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) + activesupport (6.1.5) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 1.6, < 2) + minitest (>= 5.1) + tzinfo (~> 2.0) + zeitwerk (~> 2.3) + appraisal (2.4.1) + bundler + rake + thor (>= 0.14.0) + ast (2.4.2) + builder (3.2.4) + concurrent-ruby (1.1.10) + crass (1.0.6) + diff-lcs (1.5.0) + docile (1.4.0) + erubi (1.10.0) + httparty (0.20.0) + mime-types (~> 3.0) + multi_xml (>= 0.5.2) + i18n (1.10.0) + concurrent-ruby (~> 1.0) + json (2.7.1) + language_server-protocol (3.17.0.3) + lint_roller (1.1.0) + loofah (2.16.0) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mime-types (3.4.1) + mime-types-data (~> 3.2015) + mime-types-data (3.2022.0105) + minitest (5.15.0) + multi_xml (0.6.0) + nokogiri (1.13.4-x86_64-darwin) + racc (~> 1.4) + parallel (1.24.0) + parser (3.3.0.3) + ast (~> 2.4.1) + racc + racc (1.6.0) + rack (2.2.3) + rack-test (1.1.0) + rack (>= 1.0, < 3) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.4.2) + loofah (~> 2.3) + rainbow (3.1.1) + rake (13.0.6) + regexp_parser (2.9.0) + rexml (3.2.6) + rspec (3.11.0) + rspec-core (~> 3.11.0) + rspec-expectations (~> 3.11.0) + rspec-mocks (~> 3.11.0) + 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.1) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.11.0) + rspec-support (3.11.0) + rubocop (1.50.2) + json (~> 2.3) + parallel (~> 1.10) + parser (>= 3.2.0.0) + rainbow (>= 2.2.2, < 4.0) + regexp_parser (>= 1.8, < 3.0) + rexml (>= 3.2.5, < 4.0) + rubocop-ast (>= 1.28.0, < 2.0) + ruby-progressbar (~> 1.7) + unicode-display_width (>= 2.4.0, < 3.0) + rubocop-ast (1.30.0) + parser (>= 3.2.1.0) + rubocop-performance (1.16.0) + rubocop (>= 1.7.0, < 2.0) + rubocop-ast (>= 0.4.0) + ruby-progressbar (1.13.0) + simplecov (0.21.2) + docile (~> 1.1) + simplecov-html (~> 0.11) + simplecov_json_formatter (~> 0.1) + simplecov-html (0.12.3) + simplecov_json_formatter (0.1.4) + standard (1.28.5) + language_server-protocol (~> 3.17.0.2) + lint_roller (~> 1.0) + rubocop (~> 1.50.2) + standard-custom (~> 1.0.0) + standard-performance (~> 1.0.1) + standard-custom (1.0.2) + lint_roller (~> 1.0) + rubocop (~> 1.50) + standard-performance (1.0.1) + lint_roller (~> 1.0) + rubocop-performance (~> 1.16.0) + thor (1.2.1) + tzinfo (2.0.4) + concurrent-ruby (~> 1.0) + unicode-display_width (2.5.0) + zeitwerk (2.5.4) + +PLATFORMS + x86_64-darwin-20 + x86_64-darwin-21 + +DEPENDENCIES + actionpack (>= 5.2) + appraisal + datatrans! + rake + rspec + simplecov + standard + +BUNDLED WITH + 2.3.3