Skip to content

Commit

Permalink
Rubocop + disable jruby 9.2 and arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
mullermp committed Sep 16, 2024
1 parent c674b1f commit 4ae9ca0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ jobs:
ruby: 2.5
- arch: arm64
ruby: 2.6
- arch: arm64
ruby: jruby-9.2
# Some macos runners are x64, some are arm64, see: https://github.com/actions/runner-images#available-images
runs-on: ${{ matrix.arch == 'x64' && 'macos-14-large' || 'macos-14' }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion gems/aws-crt/lib/aws-crt/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def self.error_class(error_name)
# This requires filtering non-safe characters from the constant
# name and ensuring it begins with an uppercase letter.
def self.error_class_constant(error_name)
error_name.to_s.gsub(/AWS_ERROR_/, '').split('_').map(&:capitalize).join
error_name.to_s.gsub('AWS_ERROR_', '').split('_').map(&:capitalize).join
end

def self.add_error_constant(constant)
Expand Down
2 changes: 1 addition & 1 deletion gems/aws-crt/lib/aws-crt/native.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def self.array_to_native(array)
# = false)
# 3. Creates a bang method that does not do automatic error checking.
def self.attach_function(c_name, params, returns, options = {})
ruby_name = c_name.to_s.sub(/aws_crt_/, '').to_sym
ruby_name = c_name.to_s.sub('aws_crt_', '').to_sym
raise_errors = options.fetch(:raise, true)
options.delete(:raise)
unless raise_errors
Expand Down

0 comments on commit 4ae9ca0

Please sign in to comment.