-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,9 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
ruby: | ||
- 3.0 | ||
- 3.1 | ||
- 3.2 | ||
- 3.3 | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
require: | ||
- rubocop-performance | ||
|
||
AllCops: | ||
NewCops: enable | ||
TargetRubyVersion: 3.1 | ||
|
||
Style/Documentation: | ||
Enabled: false | ||
|
||
Gemspec/DevelopmentDependencies: | ||
Enabled: false | ||
|
||
Naming/FileName: | ||
Exclude: | ||
- 'lib/appsignal-sourcemap.rb' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
source "https://rubygems.org" | ||
source 'https://rubygems.org' | ||
Check failure on line 3 in Gemfile GitHub Actions / standardrb[standardrb] Gemfile#L3
Raw output
|
||
|
||
gemspec |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,28 @@ | ||
# frozen_string_literal: true | ||
|
||
$LOAD_PATH.push File.expand_path("lib", __dir__) | ||
$LOAD_PATH.push File.expand_path('lib', __dir__) | ||
Check failure on line 3 in appsignal-sourcemap.gemspec GitHub Actions / standardrb[standardrb] appsignal-sourcemap.gemspec#L3
Raw output
|
||
|
||
# Maintain your gem's version: | ||
require "appsignal/sourcemap/version" | ||
require 'appsignal/sourcemap/version' | ||
Check failure on line 6 in appsignal-sourcemap.gemspec GitHub Actions / standardrb[standardrb] appsignal-sourcemap.gemspec#L6
Raw output
|
||
|
||
# Describe your gem and declare its dependencies: | ||
Gem::Specification.new do |spec| | ||
spec.name = "appsignal-sourcemap" | ||
spec.name = 'appsignal-sourcemap' | ||
Check failure on line 10 in appsignal-sourcemap.gemspec GitHub Actions / standardrb[standardrb] appsignal-sourcemap.gemspec#L10
Raw output
|
||
spec.version = Appsignal::Sourcemap::VERSION | ||
spec.authors = ["Drieam"] | ||
spec.email = ["[email protected]"] | ||
spec.homepage = "https://github.com/drieam/appsignal-sourcemap" | ||
spec.summary = "Upload private sourcemaps to appsignal" | ||
spec.authors = ['Drieam'] | ||
Check failure on line 12 in appsignal-sourcemap.gemspec GitHub Actions / standardrb[standardrb] appsignal-sourcemap.gemspec#L12
Raw output
|
||
spec.email = ['[email protected]'] | ||
Check failure on line 13 in appsignal-sourcemap.gemspec GitHub Actions / standardrb[standardrb] appsignal-sourcemap.gemspec#L13
Raw output
|
||
spec.homepage = 'https://github.com/drieam/appsignal-sourcemap' | ||
Check failure on line 14 in appsignal-sourcemap.gemspec GitHub Actions / standardrb[standardrb] appsignal-sourcemap.gemspec#L14
Raw output
|
||
spec.summary = 'Upload private sourcemaps to appsignal' | ||
Check failure on line 15 in appsignal-sourcemap.gemspec GitHub Actions / standardrb[standardrb] appsignal-sourcemap.gemspec#L15
Raw output
|
||
|
||
spec.metadata["allowed_push_host"] = "https://rubygems.pkg.github.com/Drieam" | ||
spec.metadata['allowed_push_host'] = 'https://rubygems.pkg.github.com/Drieam' | ||
Check failure on line 17 in appsignal-sourcemap.gemspec GitHub Actions / standardrb[standardrb] appsignal-sourcemap.gemspec#L17
Raw output
Check failure on line 17 in appsignal-sourcemap.gemspec GitHub Actions / standardrb[standardrb] appsignal-sourcemap.gemspec#L17
Raw output
|
||
|
||
spec.required_ruby_version = ">= 2.7" | ||
spec.required_ruby_version = '>= 3.1' | ||
Check failure on line 19 in appsignal-sourcemap.gemspec GitHub Actions / standardrb[standardrb] appsignal-sourcemap.gemspec#L19
Raw output
|
||
|
||
spec.files = Dir["lib/**/*", "README.md"] | ||
spec.files = Dir['lib/**/*', 'README.md'] | ||
Check failure on line 21 in appsignal-sourcemap.gemspec GitHub Actions / standardrb[standardrb] appsignal-sourcemap.gemspec#L21
Raw output
Check failure on line 21 in appsignal-sourcemap.gemspec GitHub Actions / standardrb[standardrb] appsignal-sourcemap.gemspec#L21
Raw output
|
||
|
||
spec.add_dependency "appsignal", "~> 3.0" | ||
spec.add_dependency "parallel", "~> 1.0" | ||
spec.add_dependency 'appsignal', '~> 3.0' | ||
Check failure on line 23 in appsignal-sourcemap.gemspec GitHub Actions / standardrb[standardrb] appsignal-sourcemap.gemspec#L23
Raw output
Check failure on line 23 in appsignal-sourcemap.gemspec GitHub Actions / standardrb[standardrb] appsignal-sourcemap.gemspec#L23
Raw output
|
||
spec.add_dependency 'parallel', '~> 1.0' | ||
Check failure on line 24 in appsignal-sourcemap.gemspec GitHub Actions / standardrb[standardrb] appsignal-sourcemap.gemspec#L24
Raw output
Check failure on line 24 in appsignal-sourcemap.gemspec GitHub Actions / standardrb[standardrb] appsignal-sourcemap.gemspec#L24
Raw output
|
||
|
||
spec.add_development_dependency "standard" | ||
spec.add_development_dependency 'standard' | ||
Check failure on line 26 in appsignal-sourcemap.gemspec GitHub Actions / standardrb[standardrb] appsignal-sourcemap.gemspec#L26
Raw output
|
||
spec.metadata['rubygems_mfa_required'] = 'true' | ||
Check failure on line 27 in appsignal-sourcemap.gemspec GitHub Actions / standardrb[standardrb] appsignal-sourcemap.gemspec#L27
Raw output
Check failure on line 27 in appsignal-sourcemap.gemspec GitHub Actions / standardrb[standardrb] appsignal-sourcemap.gemspec#L27
Raw output
|
||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
require "appsignal/sourcemap/hook" | ||
require 'appsignal/sourcemap/hook' | ||
Check failure on line 3 in lib/appsignal-sourcemap.rb GitHub Actions / standardrb[standardrb] lib/appsignal-sourcemap.rb#L3
Raw output
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# frozen_string_literal: true | ||
|
||
module Appsignal | ||
module Sourcemap | ||
class Base | ||
private | ||
|
||
def log_appsignal(message, type = 'info') | ||
Check failure on line 8 in lib/appsignal/sourcemap/base.rb GitHub Actions / standardrb[standardrb] lib/appsignal/sourcemap/base.rb#L8
Raw output
|
||
log_method = Appsignal.respond_to?(:internal_logger) ? 'internal_logger' : 'logger' | ||
Check failure on line 9 in lib/appsignal/sourcemap/base.rb GitHub Actions / standardrb[standardrb] lib/appsignal/sourcemap/base.rb#L9
Raw output
Check failure on line 9 in lib/appsignal/sourcemap/base.rb GitHub Actions / standardrb[standardrb] lib/appsignal/sourcemap/base.rb#L9
Raw output
|
||
Appsignal.send(log_method).send(type, message) | ||
end | ||
end | ||
end | ||
end |