Skip to content

Commit

Permalink
#55 Delete code that was only used by Ruby 2.6.x, since Ruby 2.6 was …
Browse files Browse the repository at this point in the history
…deprecated in v1.5.0
  • Loading branch information
rogerluan committed Dec 22, 2023
2 parents 65965d0 + 0304c47 commit 21c897a
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
@@ -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
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
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 21c897a

Please sign in to comment.