rails_sitemap 0.2.0 → 0.2.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: 045b00f6cb2ad59ca4b2da7799b0e8f4f845041a
4
- data.tar.gz: 632fac6831038cf328dfec86c0d6a5ee7a8f1822
3
+ metadata.gz: cf41d7743f877f2479197a842030f864de9144af
4
+ data.tar.gz: dce30c9ed640a1ecc314e0c4780708cdddab612b
5
5
  SHA512:
6
- metadata.gz: 166d2fd51efc51313f5c770aa64a9c6f088cb9d4be5a35a5363e48bf5f15f437f3b91621cb45394d879518581b5e8cee71f13632e12e9f218eea1e9c52b8857e
7
- data.tar.gz: bafcec807220aaf880722737c14689dcdc31860d8e7c595dd80d60051fe41c0588a9d202de65eb3dc2ec101079c0fc1ef34be1d9adb6e49c367b40813c6077c6
6
+ metadata.gz: 57f713977f9fffa2d904f24beffefbeadfdef7596ce3a752fe6a0e641254f9a63a42002d30cfa5e2464dc027cb01519632f7547c26e1ff340b9073396e461ab9
7
+ data.tar.gz: 87744365d0d51a53172f2682af08aa1e57586fa5975776719a7b582673ab8721f62ea1a7262c47444f6faef943e8303cf4bcbad3e5d0411bcc1ff05e1b2ca5c3
@@ -1,5 +1,5 @@
1
1
  module RailsSitemap
2
- class SitemapController < ApplicationController
2
+ class PagesController < ApplicationController
3
3
  include RailsSitemap::ActAsSitemap
4
4
 
5
5
  EXCLUDED_CONTROLLERS = ['rails/info', nil, 'errors', 'rails/mailers']
@@ -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
- <%= @locations.each do |location|%>
3
+ <%@locations.each do |location|%>
4
4
  <Placemark>
5
5
  <name><%=location.try(:[], :name)%></name>
6
6
  <description><%=location.try(:[], :description)%></description>
@@ -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' => 'sitemap#index'
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
@@ -1,3 +1,3 @@
1
1
  module RailsSitemap
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
@@ -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
   (0.0ms) rollback transaction
