sitemap_generator 5.0.2 → 5.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +23 -20
- data/VERSION +1 -1
- data/lib/sitemap_generator/builder/sitemap_url.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7c25bfb211e9b5d5f074e7565bb9d58fea0c7400
|
|
4
|
+
data.tar.gz: 005d8b22093bff792bbeed376ac1c0652c077464
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4a13b82ea72040baeb1581c415034786c7687d6fe41893225492af6443a4141747b2b24d8714743e7b3fa8a2e31648788fca8815a9e3c9889dab26068b0a0644
|
|
7
|
+
data.tar.gz: 3ae6b41f3b000363c4e47d50fdaed0019585cf2f0800aef83d5503bbbd0ad253532351390297a6f09cabc5e978163190d5ca2142e223e3b5b497b1c47e62d5c4
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -117,6 +117,7 @@ That's it! Welcome to the future!
|
|
|
117
117
|
|
|
118
118
|
## Changelog
|
|
119
119
|
|
|
120
|
+
* v5.0.3: Add support for Video sitemaps options `:live` and ':requires_subscription'
|
|
120
121
|
* v5.0.2: Set maximum filesize to 10,000,000 bytes rather than 10,485,760 bytes.
|
|
121
122
|
* v5.0.1: Include new `SitemapGenerator::FogAdapter` ([#138](https://github.com/kjvarga/sitemap_generator/pull/138)). Fix usage of attr_* methods in LinkSet; don't override custom getters/setters ([#144](https://github.com/kjvarga/sitemap_generator/pull/144)). Fix breaking spec in Ruby 2 ([#142](https://github.com/kjvarga/sitemap_generator/pull/142)). Include Capistrano 3.x tasks ([#141](https://github.com/kjvarga/sitemap_generator/pull/141)).
|
|
122
123
|
* 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.
|
|
@@ -938,31 +939,33 @@ end
|
|
|
938
939
|
|
|
939
940
|
#### Supported options
|
|
940
941
|
|
|
941
|
-
* `:video
|
|
942
|
-
* `:thumbnail_loc` - String, URL of the thumbnail image.
|
|
943
|
-
* `:title` - String, title of the video.
|
|
944
|
-
* `:description` - String, description of the video.
|
|
945
|
-
* `:content_loc` - String, URL. One of content_loc or player_loc must be present.
|
|
946
|
-
* `:player_loc` - String, URL. One of content_loc or player_loc must be present.
|
|
942
|
+
* `:video` or `:videos` - Hash or array of hashes, respectively
|
|
943
|
+
* `:thumbnail_loc` - Required. String, URL of the thumbnail image.
|
|
944
|
+
* `:title` - Required. String, title of the video.
|
|
945
|
+
* `:description` - Required. String, description of the video.
|
|
946
|
+
* `:content_loc` - Depends. String, URL. One of content_loc or player_loc must be present.
|
|
947
|
+
* `:player_loc` - Depends. String, URL. One of content_loc or player_loc must be present.
|
|
947
948
|
* `:allow_embed` - Boolean, attribute of player_loc.
|
|
948
949
|
* `:autoplay` - Boolean, default true. Attribute of player_loc.
|
|
949
|
-
* `:duration` - Integer or string. Duration in seconds.
|
|
950
|
-
* `:expiration_date`
|
|
951
|
-
* `:rating`
|
|
952
|
-
* `:view_count` - Integer or string.
|
|
953
|
-
* `:publication_date`
|
|
954
|
-
* `:tags` - Array of string tags.
|
|
955
|
-
* `:tag` - String, single tag.
|
|
956
|
-
* `:category`
|
|
957
|
-
* `:family_friendly`- Boolean
|
|
958
|
-
* `:gallery_loc` - String, URL.
|
|
959
|
-
* `:gallery_title` - Title attribute of the gallery location element
|
|
960
|
-
* `:uploader`
|
|
961
|
-
* `:uploader_info` - Info attribute of uploader element
|
|
962
|
-
* `:price` - Only one price supported at this time
|
|
950
|
+
* `:duration` - Recommended. Integer or string. Duration in seconds.
|
|
951
|
+
* `:expiration_date` - Recommended when applicable. The date after which the video will no longer be available.
|
|
952
|
+
* `:rating` - Optional
|
|
953
|
+
* `:view_count` - Optional. Integer or string.
|
|
954
|
+
* `:publication_date` - Optional
|
|
955
|
+
* `:tags` - Optional. Array of string tags.
|
|
956
|
+
* `:tag` - Optional. String, single tag.
|
|
957
|
+
* `:category` - Optional
|
|
958
|
+
* `:family_friendly`- Optional. Boolean
|
|
959
|
+
* `:gallery_loc` - Optional. String, URL.
|
|
960
|
+
* `:gallery_title` - Optional. Title attribute of the gallery location element
|
|
961
|
+
* `:uploader` - Optional.
|
|
962
|
+
* `:uploader_info` - Optional. Info attribute of uploader element
|
|
963
|
+
* `:price` - Optional. Only one price supported at this time
|
|
963
964
|
* `:price_currency` - Required. In [ISO_4217][iso_4217] format.
|
|
964
965
|
* `:price_type` - Optional. `rent` or `own`
|
|
965
966
|
* `:price_resolution` - Optional. `HD` or `SD`
|
|
967
|
+
* `:live` - Optional. Boolean.
|
|
968
|
+
* `:requires_subscription` - Optional. Boolean.
|
|
966
969
|
|
|
967
970
|
### Geo Sitemaps
|
|
968
971
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
5.0.
|
|
1
|
+
5.0.3
|
|
@@ -129,6 +129,8 @@ module SitemapGenerator
|
|
|
129
129
|
if video[:uploader]
|
|
130
130
|
builder.video :uploader, video[:uploader].to_s, video[:uploader_info] ? { :info => video[:uploader_info].to_s } : {}
|
|
131
131
|
end
|
|
132
|
+
builder.video :live, yes_or_no_with_default(video[:live], true) if video.has_key?(:live)
|
|
133
|
+
builder.video :requires_subscription, yes_or_no_with_default(video[:requires_subscription], true) if video.has_key?(:requires_subscription)
|
|
132
134
|
end
|
|
133
135
|
end
|
|
134
136
|
|
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: 5.0.
|
|
4
|
+
version: 5.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Karl Varga
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-05-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mocha
|