Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
ruby-version: ['3.2.2']
ruby-version: ['3.4', '4.0']

steps:
- uses: actions/checkout@v3
Expand Down
12 changes: 6 additions & 6 deletions danger-xcode_summary.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = '>= 2.4.0'

spec.add_dependency 'danger-plugin-api', '~> 1.0'
spec.add_dependency 'xcresult', '~> 0.2.2'
spec.add_dependency 'xcresult'

# General ruby development
spec.add_development_dependency 'bundler', '>= 2.2.10'
spec.add_development_dependency 'rake', '~> 13.0'
spec.add_development_dependency 'rake'

# Testing support
spec.add_development_dependency 'rspec', '~> 3.4'
spec.add_development_dependency 'rspec'

# Makes testing easy via `bundle exec guard`
spec.add_development_dependency 'guard', '~> 2.14'
spec.add_development_dependency 'guard-rspec', '~> 4.7'
spec.add_development_dependency 'guard'
spec.add_development_dependency 'guard-rspec'

# If you want to work on older builds of ruby
spec.add_development_dependency 'listen', '~> 3.0'
spec.add_development_dependency 'listen'

# This gives you the chance to run a REPL inside your test
# via
Expand Down
2 changes: 1 addition & 1 deletion lib/xcode_summary/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def parse_location(document_location)
file_path = document_location.url.gsub('file://', '').split('#').first
file_name = file_path.split('/').last
fragment = document_location.url.split('#').last
params = CGI.parse(fragment).transform_values(&:first)
params = URI.decode_www_form(fragment).to_h
line_number = params['StartingLineNumber']
# StartingLineNumber is 0-based, but we need a 1-based value
line = line_number.nil? || line_number.empty? ? 0 : line_number.to_i + 1
Expand Down
2 changes: 1 addition & 1 deletion spec/xcode_summary_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ module Danger
context 'with sort_warnings_by' do
before do
@xcode_summary.sort_warnings_by do |warning|
warning.message.include?('TODOs') ? 0 : 1
"#{warning.message.include?('TODOs') ? 0 : 1}_#{warning&.location&.file_path}/#{warning&.location&.file_name}:#{warning&.location&.line}/"
end
end
it 'sorts compile warnings' do
Expand Down