Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete code that was only used by Ruby 2.6.x, since Ruby 2.6 was deprecated in v1.5.0 #55

Merged
merged 1 commit into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion lib/arkana/encoder.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# frozen_string_literal: true

require "arkana/helpers/string"
require "arkana/helpers/enumerable"

# The encoder is responsible for finding the env vars for given keys, encoding them, and creating Secrets based on the generated data.
module Encoder
Expand Down
16 changes: 0 additions & 16 deletions lib/arkana/helpers/enumerable.rb

This file was deleted.

12 changes: 2 additions & 10 deletions spec/kotlin_code_generator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,8 @@
let(:kotlin_sources_dir) { File.join(kotlin_module_dir, "src", "main", config.kotlin_sources_path, config.kotlin_package_name.split(".")) }
let(:kotlin_tests_dir) { File.join(kotlin_module_dir, "src", "test", config.kotlin_sources_path, config.kotlin_package_name.split(".")) }

# NOTE: Can't use:
# def path(...)
# Pathname.new(File.join(...))
# end
# Until the minimum target version is Ruby 2.7
def path(arg1, arg2, arg3 = nil)
arg1and2 = File.join(arg1, arg2)
return Pathname.new(arg1and2) unless arg3

Pathname.new(File.join(arg1and2, arg3)) if arg3
def path(...)
Pathname.new(File.join(...))
end

it "generates all necessary directories and files" do
Expand Down
12 changes: 2 additions & 10 deletions spec/swift_code_generator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,8 @@
let(:swift_package_dir) { File.join(config.result_path, config.import_name) }
let(:interface_swift_package_dir) { File.join(config.result_path, "#{config.import_name}Interfaces") }

# NOTE: Can't use:
# def path(...)
# Pathname.new(File.join(...))
# end
# Until the minimum target version is Ruby 2.7
def path(arg1, arg2, arg3 = nil)
arg1and2 = File.join(arg1, arg2)
return Pathname.new(arg1and2) unless arg3

Pathname.new(File.join(arg1and2, arg3)) if arg3
def path(...)
Pathname.new(File.join(...))
end

it "generates all necessary directories and files" do
Expand Down
Loading