Skip to content

Commit

Permalink
Merge pull request #1497 from denny/update/sitemap_generator
Browse files Browse the repository at this point in the history
Update sitemap_generator
  • Loading branch information
denny authored Feb 1, 2024
2 parents dd62008 + 610cb8c commit 8298fdd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ GEM
simplecov_json_formatter (0.1.4)
simpleidn (0.2.1)
unf (~> 0.1.4)
sitemap_generator (6.1.2)
sitemap_generator (6.3.0)
builder (~> 3.0)
smart_properties (1.17.0)
sorbet-runtime (0.5.11219)
Expand Down
9 changes: 3 additions & 6 deletions plugins/ShinySEO/app/models/shiny_seo/sitemap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,13 @@ def items_for_sitemap
def use_aws_sdk_adapter( s3_config )
require 'aws-sdk-s3'

SitemapGenerator::Sitemap.adapter = SitemapGenerator::AwsSdkAdapter.new( 's3_bucket', build( s3_config ) )
end

def build( s3_config )
{
SitemapGenerator::Sitemap.adapter = SitemapGenerator::AwsSdkAdapter.new(
's3_bucket',
aws_secret_access_key: s3_config.secret_access_key,
aws_access_key_id: s3_config.access_key_id,
aws_region: s3_config.region,
aws_endpoint: s3_config.base_url
}
)
end
end
end

0 comments on commit 8298fdd

Please sign in to comment.