Skip to content

Commit f6ba75e

Browse files
committed
Drop support for Ruby 2.6
Ruby 2.6 has reached EOL on 2022-03. Requiring Ruby 2.7 allows us to use C99 syntax.
1 parent cdec3c7 commit f6ba75e

File tree

4 files changed

+2
-24
lines changed

4 files changed

+2
-24
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
88
with:
99
engine: cruby-truffleruby
10-
min_version: 2.6
10+
min_version: 2.7
1111
test:
1212
needs: ruby-versions
1313
name: >-

ext/openssl/ossl.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -369,22 +369,6 @@ ossl_get_errors(VALUE _)
369369
*/
370370
VALUE dOSSL;
371371

372-
#if !defined(HAVE_VA_ARGS_MACRO)
373-
void
374-
ossl_debug(const char *fmt, ...)
375-
{
376-
va_list args;
377-
378-
if (dOSSL == Qtrue) {
379-
fprintf(stderr, "OSSL_DEBUG: ");
380-
va_start(args, fmt);
381-
vfprintf(stderr, fmt, args);
382-
va_end(args);
383-
fprintf(stderr, " [CONTEXT N/A]\n");
384-
}
385-
}
386-
#endif
387-
388372
/*
389373
* call-seq:
390374
* OpenSSL.debug -> true | false

ext/openssl/ossl.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ VALUE ossl_to_der_if_possible(VALUE);
157157
*/
158158
extern VALUE dOSSL;
159159

160-
#if defined(HAVE_VA_ARGS_MACRO)
161160
#define OSSL_Debug(...) do { \
162161
if (dOSSL == Qtrue) { \
163162
fprintf(stderr, "OSSL_DEBUG: "); \
@@ -166,11 +165,6 @@ extern VALUE dOSSL;
166165
} \
167166
} while (0)
168167

169-
#else
170-
void ossl_debug(const char *, ...);
171-
#define OSSL_Debug ossl_debug
172-
#endif
173-
174168
/*
175169
* Include all parts
176170
*/

openssl.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
2121
spec.extra_rdoc_files = Dir["*.md"]
2222
spec.rdoc_options = ["--main", "README.md"]
2323

24-
spec.required_ruby_version = ">= 2.6.0"
24+
spec.required_ruby_version = ">= 2.7.0"
2525

2626
spec.metadata["msys2_mingw_dependencies"] = "openssl"
2727
end

0 commit comments

Comments
 (0)