-
-
Notifications
You must be signed in to change notification settings - Fork 5
Remove s3 requirement #49
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,7 @@ Gem::Specification.new do |spec| | |
# own Gemfile when using this. | ||
spec.add_development_dependency 'aws-sdk-ecr' | ||
spec.add_development_dependency 'aws-sdk-s3' | ||
spec.add_development_dependency 'webrick' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need this gem? |
||
spec.add_development_dependency 'elasticsearch', '6.8.3' | ||
spec.add_development_dependency 'redis' | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,19 +4,24 @@ | |
require 'ostruct' | ||
require 'json' | ||
|
||
require_relative 'exercism_config/environment' | ||
require_relative 'exercism_config/determine_environment' | ||
require_relative 'exercism_config/generate_aws_settings' | ||
require_relative 'exercism_config/setup_dynamodb_client' | ||
require_relative 'exercism_config/setup_ecr_client' | ||
require_relative 'exercism_config/setup_s3_client' | ||
require_relative 'exercism_config/retrieve_config' | ||
require_relative 'exercism_config/retrieve_secrets' | ||
|
||
require_relative 'exercism_config/version' | ||
require_relative 'exercism/config' | ||
require_relative 'exercism/secrets' | ||
require_relative 'exercism/tooling_job' | ||
# require_relative 'exercism_config/environment' | ||
# require_relative 'exercism_config/determine_environment' | ||
# require_relative 'exercism_config/generate_aws_settings' | ||
# require_relative 'exercism_config/setup_dynamodb_client' | ||
# require_relative 'exercism_config/setup_ecr_client' | ||
# require_relative 'exercism_config/setup_s3_client' | ||
# require_relative 'exercism_config/retrieve_config' | ||
# require_relative 'exercism_config/retrieve_secrets' | ||
|
||
# require_relative 'exercism_config/version' | ||
# require_relative 'exercism/config' | ||
# require_relative 'exercism/secrets' | ||
# require_relative 'exercism/tooling_job' | ||
Comment on lines
+7
to
+19
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can these be removed? |
||
|
||
require "zeitwerk" | ||
loader = Zeitwerk::Loader.for_gem | ||
loader.ignore(__FILE__) | ||
loader.setup | ||
|
||
module Exercism | ||
class ConfigError < RuntimeError; end | ||
|
@@ -42,6 +47,7 @@ def self.dynamodb_client | |
end | ||
|
||
def self.s3_client | ||
require 'webrick' | ||
require 'aws-sdk-s3' | ||
Aws::S3::Client.new( | ||
ExercismConfig::GenerateAwsSettings.().merge( | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ def test_config_for_production | |
def test_config_for_development | ||
Exercism.stubs(env: ExercismConfig::Environment.new(:development)) | ||
config = ExercismConfig::RetrieveConfig.() | ||
p config | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Was it intentional to add this? |
||
assert_includes %w[ | ||
mysql | ||
localhost | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added a matrix for testing. Let me know which values you want to test with.