mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-06-05 21:15:20 +00:00
- refactor to match coding standards.
- test against Ruby 3.3 also.
This commit is contained in:
@@ -17,7 +17,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
ruby: ['3.0', '3.1', '3.2']
|
||||
ruby: ['3.0', '3.1', '3.2', '3.3']
|
||||
steps:
|
||||
# Install Multilib
|
||||
- name: Install Multilib
|
||||
|
||||
+3
-5
@@ -81,11 +81,9 @@ class CMockConfig
|
||||
require 'pathname'
|
||||
includes1 = options[:includes_c_post_header] || []
|
||||
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
|
||||
rescue
|
||||
path
|
||||
end
|
||||
Pathname(File.expand_path(path)).relative_path_from(Pathname(File.expand_path(options[:mock_path]))).to_s
|
||||
rescue StandardError
|
||||
path
|
||||
end
|
||||
options[:includes_c_post_header] = (includes1 + includes2).uniq
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user