sitemap_generator_ftbpro 5.0.4
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 +7 -0
- data/Gemfile +13 -0
- data/Gemfile.lock +35 -0
- data/MIT-LICENSE +20 -0
- data/README.md +1139 -0
- data/Rakefile +43 -0
- data/VERSION +1 -0
- data/lib/capistrano/sitemap_generator.rb +1 -0
- data/lib/capistrano/tasks/sitemap_generator.cap +36 -0
- data/lib/sitemap_generator/adapters/file_adapter.rb +43 -0
- data/lib/sitemap_generator/adapters/fog_adapter.rb +28 -0
- data/lib/sitemap_generator/adapters/s3_adapter.rb +41 -0
- data/lib/sitemap_generator/adapters/wave_adapter.rb +21 -0
- data/lib/sitemap_generator/adapters.rb +0 -0
- data/lib/sitemap_generator/application.rb +49 -0
- data/lib/sitemap_generator/builder/sitemap_file.rb +171 -0
- data/lib/sitemap_generator/builder/sitemap_index_file.rb +149 -0
- data/lib/sitemap_generator/builder/sitemap_index_url.rb +28 -0
- data/lib/sitemap_generator/builder/sitemap_url.rb +250 -0
- data/lib/sitemap_generator/builder.rb +8 -0
- data/lib/sitemap_generator/core_ext/big_decimal.rb +45 -0
- data/lib/sitemap_generator/core_ext/numeric.rb +48 -0
- data/lib/sitemap_generator/core_ext.rb +3 -0
- data/lib/sitemap_generator/helpers/number_helper.rb +237 -0
- data/lib/sitemap_generator/interpreter.rb +80 -0
- data/lib/sitemap_generator/link_set.rb +665 -0
- data/lib/sitemap_generator/railtie.rb +7 -0
- data/lib/sitemap_generator/sitemap_location.rb +192 -0
- data/lib/sitemap_generator/sitemap_namer.rb +75 -0
- data/lib/sitemap_generator/tasks.rb +53 -0
- data/lib/sitemap_generator/templates.rb +41 -0
- data/lib/sitemap_generator/utilities.rb +181 -0
- data/lib/sitemap_generator.rb +82 -0
- data/lib/tasks/sitemap_generator_tasks.rake +1 -0
- data/rails/install.rb +2 -0
- data/rails/uninstall.rb +2 -0
- data/spec/blueprint.rb +15 -0
- data/spec/files/sitemap.create.rb +12 -0
- data/spec/files/sitemap.groups.rb +49 -0
- data/spec/sitemap_generator/adapters/s3_adapter_spec.rb +23 -0
- data/spec/sitemap_generator/alternate_sitemap_spec.rb +79 -0
- data/spec/sitemap_generator/application_spec.rb +69 -0
- data/spec/sitemap_generator/builder/sitemap_file_spec.rb +110 -0
- data/spec/sitemap_generator/builder/sitemap_index_file_spec.rb +124 -0
- data/spec/sitemap_generator/builder/sitemap_index_url_spec.rb +28 -0
- data/spec/sitemap_generator/builder/sitemap_url_spec.rb +186 -0
- data/spec/sitemap_generator/core_ext/bigdecimal_spec.rb +20 -0
- data/spec/sitemap_generator/core_ext/numeric_spec.rb +43 -0
- data/spec/sitemap_generator/file_adaptor_spec.rb +20 -0
- data/spec/sitemap_generator/geo_sitemap_spec.rb +30 -0
- data/spec/sitemap_generator/helpers/number_helper_spec.rb +196 -0
- data/spec/sitemap_generator/interpreter_spec.rb +90 -0
- data/spec/sitemap_generator/link_set_spec.rb +864 -0
- data/spec/sitemap_generator/mobile_sitemap_spec.rb +27 -0
- data/spec/sitemap_generator/news_sitemap_spec.rb +42 -0
- data/spec/sitemap_generator/pagemap_sitemap_spec.rb +57 -0
- data/spec/sitemap_generator/sitemap_generator_spec.rb +582 -0
- data/spec/sitemap_generator/sitemap_groups_spec.rb +144 -0
- data/spec/sitemap_generator/sitemap_location_spec.rb +210 -0
- data/spec/sitemap_generator/sitemap_namer_spec.rb +96 -0
- data/spec/sitemap_generator/templates_spec.rb +24 -0
- data/spec/sitemap_generator/utilities/existence_spec.rb +26 -0
- data/spec/sitemap_generator/utilities/hash_spec.rb +57 -0
- data/spec/sitemap_generator/utilities/rounding_spec.rb +31 -0
- data/spec/sitemap_generator/utilities_spec.rb +101 -0
- data/spec/sitemap_generator/video_sitemap_spec.rb +117 -0
- data/spec/spec_helper.rb +24 -0
- data/spec/support/file_macros.rb +39 -0
- data/spec/support/schemas/siteindex.xsd +73 -0
- data/spec/support/schemas/sitemap-geo.xsd +41 -0
- data/spec/support/schemas/sitemap-mobile.xsd +32 -0
- data/spec/support/schemas/sitemap-news.xsd +159 -0
- data/spec/support/schemas/sitemap-pagemap.xsd +97 -0
- data/spec/support/schemas/sitemap-video.xsd +643 -0
- data/spec/support/schemas/sitemap.xsd +115 -0
- data/spec/support/xml_macros.rb +67 -0
- data/templates/sitemap.rb +27 -0
- metadata +226 -0
@@ -0,0 +1,97 @@
|
|
1
|
+
|
2
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
3
|
+
<xsd:schema
|
4
|
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
5
|
+
targetNamespace="http://www.google.com/schemas/sitemap-pagemap/1.0"
|
6
|
+
xmlns="http://www.google.com/schemas/sitemap-pagemap/1.0"
|
7
|
+
elementFormDefault="qualified">
|
8
|
+
|
9
|
+
<xsd:annotation>
|
10
|
+
<xsd:documentation>
|
11
|
+
XML Schema for the PageMap Sitemap extension. This schema defines the
|
12
|
+
PageMap-specific elements only; the core Sitemap elements are defined
|
13
|
+
separately.
|
14
|
+
|
15
|
+
Copyright 2011 Google Inc. All Rights Reserved.
|
16
|
+
</xsd:documentation>
|
17
|
+
</xsd:annotation>
|
18
|
+
|
19
|
+
<xsd:element name="PageMap">
|
20
|
+
<xsd:complexType>
|
21
|
+
<xsd:sequence>
|
22
|
+
<xsd:element name="Template" minOccurs="0">
|
23
|
+
<xsd:annotation>
|
24
|
+
<xsd:documentation>
|
25
|
+
Template file specification. Can be used for overriding the
|
26
|
+
default rendering of search results delivered via
|
27
|
+
Google Custom Search Engine.
|
28
|
+
</xsd:documentation>
|
29
|
+
</xsd:annotation>
|
30
|
+
<xsd:complexType>
|
31
|
+
<xsd:attribute name="src" type="xsd:anyURI" use="required">
|
32
|
+
<xsd:annotation>
|
33
|
+
<xsd:documentation>
|
34
|
+
Reference to a template file. A template file contains a set of
|
35
|
+
ResultSpecs, which, given DataObjects of appropriate types on
|
36
|
+
the page, renders a search result based on the key-value pairs
|
37
|
+
found in those DataObjects. If the template file is not
|
38
|
+
specified, Google will use the default predefined set of
|
39
|
+
templates tailored to popular content.
|
40
|
+
</xsd:documentation>
|
41
|
+
</xsd:annotation>
|
42
|
+
</xsd:attribute>
|
43
|
+
</xsd:complexType>
|
44
|
+
</xsd:element>
|
45
|
+
<xsd:element name="DataObject" minOccurs="0" maxOccurs="unbounded">
|
46
|
+
<xsd:complexType>
|
47
|
+
<xsd:sequence>
|
48
|
+
<xsd:element name="Attribute" minOccurs="0" maxOccurs="unbounded">
|
49
|
+
<xsd:annotation>
|
50
|
+
<xsd:documentation>
|
51
|
+
Either 'value' attribute or text content must be set, but
|
52
|
+
not both.
|
53
|
+
</xsd:documentation>
|
54
|
+
</xsd:annotation>
|
55
|
+
<xsd:complexType>
|
56
|
+
<xsd:simpleContent>
|
57
|
+
<xsd:extension base="xsd:string">
|
58
|
+
<xsd:attribute name="name" type="xsd:string" use="required">
|
59
|
+
<xsd:annotation>
|
60
|
+
<xsd:documentation>
|
61
|
+
Name of the attribute.
|
62
|
+
</xsd:documentation>
|
63
|
+
</xsd:annotation>
|
64
|
+
</xsd:attribute>
|
65
|
+
<xsd:attribute name="value" type="xsd:string">
|
66
|
+
<xsd:annotation>
|
67
|
+
<xsd:documentation>
|
68
|
+
Value of the attribute.
|
69
|
+
</xsd:documentation>
|
70
|
+
</xsd:annotation>
|
71
|
+
</xsd:attribute>
|
72
|
+
</xsd:extension>
|
73
|
+
</xsd:simpleContent>
|
74
|
+
</xsd:complexType>
|
75
|
+
</xsd:element>
|
76
|
+
</xsd:sequence>
|
77
|
+
<xsd:attribute name="type" type="xsd:string" use="required">
|
78
|
+
<xsd:annotation>
|
79
|
+
<xsd:documentation>
|
80
|
+
Type of the object.
|
81
|
+
</xsd:documentation>
|
82
|
+
</xsd:annotation>
|
83
|
+
</xsd:attribute>
|
84
|
+
<xsd:attribute name="id" type="xsd:string">
|
85
|
+
<xsd:annotation>
|
86
|
+
<xsd:documentation>
|
87
|
+
ID of the object.
|
88
|
+
</xsd:documentation>
|
89
|
+
</xsd:annotation>
|
90
|
+
</xsd:attribute>
|
91
|
+
</xsd:complexType>
|
92
|
+
</xsd:element>
|
93
|
+
</xsd:sequence>
|
94
|
+
</xsd:complexType>
|
95
|
+
</xsd:element>
|
96
|
+
|
97
|
+
</xsd:schema>
|