Skip to content

Commit d5e938e

Browse files
committed
- refactor to match coding standards.
- test against Ruby 3.3 also.
1 parent 7d6ec03 commit d5e938e

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
strategy:
1919
matrix:
20-
ruby: ['3.0', '3.1', '3.2']
20+
ruby: ['3.0', '3.1', '3.2', '3.3']
2121
steps:
2222
# Install Multilib
2323
- name: Install Multilib

lib/cmock_config.rb

+3-5
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,9 @@ def initialize(options = nil)
8181
require 'pathname'
8282
includes1 = options[:includes_c_post_header] || []
8383
includes2 = options[:unity_helper_path].map do |path|
84-
begin
85-
Pathname(File.expand_path(path)).relative_path_from(Pathname(File.expand_path(options[:mock_path]))).to_s
86-
rescue
87-
path
88-
end
84+
Pathname(File.expand_path(path)).relative_path_from(Pathname(File.expand_path(options[:mock_path]))).to_s
85+
rescue StandardError
86+
path
8987
end
9088
options[:includes_c_post_header] = (includes1 + includes2).uniq
9189
end

0 commit comments

Comments
 (0)