-
Notifications
You must be signed in to change notification settings - Fork 144
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
Support fog-core 2.5 and up #636
base: master
Are you sure you want to change the base?
Conversation
This is needed to support fog-core 2.2 and up due to this change: fog/fog-core#241
This is needed to support fog-core 2.2 and up due to this change: fog/fog-core#241
This is needed to support fog-core 2.2 and up due to this change: fog/fog-core#241
This lines up more with Ruby best practices for module and class locations.
@Temikus I first ran the storage integration tests: $ bundle exec rake test:storage
/home/stanhu/.local/share/mise/installs/ruby/3.3.7/bin/ruby -I"lib:test" /home/stanhu/.local/share/mise/installs/ruby/3.3.7/lib/ruby/gems/3.3.0/gems/rake-13.2.1/lib/rake/rake_test_loader.rb "test/integration/storage/test_buckets.rb" "test/integration/storage/test_coverage.rb" "test/integration/storage/test_directories.rb" "test/integration/storage/test_files.rb" "test/integration/storage/test_objects.rb"
Started with run options --seed 58113
TestStorageRequests
test_list_object_acl PASS (2.61s)
test_put_bucket PASS (0.86s)
test_files_public_url PASS (1.28s)
test_get_object PASS (1.38s)
test_files_all PASS (2.77s)
test_delete_object PASS (1.50s)
test_put_object_paperclip PASS (1.08s)
test_put_object_invalid_predefined_acl PASS (1.05s)
test_files_set_body_string PASS (1.71s)
test_files_destroy PASS (1.66s)
test_files_get_https_url PASS (0.78s)
test_files_create_file PASS (1.45s)
test_object_metadata PASS (2.69s)
test_directories_destroy PASS (2.76s)
test_copy_object_with_object_property PASS (1.56s)
test_files_copy PASS (1.74s)
test_put_object_string PASS (1.26s)
test_files_create_string PASS (1.57s)
test_put_object_file PASS (1.23s)
test_get_object_https_url PASS (1.32s)
test_put_bucket_invalid_predefined_acl PASS (0.06s)
test_files_each PASS (2.26s)
test_put_object_nil PASS (0.86s)
test_directory_files PASS (1.21s)
test_copy_object PASS (1.70s)
test_files_get PASS (1.11s)
test_files_set_body_file PASS (1.64s)
test_list_objects PASS (2.38s)
test_directories_get PASS (0.90s)
test_list_bucket_acl PASS (1.60s)
test_put_object_acl PASS (1.21s)
test_copy_object_with_request_options PASS (1.50s)
test_put_bucket_acl PASS (1.38s)
test_files_create_predefined_acl PASS (1.18s)
test_directories_all PASS (0.97s)
test_files_get_https_url_whitespace PASS (0.85s)
test_files_metadata PASS (2.00s)
test_get_bucket_acl PASS (1.80s)
test_directory_public_url PASS (1.00s)
test_directories_put_invalid_predefined_acl PASS (0.05s)
test_copy_object_predefined_acl PASS (1.54s)
test_get_bucket PASS (0.81s)
test_directories_put PASS (0.89s)
test_get_object_acl PASS (1.26s)
test_put_object_predefined_acl PASS (1.03s)
test_get_object_http_url PASS (1.10s)
test_put_object_url PASS (0.76s)
test_directories_put_predefined_acl PASS (0.62s)
test_put_object_contradictory_content_type PASS (1.29s)
test_list_buckets PASS (1.03s)
test_delete_bucket PASS (0.92s)
test_files_create_invalid_predefined_acl PASS (1.20s)
test_put_bucket_predefined_acl PASS (0.70s)
Finished in 71.09225s
53 tests, 66 assertions, 0 failures, 0 errors, 0 skips Then I ran all the integration tests. It looks like the errors are unrelated to these changes:
Do you think we can go ahead and merge this? |
@@ -24,25 +24,25 @@ def class_for(key) | |||
|
|||
def [](service) | |||
@@connections ||= Hash.new do |hash, key| | |||
hash[key] = case key |
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 think the Ruby LSP on VSCode reformatted this. I don't see an issue here, but I can revert this if you prefer to avoid any unnecessary changes.
fog-core
v2.2 and up now requiresFog::Google:<service>
instead ofFog::<service>::Google
: fog/fog-core#241This pull request eliminates these deprecation warnings:
This fixes #421.