forked from vjt/instrumenter
-
Notifications
You must be signed in to change notification settings - Fork 0
Modernize instrumenter #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
72eaf0d
Fix RuboCop offenses
tagliala ef63f58
Commit
tagliala 74e2b1f
Add CI
tagliala 2a83c9e
Fix
tagliala 916f91e
rails only
tagliala 25f91e4
Fix
tagliala 2c7871f
fix version
tagliala f8e82fb
Fix regression
tagliala File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| .rubocop_todo.yml linguist-generated |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| name: RuboCop | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ master ] | ||
| pull_request: | ||
| branches: [ master ] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| rubocop: | ||
| name: RuboCop | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - name: Set up Ruby | ||
| uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: '4.0' | ||
| bundler-cache: true | ||
| - name: RuboCop | ||
| run: bundle exec rubocop -f github | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,88 @@ | ||
| name: Ruby specs | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ master ] | ||
| pull_request: | ||
| branches: [ master ] | ||
|
tagliala marked this conversation as resolved.
|
||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| test: | ||
| name: Ruby specs | ||
| runs-on: ubuntu-latest | ||
|
|
||
| strategy: | ||
| matrix: | ||
| ruby-version: ['3.0', '3.1', '3.2', '3.3', '3.4', '4.0'] | ||
| gemfile: [rails_7.0, rails_7.1, rails_7.2, rails_8.0, rails_8.1] | ||
| channel: [stable] | ||
|
|
||
| include: | ||
| - ruby-version: '3.3' | ||
| gemfile: rails_edge | ||
| channel: experimental | ||
|
|
||
| - ruby-version: '3.4' | ||
| gemfile: rails_edge | ||
| channel: experimental | ||
|
|
||
| - ruby-version: '4.0' | ||
| gemfile: rails_edge | ||
| channel: experimental | ||
|
|
||
| - ruby-version: 'head' | ||
| gemfile: rails_7.1 | ||
| channel: experimental | ||
| - ruby-version: 'head' | ||
| gemfile: rails_7.2 | ||
| channel: experimental | ||
| - ruby-version: 'head' | ||
| gemfile: rails_8.0 | ||
| channel: experimental | ||
| - ruby-version: 'head' | ||
| gemfile: rails_8.1 | ||
| channel: experimental | ||
| - ruby-version: 'head' | ||
| gemfile: rails_edge | ||
| channel: experimental | ||
|
|
||
| exclude: | ||
| - ruby-version: '3.0' | ||
| gemfile: rails_7.2 | ||
| - ruby-version: '3.0' | ||
| gemfile: rails_8.0 | ||
| - ruby-version: '3.0' | ||
| gemfile: rails_8.1 | ||
|
|
||
| - ruby-version: '3.1' | ||
| gemfile: rails_8.0 | ||
| - ruby-version: '3.1' | ||
| gemfile: rails_8.1 | ||
|
|
||
| - ruby-version: '3.4' | ||
| gemfile: rails_7.0 | ||
|
|
||
| - ruby-version: '4.0' | ||
| gemfile: rails_7.0 | ||
| - ruby-version: '4.0' | ||
| gemfile: rails_7.1 | ||
| - ruby-version: '4.0' | ||
| gemfile: rails_7.2 | ||
|
|
||
| env: | ||
| BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile | ||
|
|
||
| continue-on-error: ${{ matrix.channel != 'stable' }} | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - name: Set up Ruby | ||
| uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: ${{ matrix.ruby-version }} | ||
| bundler-cache: true | ||
| - name: Run specs | ||
| run: bundle exec rspec | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,20 @@ | ||
| /.bundle/ | ||
| /.yardoc | ||
| /Gemfile.lock | ||
| /_yardoc/ | ||
| /coverage/ | ||
| /doc/ | ||
| /pkg/ | ||
| /spec/reports/ | ||
| /tmp/ | ||
| *.bundle | ||
| *.so | ||
| *.o | ||
| *.a | ||
| mkmf.log | ||
| # See https://github.com/weppos/gitignore/blob/weppos/Ruby.gitignore | ||
| Gemfile.lock | ||
|
|
||
| coverage | ||
| rdoc | ||
| tmp | ||
|
|
||
| # Bundler | ||
| .bundle | ||
| pkg | ||
|
|
||
| # YARD artifacts | ||
| .yardoc | ||
| _yardoc | ||
| doc/ | ||
|
|
||
| gemfiles/*.lock | ||
| bin/test | ||
|
|
||
| spec/examples.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| --require spec_helper | ||
| --color |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| inherit_from: .rubocop_todo.yml | ||
|
|
||
| plugins: | ||
| - rubocop-packaging | ||
| - rubocop-performance | ||
| - rubocop-rake | ||
| - rubocop-rspec | ||
|
|
||
| AllCops: | ||
| TargetRubyVersion: 3.0 | ||
| NewCops: enable | ||
| Exclude: | ||
| - .git/**/* | ||
| - .github/**/* | ||
| - bin/**/* | ||
| - coverage/**/* | ||
| - doc/**/* | ||
| - gemfiles/* | ||
| - tmp/**/* | ||
| - vendor/**/* | ||
|
|
||
| RSpec/ExampleLength: | ||
| Max: 10 | ||
|
|
||
| RSpec/MultipleExpectations: | ||
| Max: 5 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # frozen_string_literal: true | ||
|
|
||
| appraise 'rails-7.0' do | ||
| gem 'rails', '~> 7.0.0' | ||
| end | ||
|
|
||
| appraise 'rails-7.1' do | ||
| gem 'rails', '~> 7.1.0' | ||
| end | ||
|
|
||
| appraise 'rails-7.2' do | ||
| gem 'rails', '~> 7.2.0' | ||
| end | ||
|
|
||
| appraise 'rails-8.0' do | ||
| gem 'rails', '~> 8.0.0' | ||
| end | ||
|
|
||
| appraise 'rails-8.1' do | ||
| gem 'rails', '~> 8.1.0' | ||
| end | ||
|
|
||
| appraise 'rails-edge' do | ||
| gem 'rails', git: 'https://github.com/rails/rails.git', branch: 'main' | ||
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,20 @@ | ||
| # frozen_string_literal: true | ||
|
|
||
| source 'https://rubygems.org' | ||
|
|
||
| # Specify your gem's dependencies in instrumenter.gemspec | ||
| git_source(:ifad) { |repo| "git@github.com:ifad/#{repo}.git" } | ||
|
|
||
| gem 'appraisal2' | ||
| gem 'byebug' | ||
| gem 'rails' | ||
| gem 'rake' | ||
| gem 'rspec' | ||
| gem 'simplecov' | ||
|
|
||
| gem 'rubocop', require: false | ||
| gem 'rubocop-packaging', require: false | ||
| gem 'rubocop-performance', require: false | ||
| gem 'rubocop-rake', require: false | ||
| gem 'rubocop-rspec', require: false | ||
|
|
||
| gemspec |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,8 @@ | ||
| require "bundler/gem_tasks" | ||
| # frozen_string_literal: true | ||
|
|
||
| require 'bundler/gem_tasks' | ||
| require 'rspec/core/rake_task' | ||
|
|
||
| RSpec::Core::RakeTask.new(:test) | ||
|
|
||
| task default: :test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # This file was generated by Appraisal2 | ||
|
|
||
| source "https://rubygems.org" | ||
|
|
||
| gem "appraisal2" | ||
| gem "byebug" | ||
| gem "rails", "~> 7.0.0" | ||
| gem "rake" | ||
| gem "rspec" | ||
| gem "simplecov" | ||
| gem "rubocop", :require => false | ||
| gem "rubocop-packaging", :require => false | ||
| gem "rubocop-performance", :require => false | ||
| gem "rubocop-rake", :require => false | ||
| gem "rubocop-rspec", :require => false | ||
|
|
||
| gemspec :path => "../" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # This file was generated by Appraisal2 | ||
|
|
||
| source "https://rubygems.org" | ||
|
|
||
| gem "appraisal2" | ||
| gem "byebug" | ||
| gem "rails", "~> 7.1.0" | ||
| gem "rake" | ||
| gem "rspec" | ||
| gem "simplecov" | ||
| gem "rubocop", :require => false | ||
| gem "rubocop-packaging", :require => false | ||
| gem "rubocop-performance", :require => false | ||
| gem "rubocop-rake", :require => false | ||
| gem "rubocop-rspec", :require => false | ||
|
|
||
| gemspec :path => "../" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # This file was generated by Appraisal2 | ||
|
|
||
| source "https://rubygems.org" | ||
|
|
||
| gem "appraisal2" | ||
| gem "byebug" | ||
| gem "rails", "~> 7.2.0" | ||
| gem "rake" | ||
| gem "rspec" | ||
| gem "simplecov" | ||
| gem "rubocop", :require => false | ||
| gem "rubocop-packaging", :require => false | ||
| gem "rubocop-performance", :require => false | ||
| gem "rubocop-rake", :require => false | ||
| gem "rubocop-rspec", :require => false | ||
|
|
||
| gemspec :path => "../" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.