Skip to content

Commit b4415da

Browse files
chaadowmanisha1997tiwarishubham635
authored
fix: frozen string literal issue for ruby 3.4.0 (#137)
* Fix frozen string literal issue To prepare for ruby 3.4.0 and making strings frozen by default, we add `+` operator to make the string mutable * Add empty line for code readability * Remove extra newline at end of ruby_http_client.rb * Fix YAML syntax for Ruby version matrix * Update copyright year in LICENSE file --------- Co-authored-by: Manisha Singh <[email protected]> Co-authored-by: Shubham <[email protected]>
1 parent 4c9405c commit b4415da

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/test-and-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
timeout-minutes: 20
1818
strategy:
1919
matrix:
20-
ruby: [ '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', 'jruby-9.2' ]
20+
ruby: [ '2.4', '2.5', '2.6', '2.7', '3.0', '3.1' ]
2121
steps:
2222
- name: Checkout ruby-http-client
2323
uses: actions/checkout@v2

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (C) 2023, Twilio SendGrid, Inc. <[email protected]>
3+
Copyright (C) 2025, Twilio SendGrid, Inc. <[email protected]>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

lib/ruby_http_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def build_args(args)
184184
# - The final url string
185185
#
186186
def build_url(query_params: nil)
187-
url = [add_version(''), *@url_path].join('/')
187+
url = [add_version(+''), *@url_path].join('/')
188188
url = build_query_params(url, query_params) if query_params
189189
URI.parse("#{@host}#{url}")
190190
end

0 commit comments

Comments
 (0)