sitemap_generator_ftbpro 5.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +13 -0
  3. data/Gemfile.lock +35 -0
  4. data/MIT-LICENSE +20 -0
  5. data/README.md +1139 -0
  6. data/Rakefile +43 -0
  7. data/VERSION +1 -0
  8. data/lib/capistrano/sitemap_generator.rb +1 -0
  9. data/lib/capistrano/tasks/sitemap_generator.cap +36 -0
  10. data/lib/sitemap_generator/adapters/file_adapter.rb +43 -0
  11. data/lib/sitemap_generator/adapters/fog_adapter.rb +28 -0
  12. data/lib/sitemap_generator/adapters/s3_adapter.rb +41 -0
  13. data/lib/sitemap_generator/adapters/wave_adapter.rb +21 -0
  14. data/lib/sitemap_generator/adapters.rb +0 -0
  15. data/lib/sitemap_generator/application.rb +49 -0
  16. data/lib/sitemap_generator/builder/sitemap_file.rb +171 -0
  17. data/lib/sitemap_generator/builder/sitemap_index_file.rb +149 -0
  18. data/lib/sitemap_generator/builder/sitemap_index_url.rb +28 -0
  19. data/lib/sitemap_generator/builder/sitemap_url.rb +250 -0
  20. data/lib/sitemap_generator/builder.rb +8 -0
  21. data/lib/sitemap_generator/core_ext/big_decimal.rb +45 -0
  22. data/lib/sitemap_generator/core_ext/numeric.rb +48 -0
  23. data/lib/sitemap_generator/core_ext.rb +3 -0
  24. data/lib/sitemap_generator/helpers/number_helper.rb +237 -0
  25. data/lib/sitemap_generator/interpreter.rb +80 -0
  26. data/lib/sitemap_generator/link_set.rb +665 -0
  27. data/lib/sitemap_generator/railtie.rb +7 -0
  28. data/lib/sitemap_generator/sitemap_location.rb +192 -0
  29. data/lib/sitemap_generator/sitemap_namer.rb +75 -0
  30. data/lib/sitemap_generator/tasks.rb +53 -0
  31. data/lib/sitemap_generator/templates.rb +41 -0
  32. data/lib/sitemap_generator/utilities.rb +181 -0
  33. data/lib/sitemap_generator.rb +82 -0
  34. data/lib/tasks/sitemap_generator_tasks.rake +1 -0
  35. data/rails/install.rb +2 -0
  36. data/rails/uninstall.rb +2 -0
  37. data/spec/blueprint.rb +15 -0
  38. data/spec/files/sitemap.create.rb +12 -0
  39. data/spec/files/sitemap.groups.rb +49 -0
  40. data/spec/sitemap_generator/adapters/s3_adapter_spec.rb +23 -0
  41. data/spec/sitemap_generator/alternate_sitemap_spec.rb +79 -0
  42. data/spec/sitemap_generator/application_spec.rb +69 -0
  43. data/spec/sitemap_generator/builder/sitemap_file_spec.rb +110 -0
  44. data/spec/sitemap_generator/builder/sitemap_index_file_spec.rb +124 -0
  45. data/spec/sitemap_generator/builder/sitemap_index_url_spec.rb +28 -0
  46. data/spec/sitemap_generator/builder/sitemap_url_spec.rb +186 -0
  47. data/spec/sitemap_generator/core_ext/bigdecimal_spec.rb +20 -0
  48. data/spec/sitemap_generator/core_ext/numeric_spec.rb +43 -0
  49. data/spec/sitemap_generator/file_adaptor_spec.rb +20 -0
  50. data/spec/sitemap_generator/geo_sitemap_spec.rb +30 -0
  51. data/spec/sitemap_generator/helpers/number_helper_spec.rb +196 -0
  52. data/spec/sitemap_generator/interpreter_spec.rb +90 -0
  53. data/spec/sitemap_generator/link_set_spec.rb +864 -0
  54. data/spec/sitemap_generator/mobile_sitemap_spec.rb +27 -0
  55. data/spec/sitemap_generator/news_sitemap_spec.rb +42 -0
  56. data/spec/sitemap_generator/pagemap_sitemap_spec.rb +57 -0
  57. data/spec/sitemap_generator/sitemap_generator_spec.rb +582 -0
  58. data/spec/sitemap_generator/sitemap_groups_spec.rb +144 -0
  59. data/spec/sitemap_generator/sitemap_location_spec.rb +210 -0
  60. data/spec/sitemap_generator/sitemap_namer_spec.rb +96 -0
  61. data/spec/sitemap_generator/templates_spec.rb +24 -0
  62. data/spec/sitemap_generator/utilities/existence_spec.rb +26 -0
  63. data/spec/sitemap_generator/utilities/hash_spec.rb +57 -0
  64. data/spec/sitemap_generator/utilities/rounding_spec.rb +31 -0
  65. data/spec/sitemap_generator/utilities_spec.rb +101 -0
  66. data/spec/sitemap_generator/video_sitemap_spec.rb +117 -0
  67. data/spec/spec_helper.rb +24 -0
  68. data/spec/support/file_macros.rb +39 -0
  69. data/spec/support/schemas/siteindex.xsd +73 -0
  70. data/spec/support/schemas/sitemap-geo.xsd +41 -0
  71. data/spec/support/schemas/sitemap-mobile.xsd +32 -0
  72. data/spec/support/schemas/sitemap-news.xsd +159 -0
  73. data/spec/support/schemas/sitemap-pagemap.xsd +97 -0
  74. data/spec/support/schemas/sitemap-video.xsd +643 -0
  75. data/spec/support/schemas/sitemap.xsd +115 -0
  76. data/spec/support/xml_macros.rb +67 -0
  77. data/templates/sitemap.rb +27 -0
  78. 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>