From 5ed0396eb980cff2bb9d156b75c6a4bae00451b5 Mon Sep 17 00:00:00 2001 From: Pieter Oliver Date: Wed, 4 Jun 2025 14:53:51 +0100 Subject: [PATCH 1/6] fix typo in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8491f57..0ef3e3b 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,6 @@ Usage ---------------------------- ```ruby -require 'simplecov-csv' +require 'simplecov-markdown' SimpleCov.formatter = SimpleCov::Formatter::MarkdownFormatter ``` From f307112c1d528d66b17f55a04263d3c77450256d Mon Sep 17 00:00:00 2001 From: Pieter Oliver Date: Wed, 4 Jun 2025 15:33:13 +0100 Subject: [PATCH 2/6] Add in barebones github action --- .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..25efa91 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +name: RSpec CI +on: + push: + branches: + - 'main' + pull_request: + branches: + - '*' +permissions: + contents: read + +jobs: + test: + name: 'Ruby: ${{ matrix.ruby }}' + runs-on: 'ubuntu-latest' + strategy: + fail-fast: false + matrix: + include: +# - ruby: 2.3 # works +# - ruby: 2.4 # works + - ruby: 2.5 # dies +# - ruby: 2.6 +# - ruby: 2.7 +# - ruby: 3.3 +# - ruby: 3.4 + + env: ${{ matrix.env }} + steps: + - uses: actions/checkout@v4 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + - run: bundle install + - run: bundle exec rake spec + continue-on-error: ${{ matrix.allow_failure || false }} \ No newline at end of file From a96429b3c0ad7ccfdf784efbeaaec8a181b66266 Mon Sep 17 00:00:00 2001 From: Pieter Oliver Date: Wed, 4 Jun 2025 15:40:16 +0100 Subject: [PATCH 3/6] get working with ruby 3.1 --- .github/workflows/ci.yml | 3 ++- Gemfile.lock | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 25efa91..cb05178 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,9 +19,10 @@ jobs: include: # - ruby: 2.3 # works # - ruby: 2.4 # works - - ruby: 2.5 # dies +# - ruby: 2.5 # dies # - ruby: 2.6 # - ruby: 2.7 + - ruby: 3.1 # - ruby: 3.3 # - ruby: 3.4 diff --git a/Gemfile.lock b/Gemfile.lock index 176ce34..417257a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -17,7 +17,7 @@ GEM diff-lcs (1.2.5) docile (1.1.5) hirb (0.7.3) - json (2.0.2) + json (2.12.2) rake (10.5.0) rspec (3.5.0) rspec-core (~> 3.5.0) @@ -61,4 +61,4 @@ DEPENDENCIES simplecov-markdown! BUNDLED WITH - 1.12.5 + 1.17.3 From 467bf73e3d8749f55337e8b02633f3795892f133 Mon Sep 17 00:00:00 2001 From: Pieter Oliver Date: Wed, 4 Jun 2025 15:54:44 +0100 Subject: [PATCH 4/6] Get it working for ruby 3.2 --- .github/workflows/ci.yml | 3 +- Gemfile | 6 ++++ Gemfile.lock | 74 ++++++++++++++++++++++------------------ 3 files changed, 49 insertions(+), 34 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cb05178..3cdcf55 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,8 @@ jobs: # - ruby: 2.5 # dies # - ruby: 2.6 # - ruby: 2.7 - - ruby: 3.1 +# - ruby: 3.1 + - ruby: 3.2 # - ruby: 3.3 # - ruby: 3.4 diff --git a/Gemfile b/Gemfile index 26e89e2..9f57ca0 100644 --- a/Gemfile +++ b/Gemfile @@ -2,3 +2,9 @@ source 'https://rubygems.org' # Specify your gem's dependencies in simplecov-markdown.gemspec gemspec +gem 'bundler' +gem 'coveralls' +gem 'rake' # (~> 10.0) +gem 'rspec' +gem 'rspec-temp_dir' # (~> 0.0.3) +gem 'simplecov-console' diff --git a/Gemfile.lock b/Gemfile.lock index 417257a..76bca67 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -8,57 +8,65 @@ GEM remote: https://rubygems.org/ specs: ansi (1.5.0) - coveralls (0.8.15) + bigdecimal (3.2.2) + coveralls (0.8.23) json (>= 1.8, < 3) - simplecov (~> 0.12.0) + simplecov (~> 0.16.1) term-ansicolor (~> 1.3) - thor (~> 0.19.1) - tins (>= 1.6.0, < 2) - diff-lcs (1.2.5) - docile (1.1.5) - hirb (0.7.3) + thor (>= 0.19.4, < 2.0) + tins (~> 1.6) + diff-lcs (1.6.2) + docile (1.4.1) json (2.12.2) - rake (10.5.0) - rspec (3.5.0) - rspec-core (~> 3.5.0) - rspec-expectations (~> 3.5.0) - rspec-mocks (~> 3.5.0) - rspec-core (3.5.3) - rspec-support (~> 3.5.0) - rspec-expectations (3.5.0) + rake (13.3.0) + rspec (3.13.1) + rspec-core (~> 3.13.0) + rspec-expectations (~> 3.13.0) + rspec-mocks (~> 3.13.0) + rspec-core (3.13.4) + rspec-support (~> 3.13.0) + rspec-expectations (3.13.5) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.5.0) - rspec-mocks (3.5.0) + rspec-support (~> 3.13.0) + rspec-mocks (3.13.5) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.5.0) - rspec-support (3.5.0) - rspec-temp_dir (0.0.4) - rspec - simplecov (0.12.0) - docile (~> 1.1.0) + rspec-support (~> 3.13.0) + rspec-support (3.13.4) + rspec-temp_dir (1.1.1) + rspec (>= 3.0) + simplecov (0.16.1) + docile (~> 1.1) json (>= 1.8, < 3) simplecov-html (~> 0.10.0) - simplecov-console (0.3.1) + simplecov-console (0.9.3) ansi - hirb simplecov - simplecov-html (0.10.0) - term-ansicolor (1.3.2) + terminal-table + simplecov-html (0.10.2) + sync (0.5.0) + term-ansicolor (1.11.2) tins (~> 1.0) - thor (0.19.1) - tins (1.12.0) + terminal-table (4.0.0) + unicode-display_width (>= 1.1.1, < 4) + thor (1.3.2) + tins (1.38.0) + bigdecimal + sync + unicode-display_width (3.1.4) + unicode-emoji (~> 4.0, >= 4.0.4) + unicode-emoji (4.0.4) PLATFORMS ruby DEPENDENCIES - bundler (~> 1.0) + bundler coveralls - rake (~> 10.0) + rake rspec - rspec-temp_dir (~> 0.0.3) + rspec-temp_dir simplecov-console simplecov-markdown! BUNDLED WITH - 1.17.3 + 2.6.9 From e9aa9e316ec2ff7ce8add6149d3b616bab1d3999 Mon Sep 17 00:00:00 2001 From: Pieter Oliver Date: Wed, 4 Jun 2025 16:03:13 +0100 Subject: [PATCH 5/6] Get working for ruby 3.4, has a lotta warnings to tidy up --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3cdcf55..00e0114 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,12 +20,12 @@ jobs: # - ruby: 2.3 # works # - ruby: 2.4 # works # - ruby: 2.5 # dies -# - ruby: 2.6 -# - ruby: 2.7 -# - ruby: 3.1 - - ruby: 3.2 +# - ruby: 2.6 # eol +# - ruby: 2.7 # eol +# - ruby: 3.1 # eol +# - ruby: 3.2 # - ruby: 3.3 -# - ruby: 3.4 + - ruby: 3.4 env: ${{ matrix.env }} steps: From 84fbf0caa9c4abb6c7cd04edb57484f5815fae1f Mon Sep 17 00:00:00 2001 From: Pieter Oliver Date: Wed, 4 Jun 2025 16:14:16 +0100 Subject: [PATCH 6/6] Add to matrix nearly only supported ruby versions --- .github/workflows/ci.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 00e0114..987f9fb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,14 +17,9 @@ jobs: fail-fast: false matrix: include: -# - ruby: 2.3 # works -# - ruby: 2.4 # works -# - ruby: 2.5 # dies -# - ruby: 2.6 # eol -# - ruby: 2.7 # eol -# - ruby: 3.1 # eol -# - ruby: 3.2 -# - ruby: 3.3 + - ruby: 3.1 # eol + - ruby: 3.2 + - ruby: 3.3 - ruby: 3.4 env: ${{ matrix.env }}