blacklight-sitemap 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +4 -0
- data/VERSION +1 -1
- data/lib/blacklight-sitemap.rb +5 -0
- metadata +4 -4
data/README.rdoc
CHANGED
@@ -29,6 +29,10 @@ Remove create sitemap files:
|
|
29
29
|
|
30
30
|
* Determine the lastmodified date for a particular sub-sitemap. For large indexes, allowing search engines to only download the sitemaps which have changed will be important. Can we always sort by timestamp?
|
31
31
|
* How to more fully test the gem independent from a Rails application with Blacklight installed?
|
32
|
+
* Instead of having to hardcode the base url find an easy way to include Blacklight route url helpers in the rake task.
|
33
|
+
* Incremental sitemaps?
|
34
|
+
* Check file size to insure a sitemap doesn't go above the 10MB limit.
|
35
|
+
* Insure the sitemap index file does not exceed 50,000 sitemaps and 10MB.
|
32
36
|
|
33
37
|
== Author
|
34
38
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/lib/blacklight-sitemap.rb
CHANGED
@@ -51,6 +51,7 @@ module Rake
|
|
51
51
|
|
52
52
|
desc 'create a sitemap for blacklight'
|
53
53
|
task :create => :environment do
|
54
|
+
start_time = Time.now
|
54
55
|
puts 'Creating a sitemap...'
|
55
56
|
fl = ['id', @lastmod_field, @priority_field].compact.join(',')
|
56
57
|
base_solr_parameters = {:qt => 'standard', :q => 'id:[* TO *]', :fl => fl}
|
@@ -104,6 +105,10 @@ module Rake
|
|
104
105
|
fh.puts sitemap_index_builder.to_xml
|
105
106
|
end
|
106
107
|
puts 'Done.'
|
108
|
+
end_time = Time.now
|
109
|
+
puts 'Create start time: ' + start_time.to_s
|
110
|
+
puts 'Create end time: ' + end_time.to_s
|
111
|
+
puts 'Execution time in seconds: ' + (end_time - start_time).to_s
|
107
112
|
end # task :sitemap
|
108
113
|
|
109
114
|
desc 'clobber sitemap files'
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blacklight-sitemap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jason Ronallo
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-12-
|
18
|
+
date: 2010-12-03 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|