rails_sitemap 0.2.0 → 0.2.1
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/app/controllers/rails_sitemap/{sitemap_controller.rb → pages_controller.rb} +1 -1
- data/app/controllers/rails_sitemap/sitemaps_controller.rb +18 -0
- data/app/views/rails_sitemap/locations/index.kml.erb +1 -1
- data/app/views/rails_sitemap/{sitemap → pages}/index.xml.erb +0 -0
- data/app/views/rails_sitemap/sitemaps/index.xml.erb +10 -0
- data/config/routes.rb +2 -1
- data/lib/rails_sitemap/version.rb +1 -1
- data/test/dummy/log/test.log +705 -0
- data/test/integration/locations_controller_test.rb +1 -1
- data/test/integration/{sitemap_controller_test.rb → pages_controller_test.rb} +4 -4
- data/test/integration/sitemaps_controller_test.rb +13 -0
- metadata +9 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf41d7743f877f2479197a842030f864de9144af
|
4
|
+
data.tar.gz: dce30c9ed640a1ecc314e0c4780708cdddab612b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57f713977f9fffa2d904f24beffefbeadfdef7596ce3a752fe6a0e641254f9a63a42002d30cfa5e2464dc027cb01519632f7547c26e1ff340b9073396e461ab9
|
7
|
+
data.tar.gz: 87744365d0d51a53172f2682af08aa1e57586fa5975776719a7b582673ab8721f62ea1a7262c47444f6faef943e8303cf4bcbad3e5d0411bcc1ff05e1b2ca5c3
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module RailsSitemap
|
2
|
+
class SitemapsController < ApplicationController
|
3
|
+
include RailsSitemap::ActAsSitemap
|
4
|
+
before_action :set_sitemaps
|
5
|
+
|
6
|
+
def index
|
7
|
+
respond_to do |format|
|
8
|
+
format.xml
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
private
|
13
|
+
|
14
|
+
def set_sitemaps
|
15
|
+
@sitemap_endpoints = %w(pages-sitemap attachment-sitemap geo-sitemap)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<kml xmlns="http://earth.google.com/kml/2.2">
|
3
|
-
|
3
|
+
<%@locations.each do |location|%>
|
4
4
|
<Placemark>
|
5
5
|
<name><%=location.try(:[], :name)%></name>
|
6
6
|
<description><%=location.try(:[], :description)%></description>
|
File without changes
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
|
3
|
+
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
4
|
+
<%@sitemap_endpoints.each do |sitemap_endpoint|%>
|
5
|
+
<sitemap>
|
6
|
+
<loc><%="#{@current_domain}/#{sitemap_endpoint}.xml"%></loc>
|
7
|
+
<lastmod><%=RailsSitemap.updated_at%></lastmod>
|
8
|
+
</sitemap>
|
9
|
+
<%end%>
|
10
|
+
</sitemapindex>
|
data/config/routes.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
RailsSitemap::Engine.routes.draw do
|
2
|
-
get 'sitemap' => '
|
2
|
+
get 'pages-sitemap' => 'pages#index'
|
3
3
|
get 'attachment-sitemap' => 'attachment#index'
|
4
4
|
get 'geo-sitemap' => 'geo#index'
|
5
|
+
get 'sitemap' => 'sitemaps#index'
|
5
6
|
|
6
7
|
resources :locations, only: :index
|
7
8
|
end
|
data/test/dummy/log/test.log
CHANGED
@@ -5872,3 +5872,708 @@ Processing by RailsSitemap::LocationsController#index as KML
|
|
5872
5872
|
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.4ms)
|
5873
5873
|
Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms)
|
5874
5874
|
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
5875
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5876
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5877
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
5878
|
+
-----------------------------------------------------------
|
5879
|
+
AttachmentControllerTest: test_should_return_a_success_code
|
5880
|
+
-----------------------------------------------------------
|
5881
|
+
Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:29:14 -0300
|
5882
|
+
Processing by RailsSitemap::AttachmentController#index as XML
|
5883
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
|
5884
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (2.3ms)
|
5885
|
+
Completed 200 OK in 242ms (Views: 9.8ms | ActiveRecord: 0.0ms)
|
5886
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
5887
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
5888
|
+
----------------------------------------------------------
|
5889
|
+
AttachmentControllerTest: test_should_return_the_right_xml
|
5890
|
+
----------------------------------------------------------
|
5891
|
+
Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:29:15 -0300
|
5892
|
+
Processing by RailsSitemap::AttachmentController#index as XML
|
5893
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
|
5894
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.4ms)
|
5895
|
+
Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.0ms)
|
5896
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
5897
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
5898
|
+
------------------------------------------------------
|
5899
|
+
PagesControllerTest: test_should_return_a_success_code
|
5900
|
+
------------------------------------------------------
|
5901
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:29:15 -0300
|
5902
|
+
Processing by RailsSitemap::PagesController#index as XML
|
5903
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
5904
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
5905
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
|
5906
|
+
Completed 200 OK in 9ms (Views: 5.0ms | ActiveRecord: 0.2ms)
|
5907
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
5908
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
5909
|
+
---------------------------------------------------------------
|
5910
|
+
PagesControllerTest: test_should_return_the_articles_on_sitemap
|
5911
|
+
---------------------------------------------------------------
|
5912
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ?[0m [["name", "My first article"], ["LIMIT", 1]]
|
5913
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5914
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "My first article"], ["created_at", 2016-09-28 17:29:15 UTC], ["updated_at", 2016-09-28 17:29:15 UTC]]
|
5915
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5916
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:29:15 -0300
|
5917
|
+
Processing by RailsSitemap::PagesController#index as XML
|
5918
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
5919
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
5920
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.4ms)
|
5921
|
+
Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.1ms)
|
5922
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
5923
|
+
[1m[35m (2.1ms)[0m [1m[31mrollback transaction[0m
|
5924
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
5925
|
+
-----------------------------------------------------
|
5926
|
+
PagesControllerTest: test_should_return_the_right_xml
|
5927
|
+
-----------------------------------------------------
|
5928
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:29:15 -0300
|
5929
|
+
Processing by RailsSitemap::PagesController#index as XML
|
5930
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
5931
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
5932
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
|
5933
|
+
Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.1ms)
|
5934
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
5935
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
5936
|
+
---------------------------------------------------------
|
5937
|
+
SitemapsControllerTest: test_should_return_a_success_code
|
5938
|
+
---------------------------------------------------------
|
5939
|
+
Started GET "/sitemap.xml" for 127.0.0.1 at 2016-09-28 14:29:15 -0300
|
5940
|
+
Processing by RailsSitemap::SitemapsController#index as XML
|
5941
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
|
5942
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (7.5ms)
|
5943
|
+
Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.0ms)
|
5944
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
5945
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
5946
|
+
----------------------------
|
5947
|
+
RailsSitemapTest: test_truth
|
5948
|
+
----------------------------
|
5949
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
5950
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
5951
|
+
----------------------------------------------------------
|
5952
|
+
LocationsControllerTest: test_should_return_a_success_code
|
5953
|
+
----------------------------------------------------------
|
5954
|
+
Started GET "/locations.kml" for 127.0.0.1 at 2016-09-28 14:29:15 -0300
|
5955
|
+
Processing by RailsSitemap::LocationsController#index as KML
|
5956
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
|
5957
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.5ms)
|
5958
|
+
Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.0ms)
|
5959
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
5960
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
5961
|
+
---------------------------------------------------------
|
5962
|
+
LocationsControllerTest: test_should_return_the_right_xml
|
5963
|
+
---------------------------------------------------------
|
5964
|
+
Started GET "/locations.kml" for 127.0.0.1 at 2016-09-28 14:29:15 -0300
|
5965
|
+
Processing by RailsSitemap::LocationsController#index as KML
|
5966
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
|
5967
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.4ms)
|
5968
|
+
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.0ms)
|
5969
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
5970
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
5971
|
+
----------------------------------------------------
|
5972
|
+
GeoControllerTest: test_should_return_a_success_code
|
5973
|
+
----------------------------------------------------
|
5974
|
+
Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:29:15 -0300
|
5975
|
+
Processing by RailsSitemap::GeoController#index as XML
|
5976
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
|
5977
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.4ms)
|
5978
|
+
Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms)
|
5979
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
5980
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
5981
|
+
---------------------------------------------------
|
5982
|
+
GeoControllerTest: test_should_return_the_right_xml
|
5983
|
+
---------------------------------------------------
|
5984
|
+
Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:29:15 -0300
|
5985
|
+
Processing by RailsSitemap::GeoController#index as XML
|
5986
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
|
5987
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.3ms)
|
5988
|
+
Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.0ms)
|
5989
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
5990
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5991
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
5992
|
+
-----------------------------------------------------------
|
5993
|
+
AttachmentControllerTest: test_should_return_a_success_code
|
5994
|
+
-----------------------------------------------------------
|
5995
|
+
Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:29:37 -0300
|
5996
|
+
Processing by RailsSitemap::AttachmentController#index as XML
|
5997
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
|
5998
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (2.2ms)
|
5999
|
+
Completed 200 OK in 255ms (Views: 11.2ms | ActiveRecord: 0.0ms)
|
6000
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6001
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6002
|
+
----------------------------------------------------------
|
6003
|
+
AttachmentControllerTest: test_should_return_the_right_xml
|
6004
|
+
----------------------------------------------------------
|
6005
|
+
Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:29:37 -0300
|
6006
|
+
Processing by RailsSitemap::AttachmentController#index as XML
|
6007
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
|
6008
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.4ms)
|
6009
|
+
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.0ms)
|
6010
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6011
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
6012
|
+
------------------------------------------------------
|
6013
|
+
PagesControllerTest: test_should_return_a_success_code
|
6014
|
+
------------------------------------------------------
|
6015
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:29:37 -0300
|
6016
|
+
Processing by RailsSitemap::PagesController#index as XML
|
6017
|
+
[1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
6018
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
6019
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
|
6020
|
+
Completed 200 OK in 16ms (Views: 7.4ms | ActiveRecord: 0.5ms)
|
6021
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6022
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6023
|
+
---------------------------------------------------------------
|
6024
|
+
PagesControllerTest: test_should_return_the_articles_on_sitemap
|
6025
|
+
---------------------------------------------------------------
|
6026
|
+
[1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ?[0m [["name", "My first article"], ["LIMIT", 1]]
|
6027
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
6028
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "My first article"], ["created_at", 2016-09-28 17:29:37 UTC], ["updated_at", 2016-09-28 17:29:37 UTC]]
|
6029
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
6030
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:29:37 -0300
|
6031
|
+
Processing by RailsSitemap::PagesController#index as XML
|
6032
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
6033
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
6034
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
|
6035
|
+
Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.1ms)
|
6036
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
6037
|
+
[1m[35m (2.1ms)[0m [1m[31mrollback transaction[0m
|
6038
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6039
|
+
-----------------------------------------------------
|
6040
|
+
PagesControllerTest: test_should_return_the_right_xml
|
6041
|
+
-----------------------------------------------------
|
6042
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:29:37 -0300
|
6043
|
+
Processing by RailsSitemap::PagesController#index as XML
|
6044
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
6045
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
6046
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
|
6047
|
+
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.1ms)
|
6048
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6049
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
6050
|
+
---------------------------------------------------------
|
6051
|
+
SitemapsControllerTest: test_should_return_a_success_code
|
6052
|
+
---------------------------------------------------------
|
6053
|
+
Started GET "/sitemap.xml" for 127.0.0.1 at 2016-09-28 14:29:37 -0300
|
6054
|
+
Processing by RailsSitemap::SitemapsController#index as XML
|
6055
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
|
6056
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (5.1ms)
|
6057
|
+
Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.0ms)
|
6058
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6059
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6060
|
+
---------------------------------------------------------
|
6061
|
+
LocationsControllerTest: test_should_return_the_right_xml
|
6062
|
+
---------------------------------------------------------
|
6063
|
+
Started GET "/locations.kml" for 127.0.0.1 at 2016-09-28 14:29:37 -0300
|
6064
|
+
Processing by RailsSitemap::LocationsController#index as KML
|
6065
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
|
6066
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.4ms)
|
6067
|
+
Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.0ms)
|
6068
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6069
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6070
|
+
----------------------------------------------------------
|
6071
|
+
LocationsControllerTest: test_should_return_a_success_code
|
6072
|
+
----------------------------------------------------------
|
6073
|
+
Started GET "/locations.kml" for 127.0.0.1 at 2016-09-28 14:30:58 -0300
|
6074
|
+
Processing by RailsSitemap::LocationsController#index as KML
|
6075
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
|
6076
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (1.4ms)
|
6077
|
+
Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.0ms)
|
6078
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6079
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
6080
|
+
---------------------------------------------------
|
6081
|
+
GeoControllerTest: test_should_return_the_right_xml
|
6082
|
+
---------------------------------------------------
|
6083
|
+
Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:30:58 -0300
|
6084
|
+
Processing by RailsSitemap::GeoController#index as XML
|
6085
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
|
6086
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.4ms)
|
6087
|
+
Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.0ms)
|
6088
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6089
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6090
|
+
----------------------------------------------------
|
6091
|
+
GeoControllerTest: test_should_return_a_success_code
|
6092
|
+
----------------------------------------------------
|
6093
|
+
Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:30:58 -0300
|
6094
|
+
Processing by RailsSitemap::GeoController#index as XML
|
6095
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
|
6096
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.4ms)
|
6097
|
+
Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.0ms)
|
6098
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6099
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
6100
|
+
----------------------------
|
6101
|
+
RailsSitemapTest: test_truth
|
6102
|
+
----------------------------
|
6103
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
6104
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6105
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6106
|
+
---------------------------------------------------------
|
6107
|
+
SitemapsControllerTest: test_should_return_a_success_code
|
6108
|
+
---------------------------------------------------------
|
6109
|
+
Started GET "/sitemap.xml" for 127.0.0.1 at 2016-09-28 14:31:22 -0300
|
6110
|
+
Processing by RailsSitemap::SitemapsController#index as XML
|
6111
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
|
6112
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (4.6ms)
|
6113
|
+
Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.0ms)
|
6114
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6115
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6116
|
+
----------------------------------------------------
|
6117
|
+
GeoControllerTest: test_should_return_a_success_code
|
6118
|
+
----------------------------------------------------
|
6119
|
+
Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:31:22 -0300
|
6120
|
+
Processing by RailsSitemap::GeoController#index as XML
|
6121
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
|
6122
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.3ms)
|
6123
|
+
Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.0ms)
|
6124
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6125
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6126
|
+
---------------------------------------------------
|
6127
|
+
GeoControllerTest: test_should_return_the_right_xml
|
6128
|
+
---------------------------------------------------
|
6129
|
+
Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:31:22 -0300
|
6130
|
+
Processing by RailsSitemap::GeoController#index as XML
|
6131
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
|
6132
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.3ms)
|
6133
|
+
Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.0ms)
|
6134
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6135
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
6136
|
+
-----------------------------------------------------------
|
6137
|
+
AttachmentControllerTest: test_should_return_a_success_code
|
6138
|
+
-----------------------------------------------------------
|
6139
|
+
Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:31:22 -0300
|
6140
|
+
Processing by RailsSitemap::AttachmentController#index as XML
|
6141
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
|
6142
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.5ms)
|
6143
|
+
Completed 200 OK in 233ms (Views: 4.6ms | ActiveRecord: 0.0ms)
|
6144
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6145
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6146
|
+
----------------------------------------------------------
|
6147
|
+
AttachmentControllerTest: test_should_return_the_right_xml
|
6148
|
+
----------------------------------------------------------
|
6149
|
+
Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:31:23 -0300
|
6150
|
+
Processing by RailsSitemap::AttachmentController#index as XML
|
6151
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
|
6152
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.5ms)
|
6153
|
+
Completed 200 OK in 8ms (Views: 4.6ms | ActiveRecord: 0.0ms)
|
6154
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6155
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
6156
|
+
------------------------------------------------------
|
6157
|
+
PagesControllerTest: test_should_return_a_success_code
|
6158
|
+
------------------------------------------------------
|
6159
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:31:23 -0300
|
6160
|
+
Processing by RailsSitemap::PagesController#index as XML
|
6161
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
6162
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
6163
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
|
6164
|
+
Completed 200 OK in 10ms (Views: 4.9ms | ActiveRecord: 0.3ms)
|
6165
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6166
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
6167
|
+
---------------------------------------------------------------
|
6168
|
+
PagesControllerTest: test_should_return_the_articles_on_sitemap
|
6169
|
+
---------------------------------------------------------------
|
6170
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ?[0m [["name", "My first article"], ["LIMIT", 1]]
|
6171
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
6172
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "My first article"], ["created_at", 2016-09-28 17:31:23 UTC], ["updated_at", 2016-09-28 17:31:23 UTC]]
|
6173
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
6174
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:31:23 -0300
|
6175
|
+
Processing by RailsSitemap::PagesController#index as XML
|
6176
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
6177
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
6178
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
|
6179
|
+
Completed 200 OK in 9ms (Views: 5.7ms | ActiveRecord: 0.1ms)
|
6180
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
6181
|
+
[1m[35m (2.2ms)[0m [1m[31mrollback transaction[0m
|
6182
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6183
|
+
-----------------------------------------------------
|
6184
|
+
PagesControllerTest: test_should_return_the_right_xml
|
6185
|
+
-----------------------------------------------------
|
6186
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:31:23 -0300
|
6187
|
+
Processing by RailsSitemap::PagesController#index as XML
|
6188
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
6189
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
6190
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
|
6191
|
+
Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.1ms)
|
6192
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6193
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6194
|
+
----------------------------------------------------------
|
6195
|
+
LocationsControllerTest: test_should_return_a_success_code
|
6196
|
+
----------------------------------------------------------
|
6197
|
+
Started GET "/locations.kml" for 127.0.0.1 at 2016-09-28 14:31:23 -0300
|
6198
|
+
Processing by RailsSitemap::LocationsController#index as KML
|
6199
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
|
6200
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.4ms)
|
6201
|
+
Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.0ms)
|
6202
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6203
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6204
|
+
---------------------------------------------------------
|
6205
|
+
LocationsControllerTest: test_should_return_the_right_xml
|
6206
|
+
---------------------------------------------------------
|
6207
|
+
Started GET "/locations.kml" for 127.0.0.1 at 2016-09-28 14:31:23 -0300
|
6208
|
+
Processing by RailsSitemap::LocationsController#index as KML
|
6209
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
|
6210
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.4ms)
|
6211
|
+
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.0ms)
|
6212
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6213
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
6214
|
+
----------------------------
|
6215
|
+
RailsSitemapTest: test_truth
|
6216
|
+
----------------------------
|
6217
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6218
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6219
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6220
|
+
----------------------------------------------------------
|
6221
|
+
LocationsControllerTest: test_should_return_a_success_code
|
6222
|
+
----------------------------------------------------------
|
6223
|
+
Started GET "/locations.kml" for 127.0.0.1 at 2016-09-28 14:32:01 -0300
|
6224
|
+
Processing by RailsSitemap::LocationsController#index as KML
|
6225
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
|
6226
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (1.0ms)
|
6227
|
+
Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.0ms)
|
6228
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6229
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6230
|
+
---------------------------------------------------------
|
6231
|
+
LocationsControllerTest: test_should_return_the_right_xml
|
6232
|
+
---------------------------------------------------------
|
6233
|
+
Started GET "/locations.kml" for 127.0.0.1 at 2016-09-28 14:32:01 -0300
|
6234
|
+
Processing by RailsSitemap::LocationsController#index as KML
|
6235
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
|
6236
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.4ms)
|
6237
|
+
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.0ms)
|
6238
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
6239
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
6240
|
+
----------------------------------------------------
|
6241
|
+
GeoControllerTest: test_should_return_a_success_code
|
6242
|
+
----------------------------------------------------
|
6243
|
+
Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:32:01 -0300
|
6244
|
+
Processing by RailsSitemap::GeoController#index as XML
|
6245
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
|
6246
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.3ms)
|
6247
|
+
Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.0ms)
|
6248
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6249
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6250
|
+
---------------------------------------------------
|
6251
|
+
GeoControllerTest: test_should_return_the_right_xml
|
6252
|
+
---------------------------------------------------
|
6253
|
+
Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:32:01 -0300
|
6254
|
+
Processing by RailsSitemap::GeoController#index as XML
|
6255
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
|
6256
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.5ms)
|
6257
|
+
Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.0ms)
|
6258
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6259
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
6260
|
+
---------------------------------------------------------------
|
6261
|
+
PagesControllerTest: test_should_return_the_articles_on_sitemap
|
6262
|
+
---------------------------------------------------------------
|
6263
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ?[0m [["name", "My first article"], ["LIMIT", 1]]
|
6264
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
6265
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "My first article"], ["created_at", 2016-09-28 17:32:01 UTC], ["updated_at", 2016-09-28 17:32:01 UTC]]
|
6266
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
6267
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:32:01 -0300
|
6268
|
+
Processing by RailsSitemap::PagesController#index as XML
|
6269
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
6270
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
6271
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.9ms)
|
6272
|
+
Completed 200 OK in 12ms (Views: 7.9ms | ActiveRecord: 0.1ms)
|
6273
|
+
[1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
6274
|
+
[1m[35m (2.2ms)[0m [1m[31mrollback transaction[0m
|
6275
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6276
|
+
-----------------------------------------------------
|
6277
|
+
PagesControllerTest: test_should_return_the_right_xml
|
6278
|
+
-----------------------------------------------------
|
6279
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:32:01 -0300
|
6280
|
+
Processing by RailsSitemap::PagesController#index as XML
|
6281
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
6282
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
6283
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.7ms)
|
6284
|
+
Completed 200 OK in 12ms (Views: 9.5ms | ActiveRecord: 0.1ms)
|
6285
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6286
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
6287
|
+
------------------------------------------------------
|
6288
|
+
PagesControllerTest: test_should_return_a_success_code
|
6289
|
+
------------------------------------------------------
|
6290
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:32:01 -0300
|
6291
|
+
Processing by RailsSitemap::PagesController#index as XML
|
6292
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
6293
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
6294
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.4ms)
|
6295
|
+
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.1ms)
|
6296
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
6297
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6298
|
+
----------------------------
|
6299
|
+
RailsSitemapTest: test_truth
|
6300
|
+
----------------------------
|
6301
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
6302
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
6303
|
+
-----------------------------------------------------------
|
6304
|
+
AttachmentControllerTest: test_should_return_a_success_code
|
6305
|
+
-----------------------------------------------------------
|
6306
|
+
Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:32:01 -0300
|
6307
|
+
Processing by RailsSitemap::AttachmentController#index as XML
|
6308
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
|
6309
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.4ms)
|
6310
|
+
Completed 200 OK in 225ms (Views: 4.4ms | ActiveRecord: 0.0ms)
|
6311
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6312
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
6313
|
+
----------------------------------------------------------
|
6314
|
+
AttachmentControllerTest: test_should_return_the_right_xml
|
6315
|
+
----------------------------------------------------------
|
6316
|
+
Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:32:01 -0300
|
6317
|
+
Processing by RailsSitemap::AttachmentController#index as XML
|
6318
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
|
6319
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.4ms)
|
6320
|
+
Completed 200 OK in 9ms (Views: 5.1ms | ActiveRecord: 0.0ms)
|
6321
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6322
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6323
|
+
---------------------------------------------------------
|
6324
|
+
SitemapsControllerTest: test_should_return_a_success_code
|
6325
|
+
---------------------------------------------------------
|
6326
|
+
Started GET "/sitemap.xml" for 127.0.0.1 at 2016-09-28 14:32:01 -0300
|
6327
|
+
Processing by RailsSitemap::SitemapsController#index as XML
|
6328
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
|
6329
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.4ms)
|
6330
|
+
Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.0ms)
|
6331
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6332
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6333
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6334
|
+
---------------------------------------------------------
|
6335
|
+
LocationsControllerTest: test_should_return_the_right_xml
|
6336
|
+
---------------------------------------------------------
|
6337
|
+
Started GET "/locations.kml" for 127.0.0.1 at 2016-09-28 14:32:33 -0300
|
6338
|
+
Processing by RailsSitemap::LocationsController#index as KML
|
6339
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
|
6340
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (1.0ms)
|
6341
|
+
Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.0ms)
|
6342
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6343
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6344
|
+
----------------------------------------------------------
|
6345
|
+
LocationsControllerTest: test_should_return_a_success_code
|
6346
|
+
----------------------------------------------------------
|
6347
|
+
Started GET "/locations.kml" for 127.0.0.1 at 2016-09-28 14:32:33 -0300
|
6348
|
+
Processing by RailsSitemap::LocationsController#index as KML
|
6349
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
|
6350
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.4ms)
|
6351
|
+
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.0ms)
|
6352
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
6353
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
6354
|
+
----------------------------------------------------
|
6355
|
+
GeoControllerTest: test_should_return_a_success_code
|
6356
|
+
----------------------------------------------------
|
6357
|
+
Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:32:33 -0300
|
6358
|
+
Processing by RailsSitemap::GeoController#index as XML
|
6359
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
|
6360
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.3ms)
|
6361
|
+
Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.0ms)
|
6362
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6363
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6364
|
+
---------------------------------------------------
|
6365
|
+
GeoControllerTest: test_should_return_the_right_xml
|
6366
|
+
---------------------------------------------------
|
6367
|
+
Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:32:33 -0300
|
6368
|
+
Processing by RailsSitemap::GeoController#index as XML
|
6369
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
|
6370
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.4ms)
|
6371
|
+
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.0ms)
|
6372
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6373
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
6374
|
+
----------------------------
|
6375
|
+
RailsSitemapTest: test_truth
|
6376
|
+
----------------------------
|
6377
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
6378
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6379
|
+
---------------------------------------------------------
|
6380
|
+
SitemapsControllerTest: test_should_return_a_success_code
|
6381
|
+
---------------------------------------------------------
|
6382
|
+
Started GET "/sitemap.xml" for 127.0.0.1 at 2016-09-28 14:32:33 -0300
|
6383
|
+
Processing by RailsSitemap::SitemapsController#index as XML
|
6384
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
|
6385
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.5ms)
|
6386
|
+
Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.0ms)
|
6387
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6388
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6389
|
+
--------------------------------------------------------
|
6390
|
+
SitemapsControllerTest: test_should_return_the_right_xml
|
6391
|
+
--------------------------------------------------------
|
6392
|
+
Started GET "/sitemap.xml" for 127.0.0.1 at 2016-09-28 14:32:33 -0300
|
6393
|
+
Processing by RailsSitemap::SitemapsController#index as XML
|
6394
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
|
6395
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.4ms)
|
6396
|
+
Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 0.0ms)
|
6397
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6398
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6399
|
+
-----------------------------------------------------------
|
6400
|
+
AttachmentControllerTest: test_should_return_a_success_code
|
6401
|
+
-----------------------------------------------------------
|
6402
|
+
Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:33:22 -0300
|
6403
|
+
Processing by RailsSitemap::AttachmentController#index as XML
|
6404
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
|
6405
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.9ms)
|
6406
|
+
Completed 200 OK in 176ms (Views: 8.4ms | ActiveRecord: 0.0ms)
|
6407
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6408
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6409
|
+
----------------------------------------------------------
|
6410
|
+
AttachmentControllerTest: test_should_return_the_right_xml
|
6411
|
+
----------------------------------------------------------
|
6412
|
+
Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:33:22 -0300
|
6413
|
+
Processing by RailsSitemap::AttachmentController#index as XML
|
6414
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
|
6415
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.9ms)
|
6416
|
+
Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 0.0ms)
|
6417
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6418
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6419
|
+
------------------------------------------------------
|
6420
|
+
PagesControllerTest: test_should_return_a_success_code
|
6421
|
+
------------------------------------------------------
|
6422
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:33:22 -0300
|
6423
|
+
Processing by RailsSitemap::PagesController#index as XML
|
6424
|
+
[1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
6425
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
6426
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
|
6427
|
+
Completed 200 OK in 14ms (Views: 5.2ms | ActiveRecord: 0.4ms)
|
6428
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6429
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6430
|
+
---------------------------------------------------------------
|
6431
|
+
PagesControllerTest: test_should_return_the_articles_on_sitemap
|
6432
|
+
---------------------------------------------------------------
|
6433
|
+
[1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ?[0m [["name", "My first article"], ["LIMIT", 1]]
|
6434
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
6435
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "My first article"], ["created_at", 2016-09-28 17:33:22 UTC], ["updated_at", 2016-09-28 17:33:22 UTC]]
|
6436
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
6437
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:33:22 -0300
|
6438
|
+
Processing by RailsSitemap::PagesController#index as XML
|
6439
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
6440
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
6441
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
|
6442
|
+
Completed 200 OK in 9ms (Views: 5.9ms | ActiveRecord: 0.1ms)
|
6443
|
+
[1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
6444
|
+
[1m[35m (2.0ms)[0m [1m[31mrollback transaction[0m
|
6445
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6446
|
+
-----------------------------------------------------
|
6447
|
+
PagesControllerTest: test_should_return_the_right_xml
|
6448
|
+
-----------------------------------------------------
|
6449
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:33:22 -0300
|
6450
|
+
Processing by RailsSitemap::PagesController#index as XML
|
6451
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
6452
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
6453
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
|
6454
|
+
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.1ms)
|
6455
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6456
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6457
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6458
|
+
-----------------------------------------------------------
|
6459
|
+
AttachmentControllerTest: test_should_return_a_success_code
|
6460
|
+
-----------------------------------------------------------
|
6461
|
+
Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:33:27 -0300
|
6462
|
+
Processing by RailsSitemap::AttachmentController#index as XML
|
6463
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
|
6464
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (1.1ms)
|
6465
|
+
Completed 200 OK in 259ms (Views: 14.9ms | ActiveRecord: 0.0ms)
|
6466
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6467
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6468
|
+
----------------------------------------------------------
|
6469
|
+
AttachmentControllerTest: test_should_return_the_right_xml
|
6470
|
+
----------------------------------------------------------
|
6471
|
+
Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:33:27 -0300
|
6472
|
+
Processing by RailsSitemap::AttachmentController#index as XML
|
6473
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
|
6474
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.4ms)
|
6475
|
+
Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.0ms)
|
6476
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6477
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
6478
|
+
---------------------------------------------------------------
|
6479
|
+
PagesControllerTest: test_should_return_the_articles_on_sitemap
|
6480
|
+
---------------------------------------------------------------
|
6481
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ?[0m [["name", "My first article"], ["LIMIT", 1]]
|
6482
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
6483
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "My first article"], ["created_at", 2016-09-28 17:33:27 UTC], ["updated_at", 2016-09-28 17:33:27 UTC]]
|
6484
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
6485
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:33:27 -0300
|
6486
|
+
Processing by RailsSitemap::PagesController#index as XML
|
6487
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
6488
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
6489
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
|
6490
|
+
Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.1ms)
|
6491
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
6492
|
+
[1m[35m (2.2ms)[0m [1m[31mrollback transaction[0m
|
6493
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6494
|
+
------------------------------------------------------
|
6495
|
+
PagesControllerTest: test_should_return_a_success_code
|
6496
|
+
------------------------------------------------------
|
6497
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:33:27 -0300
|
6498
|
+
Processing by RailsSitemap::PagesController#index as XML
|
6499
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
6500
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
6501
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.7ms)
|
6502
|
+
Completed 200 OK in 12ms (Views: 8.1ms | ActiveRecord: 0.1ms)
|
6503
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6504
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6505
|
+
-----------------------------------------------------
|
6506
|
+
PagesControllerTest: test_should_return_the_right_xml
|
6507
|
+
-----------------------------------------------------
|
6508
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:33:27 -0300
|
6509
|
+
Processing by RailsSitemap::PagesController#index as XML
|
6510
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
6511
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
6512
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
|
6513
|
+
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.1ms)
|
6514
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6515
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
6516
|
+
----------------------------------------------------------
|
6517
|
+
LocationsControllerTest: test_should_return_a_success_code
|
6518
|
+
----------------------------------------------------------
|
6519
|
+
Started GET "/locations.kml" for 127.0.0.1 at 2016-09-28 14:33:27 -0300
|
6520
|
+
Processing by RailsSitemap::LocationsController#index as KML
|
6521
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
|
6522
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.4ms)
|
6523
|
+
Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms)
|
6524
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6525
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
6526
|
+
---------------------------------------------------------
|
6527
|
+
LocationsControllerTest: test_should_return_the_right_xml
|
6528
|
+
---------------------------------------------------------
|
6529
|
+
Started GET "/locations.kml" for 127.0.0.1 at 2016-09-28 14:33:27 -0300
|
6530
|
+
Processing by RailsSitemap::LocationsController#index as KML
|
6531
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
|
6532
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.3ms)
|
6533
|
+
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.0ms)
|
6534
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
6535
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
6536
|
+
----------------------------------------------------
|
6537
|
+
GeoControllerTest: test_should_return_a_success_code
|
6538
|
+
----------------------------------------------------
|
6539
|
+
Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:33:27 -0300
|
6540
|
+
Processing by RailsSitemap::GeoController#index as XML
|
6541
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
|
6542
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.4ms)
|
6543
|
+
Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms)
|
6544
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6545
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6546
|
+
---------------------------------------------------
|
6547
|
+
GeoControllerTest: test_should_return_the_right_xml
|
6548
|
+
---------------------------------------------------
|
6549
|
+
Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-28 14:33:27 -0300
|
6550
|
+
Processing by RailsSitemap::GeoController#index as XML
|
6551
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
|
6552
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.5ms)
|
6553
|
+
Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.0ms)
|
6554
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6555
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
6556
|
+
----------------------------
|
6557
|
+
RailsSitemapTest: test_truth
|
6558
|
+
----------------------------
|
6559
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
6560
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
6561
|
+
--------------------------------------------------------
|
6562
|
+
SitemapsControllerTest: test_should_return_the_right_xml
|
6563
|
+
--------------------------------------------------------
|
6564
|
+
Started GET "/sitemap.xml" for 127.0.0.1 at 2016-09-28 14:33:27 -0300
|
6565
|
+
Processing by RailsSitemap::SitemapsController#index as XML
|
6566
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
|
6567
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.4ms)
|
6568
|
+
Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.0ms)
|
6569
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
6570
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6571
|
+
---------------------------------------------------------
|
6572
|
+
SitemapsControllerTest: test_should_return_a_success_code
|
6573
|
+
---------------------------------------------------------
|
6574
|
+
Started GET "/sitemap.xml" for 127.0.0.1 at 2016-09-28 14:33:27 -0300
|
6575
|
+
Processing by RailsSitemap::SitemapsController#index as XML
|
6576
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
|
6577
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.4ms)
|
6578
|
+
Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms)
|
6579
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
@@ -8,6 +8,6 @@ class LocationsControllerTest < ActionDispatch::IntegrationTest
|
|
8
8
|
|
9
9
|
test 'should return the right xml' do
|
10
10
|
get '/locations.kml'
|
11
|
-
assert_equal response.body, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<kml xmlns=\"http://earth.google.com/kml/2.2\">\n
|
11
|
+
assert_equal response.body, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<kml xmlns=\"http://earth.google.com/kml/2.2\">\n <Placemark>\n <name>NeonRoots Uruguay Office</name>\n <description>Zelmar Michelini 1290 Apto. 401 Esq. San José - Tel. 2909 0655</description>\n <Point>\n <coordinates>-56.19006872177124,-34.907047903278404,0</coordinates>\n </Point>\n </Placemark>\n</kml>\n"
|
12
12
|
end
|
13
13
|
end
|
@@ -1,19 +1,19 @@
|
|
1
1
|
require 'test_helper'
|
2
2
|
|
3
|
-
class
|
3
|
+
class PagesControllerTest < ActionDispatch::IntegrationTest
|
4
4
|
test 'should return a success code' do
|
5
|
-
get '/sitemap.xml'
|
5
|
+
get '/pages-sitemap.xml'
|
6
6
|
assert_equal 200, status
|
7
7
|
end
|
8
8
|
|
9
9
|
test 'should return the right xml' do
|
10
|
-
get '/sitemap.xml'
|
10
|
+
get '/pages-sitemap.xml'
|
11
11
|
assert_equal response.body, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\" xmlns:geo=\"http://www.google.com/geo/schemas/sitemap/1.0\" xmlns:image=\"http://www.google.com/schemas/sitemap-image/1.1\" xmlns:mobile=\"http://www.google.com/schemas/sitemap-mobile/1.0\" xmlns:news=\"http://www.google.com/schemas/sitemap-news/0.9\" xmlns:pagemap=\"http://www.google.com/schemas/sitemap-pagemap/1.0\" xmlns:video=\"http://www.google.com/schemas/sitemap-video/1.1\" xmlns:xhtml=\"http://www.w3.org/1999/xhtml\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd\">\n <url>\n <loc>http://www.example.com</loc>\n <lastmod>2016-09-22T18:11:05-03:00</lastmod>\n <changefreq>always</changefreq>\n <priority>1.0</priority>\n </url>\n\n <url>\n <loc>http://www.example.com/articles</loc>\n <lastmod>2016-09-22T18:11:05-03:00</lastmod>\n <changefreq>weekly</changefreq>\n <priority>0.5</priority>\n </url>\n</urlset>\n"
|
12
12
|
end
|
13
13
|
|
14
14
|
test 'should return the articles on sitemap' do
|
15
15
|
Article.find_or_create_by(name: 'My first article')
|
16
|
-
get '/sitemap.xml'
|
16
|
+
get '/pages-sitemap.xml'
|
17
17
|
assert_equal response.body, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\" xmlns:geo=\"http://www.google.com/geo/schemas/sitemap/1.0\" xmlns:image=\"http://www.google.com/schemas/sitemap-image/1.1\" xmlns:mobile=\"http://www.google.com/schemas/sitemap-mobile/1.0\" xmlns:news=\"http://www.google.com/schemas/sitemap-news/0.9\" xmlns:pagemap=\"http://www.google.com/schemas/sitemap-pagemap/1.0\" xmlns:video=\"http://www.google.com/schemas/sitemap-video/1.1\" xmlns:xhtml=\"http://www.w3.org/1999/xhtml\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd\">\n <url>\n <loc>http://www.example.com</loc>\n <lastmod>2016-09-22T18:11:05-03:00</lastmod>\n <changefreq>always</changefreq>\n <priority>1.0</priority>\n </url>\n\n <url>\n <loc>http://www.example.com/articles</loc>\n <lastmod>2016-09-22T18:11:05-03:00</lastmod>\n <changefreq>weekly</changefreq>\n <priority>0.5</priority>\n </url>\n <url>\n <loc>http://www.example.com/articles/1</loc>\n <lastmod>" + Article.last.updated_at.to_datetime.to_s + "</lastmod>\n <changefreq>weekly</changefreq>\n <priority>0.5</priority>\n </url>\n</urlset>\n"
|
18
18
|
end
|
19
19
|
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class SitemapsControllerTest < ActionDispatch::IntegrationTest
|
4
|
+
test 'should return a success code' do
|
5
|
+
get '/sitemap.xml'
|
6
|
+
assert_equal 200, status
|
7
|
+
end
|
8
|
+
|
9
|
+
test 'should return the right xml' do
|
10
|
+
get '/sitemap.xml'
|
11
|
+
assert_equal response.body, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<sitemapindex xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n <sitemap>\n <loc>http://www.example.com/pages-sitemap.xml</loc>\n <lastmod>2016-09-22T18:11:05-03:00</lastmod>\n </sitemap>\n <sitemap>\n <loc>http://www.example.com/attachment-sitemap.xml</loc>\n <lastmod>2016-09-22T18:11:05-03:00</lastmod>\n </sitemap>\n <sitemap>\n <loc>http://www.example.com/geo-sitemap.xml</loc>\n <lastmod>2016-09-22T18:11:05-03:00</lastmod>\n </sitemap>\n</sitemapindex>\n"
|
12
|
+
end
|
13
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_sitemap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pablo Gonzaga
|
@@ -54,7 +54,8 @@ files:
|
|
54
54
|
- app/controllers/rails_sitemap/attachment_controller.rb
|
55
55
|
- app/controllers/rails_sitemap/geo_controller.rb
|
56
56
|
- app/controllers/rails_sitemap/locations_controller.rb
|
57
|
-
- app/controllers/rails_sitemap/
|
57
|
+
- app/controllers/rails_sitemap/pages_controller.rb
|
58
|
+
- app/controllers/rails_sitemap/sitemaps_controller.rb
|
58
59
|
- app/helpers/rails_sitemap/application_helper.rb
|
59
60
|
- app/models/rails_sitemap/image_entry.rb
|
60
61
|
- app/models/rails_sitemap/sitemap_entry.rb
|
@@ -62,7 +63,8 @@ files:
|
|
62
63
|
- app/views/rails_sitemap/attachment/index.xml.erb
|
63
64
|
- app/views/rails_sitemap/geo/index.xml.erb
|
64
65
|
- app/views/rails_sitemap/locations/index.kml.erb
|
65
|
-
- app/views/rails_sitemap/
|
66
|
+
- app/views/rails_sitemap/pages/index.xml.erb
|
67
|
+
- app/views/rails_sitemap/sitemaps/index.xml.erb
|
66
68
|
- config/routes.rb
|
67
69
|
- lib/rails_sitemap.rb
|
68
70
|
- lib/rails_sitemap/engine.rb
|
@@ -162,7 +164,8 @@ files:
|
|
162
164
|
- test/integration/attachment_controller_test.rb
|
163
165
|
- test/integration/geo_controller_test.rb
|
164
166
|
- test/integration/locations_controller_test.rb
|
165
|
-
- test/integration/
|
167
|
+
- test/integration/pages_controller_test.rb
|
168
|
+
- test/integration/sitemaps_controller_test.rb
|
166
169
|
- test/rails_sitemap_test.rb
|
167
170
|
- test/test_helper.rb
|
168
171
|
homepage: https://github.com/pgonzaga2012/rails_sitemap
|
@@ -284,6 +287,7 @@ test_files:
|
|
284
287
|
- test/integration/attachment_controller_test.rb
|
285
288
|
- test/integration/geo_controller_test.rb
|
286
289
|
- test/integration/locations_controller_test.rb
|
287
|
-
- test/integration/
|
290
|
+
- test/integration/pages_controller_test.rb
|
291
|
+
- test/integration/sitemaps_controller_test.rb
|
288
292
|
- test/rails_sitemap_test.rb
|
289
293
|
- test/test_helper.rb
|