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
Add Azure gems to README #30053
Add Azure gems to README #30053
Conversation
r? @schneems (@rails-bot has picked a reviewer for you, use r? to override) |
activestorage/README.md
Outdated
@@ -88,7 +88,8 @@ Variation of image attachment: | |||
1. Run `rails activestorage:install` to create needed directories, migrations, and configuration. | |||
2. Optional: Add `gem "aws-sdk", "~> 2"` to your Gemfile if you want to use AWS S3. | |||
3. Optional: Add `gem "google-cloud-storage", "~> 1.3"` to your Gemfile if you want to use Google Cloud Storage. | |||
4. Optional: Add `gem "mini_magick"` to your Gemfile if you want to use variants. | |||
4. Optional: Add `gem 'azure-core', git: "https://github.com/dixpac/azure-ruby-asm-core.git"` and `gem 'azure-storage', require: false` to your Gemfile if you want to use Microsoft Azure. |
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.
Minor nit: use double quotes to match the other optional steps.
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.
Yeah, good point.
Also at some point presumably we can switch to the release version of the azure-core gem. I'm torn between wanting to note that or not, it's one more thing to keep track of for the future.
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.
Looks like @dixpac’s PR (Azure/azure-ruby-asm-core#39) was merged. @dixpac, can we switch back to the released gem now?
activestorage/README.md
Outdated
@@ -88,7 +88,8 @@ Variation of image attachment: | |||
1. Run `rails activestorage:install` to create needed directories, migrations, and configuration. | |||
2. Optional: Add `gem "aws-sdk", "~> 2"` to your Gemfile if you want to use AWS S3. | |||
3. Optional: Add `gem "google-cloud-storage", "~> 1.3"` to your Gemfile if you want to use Google Cloud Storage. | |||
4. Optional: Add `gem "mini_magick"` to your Gemfile if you want to use variants. | |||
4. Optional: Add `gem "azure-core", git: "https://github.com/dixpac/azure-ruby-asm-core.git"` and `gem "azure-storage", require: false` to your Gemfile if you want to use Microsoft Azure. |
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.
Why doesn't the released version work here? Any idea when master will be released in a new gem?
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.
The released gem didn't support StringIO uploads. It does as of yesterday.
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.
Just confirmed in my sample project that the release gem is working fine. Updated the PR accordingly.
activestorage/README.md
Outdated
@@ -88,7 +88,8 @@ Variation of image attachment: | |||
1. Run `rails activestorage:install` to create needed directories, migrations, and configuration. | |||
2. Optional: Add `gem "aws-sdk", "~> 2"` to your Gemfile if you want to use AWS S3. | |||
3. Optional: Add `gem "google-cloud-storage", "~> 1.3"` to your Gemfile if you want to use Google Cloud Storage. | |||
4. Optional: Add `gem "mini_magick"` to your Gemfile if you want to use variants. | |||
4. Optional: Add `gem "azure-core"` and `gem "azure-storage", require: false` to your Gemfile if you want to use Microsoft Azure. |
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.
We don't need to add gem "azure-core"
once #30041 has merged.
activestorage/README.md
Outdated
@@ -88,7 +88,7 @@ Variation of image attachment: | |||
1. Run `rails activestorage:install` to create needed directories, migrations, and configuration. | |||
2. Optional: Add `gem "aws-sdk", "~> 2"` to your Gemfile if you want to use AWS S3. | |||
3. Optional: Add `gem "google-cloud-storage", "~> 1.3"` to your Gemfile if you want to use Google Cloud Storage. | |||
4. Optional: Add `gem "azure-core", git: "https://github.com/dixpac/azure-ruby-asm-core.git"` and `gem "azure-storage", require: false` to your Gemfile if you want to use Microsoft Azure. | |||
4. Optional: Add `gem "azure-core"` and `gem "azure-storage", require: false` to your Gemfile if you want to use Microsoft Azure. |
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.
The azure-storage
gem depends on azure-core
, so we need not manually bundle the latter.
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.
Let's omit require: false
to match the other optional steps. It's not strictly necessary.
Omit azure-core (it's required by azure-storage), remove require:false to match other points.
We can switch to the official release as of yesterday. I've submitted the PR yesterday #30041 |
Great, thanks! |
No description provided.