- refactor to match coding standards.

- test against Ruby 3.3 also.
This commit is contained in:
Mark VanderVoord
2024-10-23 16:01:48 -04:00
parent 7d6ec0354a
commit d5e938e4b1
2 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
ruby: ['3.0', '3.1', '3.2'] ruby: ['3.0', '3.1', '3.2', '3.3']
steps: steps:
# Install Multilib # Install Multilib
- name: Install Multilib - name: Install Multilib
+3 -5
View File
@@ -81,11 +81,9 @@ class CMockConfig
require 'pathname' require 'pathname'
includes1 = options[:includes_c_post_header] || [] includes1 = options[:includes_c_post_header] || []
includes2 = options[:unity_helper_path].map do |path| includes2 = options[:unity_helper_path].map do |path|
begin Pathname(File.expand_path(path)).relative_path_from(Pathname(File.expand_path(options[:mock_path]))).to_s
Pathname(File.expand_path(path)).relative_path_from(Pathname(File.expand_path(options[:mock_path]))).to_s rescue StandardError
rescue path
path
end
end end
options[:includes_c_post_header] = (includes1 + includes2).uniq options[:includes_c_post_header] = (includes1 + includes2).uniq
end end