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
|
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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user