-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
465 additions
and
339 deletions.
There are no files selected for viewing
This file contains 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 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,39 @@ | ||
name: CI macos | ||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
rspec: | ||
name: Unit tests | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- { ruby_version: 2.5 } | ||
- { ruby_version: 2.7 } | ||
- { ruby_version: 3.0 } | ||
- { ruby_version: 3.1 } | ||
- { ruby_version: 3.2 } | ||
- { ruby_version: jruby } | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Set up Ruby ${{ matrix.ruby_version }} | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler: 2 | ||
ruby-version: ${{ matrix.ruby_version }} | ||
|
||
- name: Run specs | ||
run: | | ||
bundle install --jobs 4 --retry 3 --no-cache | ||
bundle exec rspec | ||
- uses: coverallsapp/github-action@v2 | ||
env: | ||
COVERALLS_SERVICE_NUMBER: ${{ github.sha }} | ||
with: | ||
flag-name: ruby-${{ join(matrix.*, '-') }} | ||
parallel: true | ||
|
This file contains 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,38 @@ | ||
name: Coveralls | ||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
coveralls: | ||
name: Coveralls Report | ||
runs-on: ubuntu-latest | ||
if: ${{ always() }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Wait on tests (PR) | ||
uses: lewagon/wait-on-check-action@v1.3.1 | ||
if: github.event_name == 'pull_request' | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
wait-interval: 10 # seconds | ||
running-workflow-name: Coveralls Report | ||
allowed-conclusions: success,skipped,cancelled,failure | ||
|
||
- name: Wait on tests | ||
uses: lewagon/wait-on-check-action@v1.3.1 | ||
with: | ||
ref: ${{ github.sha }} | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
wait-interval: 10 # seconds | ||
running-workflow-name: Coveralls Report | ||
allowed-conclusions: success,skipped,cancelled,failure | ||
|
||
- uses: coverallsapp/github-action@v2 | ||
env: | ||
COVERALLS_SERVICE_NUMBER: ${{ github.sha }} | ||
with: | ||
carryforward: "ruby-2.5,ruby-2.6,ruby-2.7,ruby-3.0,ruby-3.1,ruby-jruby" | ||
parallel-finished: true |
This file contains 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,36 @@ | ||
AllCops: | ||
NewCops: enable | ||
SuggestExtensions: false | ||
|
||
Style/StringLiterals: | ||
EnforcedStyle: double_quotes | ||
|
||
Metrics/BlockLength: | ||
Enabled: false | ||
|
||
Style/Documentation: | ||
Enabled: false | ||
|
||
Layout/LineLength: | ||
Enabled: false | ||
|
||
Naming/FileName: | ||
Enabled: false | ||
|
||
Metrics/MethodLength: | ||
Enabled: false | ||
|
||
Metrics/ClassLength: | ||
Enabled: false | ||
|
||
Metrics/AbcSize: | ||
Enabled: false | ||
|
||
Gemspec/RequiredRubyVersion: | ||
Enabled: false | ||
|
||
Style/SelectByRegexp: | ||
Enabled: false | ||
|
||
Style/CaseLikeIf: | ||
Enabled: false |
This file contains 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,9 +1,16 @@ | ||
# frozen_string_literal: true | ||
|
||
source "https://rubygems.org" | ||
|
||
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } | ||
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" } | ||
|
||
# Specify your gem's dependencies in sentry-sanitizer.gemspec | ||
gemspec | ||
|
||
gem 'simplecov', require: false, group: :test | ||
gem 'simplecov-lcov', require: false, group: :test | ||
gem "rubocop", "~> 1.28.2" | ||
gem "simplecov", require: false, group: :test | ||
|
||
gem "bundler", ">= 1.17" | ||
gem "rack" | ||
gem "rake", "~> 10.0" | ||
gem "rspec", "~> 3.0" |
This file contains 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 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,6 +1,8 @@ | ||
# frozen_string_literal: true | ||
|
||
require "bundler/gem_tasks" | ||
require "rspec/core/rake_task" | ||
|
||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
task :default => :spec | ||
task default: :spec |
This file contains 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,5 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
require "bundler/setup" | ||
require "sentry/sanitizer" | ||
|
This file contains 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,6 @@ | ||
pre-commit: | ||
commands: | ||
lint: | ||
run: bundle exec rubocop -A {staged_files} | ||
glob: "*.rb" | ||
stage_fixed: true |
This file contains 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,4 @@ | ||
require 'sentry/sanitizer/version' | ||
require 'sentry/sanitizer' | ||
# frozen_string_literal: true | ||
|
||
require "sentry/sanitizer/version" | ||
require "sentry/sanitizer" |
This file contains 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,11 +1,13 @@ | ||
require 'sentry-ruby' | ||
require 'sentry/integrable' | ||
require 'sentry/sanitizer/configuration' | ||
# frozen_string_literal: true | ||
|
||
require "sentry-ruby" | ||
require "sentry/integrable" | ||
require "sentry/sanitizer/configuration" | ||
|
||
module Sentry | ||
module Sanitizer | ||
extend Integrable | ||
|
||
register_integration name: 'sanitizer', version: Sentry::Sanitizer::VERSION | ||
register_integration name: "sanitizer", version: Sentry::Sanitizer::VERSION | ||
end | ||
end |
This file contains 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
Oops, something went wrong.