bcms_seo_sitemap 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE.txt +165 -0
- data/README +56 -0
- data/README.markdown +12 -0
- data/app/controllers/application_controller.rb +10 -0
- data/app/controllers/cms/sitemaps_controller.rb +22 -0
- data/app/controllers/sitemaps_controller.rb +9 -0
- data/app/helpers/application_helper.rb +3 -0
- data/app/helpers/cms/sitemaps_helper.rb +2 -0
- data/app/helpers/sitemaps_helper.rb +2 -0
- data/app/views/cms/shared/_admin_sidebar.html.erb +31 -0
- data/app/views/cms/sitemaps/edit.html.erb +11 -0
- data/app/views/layouts/templates/default.html.erb +17 -0
- data/app/views/sitemaps/_sitemap_item.xml.erb +12 -0
- data/app/views/sitemaps/google.xml.erb +7 -0
- data/doc/README_FOR_APP +2 -0
- data/lib/bcms_seo_sitemap/cms/sitemap_generator.rb +35 -0
- data/lib/bcms_seo_sitemap/routes.rb +9 -0
- data/lib/bcms_seo_sitemap.rb +2 -0
- data/rails/init.rb +5 -0
- data/test/functional/cms/sitemaps_controller_test.rb +8 -0
- data/test/functional/sitemaps_controller_test.rb +8 -0
- data/test/performance/browsing_test.rb +9 -0
- data/test/test_helper.rb +38 -0
- data/test/unit/helpers/cms/sitemaps_helper_test.rb +4 -0
- data/test/unit/helpers/sitemaps_helper_test.rb +4 -0
- metadata +111 -0
data/LICENSE.txt
ADDED
@@ -0,0 +1,165 @@
|
|
1
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
2
|
+
Version 3, 29 June 2007
|
3
|
+
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
5
|
+
Everyone is permitted to copy and distribute verbatim copies
|
6
|
+
of this license document, but changing it is not allowed.
|
7
|
+
|
8
|
+
|
9
|
+
This version of the GNU Lesser General Public License incorporates
|
10
|
+
the terms and conditions of version 3 of the GNU General Public
|
11
|
+
License, supplemented by the additional permissions listed below.
|
12
|
+
|
13
|
+
0. Additional Definitions.
|
14
|
+
|
15
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
16
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
17
|
+
General Public License.
|
18
|
+
|
19
|
+
"The Library" refers to a covered work governed by this License,
|
20
|
+
other than an Application or a Combined Work as defined below.
|
21
|
+
|
22
|
+
An "Application" is any work that makes use of an interface provided
|
23
|
+
by the Library, but which is not otherwise based on the Library.
|
24
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
25
|
+
of using an interface provided by the Library.
|
26
|
+
|
27
|
+
A "Combined Work" is a work produced by combining or linking an
|
28
|
+
Application with the Library. The particular version of the Library
|
29
|
+
with which the Combined Work was made is also called the "Linked
|
30
|
+
Version".
|
31
|
+
|
32
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
33
|
+
Corresponding Source for the Combined Work, excluding any source code
|
34
|
+
for portions of the Combined Work that, considered in isolation, are
|
35
|
+
based on the Application, and not on the Linked Version.
|
36
|
+
|
37
|
+
The "Corresponding Application Code" for a Combined Work means the
|
38
|
+
object code and/or source code for the Application, including any data
|
39
|
+
and utility programs needed for reproducing the Combined Work from the
|
40
|
+
Application, but excluding the System Libraries of the Combined Work.
|
41
|
+
|
42
|
+
1. Exception to Section 3 of the GNU GPL.
|
43
|
+
|
44
|
+
You may convey a covered work under sections 3 and 4 of this License
|
45
|
+
without being bound by section 3 of the GNU GPL.
|
46
|
+
|
47
|
+
2. Conveying Modified Versions.
|
48
|
+
|
49
|
+
If you modify a copy of the Library, and, in your modifications, a
|
50
|
+
facility refers to a function or data to be supplied by an Application
|
51
|
+
that uses the facility (other than as an argument passed when the
|
52
|
+
facility is invoked), then you may convey a copy of the modified
|
53
|
+
version:
|
54
|
+
|
55
|
+
a) under this License, provided that you make a good faith effort to
|
56
|
+
ensure that, in the event an Application does not supply the
|
57
|
+
function or data, the facility still operates, and performs
|
58
|
+
whatever part of its purpose remains meaningful, or
|
59
|
+
|
60
|
+
b) under the GNU GPL, with none of the additional permissions of
|
61
|
+
this License applicable to that copy.
|
62
|
+
|
63
|
+
3. Object Code Incorporating Material from Library Header Files.
|
64
|
+
|
65
|
+
The object code form of an Application may incorporate material from
|
66
|
+
a header file that is part of the Library. You may convey such object
|
67
|
+
code under terms of your choice, provided that, if the incorporated
|
68
|
+
material is not limited to numerical parameters, data structure
|
69
|
+
layouts and accessors, or small macros, inline functions and templates
|
70
|
+
(ten or fewer lines in length), you do both of the following:
|
71
|
+
|
72
|
+
a) Give prominent notice with each copy of the object code that the
|
73
|
+
Library is used in it and that the Library and its use are
|
74
|
+
covered by this License.
|
75
|
+
|
76
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
77
|
+
document.
|
78
|
+
|
79
|
+
4. Combined Works.
|
80
|
+
|
81
|
+
You may convey a Combined Work under terms of your choice that,
|
82
|
+
taken together, effectively do not restrict modification of the
|
83
|
+
portions of the Library contained in the Combined Work and reverse
|
84
|
+
engineering for debugging such modifications, if you also do each of
|
85
|
+
the following:
|
86
|
+
|
87
|
+
a) Give prominent notice with each copy of the Combined Work that
|
88
|
+
the Library is used in it and that the Library and its use are
|
89
|
+
covered by this License.
|
90
|
+
|
91
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
92
|
+
document.
|
93
|
+
|
94
|
+
c) For a Combined Work that displays copyright notices during
|
95
|
+
execution, include the copyright notice for the Library among
|
96
|
+
these notices, as well as a reference directing the user to the
|
97
|
+
copies of the GNU GPL and this license document.
|
98
|
+
|
99
|
+
d) Do one of the following:
|
100
|
+
|
101
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
102
|
+
License, and the Corresponding Application Code in a form
|
103
|
+
suitable for, and under terms that permit, the user to
|
104
|
+
recombine or relink the Application with a modified version of
|
105
|
+
the Linked Version to produce a modified Combined Work, in the
|
106
|
+
manner specified by section 6 of the GNU GPL for conveying
|
107
|
+
Corresponding Source.
|
108
|
+
|
109
|
+
1) Use a suitable shared library mechanism for linking with the
|
110
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
111
|
+
a copy of the Library already present on the user's computer
|
112
|
+
system, and (b) will operate properly with a modified version
|
113
|
+
of the Library that is interface-compatible with the Linked
|
114
|
+
Version.
|
115
|
+
|
116
|
+
e) Provide Installation Information, but only if you would otherwise
|
117
|
+
be required to provide such information under section 6 of the
|
118
|
+
GNU GPL, and only to the extent that such information is
|
119
|
+
necessary to install and execute a modified version of the
|
120
|
+
Combined Work produced by recombining or relinking the
|
121
|
+
Application with a modified version of the Linked Version. (If
|
122
|
+
you use option 4d0, the Installation Information must accompany
|
123
|
+
the Minimal Corresponding Source and Corresponding Application
|
124
|
+
Code. If you use option 4d1, you must provide the Installation
|
125
|
+
Information in the manner specified by section 6 of the GNU GPL
|
126
|
+
for conveying Corresponding Source.)
|
127
|
+
|
128
|
+
5. Combined Libraries.
|
129
|
+
|
130
|
+
You may place library facilities that are a work based on the
|
131
|
+
Library side by side in a single library together with other library
|
132
|
+
facilities that are not Applications and are not covered by this
|
133
|
+
License, and convey such a combined library under terms of your
|
134
|
+
choice, if you do both of the following:
|
135
|
+
|
136
|
+
a) Accompany the combined library with a copy of the same work based
|
137
|
+
on the Library, uncombined with any other library facilities,
|
138
|
+
conveyed under the terms of this License.
|
139
|
+
|
140
|
+
b) Give prominent notice with the combined library that part of it
|
141
|
+
is a work based on the Library, and explaining where to find the
|
142
|
+
accompanying uncombined form of the same work.
|
143
|
+
|
144
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
145
|
+
|
146
|
+
The Free Software Foundation may publish revised and/or new versions
|
147
|
+
of the GNU Lesser General Public License from time to time. Such new
|
148
|
+
versions will be similar in spirit to the present version, but may
|
149
|
+
differ in detail to address new problems or concerns.
|
150
|
+
|
151
|
+
Each version is given a distinguishing version number. If the
|
152
|
+
Library as you received it specifies that a certain numbered version
|
153
|
+
of the GNU Lesser General Public License "or any later version"
|
154
|
+
applies to it, you have the option of following the terms and
|
155
|
+
conditions either of that published version or of any later version
|
156
|
+
published by the Free Software Foundation. If the Library as you
|
157
|
+
received it does not specify a version number of the GNU Lesser
|
158
|
+
General Public License, you may choose any version of the GNU Lesser
|
159
|
+
General Public License ever published by the Free Software Foundation.
|
160
|
+
|
161
|
+
If the Library as you received it specifies that a proxy can decide
|
162
|
+
whether future versions of the GNU Lesser General Public License shall
|
163
|
+
apply, that proxy's public statement of acceptance of any version is
|
164
|
+
permanent authorization for you to choose that version for the
|
165
|
+
Library.
|
data/README
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
#Sitemaps Module for BrowserCMS
|
2
|
+
|
3
|
+
This is a simple module that generates a basic xml Sitemap for BrowserCMS
|
4
|
+
projects. For each published page, it generates the <loc></loc> tag according to the [Sitemap
|
5
|
+
protocol](http://www.sitemaps.org/protocol.php) but no metadata.
|
6
|
+
|
7
|
+
To determine which pages should be included in the Sitemap, it leverages
|
8
|
+
BrowserCMS' menu_items helper. This means that hidden or unpublished pages will
|
9
|
+
not be included. Empty sections are also ignored.
|
10
|
+
|
11
|
+
The xml document is exposed at /sitemaps/google.xml
|
12
|
+
|
13
|
+
## Installation
|
14
|
+
|
15
|
+
The blog module installs like most other BrowserCMS modules (http://guides.browsercms.org/installing_modules.html)
|
16
|
+
but it does not require a database migration.
|
17
|
+
|
18
|
+
gem install bcms_seo_sitemap
|
19
|
+
|
20
|
+
## Set up your application to use the module
|
21
|
+
|
22
|
+
### 1. Edit config/environment.rb
|
23
|
+
|
24
|
+
config.gem "browsercms"
|
25
|
+
config.gem "bcms_seo_sitemap"
|
26
|
+
|
27
|
+
### 2. Run the following commands
|
28
|
+
|
29
|
+
script/generate browser_cms
|
30
|
+
|
31
|
+
### 3. Edit config/routes.rb
|
32
|
+
|
33
|
+
Make sure the routes.rb loads the sitemap routes.
|
34
|
+
|
35
|
+
map.routes_for_bcms_seo_sitemap
|
36
|
+
map.routes_for_browser_cms
|
37
|
+
|
38
|
+
##Configuration
|
39
|
+
|
40
|
+
The module adds a new entry under Administration > Tools labeled XML Sitemaps
|
41
|
+
where the module can be configured.
|
42
|
+
|
43
|
+
At the moment, only the "depth" option is available, which is passed to the
|
44
|
+
menu_items helper method. Setting a depth of 2 will result in a call to menu_items
|
45
|
+
like this:
|
46
|
+
|
47
|
+
menu_items(:depth => 2, :show_all_siblings => true, :page => Page.find_by_path('/')
|
48
|
+
|
49
|
+
The module's configuration (currently just one value) is serialized to yaml and
|
50
|
+
kept in config/sitemap.yml. It is not necessary to create this file manually. It
|
51
|
+
will be created when needed.
|
52
|
+
|
53
|
+
A depth value of 0 (the default) will include all published pages.
|
54
|
+
|
55
|
+
|
56
|
+
|
data/README.markdown
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
#Sitemaps Module for BrowserCMS
|
2
|
+
|
3
|
+
This is a simple module that generates a basic xml Sitemap for BrowserCMS
|
4
|
+
projects. For each published page, it generates the <loc></loc> tag according to the [Sitemap
|
5
|
+
protocol](http://www.sitemaps.org/protocol.php) but no metadata.
|
6
|
+
|
7
|
+
To determine which pages should be included in the Sitemap, it leverages
|
8
|
+
BrowserCMS' menu_items helper. This means that hidden or unpublished pages will
|
9
|
+
not be included.
|
10
|
+
|
11
|
+
The xml document is exposed at /sitemaps/google.xml
|
12
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Filters added to this controller apply to all controllers in the application.
|
2
|
+
# Likewise, all the methods added will be available for all controllers.
|
3
|
+
|
4
|
+
class ApplicationController < ActionController::Base
|
5
|
+
helper :all # include all helpers, all the time
|
6
|
+
protect_from_forgery # See ActionController::RequestForgeryProtection for details
|
7
|
+
|
8
|
+
# Scrub sensitive parameters from your log
|
9
|
+
# filter_parameter_logging :password
|
10
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
class Cms::SitemapsController < Cms::BaseController
|
2
|
+
|
3
|
+
layout 'cms/administration'
|
4
|
+
|
5
|
+
check_permissions :administrate
|
6
|
+
before_filter :set_menu_section
|
7
|
+
|
8
|
+
def edit
|
9
|
+
@depth = Cms::SitemapGenerator.depth
|
10
|
+
end
|
11
|
+
|
12
|
+
def update
|
13
|
+
Cms::SitemapGenerator.depth = params[:depth]
|
14
|
+
flash[:notice] = "Sitemap depth updated"
|
15
|
+
redirect_to :action => :edit
|
16
|
+
end
|
17
|
+
|
18
|
+
private
|
19
|
+
def set_menu_section
|
20
|
+
@menu_section = 'xml_sitemaps'
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<div class="first">
|
2
|
+
<h3>Users</h3>
|
3
|
+
<ul>
|
4
|
+
<li<%= ' class="open"' if @menu_section == 'users' %>><%= link_to "Users", cms_users_path %></li>
|
5
|
+
<li<%= ' class="open"' if @menu_section == 'groups' %>><%= link_to "Groups", cms_groups_path %></li>
|
6
|
+
</ul>
|
7
|
+
</div>
|
8
|
+
<div class="bottom_cap bottom_pad"></div>
|
9
|
+
|
10
|
+
<div class="top_cap"></div>
|
11
|
+
<div>
|
12
|
+
<h3>Templates</h3>
|
13
|
+
<ul>
|
14
|
+
<li<%= ' class="open"' if @menu_section == 'page_partials' %>><%= link_to "Page Partials", cms_page_partials_path %></li>
|
15
|
+
<li<%= ' class="open"' if @menu_section == 'page_templates' %>><%= link_to "Page Templates", cms_page_templates_path %></li>
|
16
|
+
<li<%= ' class="open"' if @menu_section == 'page_routes' %>><%= link_to "Page Routes", cms_page_routes_path %></li>
|
17
|
+
</ul>
|
18
|
+
</div>
|
19
|
+
<div class="bottom_cap bottom_pad"></div>
|
20
|
+
|
21
|
+
<div class="top_cap"></div>
|
22
|
+
<div>
|
23
|
+
<h3>Tools</h3>
|
24
|
+
<ul>
|
25
|
+
<li<%= ' class="open"' if @menu_section == 'caching' %>><%= link_to "Page Caching", cms_cache_path %></li>
|
26
|
+
<li<%= ' class="open"' if @menu_section == 'redirects' %>><%= link_to "Redirects", cms_redirects_path %></li>
|
27
|
+
<li<%= ' class="open"' if @menu_section == 'email_messages' %>><%= link_to "Email Messages", cms_email_messages_path %></li>
|
28
|
+
<li<%= ' class="open"' if @menu_section == 'xml_sitemaps' %>><%= link_to "XML Sitemaps", cms_xml_sitemaps_path %></li>
|
29
|
+
</ul>
|
30
|
+
</div>
|
31
|
+
<div class="bottom_cap"></div>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<%= content_for :html_head, stylesheet_link_tag('cms/form_layout') %>
|
2
|
+
<% @page_title = @toolbar_title = "Update Sitemap" %>
|
3
|
+
|
4
|
+
<% form_tag cms_xml_sitemaps_path, :method => :put do %>
|
5
|
+
<div class="fields text_fields">
|
6
|
+
<label for="depth"> Sitemap Depth</label>
|
7
|
+
<%= text_field_tag :depth, @depth %>
|
8
|
+
</div> <div class="buttons">
|
9
|
+
<%= lt_button_wrapper(submit_tag("Update", :class => "submit")) %>
|
10
|
+
</div>
|
11
|
+
<% end %>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
5
|
+
<title><%= page_title %></title>
|
6
|
+
<%= yield :html_head %>
|
7
|
+
</head>
|
8
|
+
<body style="margin: 0; padding: 0; text-align: center;">
|
9
|
+
<%= cms_toolbar %>
|
10
|
+
<div id="wrapper" style="width: 700px; margin: 0 auto; text-align: left; padding: 30px">
|
11
|
+
Breadcrumbs: <%= render_breadcrumbs %>
|
12
|
+
Main Menu: <%= render_menu %>
|
13
|
+
<h1><%= page_title %></h1>
|
14
|
+
<%= container :main %>
|
15
|
+
</div>
|
16
|
+
</body>
|
17
|
+
</html>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<% unless sitemap_item[:url] == "#" %>
|
2
|
+
<url>
|
3
|
+
<loc><%= "http://#{request.host}#{sitemap_item[:url]}" %></loc>
|
4
|
+
</url>
|
5
|
+
<% unless sitemap_item[:children].blank? %>
|
6
|
+
<% sitemap_item[:children].each do |item| %>
|
7
|
+
<% unless sitemap_item[:url] == item[:url] || item[:url] == "#" %>
|
8
|
+
<%= render :partial => 'sitemap_item', :object => item %>
|
9
|
+
<% end %>
|
10
|
+
<% end %>
|
11
|
+
<% end %>
|
12
|
+
<% end %>
|
data/doc/README_FOR_APP
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
module Cms
|
2
|
+
module SitemapGenerator
|
3
|
+
extend self
|
4
|
+
extend Cms::MenuHelper
|
5
|
+
|
6
|
+
CONFIG_PATH = File.join(Rails.root, 'config', 'sitemap.yml')
|
7
|
+
|
8
|
+
def items
|
9
|
+
options = {:page => Page.find_by_path('/'), :show_all_siblings => true}
|
10
|
+
options.merge!(configuration.symbolize_keys!)
|
11
|
+
options.delete(:depth) if configuration[:depth].zero?
|
12
|
+
menu_items(options)
|
13
|
+
end
|
14
|
+
|
15
|
+
def depth=(new_depth)
|
16
|
+
new_config = configuration.merge!({:depth => new_depth.to_i})
|
17
|
+
|
18
|
+
File.open(CONFIG_PATH, 'w') do |out|
|
19
|
+
YAML.dump(new_config, out)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def depth
|
24
|
+
configuration[:depth] || 0
|
25
|
+
end
|
26
|
+
|
27
|
+
private
|
28
|
+
|
29
|
+
def configuration
|
30
|
+
YAML::load(File.open(CONFIG_PATH))
|
31
|
+
rescue Errno::ENOENT
|
32
|
+
{}
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
module Cms::Routes
|
2
|
+
def routes_for_bcms_seo_sitemap
|
3
|
+
google_sitemap '/sitemaps/google.xml', :controller => 'sitemaps', :action => 'google'
|
4
|
+
namespace :cms do |cms|
|
5
|
+
cms.xml_sitemaps 'xml_sitemaps', :controller => 'sitemaps', :action => 'edit', :conditions => {:method => :get}
|
6
|
+
cms.connect '/xml_sitemaps', :controller => 'sitemaps', :action => 'update' , :conditions => {:method => :put}
|
7
|
+
end
|
8
|
+
end
|
9
|
+
end
|
data/rails/init.rb
ADDED
@@ -0,0 +1,5 @@
|
|
1
|
+
gem_root = File.expand_path(File.join(File.dirname(__FILE__), ".."))
|
2
|
+
Cms.add_to_rails_paths gem_root
|
3
|
+
Cms.add_generator_paths gem_root, "db/migrate/[0-9]*_*.rb"
|
4
|
+
Cms.add_generator_paths gem_root, "app/views/cms/shared/_admin_sidebar.html.erb"
|
5
|
+
Cms.add_generator_paths gem_root, "public/bcms/sitemap/**/*"
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
ENV["RAILS_ENV"] = "test"
|
2
|
+
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
|
3
|
+
require 'test_help'
|
4
|
+
|
5
|
+
class ActiveSupport::TestCase
|
6
|
+
# Transactional fixtures accelerate your tests by wrapping each test method
|
7
|
+
# in a transaction that's rolled back on completion. This ensures that the
|
8
|
+
# test database remains unchanged so your fixtures don't have to be reloaded
|
9
|
+
# between every test method. Fewer database queries means faster tests.
|
10
|
+
#
|
11
|
+
# Read Mike Clark's excellent walkthrough at
|
12
|
+
# http://clarkware.com/cgi/blosxom/2005/10/24#Rails10FastTesting
|
13
|
+
#
|
14
|
+
# Every Active Record database supports transactions except MyISAM tables
|
15
|
+
# in MySQL. Turn off transactional fixtures in this case; however, if you
|
16
|
+
# don't care one way or the other, switching from MyISAM to InnoDB tables
|
17
|
+
# is recommended.
|
18
|
+
#
|
19
|
+
# The only drawback to using transactional fixtures is when you actually
|
20
|
+
# need to test transactions. Since your test is bracketed by a transaction,
|
21
|
+
# any transactions started in your code will be automatically rolled back.
|
22
|
+
self.use_transactional_fixtures = true
|
23
|
+
|
24
|
+
# Instantiated fixtures are slow, but give you @david where otherwise you
|
25
|
+
# would need people(:david). If you don't want to migrate your existing
|
26
|
+
# test cases which use the @david style and don't mind the speed hit (each
|
27
|
+
# instantiated fixtures translates to a database query per test method),
|
28
|
+
# then set this back to true.
|
29
|
+
self.use_instantiated_fixtures = false
|
30
|
+
|
31
|
+
# Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
|
32
|
+
#
|
33
|
+
# Note: You'll currently still have to declare fixtures explicitly in integration tests
|
34
|
+
# -- they do not yet inherit this setting
|
35
|
+
fixtures :all
|
36
|
+
|
37
|
+
# Add more helper methods to be used by all tests here...
|
38
|
+
end
|
metadata
ADDED
@@ -0,0 +1,111 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: bcms_seo_sitemap
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 23
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
- 0
|
10
|
+
version: 1.0.0
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- BrowserMedia
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2010-11-24 00:00:00 -06:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: browsercms
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
version: "0"
|
33
|
+
type: :development
|
34
|
+
version_requirements: *id001
|
35
|
+
description: This module generates XML Sitemaps for BrowserCMS Projects
|
36
|
+
email: github@browsermedia.com
|
37
|
+
executables: []
|
38
|
+
|
39
|
+
extensions: []
|
40
|
+
|
41
|
+
extra_rdoc_files:
|
42
|
+
- LICENSE.txt
|
43
|
+
- README
|
44
|
+
- README.markdown
|
45
|
+
files:
|
46
|
+
- app/controllers/application_controller.rb
|
47
|
+
- app/controllers/cms/sitemaps_controller.rb
|
48
|
+
- app/controllers/sitemaps_controller.rb
|
49
|
+
- app/helpers/application_helper.rb
|
50
|
+
- app/helpers/cms/sitemaps_helper.rb
|
51
|
+
- app/helpers/sitemaps_helper.rb
|
52
|
+
- app/views/cms/shared/_admin_sidebar.html.erb
|
53
|
+
- app/views/cms/sitemaps/edit.html.erb
|
54
|
+
- app/views/layouts/templates/default.html.erb
|
55
|
+
- app/views/sitemaps/_sitemap_item.xml.erb
|
56
|
+
- app/views/sitemaps/google.xml.erb
|
57
|
+
- doc/README_FOR_APP
|
58
|
+
- lib/bcms_seo_sitemap.rb
|
59
|
+
- lib/bcms_seo_sitemap/cms/sitemap_generator.rb
|
60
|
+
- lib/bcms_seo_sitemap/routes.rb
|
61
|
+
- rails/init.rb
|
62
|
+
- LICENSE.txt
|
63
|
+
- README
|
64
|
+
- README.markdown
|
65
|
+
- test/functional/cms/sitemaps_controller_test.rb
|
66
|
+
- test/functional/sitemaps_controller_test.rb
|
67
|
+
- test/performance/browsing_test.rb
|
68
|
+
- test/test_helper.rb
|
69
|
+
- test/unit/helpers/cms/sitemaps_helper_test.rb
|
70
|
+
- test/unit/helpers/sitemaps_helper_test.rb
|
71
|
+
has_rdoc: true
|
72
|
+
homepage: https://github.com/browsermedia/bcms_seo_sitemap
|
73
|
+
licenses: []
|
74
|
+
|
75
|
+
post_install_message:
|
76
|
+
rdoc_options:
|
77
|
+
- --charset=UTF-8
|
78
|
+
require_paths:
|
79
|
+
- lib
|
80
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
hash: 3
|
86
|
+
segments:
|
87
|
+
- 0
|
88
|
+
version: "0"
|
89
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
91
|
+
requirements:
|
92
|
+
- - ">="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
hash: 3
|
95
|
+
segments:
|
96
|
+
- 0
|
97
|
+
version: "0"
|
98
|
+
requirements: []
|
99
|
+
|
100
|
+
rubyforge_project:
|
101
|
+
rubygems_version: 1.3.7
|
102
|
+
signing_key:
|
103
|
+
specification_version: 3
|
104
|
+
summary: A Sitemap Module for BrowserCMS
|
105
|
+
test_files:
|
106
|
+
- test/functional/cms/sitemaps_controller_test.rb
|
107
|
+
- test/functional/sitemaps_controller_test.rb
|
108
|
+
- test/performance/browsing_test.rb
|
109
|
+
- test/test_helper.rb
|
110
|
+
- test/unit/helpers/cms/sitemaps_helper_test.rb
|
111
|
+
- test/unit/helpers/sitemaps_helper_test.rb
|