5875
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5876
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5877
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
5887
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
5897
+  (0.1ms) begin transaction
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
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
+  (0.1ms) rollback transaction
5908
+  (0.1ms) begin transaction
5909
+ ---------------------------------------------------------------
5910
+ PagesControllerTest: test_should_return_the_articles_on_sitemap
5911
+ ---------------------------------------------------------------
5912
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ? [["name", "My first article"], ["LIMIT", 1]]
5913
+  (0.0ms) SAVEPOINT active_record_1
5914
+ SQL (0.2ms) INSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "My first article"], ["created_at", 2016-09-28 17:29:15 UTC], ["updated_at", 2016-09-28 17:29:15 UTC]]
5915
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ? [["LIMIT", 1]]
5923
+  (2.1ms) rollback transaction
5924
+  (0.1ms) begin transaction
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
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
+  (0.2ms) rollback transaction
5935
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
5945
+  (0.0ms) begin transaction
5946
+ ----------------------------
5947
+ RailsSitemapTest: test_truth
5948
+ ----------------------------
5949
+  (0.0ms) rollback transaction
5950
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
5960
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
5970
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
5980
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
5990
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5991
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
6001
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
6011
+  (0.0ms) begin transaction
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
+ Article Load (0.2ms) SELECT "articles".* FROM "articles"
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
+  (0.1ms) rollback transaction
6022
+  (0.1ms) begin transaction
6023
+ ---------------------------------------------------------------
6024
+ PagesControllerTest: test_should_return_the_articles_on_sitemap
6025
+ ---------------------------------------------------------------
6026
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ? [["name", "My first article"], ["LIMIT", 1]]
6027
+  (0.1ms) SAVEPOINT active_record_1
6028
+ SQL (0.3ms) INSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "My first article"], ["created_at", 2016-09-28 17:29:37 UTC], ["updated_at", 2016-09-28 17:29:37 UTC]]
6029
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ? [["LIMIT", 1]]
6037
+  (2.1ms) rollback transaction
6038
+  (0.1ms) begin transaction
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
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
+  (0.1ms) rollback transaction
6049
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
6059
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
6069
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
6079
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
6089
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
6099
+  (0.0ms) begin transaction
6100
+ ----------------------------
6101
+ RailsSitemapTest: test_truth
6102
+ ----------------------------
6103
+  (0.0ms) rollback transaction
6104
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
6105
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
6115
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
6125
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
6135
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
6145
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
6155
+  (0.0ms) begin transaction
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
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
+  (0.1ms) rollback transaction
6166
+  (0.0ms) begin transaction
6167
+ ---------------------------------------------------------------
6168
+ PagesControllerTest: test_should_return_the_articles_on_sitemap
6169
+ ---------------------------------------------------------------
6170
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ? [["name", "My first article"], ["LIMIT", 1]]
6171
+  (0.0ms) SAVEPOINT active_record_1
6172
+ SQL (0.2ms) INSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "My first article"], ["created_at", 2016-09-28 17:31:23 UTC], ["updated_at", 2016-09-28 17:31:23 UTC]]
6173
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ? [["LIMIT", 1]]
6181
+  (2.2ms) rollback transaction
6182
+  (0.1ms) begin transaction
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
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
+  (0.1ms) rollback transaction
6193
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
6203
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
6213
+  (0.0ms) begin transaction
6214
+ ----------------------------
6215
+ RailsSitemapTest: test_truth
6216
+ ----------------------------
6217
+  (0.1ms) rollback transaction
6218
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
6219
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
6229
+  (0.1ms) begin transaction
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
+  (0.0ms) rollback transaction
6239
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
6249
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
6259
+  (0.0ms) begin transaction
6260
+ ---------------------------------------------------------------
6261
+ PagesControllerTest: test_should_return_the_articles_on_sitemap
6262
+ ---------------------------------------------------------------
6263
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ? [["name", "My first article"], ["LIMIT", 1]]
6264
+  (0.2ms) SAVEPOINT active_record_1
6265
+ SQL (0.4ms) INSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "My first article"], ["created_at", 2016-09-28 17:32:01 UTC], ["updated_at", 2016-09-28 17:32:01 UTC]]
6266
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
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
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ? [["LIMIT", 1]]
6274
+  (2.2ms) rollback transaction
6275
+  (0.1ms) begin transaction
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
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
+  (0.1ms) rollback transaction
6286
+  (0.0ms) begin transaction
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
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
+  (0.0ms) rollback transaction
6297
+  (0.1ms) begin transaction
6298
+ ----------------------------
6299
+ RailsSitemapTest: test_truth
6300
+ ----------------------------
6301
+  (0.0ms) rollback transaction
6302
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
6312
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
6322
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
6332
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
6333
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
6343
+  (0.1ms) begin transaction
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
+  (0.0ms) rollback transaction
6353
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
6363
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
6373
+  (0.0ms) begin transaction
6374
+ ----------------------------
6375
+ RailsSitemapTest: test_truth
6376
+ ----------------------------
6377
+  (0.0ms) rollback transaction
6378
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
6388
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
6398
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
6408
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
6418
+  (0.1ms) begin transaction
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
+ Article Load (0.2ms) SELECT "articles".* FROM "articles"
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
+  (0.1ms) rollback transaction
6429
+  (0.1ms) begin transaction
6430
+ ---------------------------------------------------------------
6431
+ PagesControllerTest: test_should_return_the_articles_on_sitemap
6432
+ ---------------------------------------------------------------
6433
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ? [["name", "My first article"], ["LIMIT", 1]]
6434
+  (0.0ms) SAVEPOINT active_record_1
6435
+ SQL (0.3ms) INSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "My first article"], ["created_at", 2016-09-28 17:33:22 UTC], ["updated_at", 2016-09-28 17:33:22 UTC]]
6436
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
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
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ? [["LIMIT", 1]]
6444
+  (2.0ms) rollback transaction
6445
+  (0.1ms) begin transaction
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
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
+  (0.1ms) rollback transaction
6456
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
6457
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
6467
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
6477
+  (0.0ms) begin transaction
6478
+ ---------------------------------------------------------------
6479
+ PagesControllerTest: test_should_return_the_articles_on_sitemap
6480
+ ---------------------------------------------------------------
6481
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ? [["name", "My first article"], ["LIMIT", 1]]
6482
+  (0.0ms) SAVEPOINT active_record_1
6483
+ SQL (0.4ms) INSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "My first article"], ["created_at", 2016-09-28 17:33:27 UTC], ["updated_at", 2016-09-28 17:33:27 UTC]]
6484
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ? [["LIMIT", 1]]
6492
+  (2.2ms) rollback transaction
6493
+  (0.1ms) begin transaction
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
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
+  (0.1ms) rollback transaction
6504
+  (0.1ms) begin transaction
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
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
+  (0.1ms) rollback transaction
6515
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
6525
+  (0.0ms) begin transaction
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
+  (0.0ms) rollback transaction
6535
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
6545
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
6555
+  (0.0ms) begin transaction
6556
+ ----------------------------
6557
+ RailsSitemapTest: test_truth
6558
+ ----------------------------
6559
+  (0.0ms) rollback transaction
6560
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
6570
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
@@ -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 \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[{:name=&gt;&quot;NeonRoots Uruguay Office&quot;, :description=&gt;&quot;Zelmar Michelini 1290 Apto. 401 Esq. San José - Tel. 2909 0655&quot;, :coordinates=&gt;&quot;-56.19006872177124,-34.907047903278404,0&quot;}]</kml>\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 SitemapControllerTest < ActionDispatch::IntegrationTest
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.0
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/sitemap_controller.rb
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/sitemap/index.xml.erb
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/sitemap_controller_test.rb
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/sitemap_controller_test.rb
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