sitemap_generator 6.1.0 → 6.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +5 -0
- data/README.md +20 -1
- data/VERSION +1 -1
- data/lib/sitemap_generator/adapters/aws_sdk_adapter.rb +2 -0
- data/lib/sitemap_generator/link_set.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bad56ec68535f010d3e9b119f5da875f73f7686deb6f8893b96c945f389f80b
|
4
|
+
data.tar.gz: 951764f5c067836cb0a1d63c6ea4d0e431a3bbbd029572c331b7293c0bb5e5c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 372bc48c5160589d87ce184f7f749418e17d89812cdf978de33864636685ff4a11e18464b7f2556c095224526682c39b3526e5d1da91f1d718a2907ae31529a2
|
7
|
+
data.tar.gz: 708074cc61da80d13270bf822c3b60a480354cd6d102cb8f714e22a06cac67a6a2b4a6962d5d7f3420e9a73c08e57475932a9720b7bf72411dcaed57617c35a0
|
data/CHANGES.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
### 6.1.1
|
2
|
+
|
3
|
+
* Resolve deprecation warning on using Kernel#open in Ruby 2.7 (use URI.open instead) [#342](https://github.com/kjvarga/sitemap_generator/pull/342)
|
4
|
+
* Support S3 Endpoints for S3 Compliant Providers like DigitalOcean Spaces [#325](https://github.com/kjvarga/sitemap_generator/pull/325)
|
5
|
+
|
1
6
|
### 6.1.0
|
2
7
|
|
3
8
|
* Support uploading files to Google Cloud Storage [#326](https://github.com/kjvarga/sitemap_generator/pull/326) and [#340](https://github.com/kjvarga/sitemap_generator/pull/340)
|
data/README.md
CHANGED
@@ -357,7 +357,7 @@ directory.
|
|
357
357
|
Uses `Aws::S3::Resource` to upload to Amazon S3 storage. Includes automatic detection of your AWS
|
358
358
|
credentials using `Aws::Credentials`.
|
359
359
|
|
360
|
-
You must `require 'aws-sdk'` in your sitemap config before using this adapter,
|
360
|
+
You must `require 'aws-sdk-s3'` in your sitemap config before using this adapter,
|
361
361
|
or `require` another library that defines `Aws::S3::Resource` and `Aws::Credentials`.
|
362
362
|
|
363
363
|
An example of using this adapter in your sitemap configuration:
|
@@ -370,6 +370,25 @@ directory.
|
|
370
370
|
)
|
371
371
|
```
|
372
372
|
|
373
|
+
##### `SitemapGenerator::AwsSdkAdapter (DigitalOcean Spaces)`
|
374
|
+
|
375
|
+
Uses `Aws::S3::Resource` to upload to Amazon S3 storage. Includes automatic detection of your AWS
|
376
|
+
credentials using `Aws::Credentials`.
|
377
|
+
|
378
|
+
You must `require 'aws-sdk-s3'` in your sitemap config before using this adapter,
|
379
|
+
or `require` another library that defines `Aws::S3::Resource` and `Aws::Credentials`.
|
380
|
+
|
381
|
+
An example of using this adapter in your sitemap configuration:
|
382
|
+
|
383
|
+
```ruby
|
384
|
+
SitemapGenerator::Sitemap.adapter = SitemapGenerator::AwsSdkAdapter.new('s3_bucket',
|
385
|
+
aws_access_key_id: 'AKIAI3SW5CRAZBL4WSTA',
|
386
|
+
aws_secret_access_key: 'asdfadsfdsafsadf',
|
387
|
+
aws_region: 'sfo2',
|
388
|
+
aws_endpoint: 'https://sfo2.digitaloceanspaces.com'
|
389
|
+
)
|
390
|
+
```
|
391
|
+
|
373
392
|
##### `SitemapGenerator::WaveAdapter`
|
374
393
|
|
375
394
|
Uses `CarrierWave::Uploader::Base` to upload to any service supported by CarrierWave, for example,
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
6.1.
|
1
|
+
6.1.1
|
@@ -24,6 +24,7 @@ module SitemapGenerator
|
|
24
24
|
@aws_access_key_id = options[:aws_access_key_id]
|
25
25
|
@aws_secret_access_key = options[:aws_secret_access_key]
|
26
26
|
@aws_region = options[:aws_region]
|
27
|
+
@aws_endpoint = options[:aws_endpoint]
|
27
28
|
end
|
28
29
|
|
29
30
|
# Call with a SitemapLocation and string data
|
@@ -46,6 +47,7 @@ module SitemapGenerator
|
|
46
47
|
def s3_resource_options
|
47
48
|
options = {}
|
48
49
|
options[:region] = @aws_region if !@aws_region.nil?
|
50
|
+
options[:endpoint] = @aws_endpoint if !@aws_endpoint.nil?
|
49
51
|
if !@aws_access_key_id.nil? && !@aws_secret_access_key.nil?
|
50
52
|
options[:credentials] = Aws::Credentials.new(
|
51
53
|
@aws_access_key_id,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sitemap_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.1.
|
4
|
+
version: 6.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karl Varga
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|
@@ -199,8 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
199
199
|
- !ruby/object:Gem::Version
|
200
200
|
version: '0'
|
201
201
|
requirements: []
|
202
|
-
|
203
|
-
rubygems_version: 2.7.6
|
202
|
+
rubygems_version: 3.1.2
|
204
203
|
signing_key:
|
205
204
|
specification_version: 4
|
206
205
|
summary: Easily generate XML Sitemaps
|