Skip to content

Commit

Permalink
Delete code that was only used by Ruby 2.6.x
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerluan committed Dec 22, 2023
1 parent 65965d0 commit 0304c47
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 37 deletions.
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

0 comments on commit 0304c47

Please sign in to comment.