sitemap_generator 5.0.0.beta1 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/README.md +12 -11
- data/VERSION +1 -1
- data/lib/sitemap_generator/adapters/s3_adapter.rb +2 -0
- metadata +8 -11
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -117,7 +117,7 @@ That's it! Welcome to the future!
|
|
117
117
|
|
118
118
|
## Changelog
|
119
119
|
|
120
|
-
* v5.0.0: Support new `:compress` option for customizing which files get compressed. Remove old deprecated methods (see deprecation notices above).
|
120
|
+
* v5.0.0: Support new `:compress` option for customizing which files get compressed. Remove old deprecated methods (see deprecation notices above). Support `fog_path_style` option in the `SitemapGenerator::S3Adapter` so buckets with dots in the name work over HTTPS without SSL certificate problems.
|
121
121
|
* v4.3.1: Support integer timestamps. Update README for new features added in last release.
|
122
122
|
* v4.3.0: Support `media` attibute on alternate links ([#125](https://github.com/kjvarga/sitemap_generator/issues/125)). Changed `SitemapGenerator::S3Adapter` to write files in a single operation, avoiding potential permissions errors when listing a directory prior to writing ([#130](https://github.com/kjvarga/sitemap_generator/issues/130)). Remove Sitemap Writer from ping task ([#129](https://github.com/kjvarga/sitemap_generator/issues/129)). Support `url:expires` element ([#126](https://github.com/kjvarga/sitemap_generator/issues/126)).
|
123
123
|
* v4.2.0: Update Google ping URL. Quote the ping URL in the output. Support Video `video:price` element ([#117](https://github.com/kjvarga/sitemap_generator/issues/117)). Support symbols as well as strings for most arguments to `add()` ([#113](https://github.com/kjvarga/sitemap_generator/issues/113)). Ensure that `public_path` and `sitemaps_path` end with a slash (`/`) ([#113](https://github.com/kjvarga/sitemap_generator/issues/118)).
|
@@ -368,21 +368,22 @@ Sitemap Generator uses CarrierWave to support uploading to Amazon S3 store, Rack
|
|
368
368
|
|
369
369
|
1. Please see [this wiki page][remote_hosts] for more information about setting up CarrierWave, SitemapGenerator and Rails.
|
370
370
|
|
371
|
-
2. Once you have CarrierWave setup and configured all you need to do is set some options in your sitemap config, such as
|
372
|
-
|
373
|
-
* `default_host` - your website host name
|
374
|
-
* `sitemaps_host` - the remote host where your sitemaps will be hosted
|
375
|
-
* `public_path` - the directory to write sitemaps to locally e.g. `tmp/`
|
376
|
-
* `sitemaps_path` - set to a directory/path if you don't want to upload to the root of your `sitemaps_host`
|
377
|
-
* `adapter` - instance of `SitemapGenerator::WaveAdapter`
|
378
|
-
|
379
|
-
For Example:
|
371
|
+
2. Once you have CarrierWave setup and configured all you need to do is set some options in your sitemap config, such as
|
380
372
|
|
381
373
|
```ruby
|
374
|
+
# Your website's host name
|
382
375
|
SitemapGenerator::Sitemap.default_host = "http://www.example.com"
|
376
|
+
|
377
|
+
# The remote host where your sitemaps will be hosted
|
383
378
|
SitemapGenerator::Sitemap.sitemaps_host = "http://s3.amazonaws.com/sitemap-generator/"
|
379
|
+
|
380
|
+
# The directory to write sitemaps to locally
|
384
381
|
SitemapGenerator::Sitemap.public_path = 'tmp/'
|
382
|
+
|
383
|
+
# Set this to a directory/path if you don't want to upload to the root of your `sitemaps_host`
|
385
384
|
SitemapGenerator::Sitemap.sitemaps_path = 'sitemaps/'
|
385
|
+
|
386
|
+
# Instance of `SitemapGenerator::WaveAdapter`
|
386
387
|
SitemapGenerator::Sitemap.adapter = SitemapGenerator::WaveAdapter.new
|
387
388
|
```
|
388
389
|
|
@@ -1119,4 +1120,4 @@ Copyright (c) 2009 Karl Varga released under the MIT license
|
|
1119
1120
|
[using_pagemaps]:https://developers.google.com/custom-search/docs/structured_data#pagemaps
|
1120
1121
|
[iso_4217]:http://en.wikipedia.org/wiki/ISO_4217
|
1121
1122
|
[media]:https://developers.google.com/webmasters/smartphone-sites/details
|
1122
|
-
[expires]:https://support.google.com/customsearch/answer/2631051?hl=en
|
1123
|
+
[expires]:https://support.google.com/customsearch/answer/2631051?hl=en
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
5.0.0
|
1
|
+
5.0.0
|
@@ -13,6 +13,7 @@ module SitemapGenerator
|
|
13
13
|
@fog_provider = opts[:fog_provider] || ENV['FOG_PROVIDER']
|
14
14
|
@fog_directory = opts[:fog_directory] || ENV['FOG_DIRECTORY']
|
15
15
|
@fog_region = opts[:fog_region] || ENV['FOG_REGION']
|
16
|
+
@fog_path_style = opts[:fog_path_style] || ENV['FOG_PATH_STYLE']
|
16
17
|
end
|
17
18
|
|
18
19
|
# Call with a SitemapLocation and string data
|
@@ -25,6 +26,7 @@ module SitemapGenerator
|
|
25
26
|
:provider => @fog_provider,
|
26
27
|
}
|
27
28
|
credentials[:region] = @fog_region if @fog_region
|
29
|
+
credentials[:path_style] = @fog_path_style if @fog_path_style
|
28
30
|
|
29
31
|
storage = Fog::Storage.new(credentials)
|
30
32
|
directory = storage.directories.new(:key => @fog_directory)
|
metadata
CHANGED
@@ -1,14 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sitemap_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
4
|
+
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 5
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
|
10
|
-
- 1
|
11
|
-
version: 5.0.0.beta1
|
9
|
+
version: 5.0.0
|
12
10
|
platform: ruby
|
13
11
|
authors:
|
14
12
|
- Karl Varga
|
@@ -16,7 +14,7 @@ autorequire:
|
|
16
14
|
bindir: bin
|
17
15
|
cert_chain: []
|
18
16
|
|
19
|
-
date: 2014-
|
17
|
+
date: 2014-02-05 00:00:00 -08:00
|
20
18
|
default_executable:
|
21
19
|
dependencies:
|
22
20
|
- !ruby/object:Gem::Dependency
|
@@ -176,20 +174,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
176
174
|
requirements:
|
177
175
|
- - ">="
|
178
176
|
- !ruby/object:Gem::Version
|
179
|
-
hash: -
|
177
|
+
hash: -2638185396459765227
|
180
178
|
segments:
|
181
179
|
- 0
|
182
180
|
version: "0"
|
183
181
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
182
|
none: false
|
185
183
|
requirements:
|
186
|
-
- - "
|
184
|
+
- - ">="
|
187
185
|
- !ruby/object:Gem::Version
|
186
|
+
hash: -2638185396459765227
|
188
187
|
segments:
|
189
|
-
-
|
190
|
-
|
191
|
-
- 1
|
192
|
-
version: 1.3.1
|
188
|
+
- 0
|
189
|
+
version: "0"
|
193
190
|
requirements: []
|
194
191
|
|
195
192
|
rubyforge_project:
|