rails_sitemap 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0868b4fd3878fd7de1304b78b522ad60dfd3d0ac
|
4
|
+
data.tar.gz: 20557e1aefd652a078b54d7a66fcb94172352cd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 040a0e029c56ae5e6c52164147688bc289a67ccca74065ec440f1ec2ac24f9e47e092fa3f7972f5c3d53e691aba65849d104db99ff7db129ff5c20cdcb79d65b
|
7
|
+
data.tar.gz: 86f198c747eb4022dc3e1748beb6fb12a73e7bea495cd57468b452ec0f9d94bcd3129de3f6b4961f8520c249fcb107fff78a0e3bc636477e30c0ace99c3cca1d
|
@@ -1,17 +1,17 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
<loc><%=image_entry.coordinates%></loc>
|
8
|
-
<%end%>
|
9
|
-
<lastmod><%=image_entry.updated_at %></lastmod>
|
10
|
-
<image:image>
|
11
|
-
<image:loc><%=@current_domain + image_entry.path %></image:loc>
|
12
|
-
<%if image_entry.title%>
|
13
|
-
<image:title><%=image_entry.title %></image:title>
|
3
|
+
<%@image_entries.each do |image_entry|%>
|
4
|
+
<url>
|
5
|
+
<%if image_entry.coordinates%>
|
6
|
+
<loc><%=image_entry.coordinates%></loc>
|
14
7
|
<%end%>
|
15
|
-
|
16
|
-
|
17
|
-
|
8
|
+
<lastmod><%=image_entry.updated_at %></lastmod>
|
9
|
+
<image:image>
|
10
|
+
<image:loc><%=@current_domain + image_entry.path %></image:loc>
|
11
|
+
<%if image_entry.title%>
|
12
|
+
<image:title><%=image_entry.title %></image:title>
|
13
|
+
<%end%>
|
14
|
+
</image:image>
|
15
|
+
</url>
|
16
|
+
<%end%>
|
17
|
+
</urlset>
|
data/test/dummy/log/test.log
CHANGED
@@ -8685,3 +8685,375 @@ Processing by RailsSitemap::PagesController#index as XML
|
|
8685
8685
|
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
|
8686
8686
|
Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.1ms)
|
8687
8687
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
8688
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
8689
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
8690
|
+
-----------------------------------------------------------
|
8691
|
+
AttachmentControllerTest: test_should_return_a_success_code
|
8692
|
+
-----------------------------------------------------------
|
8693
|
+
Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-29 15:55:46 -0300
|
8694
|
+
Processing by RailsSitemap::AttachmentController#index as XML
|
8695
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
|
8696
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (3.3ms)
|
8697
|
+
Completed 200 OK in 328ms (Views: 12.6ms | ActiveRecord: 0.0ms)
|
8698
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
8699
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
8700
|
+
----------------------------------------------------------
|
8701
|
+
AttachmentControllerTest: test_should_return_the_right_xml
|
8702
|
+
----------------------------------------------------------
|
8703
|
+
Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-29 15:55:46 -0300
|
8704
|
+
Processing by RailsSitemap::AttachmentController#index as XML
|
8705
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
|
8706
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.4ms)
|
8707
|
+
Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.0ms)
|
8708
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
8709
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
8710
|
+
----------------------------------------------------------
|
8711
|
+
LocationsControllerTest: test_should_return_a_success_code
|
8712
|
+
----------------------------------------------------------
|
8713
|
+
Started GET "/locations.kml" for 127.0.0.1 at 2016-09-29 15:55:46 -0300
|
8714
|
+
Processing by RailsSitemap::LocationsController#index as KML
|
8715
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
|
8716
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.5ms)
|
8717
|
+
Completed 200 OK in 12ms (Views: 7.9ms | ActiveRecord: 0.0ms)
|
8718
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
8719
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
8720
|
+
---------------------------------------------------------
|
8721
|
+
LocationsControllerTest: test_should_return_the_right_xml
|
8722
|
+
---------------------------------------------------------
|
8723
|
+
Started GET "/locations.kml" for 127.0.0.1 at 2016-09-29 15:55:46 -0300
|
8724
|
+
Processing by RailsSitemap::LocationsController#index as KML
|
8725
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
|
8726
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.4ms)
|
8727
|
+
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.0ms)
|
8728
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
8729
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
8730
|
+
------------------------------------------------------
|
8731
|
+
PagesControllerTest: test_should_return_a_success_code
|
8732
|
+
------------------------------------------------------
|
8733
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 15:55:46 -0300
|
8734
|
+
Processing by RailsSitemap::PagesController#index as XML
|
8735
|
+
[1m[36mArticle Load (2.2ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
8736
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
8737
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
|
8738
|
+
Completed 200 OK in 30ms (Views: 7.3ms | ActiveRecord: 2.4ms)
|
8739
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
8740
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
8741
|
+
---------------------------------------------------------------
|
8742
|
+
PagesControllerTest: test_should_return_the_articles_on_sitemap
|
8743
|
+
---------------------------------------------------------------
|
8744
|
+
[1m[36mArticle Load (0.3ms)[0m [1m[34mSELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ?[0m [["name", "My first article"], ["LIMIT", 1]]
|
8745
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
8746
|
+
[1m[35mSQL (2.6ms)[0m [1m[32mINSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "My first article"], ["created_at", 2016-09-29 18:55:46 UTC], ["updated_at", 2016-09-29 18:55:46 UTC]]
|
8747
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
8748
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 15:55:46 -0300
|
8749
|
+
Processing by RailsSitemap::PagesController#index as XML
|
8750
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
8751
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
8752
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
|
8753
|
+
Completed 200 OK in 15ms (Views: 9.1ms | ActiveRecord: 0.1ms)
|
8754
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
8755
|
+
[1m[35m (2.1ms)[0m [1m[31mrollback transaction[0m
|
8756
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
8757
|
+
-----------------------------------------------------
|
8758
|
+
PagesControllerTest: test_should_return_the_right_xml
|
8759
|
+
-----------------------------------------------------
|
8760
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 15:55:46 -0300
|
8761
|
+
Processing by RailsSitemap::PagesController#index as XML
|
8762
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
8763
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
8764
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
|
8765
|
+
Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.1ms)
|
8766
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
8767
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
8768
|
+
---------------------------------------------------------
|
8769
|
+
SitemapsControllerTest: test_should_return_a_success_code
|
8770
|
+
---------------------------------------------------------
|
8771
|
+
Started GET "/sitemap_index.xml" for 127.0.0.1 at 2016-09-29 15:55:46 -0300
|
8772
|
+
Processing by RailsSitemap::SitemapsController#index as XML
|
8773
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
|
8774
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.4ms)
|
8775
|
+
Completed 200 OK in 10ms (Views: 5.4ms | ActiveRecord: 0.0ms)
|
8776
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
8777
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
8778
|
+
--------------------------------------------------------
|
8779
|
+
SitemapsControllerTest: test_should_return_the_right_xml
|
8780
|
+
--------------------------------------------------------
|
8781
|
+
Started GET "/sitemap_index.xml" for 127.0.0.1 at 2016-09-29 15:55:46 -0300
|
8782
|
+
Processing by RailsSitemap::SitemapsController#index as XML
|
8783
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
|
8784
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.4ms)
|
8785
|
+
Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.0ms)
|
8786
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
8787
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
8788
|
+
----------------------------------------------------
|
8789
|
+
GeoControllerTest: test_should_return_a_success_code
|
8790
|
+
----------------------------------------------------
|
8791
|
+
Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-29 15:55:46 -0300
|
8792
|
+
Processing by RailsSitemap::GeoController#index as XML
|
8793
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
|
8794
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.3ms)
|
8795
|
+
Completed 200 OK in 10ms (Views: 5.9ms | ActiveRecord: 0.0ms)
|
8796
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
8797
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
8798
|
+
---------------------------------------------------
|
8799
|
+
GeoControllerTest: test_should_return_the_right_xml
|
8800
|
+
---------------------------------------------------
|
8801
|
+
Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-29 15:55:46 -0300
|
8802
|
+
Processing by RailsSitemap::GeoController#index as XML
|
8803
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
|
8804
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.3ms)
|
8805
|
+
Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.0ms)
|
8806
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
8807
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
8808
|
+
----------------------------
|
8809
|
+
RailsSitemapTest: test_truth
|
8810
|
+
----------------------------
|
8811
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
8812
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
8813
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
8814
|
+
----------------------------
|
8815
|
+
RailsSitemapTest: test_truth
|
8816
|
+
----------------------------
|
8817
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
8818
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
8819
|
+
-----------------------------------------------------------
|
8820
|
+
AttachmentControllerTest: test_should_return_a_success_code
|
8821
|
+
-----------------------------------------------------------
|
8822
|
+
Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-29 15:56:11 -0300
|
8823
|
+
Processing by RailsSitemap::AttachmentController#index as XML
|
8824
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
|
8825
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (1.7ms)
|
8826
|
+
Completed 200 OK in 239ms (Views: 6.6ms | ActiveRecord: 0.0ms)
|
8827
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
8828
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
8829
|
+
----------------------------------------------------------
|
8830
|
+
AttachmentControllerTest: test_should_return_the_right_xml
|
8831
|
+
----------------------------------------------------------
|
8832
|
+
Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-29 15:56:12 -0300
|
8833
|
+
Processing by RailsSitemap::AttachmentController#index as XML
|
8834
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
|
8835
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.4ms)
|
8836
|
+
Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.0ms)
|
8837
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
8838
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
8839
|
+
----------------------------------------------------------
|
8840
|
+
LocationsControllerTest: test_should_return_a_success_code
|
8841
|
+
----------------------------------------------------------
|
8842
|
+
Started GET "/locations.kml" for 127.0.0.1 at 2016-09-29 15:56:34 -0300
|
8843
|
+
Processing by RailsSitemap::LocationsController#index as KML
|
8844
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
|
8845
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (1.4ms)
|
8846
|
+
Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.0ms)
|
8847
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
8848
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
8849
|
+
---------------------------------------------------------
|
8850
|
+
LocationsControllerTest: test_should_return_the_right_xml
|
8851
|
+
---------------------------------------------------------
|
8852
|
+
Started GET "/locations.kml" for 127.0.0.1 at 2016-09-29 15:56:34 -0300
|
8853
|
+
Processing by RailsSitemap::LocationsController#index as KML
|
8854
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
|
8855
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.4ms)
|
8856
|
+
Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.0ms)
|
8857
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
8858
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
8859
|
+
--------------------------------------------------------
|
8860
|
+
SitemapsControllerTest: test_should_return_the_right_xml
|
8861
|
+
--------------------------------------------------------
|
8862
|
+
Started GET "/sitemap_index.xml" for 127.0.0.1 at 2016-09-29 15:56:34 -0300
|
8863
|
+
Processing by RailsSitemap::SitemapsController#index as XML
|
8864
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
|
8865
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.4ms)
|
8866
|
+
Completed 200 OK in 9ms (Views: 5.8ms | ActiveRecord: 0.0ms)
|
8867
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
8868
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
8869
|
+
---------------------------------------------------------
|
8870
|
+
SitemapsControllerTest: test_should_return_a_success_code
|
8871
|
+
---------------------------------------------------------
|
8872
|
+
Started GET "/sitemap_index.xml" for 127.0.0.1 at 2016-09-29 15:56:34 -0300
|
8873
|
+
Processing by RailsSitemap::SitemapsController#index as XML
|
8874
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
|
8875
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.4ms)
|
8876
|
+
Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.0ms)
|
8877
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
8878
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
8879
|
+
----------------------------------------------------
|
8880
|
+
GeoControllerTest: test_should_return_a_success_code
|
8881
|
+
----------------------------------------------------
|
8882
|
+
Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-29 15:56:34 -0300
|
8883
|
+
Processing by RailsSitemap::GeoController#index as XML
|
8884
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
|
8885
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.5ms)
|
8886
|
+
Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.0ms)
|
8887
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
8888
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
8889
|
+
---------------------------------------------------
|
8890
|
+
GeoControllerTest: test_should_return_the_right_xml
|
8891
|
+
---------------------------------------------------
|
8892
|
+
Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-29 15:56:34 -0300
|
8893
|
+
Processing by RailsSitemap::GeoController#index as XML
|
8894
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
|
8895
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.3ms)
|
8896
|
+
Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms)
|
8897
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
8898
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
8899
|
+
------------------------------------------------------
|
8900
|
+
PagesControllerTest: test_should_return_a_success_code
|
8901
|
+
------------------------------------------------------
|
8902
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 15:56:34 -0300
|
8903
|
+
Processing by RailsSitemap::PagesController#index as XML
|
8904
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
8905
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
8906
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.7ms)
|
8907
|
+
Completed 200 OK in 13ms (Views: 8.1ms | ActiveRecord: 0.2ms)
|
8908
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
8909
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
8910
|
+
---------------------------------------------------------------
|
8911
|
+
PagesControllerTest: test_should_return_the_articles_on_sitemap
|
8912
|
+
---------------------------------------------------------------
|
8913
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ?[0m [["name", "My first article"], ["LIMIT", 1]]
|
8914
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
8915
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "My first article"], ["created_at", 2016-09-29 18:56:34 UTC], ["updated_at", 2016-09-29 18:56:34 UTC]]
|
8916
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
8917
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 15:56:34 -0300
|
8918
|
+
Processing by RailsSitemap::PagesController#index as XML
|
8919
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
8920
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
8921
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
|
8922
|
+
Completed 200 OK in 8ms (Views: 4.4ms | ActiveRecord: 0.1ms)
|
8923
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
8924
|
+
[1m[35m (2.1ms)[0m [1m[31mrollback transaction[0m
|
8925
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
8926
|
+
-----------------------------------------------------
|
8927
|
+
PagesControllerTest: test_should_return_the_right_xml
|
8928
|
+
-----------------------------------------------------
|
8929
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 15:56:34 -0300
|
8930
|
+
Processing by RailsSitemap::PagesController#index as XML
|
8931
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
8932
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
8933
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
|
8934
|
+
Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.1ms)
|
8935
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
8936
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
8937
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
8938
|
+
----------------------------------------------------
|
8939
|
+
GeoControllerTest: test_should_return_a_success_code
|
8940
|
+
----------------------------------------------------
|
8941
|
+
Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-29 15:56:44 -0300
|
8942
|
+
Processing by RailsSitemap::GeoController#index as XML
|
8943
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
|
8944
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.9ms)
|
8945
|
+
Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.0ms)
|
8946
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
8947
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
8948
|
+
---------------------------------------------------
|
8949
|
+
GeoControllerTest: test_should_return_the_right_xml
|
8950
|
+
---------------------------------------------------
|
8951
|
+
Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-29 15:56:44 -0300
|
8952
|
+
Processing by RailsSitemap::GeoController#index as XML
|
8953
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
|
8954
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.7ms)
|
8955
|
+
Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.0ms)
|
8956
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
8957
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
8958
|
+
-----------------------------------------------------------
|
8959
|
+
AttachmentControllerTest: test_should_return_a_success_code
|
8960
|
+
-----------------------------------------------------------
|
8961
|
+
Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-29 15:56:44 -0300
|
8962
|
+
Processing by RailsSitemap::AttachmentController#index as XML
|
8963
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
|
8964
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.7ms)
|
8965
|
+
Completed 200 OK in 232ms (Views: 7.3ms | ActiveRecord: 0.0ms)
|
8966
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
8967
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
8968
|
+
----------------------------------------------------------
|
8969
|
+
AttachmentControllerTest: test_should_return_the_right_xml
|
8970
|
+
----------------------------------------------------------
|
8971
|
+
Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-29 15:56:44 -0300
|
8972
|
+
Processing by RailsSitemap::AttachmentController#index as XML
|
8973
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
|
8974
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.5ms)
|
8975
|
+
Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.0ms)
|
8976
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
8977
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
8978
|
+
----------------------------------------------------------
|
8979
|
+
LocationsControllerTest: test_should_return_a_success_code
|
8980
|
+
----------------------------------------------------------
|
8981
|
+
Started GET "/locations.kml" for 127.0.0.1 at 2016-09-29 15:56:44 -0300
|
8982
|
+
Processing by RailsSitemap::LocationsController#index as KML
|
8983
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
|
8984
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.4ms)
|
8985
|
+
Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.0ms)
|
8986
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
8987
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
8988
|
+
---------------------------------------------------------
|
8989
|
+
LocationsControllerTest: test_should_return_the_right_xml
|
8990
|
+
---------------------------------------------------------
|
8991
|
+
Started GET "/locations.kml" for 127.0.0.1 at 2016-09-29 15:56:44 -0300
|
8992
|
+
Processing by RailsSitemap::LocationsController#index as KML
|
8993
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
|
8994
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.4ms)
|
8995
|
+
Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.0ms)
|
8996
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
8997
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
8998
|
+
----------------------------
|
8999
|
+
RailsSitemapTest: test_truth
|
9000
|
+
----------------------------
|
9001
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
9002
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
9003
|
+
------------------------------------------------------
|
9004
|
+
PagesControllerTest: test_should_return_a_success_code
|
9005
|
+
------------------------------------------------------
|
9006
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 15:56:44 -0300
|
9007
|
+
Processing by RailsSitemap::PagesController#index as XML
|
9008
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
9009
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
9010
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
|
9011
|
+
Completed 200 OK in 11ms (Views: 4.5ms | ActiveRecord: 0.3ms)
|
9012
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
9013
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
9014
|
+
---------------------------------------------------------------
|
9015
|
+
PagesControllerTest: test_should_return_the_articles_on_sitemap
|
9016
|
+
---------------------------------------------------------------
|
9017
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ?[0m [["name", "My first article"], ["LIMIT", 1]]
|
9018
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
9019
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "My first article"], ["created_at", 2016-09-29 18:56:44 UTC], ["updated_at", 2016-09-29 18:56:44 UTC]]
|
9020
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
9021
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 15:56:44 -0300
|
9022
|
+
Processing by RailsSitemap::PagesController#index as XML
|
9023
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
9024
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
9025
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.9ms)
|
9026
|
+
Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.1ms)
|
9027
|
+
[1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
9028
|
+
[1m[35m (2.2ms)[0m [1m[31mrollback transaction[0m
|
9029
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
9030
|
+
-----------------------------------------------------
|
9031
|
+
PagesControllerTest: test_should_return_the_right_xml
|
9032
|
+
-----------------------------------------------------
|
9033
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 15:56:44 -0300
|
9034
|
+
Processing by RailsSitemap::PagesController#index as XML
|
9035
|
+
[1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
9036
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
9037
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.7ms)
|
9038
|
+
Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.2ms)
|
9039
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
9040
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
9041
|
+
---------------------------------------------------------
|
9042
|
+
SitemapsControllerTest: test_should_return_a_success_code
|
9043
|
+
---------------------------------------------------------
|
9044
|
+
Started GET "/sitemap_index.xml" for 127.0.0.1 at 2016-09-29 15:56:44 -0300
|
9045
|
+
Processing by RailsSitemap::SitemapsController#index as XML
|
9046
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
|
9047
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.4ms)
|
9048
|
+
Completed 200 OK in 9ms (Views: 5.8ms | ActiveRecord: 0.0ms)
|
9049
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
9050
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
9051
|
+
--------------------------------------------------------
|
9052
|
+
SitemapsControllerTest: test_should_return_the_right_xml
|
9053
|
+
--------------------------------------------------------
|
9054
|
+
Started GET "/sitemap_index.xml" for 127.0.0.1 at 2016-09-29 15:56:44 -0300
|
9055
|
+
Processing by RailsSitemap::SitemapsController#index as XML
|
9056
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
|
9057
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.4ms)
|
9058
|
+
Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.0ms)
|
9059
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
@@ -8,6 +8,6 @@ class AttachmentControllerTest < ActionDispatch::IntegrationTest
|
|
8
8
|
|
9
9
|
test 'should return the right xml' do
|
10
10
|
get '/attachment-sitemap.xml'
|
11
|
-
assert_equal response.body, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<urlset xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:image=\"http://www.google.com/schemas/sitemap-image/1.1\" xsi:schemaLocation=\"http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd\" xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n
|
11
|
+
assert_equal response.body, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<urlset xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:image=\"http://www.google.com/schemas/sitemap-image/1.1\" xsi:schemaLocation=\"http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd\" xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n <url>\n <loc>12.417700299999979,45.4930475,0</loc>\n <lastmod>2016-09-22T18:11:05-03:00</lastmod>\n <image:image>\n <image:loc>http://www.example.com/assets/mario-3bb8ffa9dfd72eb62696af136f8b05883b8b7623b8773851610c8bf366dfd013.png</image:loc>\n <image:title>A super fancy mario image</image:title>\n </image:image>\n </url>\n</urlset>\n"
|
12
12
|
end
|
13
13
|
end
|