rails_sitemap 0.2.5 → 0.3.0

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: d025c334647e66aa56b06e7b173aad01f7502055
4
- data.tar.gz: 12726a38e1ae9d1362e1f39536b4df3d6a5e3e01
3
+ metadata.gz: a063fcd308e6f15b841e4601951d08e4594afaa0
4
+ data.tar.gz: 2b75b8e53ae0ef005af2929de756285076a2a16c
5
5
  SHA512:
6
- metadata.gz: 7d62ec8c83bf394084e713b88c0b92d291a9e2b20694d4a9377da7cf301fd4473ecc669cb979435e040842f4f9e0813b274fca7a4e0cd62ba217cb6a5c4441b9
7
- data.tar.gz: 344f33c0ad480eaad2c6c0041ec8770a6b51e21b072630b16fa55dfb6953762568f8801583e959de24cd778ed9f41c5e7d823d8156e7afdedebd682cbee56af5
6
+ metadata.gz: 601472af0d041957e37b41b8c4bda6621b5fdfd3789ebd6e0c913d4b206add6b87b805a2faeb7816c59115a05a58492e045ebdc08373816f6ffa961a93c7d40b
7
+ data.tar.gz: 776d7dd59af50730358e93b0ad82b733ddf5e507d189ad8976ae8f1b8b16e9f949a906a567827322820d9678b5673145925049367359f4d07ff982743e771d03
@@ -13,13 +13,9 @@ module RailsSitemap
13
13
  private
14
14
 
15
15
  def set_images
16
- asset_images = Dir["#{Rails.root}/app/assets/images/*.{jpg,png,gif,svg}"]
17
-
18
- @image_entries = asset_images.map do |asset_image|
19
- image_name = asset_image.split('/').last
20
- image_path = ActionController::Base.helpers.asset_path(image_name)
21
-
22
- ImageEntry.new(image_path, @current_domain)
16
+ @image_entries = RailsSitemap.hd_images.map do |hd_image|
17
+ image_path = ActionController::Base.helpers.asset_path(hd_image[:name])
18
+ ImageEntry.new(image_path, hd_image[:title], hd_image[:coordinates])
23
19
  end
24
20
  end
25
21
  end
@@ -1,11 +1,13 @@
1
1
  module RailsSitemap
2
2
  class ImageEntry
3
- attr :path, :title, :updated_at, :used_in
3
+ attr :path, :title, :updated_at, :coordinates
4
+
5
+ def initialize(path, title = nil, coordinates = nil,
6
+ updated_at = RailsSitemap.updated_at)
4
7
 
5
- def initialize(path, used_in, updated_at = RailsSitemap.updated_at)
6
8
  @path = path
7
- @title = "![CDATA[#{@path.split('/').last}]]"
8
- @used_in = used_in
9
+ @title = title
10
+ @coordinates = coordinates
9
11
  @updated_at = updated_at
10
12
  end
11
13
  end
@@ -1,13 +1,17 @@
1
- <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href=<%= "#{@current_domain}/main-sitemap.xsl"%>?>
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
3
 
4
4
  <%@image_entries.each do |image_entry|%>
5
5
  <url>
6
- <loc><%=image_entry.used_in %></loc>
6
+ <%if image_entry.coordinates%>
7
+ <loc><%=image_entry.coordinates%></loc>
8
+ <%end%>
7
9
  <lastmod><%=image_entry.updated_at %></lastmod>
8
10
  <image:image>
9
- <image:loc><%=@current_domain + image_entry.path %></image:loc>
10
- <image:title><%=image_entry.title %></image:title>
11
- </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>
14
+ <%end%>
15
+ </image:image>
12
16
  </url>
13
17
  <%end%>
@@ -17,7 +17,8 @@ module RailsSitemap
17
17
  :priority,
18
18
  :update_frequency_for_app,
19
19
  :update_frequency_for_models,
20
- :locations
20
+ :locations,
21
+ :hd_images
21
22
 
22
23
  self.models_for_sitemap = []
23
24
  self.updated_at = DateTime.now.to_s
@@ -25,6 +26,7 @@ module RailsSitemap
25
26
  self.update_frequency_for_app = 'always'
26
27
  self.update_frequency_for_models = 'weekly'
27
28
  self.locations = []
29
+ self.hd_images = []
28
30
  end
29
31
 
30
32
  def self.setup(&block)
@@ -1,3 +1,3 @@
1
1
  module RailsSitemap
2
- VERSION = '0.2.5'
2
+ VERSION = '0.3.0'
3
3
  end
@@ -11,4 +11,12 @@ RailsSitemap.setup do |config|
11
11
  coordinates: '-56.19006872177124,-34.907047903278404,0'
12
12
  }
13
13
  ]
14
+
15
+ config.hd_images = [
16
+ {
17
+ name: 'mario.png',
18
+ title: 'A super fancy mario image',
19
+ coordinates: '12.417700299999979,45.4930475,0'
20
+ }
21
+ ]
14
22
  end
@@ -7941,3 +7941,747 @@ Processing by RailsSitemap::GeoController#index as XML
7941
7941
  Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.3ms)
7942
7942
  Completed 200 OK in 7ms (Views: 4.0ms | ActiveRecord: 0.0ms)
7943
7943
   (0.1ms) rollback transaction
7944
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7945
+  (0.1ms) begin transaction
7946
+ -----------------------------------------------------------
7947
+ AttachmentControllerTest: test_should_return_a_success_code
7948
+ -----------------------------------------------------------
7949
+ Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:31:54 -0300
7950
+ Processing by RailsSitemap::AttachmentController#index as XML
7951
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
7952
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (1.1ms)
7953
+ Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.0ms)
7954
+  (0.1ms) rollback transaction
7955
+  (0.1ms) begin transaction
7956
+ ----------------------------------------------------------
7957
+ AttachmentControllerTest: test_should_return_the_right_xml
7958
+ ----------------------------------------------------------
7959
+ Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:31:54 -0300
7960
+ Processing by RailsSitemap::AttachmentController#index as XML
7961
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
7962
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.5ms)
7963
+ Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.0ms)
7964
+  (0.1ms) rollback transaction
7965
+  (0.1ms) begin transaction
7966
+ ---------------------------------------------------------
7967
+ SitemapsControllerTest: test_should_return_a_success_code
7968
+ ---------------------------------------------------------
7969
+ Started GET "/sitemap_index.xml" for 127.0.0.1 at 2016-09-29 14:31:54 -0300
7970
+ Processing by RailsSitemap::SitemapsController#index as XML
7971
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
7972
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.6ms)
7973
+ Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.0ms)
7974
+  (0.1ms) rollback transaction
7975
+  (0.1ms) begin transaction
7976
+ --------------------------------------------------------
7977
+ SitemapsControllerTest: test_should_return_the_right_xml
7978
+ --------------------------------------------------------
7979
+ Started GET "/sitemap_index.xml" for 127.0.0.1 at 2016-09-29 14:31:54 -0300
7980
+ Processing by RailsSitemap::SitemapsController#index as XML
7981
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
7982
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.4ms)
7983
+ Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.0ms)
7984
+  (0.0ms) rollback transaction
7985
+  (0.1ms) begin transaction
7986
+ ----------------------------
7987
+ RailsSitemapTest: test_truth
7988
+ ----------------------------
7989
+  (0.1ms) rollback transaction
7990
+  (0.1ms) begin transaction
7991
+ ----------------------------------------------------
7992
+ GeoControllerTest: test_should_return_a_success_code
7993
+ ----------------------------------------------------
7994
+ Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:31:55 -0300
7995
+ Processing by RailsSitemap::GeoController#index as XML
7996
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
7997
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.3ms)
7998
+ Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.0ms)
7999
+  (0.1ms) rollback transaction
8000
+  (0.1ms) begin transaction
8001
+ ---------------------------------------------------
8002
+ GeoControllerTest: test_should_return_the_right_xml
8003
+ ---------------------------------------------------
8004
+ Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:31:55 -0300
8005
+ Processing by RailsSitemap::GeoController#index as XML
8006
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
8007
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.4ms)
8008
+ Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.0ms)
8009
+  (0.0ms) rollback transaction
8010
+  (0.0ms) begin transaction
8011
+ ----------------------------------------------------------
8012
+ LocationsControllerTest: test_should_return_a_success_code
8013
+ ----------------------------------------------------------
8014
+ Started GET "/locations.kml" for 127.0.0.1 at 2016-09-29 14:31:55 -0300
8015
+ Processing by RailsSitemap::LocationsController#index as KML
8016
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
8017
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.6ms)
8018
+ Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.0ms)
8019
+  (0.2ms) rollback transaction
8020
+  (0.1ms) begin transaction
8021
+ ---------------------------------------------------------
8022
+ LocationsControllerTest: test_should_return_the_right_xml
8023
+ ---------------------------------------------------------
8024
+ Started GET "/locations.kml" for 127.0.0.1 at 2016-09-29 14:31:55 -0300
8025
+ Processing by RailsSitemap::LocationsController#index as KML
8026
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
8027
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (7.2ms)
8028
+ Completed 200 OK in 13ms (Views: 11.2ms | ActiveRecord: 0.0ms)
8029
+  (0.1ms) rollback transaction
8030
+  (0.2ms) begin transaction
8031
+ ------------------------------------------------------
8032
+ PagesControllerTest: test_should_return_a_success_code
8033
+ ------------------------------------------------------
8034
+ Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:31:55 -0300
8035
+ Processing by RailsSitemap::PagesController#index as XML
8036
+ Article Load (0.2ms) SELECT "articles".* FROM "articles"
8037
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
8038
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.6ms)
8039
+ Completed 200 OK in 9ms (Views: 4.7ms | ActiveRecord: 0.3ms)
8040
+  (0.1ms) rollback transaction
8041
+  (0.1ms) begin transaction
8042
+ -----------------------------------------------------
8043
+ PagesControllerTest: test_should_return_the_right_xml
8044
+ -----------------------------------------------------
8045
+ Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:31:55 -0300
8046
+ Processing by RailsSitemap::PagesController#index as XML
8047
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
8048
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
8049
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.6ms)
8050
+ Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.1ms)
8051
+  (0.1ms) rollback transaction
8052
+  (0.1ms) begin transaction
8053
+ ---------------------------------------------------------------
8054
+ PagesControllerTest: test_should_return_the_articles_on_sitemap
8055
+ ---------------------------------------------------------------
8056
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ? [["name", "My first article"], ["LIMIT", 1]]
8057
+  (0.1ms) SAVEPOINT active_record_1
8058
+ SQL (0.4ms) INSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "My first article"], ["created_at", 2016-09-29 17:31:55 UTC], ["updated_at", 2016-09-29 17:31:55 UTC]]
8059
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8060
+ Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:31:55 -0300
8061
+ Processing by RailsSitemap::PagesController#index as XML
8062
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
8063
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
8064
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
8065
+ Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 0.1ms)
8066
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ? [["LIMIT", 1]]
8067
+  (2.1ms) rollback transaction
8068
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
8069
+  (0.1ms) begin transaction
8070
+ ----------------------------
8071
+ RailsSitemapTest: test_truth
8072
+ ----------------------------
8073
+  (0.0ms) rollback transaction
8074
+  (0.0ms) begin transaction
8075
+ -----------------------------------------------------------
8076
+ AttachmentControllerTest: test_should_return_a_success_code
8077
+ -----------------------------------------------------------
8078
+ Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:41:13 -0300
8079
+ Processing by RailsSitemap::AttachmentController#index as XML
8080
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
8081
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (1.2ms)
8082
+ Completed 200 OK in 242ms (Views: 7.9ms | ActiveRecord: 0.0ms)
8083
+  (0.1ms) rollback transaction
8084
+  (0.1ms) begin transaction
8085
+ ----------------------------------------------------------
8086
+ AttachmentControllerTest: test_should_return_the_right_xml
8087
+ ----------------------------------------------------------
8088
+ Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:41:13 -0300
8089
+ Processing by RailsSitemap::AttachmentController#index as XML
8090
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
8091
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.7ms)
8092
+ Completed 200 OK in 12ms (Views: 8.2ms | ActiveRecord: 0.0ms)
8093
+  (0.1ms) rollback transaction
8094
+  (0.1ms) begin transaction
8095
+ ---------------------------------------------------------
8096
+ LocationsControllerTest: test_should_return_the_right_xml
8097
+ ---------------------------------------------------------
8098
+ Started GET "/locations.kml" for 127.0.0.1 at 2016-09-29 14:41:13 -0300
8099
+ Processing by RailsSitemap::LocationsController#index as KML
8100
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
8101
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.9ms)
8102
+ Completed 200 OK in 12ms (Views: 8.8ms | ActiveRecord: 0.0ms)
8103
+  (0.1ms) rollback transaction
8104
+  (0.1ms) begin transaction
8105
+ ----------------------------------------------------------
8106
+ LocationsControllerTest: test_should_return_a_success_code
8107
+ ----------------------------------------------------------
8108
+ Started GET "/locations.kml" for 127.0.0.1 at 2016-09-29 14:41:13 -0300
8109
+ Processing by RailsSitemap::LocationsController#index as KML
8110
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
8111
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.4ms)
8112
+ Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.0ms)
8113
+  (0.1ms) rollback transaction
8114
+  (0.1ms) begin transaction
8115
+ ---------------------------------------------------------
8116
+ SitemapsControllerTest: test_should_return_a_success_code
8117
+ ---------------------------------------------------------
8118
+ Started GET "/sitemap_index.xml" for 127.0.0.1 at 2016-09-29 14:41:13 -0300
8119
+ Processing by RailsSitemap::SitemapsController#index as XML
8120
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
8121
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.4ms)
8122
+ Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.0ms)
8123
+  (0.1ms) rollback transaction
8124
+  (0.1ms) begin transaction
8125
+ --------------------------------------------------------
8126
+ SitemapsControllerTest: test_should_return_the_right_xml
8127
+ --------------------------------------------------------
8128
+ Started GET "/sitemap_index.xml" for 127.0.0.1 at 2016-09-29 14:41:13 -0300
8129
+ Processing by RailsSitemap::SitemapsController#index as XML
8130
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
8131
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.4ms)
8132
+ Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.0ms)
8133
+  (0.1ms) rollback transaction
8134
+  (0.0ms) begin transaction
8135
+ ------------------------------------------------------
8136
+ PagesControllerTest: test_should_return_a_success_code
8137
+ ------------------------------------------------------
8138
+ Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:41:13 -0300
8139
+ Processing by RailsSitemap::PagesController#index as XML
8140
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
8141
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
8142
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
8143
+ Completed 200 OK in 11ms (Views: 5.5ms | ActiveRecord: 0.3ms)
8144
+  (0.1ms) rollback transaction
8145
+  (0.1ms) begin transaction
8146
+ ---------------------------------------------------------------
8147
+ PagesControllerTest: test_should_return_the_articles_on_sitemap
8148
+ ---------------------------------------------------------------
8149
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ? [["name", "My first article"], ["LIMIT", 1]]
8150
+  (0.0ms) SAVEPOINT active_record_1
8151
+ SQL (0.2ms) INSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "My first article"], ["created_at", 2016-09-29 17:41:13 UTC], ["updated_at", 2016-09-29 17:41:13 UTC]]
8152
+  (0.0ms) RELEASE SAVEPOINT active_record_1
8153
+ Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:41:13 -0300
8154
+ Processing by RailsSitemap::PagesController#index as XML
8155
+ Article Load (0.2ms) SELECT "articles".* FROM "articles"
8156
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
8157
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
8158
+ Completed 200 OK in 15ms (Views: 8.3ms | ActiveRecord: 0.1ms)
8159
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ? [["LIMIT", 1]]
8160
+  (2.1ms) rollback transaction
8161
+  (0.1ms) begin transaction
8162
+ -----------------------------------------------------
8163
+ PagesControllerTest: test_should_return_the_right_xml
8164
+ -----------------------------------------------------
8165
+ Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:41:13 -0300
8166
+ Processing by RailsSitemap::PagesController#index as XML
8167
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
8168
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
8169
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
8170
+ Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.1ms)
8171
+  (0.1ms) rollback transaction
8172
+  (0.0ms) begin transaction
8173
+ ----------------------------------------------------
8174
+ GeoControllerTest: test_should_return_a_success_code
8175
+ ----------------------------------------------------
8176
+ Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:41:13 -0300
8177
+ Processing by RailsSitemap::GeoController#index as XML
8178
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
8179
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.4ms)
8180
+ Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms)
8181
+  (0.1ms) rollback transaction
8182
+  (0.0ms) begin transaction
8183
+ ---------------------------------------------------
8184
+ GeoControllerTest: test_should_return_the_right_xml
8185
+ ---------------------------------------------------
8186
+ Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:41:13 -0300
8187
+ Processing by RailsSitemap::GeoController#index as XML
8188
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
8189
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.3ms)
8190
+ Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.0ms)
8191
+  (0.0ms) rollback transaction
8192
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
8193
+  (0.1ms) begin transaction
8194
+ ---------------------------------------------------
8195
+ GeoControllerTest: test_should_return_the_right_xml
8196
+ ---------------------------------------------------
8197
+ Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:52:23 -0300
8198
+ Processing by RailsSitemap::GeoController#index as XML
8199
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
8200
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (1.0ms)
8201
+ Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.0ms)
8202
+  (0.1ms) rollback transaction
8203
+  (0.0ms) begin transaction
8204
+ ----------------------------------------------------
8205
+ GeoControllerTest: test_should_return_a_success_code
8206
+ ----------------------------------------------------
8207
+ Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:52:23 -0300
8208
+ Processing by RailsSitemap::GeoController#index as XML
8209
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
8210
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.3ms)
8211
+ Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.0ms)
8212
+  (0.1ms) rollback transaction
8213
+  (0.1ms) begin transaction
8214
+ ------------------------------------------------------
8215
+ PagesControllerTest: test_should_return_a_success_code
8216
+ ------------------------------------------------------
8217
+ Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:52:23 -0300
8218
+ Processing by RailsSitemap::PagesController#index as XML
8219
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
8220
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
8221
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
8222
+ Completed 200 OK in 9ms (Views: 4.4ms | ActiveRecord: 0.2ms)
8223
+  (0.1ms) rollback transaction
8224
+  (0.0ms) begin transaction
8225
+ ---------------------------------------------------------------
8226
+ PagesControllerTest: test_should_return_the_articles_on_sitemap
8227
+ ---------------------------------------------------------------
8228
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ? [["name", "My first article"], ["LIMIT", 1]]
8229
+  (0.0ms) SAVEPOINT active_record_1
8230
+ SQL (0.3ms) INSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "My first article"], ["created_at", 2016-09-29 17:52:23 UTC], ["updated_at", 2016-09-29 17:52:23 UTC]]
8231
+  (0.0ms) RELEASE SAVEPOINT active_record_1
8232
+ Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:52:23 -0300
8233
+ Processing by RailsSitemap::PagesController#index as XML
8234
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
8235
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
8236
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.6ms)
8237
+ Completed 200 OK in 8ms (Views: 4.7ms | ActiveRecord: 0.1ms)
8238
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ? [["LIMIT", 1]]
8239
+  (2.1ms) rollback transaction
8240
+  (0.1ms) begin transaction
8241
+ -----------------------------------------------------
8242
+ PagesControllerTest: test_should_return_the_right_xml
8243
+ -----------------------------------------------------
8244
+ Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:52:23 -0300
8245
+ Processing by RailsSitemap::PagesController#index as XML
8246
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
8247
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
8248
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
8249
+ Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.1ms)
8250
+  (0.1ms) rollback transaction
8251
+  (0.1ms) begin transaction
8252
+ ---------------------------------------------------------
8253
+ SitemapsControllerTest: test_should_return_a_success_code
8254
+ ---------------------------------------------------------
8255
+ Started GET "/sitemap_index.xml" for 127.0.0.1 at 2016-09-29 14:52:23 -0300
8256
+ Processing by RailsSitemap::SitemapsController#index as XML
8257
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
8258
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.4ms)
8259
+ Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.0ms)
8260
+  (0.1ms) rollback transaction
8261
+  (0.1ms) begin transaction
8262
+ --------------------------------------------------------
8263
+ SitemapsControllerTest: test_should_return_the_right_xml
8264
+ --------------------------------------------------------
8265
+ Started GET "/sitemap_index.xml" for 127.0.0.1 at 2016-09-29 14:52:23 -0300
8266
+ Processing by RailsSitemap::SitemapsController#index as XML
8267
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
8268
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.4ms)
8269
+ Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.0ms)
8270
+  (0.0ms) rollback transaction
8271
+  (0.0ms) begin transaction
8272
+ ---------------------------------------------------------
8273
+ LocationsControllerTest: test_should_return_the_right_xml
8274
+ ---------------------------------------------------------
8275
+ Started GET "/locations.kml" for 127.0.0.1 at 2016-09-29 14:52:23 -0300
8276
+ Processing by RailsSitemap::LocationsController#index as KML
8277
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
8278
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.5ms)
8279
+ Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.0ms)
8280
+  (0.1ms) rollback transaction
8281
+  (0.1ms) begin transaction
8282
+ ----------------------------------------------------------
8283
+ LocationsControllerTest: test_should_return_a_success_code
8284
+ ----------------------------------------------------------
8285
+ Started GET "/locations.kml" for 127.0.0.1 at 2016-09-29 14:52:23 -0300
8286
+ Processing by RailsSitemap::LocationsController#index as KML
8287
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
8288
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.7ms)
8289
+ Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.0ms)
8290
+  (0.1ms) rollback transaction
8291
+  (0.1ms) begin transaction
8292
+ ----------------------------
8293
+ RailsSitemapTest: test_truth
8294
+ ----------------------------
8295
+  (0.0ms) rollback transaction
8296
+  (0.0ms) begin transaction
8297
+ -----------------------------------------------------------
8298
+ AttachmentControllerTest: test_should_return_a_success_code
8299
+ -----------------------------------------------------------
8300
+ Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:52:23 -0300
8301
+ Processing by RailsSitemap::AttachmentController#index as XML
8302
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
8303
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.9ms)
8304
+ Completed 200 OK in 182ms (Views: 6.2ms | ActiveRecord: 0.0ms)
8305
+  (0.1ms) rollback transaction
8306
+  (0.1ms) begin transaction
8307
+ ----------------------------------------------------------
8308
+ AttachmentControllerTest: test_should_return_the_right_xml
8309
+ ----------------------------------------------------------
8310
+ Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:52:23 -0300
8311
+ Processing by RailsSitemap::AttachmentController#index as XML
8312
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
8313
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.5ms)
8314
+ Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.0ms)
8315
+  (0.1ms) rollback transaction
8316
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
8317
+  (0.1ms) begin transaction
8318
+ ----------------------------------------------------
8319
+ GeoControllerTest: test_should_return_a_success_code
8320
+ ----------------------------------------------------
8321
+ Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:53:01 -0300
8322
+ Processing by RailsSitemap::GeoController#index as XML
8323
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
8324
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.8ms)
8325
+ Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.0ms)
8326
+  (0.1ms) rollback transaction
8327
+  (0.1ms) begin transaction
8328
+ ---------------------------------------------------
8329
+ GeoControllerTest: test_should_return_the_right_xml
8330
+ ---------------------------------------------------
8331
+ Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:53:01 -0300
8332
+ Processing by RailsSitemap::GeoController#index as XML
8333
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
8334
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.5ms)
8335
+ Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.0ms)
8336
+  (0.1ms) rollback transaction
8337
+  (0.1ms) begin transaction
8338
+ ----------------------------------------------------------
8339
+ AttachmentControllerTest: test_should_return_the_right_xml
8340
+ ----------------------------------------------------------
8341
+ Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:53:01 -0300
8342
+ Processing by RailsSitemap::AttachmentController#index as XML
8343
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
8344
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.8ms)
8345
+ Completed 200 OK in 242ms (Views: 7.2ms | ActiveRecord: 0.0ms)
8346
+  (0.1ms) rollback transaction
8347
+  (0.1ms) begin transaction
8348
+ -----------------------------------------------------------
8349
+ AttachmentControllerTest: test_should_return_a_success_code
8350
+ -----------------------------------------------------------
8351
+ Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:55:24 -0300
8352
+ Processing by RailsSitemap::AttachmentController#index as XML
8353
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
8354
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.7ms)
8355
+ Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 0.0ms)
8356
+  (0.1ms) rollback transaction
8357
+  (0.0ms) begin transaction
8358
+ ---------------------------------------------------------
8359
+ LocationsControllerTest: test_should_return_the_right_xml
8360
+ ---------------------------------------------------------
8361
+ Started GET "/locations.kml" for 127.0.0.1 at 2016-09-29 14:55:24 -0300
8362
+ Processing by RailsSitemap::LocationsController#index as KML
8363
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
8364
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.5ms)
8365
+ Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.0ms)
8366
+  (0.1ms) rollback transaction
8367
+  (0.1ms) begin transaction
8368
+ ----------------------------------------------------------
8369
+ LocationsControllerTest: test_should_return_a_success_code
8370
+ ----------------------------------------------------------
8371
+ Started GET "/locations.kml" for 127.0.0.1 at 2016-09-29 14:55:24 -0300
8372
+ Processing by RailsSitemap::LocationsController#index as KML
8373
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
8374
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.4ms)
8375
+ Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.0ms)
8376
+  (0.1ms) rollback transaction
8377
+  (0.0ms) begin transaction
8378
+ ----------------------------
8379
+ RailsSitemapTest: test_truth
8380
+ ----------------------------
8381
+  (0.0ms) rollback transaction
8382
+  (0.2ms) begin transaction
8383
+ ---------------------------------------------------------
8384
+ SitemapsControllerTest: test_should_return_a_success_code
8385
+ ---------------------------------------------------------
8386
+ Started GET "/sitemap_index.xml" for 127.0.0.1 at 2016-09-29 14:55:24 -0300
8387
+ Processing by RailsSitemap::SitemapsController#index as XML
8388
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
8389
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.4ms)
8390
+ Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.0ms)
8391
+  (0.1ms) rollback transaction
8392
+  (0.1ms) begin transaction
8393
+ --------------------------------------------------------
8394
+ SitemapsControllerTest: test_should_return_the_right_xml
8395
+ --------------------------------------------------------
8396
+ Started GET "/sitemap_index.xml" for 127.0.0.1 at 2016-09-29 14:55:24 -0300
8397
+ Processing by RailsSitemap::SitemapsController#index as XML
8398
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
8399
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.4ms)
8400
+ Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.0ms)
8401
+  (0.1ms) rollback transaction
8402
+  (0.0ms) begin transaction
8403
+ ------------------------------------------------------
8404
+ PagesControllerTest: test_should_return_a_success_code
8405
+ ------------------------------------------------------
8406
+ Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:55:24 -0300
8407
+ Processing by RailsSitemap::PagesController#index as XML
8408
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
8409
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
8410
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.6ms)
8411
+ Completed 200 OK in 11ms (Views: 5.6ms | ActiveRecord: 0.3ms)
8412
+  (0.1ms) rollback transaction
8413
+  (0.1ms) begin transaction
8414
+ -----------------------------------------------------
8415
+ PagesControllerTest: test_should_return_the_right_xml
8416
+ -----------------------------------------------------
8417
+ Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:55:24 -0300
8418
+ Processing by RailsSitemap::PagesController#index as XML
8419
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
8420
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
8421
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
8422
+ Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.1ms)
8423
+  (0.1ms) rollback transaction
8424
+  (0.1ms) begin transaction
8425
+ ---------------------------------------------------------------
8426
+ PagesControllerTest: test_should_return_the_articles_on_sitemap
8427
+ ---------------------------------------------------------------
8428
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ? [["name", "My first article"], ["LIMIT", 1]]
8429
+  (0.1ms) SAVEPOINT active_record_1
8430
+ SQL (0.5ms) INSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "My first article"], ["created_at", 2016-09-29 17:55:24 UTC], ["updated_at", 2016-09-29 17:55:24 UTC]]
8431
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8432
+ Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:55:24 -0300
8433
+ Processing by RailsSitemap::PagesController#index as XML
8434
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
8435
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
8436
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.6ms)
8437
+ Completed 200 OK in 10ms (Views: 4.8ms | ActiveRecord: 0.1ms)
8438
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ? [["LIMIT", 1]]
8439
+  (2.2ms) rollback transaction
8440
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
8441
+  (0.1ms) begin transaction
8442
+ ---------------------------------------------------
8443
+ GeoControllerTest: test_should_return_the_right_xml
8444
+ ---------------------------------------------------
8445
+ Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:55:27 -0300
8446
+ Processing by RailsSitemap::GeoController#index as XML
8447
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
8448
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.9ms)
8449
+ Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.0ms)
8450
+  (0.1ms) rollback transaction
8451
+  (0.1ms) begin transaction
8452
+ ----------------------------------------------------
8453
+ GeoControllerTest: test_should_return_a_success_code
8454
+ ----------------------------------------------------
8455
+ Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:55:28 -0300
8456
+ Processing by RailsSitemap::GeoController#index as XML
8457
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
8458
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.3ms)
8459
+ Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.0ms)
8460
+  (0.1ms) rollback transaction
8461
+  (0.0ms) begin transaction
8462
+ --------------------------------------------------------
8463
+ SitemapsControllerTest: test_should_return_the_right_xml
8464
+ --------------------------------------------------------
8465
+ Started GET "/sitemap_index.xml" for 127.0.0.1 at 2016-09-29 14:55:28 -0300
8466
+ Processing by RailsSitemap::SitemapsController#index as XML
8467
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
8468
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.4ms)
8469
+ Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.0ms)
8470
+  (0.1ms) rollback transaction
8471
+  (0.1ms) begin transaction
8472
+ ---------------------------------------------------------
8473
+ SitemapsControllerTest: test_should_return_a_success_code
8474
+ ---------------------------------------------------------
8475
+ Started GET "/sitemap_index.xml" for 127.0.0.1 at 2016-09-29 14:55:28 -0300
8476
+ Processing by RailsSitemap::SitemapsController#index as XML
8477
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
8478
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.5ms)
8479
+ Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms)
8480
+  (0.1ms) rollback transaction
8481
+  (0.0ms) begin transaction
8482
+ -----------------------------------------------------------
8483
+ AttachmentControllerTest: test_should_return_a_success_code
8484
+ -----------------------------------------------------------
8485
+ Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:55:28 -0300
8486
+ Processing by RailsSitemap::AttachmentController#index as XML
8487
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
8488
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.6ms)
8489
+ Completed 200 OK in 253ms (Views: 8.6ms | ActiveRecord: 0.0ms)
8490
+  (0.1ms) rollback transaction
8491
+  (0.1ms) begin transaction
8492
+ ----------------------------------------------------------
8493
+ AttachmentControllerTest: test_should_return_the_right_xml
8494
+ ----------------------------------------------------------
8495
+ Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:55:28 -0300
8496
+ Processing by RailsSitemap::AttachmentController#index as XML
8497
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
8498
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.4ms)
8499
+ Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.0ms)
8500
+  (0.2ms) rollback transaction
8501
+  (0.2ms) begin transaction
8502
+ ----------------------------
8503
+ RailsSitemapTest: test_truth
8504
+ ----------------------------
8505
+  (0.1ms) rollback transaction
8506
+  (0.1ms) begin transaction
8507
+ ------------------------------------------------------
8508
+ PagesControllerTest: test_should_return_a_success_code
8509
+ ------------------------------------------------------
8510
+ Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:55:55 -0300
8511
+ Processing by RailsSitemap::PagesController#index as XML
8512
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
8513
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
8514
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.9ms)
8515
+ Completed 200 OK in 16ms (Views: 9.4ms | ActiveRecord: 0.2ms)
8516
+  (0.1ms) rollback transaction
8517
+  (0.1ms) begin transaction
8518
+ ---------------------------------------------------------------
8519
+ PagesControllerTest: test_should_return_the_articles_on_sitemap
8520
+ ---------------------------------------------------------------
8521
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ? [["name", "My first article"], ["LIMIT", 1]]
8522
+  (0.1ms) SAVEPOINT active_record_1
8523
+ SQL (0.3ms) INSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "My first article"], ["created_at", 2016-09-29 17:55:55 UTC], ["updated_at", 2016-09-29 17:55:55 UTC]]
8524
+  (0.0ms) RELEASE SAVEPOINT active_record_1
8525
+ Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:55:55 -0300
8526
+ Processing by RailsSitemap::PagesController#index as XML
8527
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
8528
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
8529
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
8530
+ Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.1ms)
8531
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ? [["LIMIT", 1]]
8532
+  (2.0ms) rollback transaction
8533
+  (0.1ms) begin transaction
8534
+ -----------------------------------------------------
8535
+ PagesControllerTest: test_should_return_the_right_xml
8536
+ -----------------------------------------------------
8537
+ Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:55:55 -0300
8538
+ Processing by RailsSitemap::PagesController#index as XML
8539
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
8540
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
8541
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
8542
+ Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.1ms)
8543
+  (0.1ms) rollback transaction
8544
+  (0.0ms) begin transaction
8545
+ ----------------------------------------------------------
8546
+ LocationsControllerTest: test_should_return_a_success_code
8547
+ ----------------------------------------------------------
8548
+ Started GET "/locations.kml" for 127.0.0.1 at 2016-09-29 14:55:55 -0300
8549
+ Processing by RailsSitemap::LocationsController#index as KML
8550
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
8551
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.5ms)
8552
+ Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.0ms)
8553
+  (0.1ms) rollback transaction
8554
+  (0.1ms) begin transaction
8555
+ ---------------------------------------------------------
8556
+ LocationsControllerTest: test_should_return_the_right_xml
8557
+ ---------------------------------------------------------
8558
+ Started GET "/locations.kml" for 127.0.0.1 at 2016-09-29 14:55:55 -0300
8559
+ Processing by RailsSitemap::LocationsController#index as KML
8560
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
8561
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.4ms)
8562
+ Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.0ms)
8563
+  (0.1ms) rollback transaction
8564
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
8565
+  (0.1ms) begin transaction
8566
+ ----------------------------------------------------------
8567
+ LocationsControllerTest: test_should_return_a_success_code
8568
+ ----------------------------------------------------------
8569
+ Started GET "/locations.kml" for 127.0.0.1 at 2016-09-29 14:55:59 -0300
8570
+ Processing by RailsSitemap::LocationsController#index as KML
8571
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
8572
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (1.1ms)
8573
+ Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms)
8574
+  (0.1ms) rollback transaction
8575
+  (0.1ms) begin transaction
8576
+ ---------------------------------------------------------
8577
+ LocationsControllerTest: test_should_return_the_right_xml
8578
+ ---------------------------------------------------------
8579
+ Started GET "/locations.kml" for 127.0.0.1 at 2016-09-29 14:55:59 -0300
8580
+ Processing by RailsSitemap::LocationsController#index as KML
8581
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
8582
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.4ms)
8583
+ Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.0ms)
8584
+  (0.1ms) rollback transaction
8585
+  (0.0ms) begin transaction
8586
+ ----------------------------------------------------
8587
+ GeoControllerTest: test_should_return_a_success_code
8588
+ ----------------------------------------------------
8589
+ Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:55:59 -0300
8590
+ Processing by RailsSitemap::GeoController#index as XML
8591
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
8592
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.3ms)
8593
+ Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.0ms)
8594
+  (0.1ms) rollback transaction
8595
+  (0.1ms) begin transaction
8596
+ ---------------------------------------------------
8597
+ GeoControllerTest: test_should_return_the_right_xml
8598
+ ---------------------------------------------------
8599
+ Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:55:59 -0300
8600
+ Processing by RailsSitemap::GeoController#index as XML
8601
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
8602
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.3ms)
8603
+ Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.0ms)
8604
+  (0.1ms) rollback transaction
8605
+  (0.0ms) begin transaction
8606
+ ---------------------------------------------------------
8607
+ SitemapsControllerTest: test_should_return_a_success_code
8608
+ ---------------------------------------------------------
8609
+ Started GET "/sitemap_index.xml" for 127.0.0.1 at 2016-09-29 14:55:59 -0300
8610
+ Processing by RailsSitemap::SitemapsController#index as XML
8611
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
8612
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.4ms)
8613
+ Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.0ms)
8614
+  (0.1ms) rollback transaction
8615
+  (0.1ms) begin transaction
8616
+ --------------------------------------------------------
8617
+ SitemapsControllerTest: test_should_return_the_right_xml
8618
+ --------------------------------------------------------
8619
+ Started GET "/sitemap_index.xml" for 127.0.0.1 at 2016-09-29 14:55:59 -0300
8620
+ Processing by RailsSitemap::SitemapsController#index as XML
8621
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
8622
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.5ms)
8623
+ Completed 200 OK in 8ms (Views: 4.8ms | ActiveRecord: 0.0ms)
8624
+  (0.1ms) rollback transaction
8625
+  (0.0ms) begin transaction
8626
+ -----------------------------------------------------------
8627
+ AttachmentControllerTest: test_should_return_a_success_code
8628
+ -----------------------------------------------------------
8629
+ Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:55:59 -0300
8630
+ Processing by RailsSitemap::AttachmentController#index as XML
8631
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
8632
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.6ms)
8633
+ Completed 200 OK in 248ms (Views: 5.2ms | ActiveRecord: 0.0ms)
8634
+  (0.1ms) rollback transaction
8635
+  (0.1ms) begin transaction
8636
+ ----------------------------------------------------------
8637
+ AttachmentControllerTest: test_should_return_the_right_xml
8638
+ ----------------------------------------------------------
8639
+ Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:55:59 -0300
8640
+ Processing by RailsSitemap::AttachmentController#index as XML
8641
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
8642
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.4ms)
8643
+ Completed 200 OK in 8ms (Views: 4.7ms | ActiveRecord: 0.0ms)
8644
+  (0.1ms) rollback transaction
8645
+  (0.0ms) begin transaction
8646
+ ----------------------------
8647
+ RailsSitemapTest: test_truth
8648
+ ----------------------------
8649
+  (0.0ms) rollback transaction
8650
+  (0.0ms) begin transaction
8651
+ ------------------------------------------------------
8652
+ PagesControllerTest: test_should_return_a_success_code
8653
+ ------------------------------------------------------
8654
+ Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:55:59 -0300
8655
+ Processing by RailsSitemap::PagesController#index as XML
8656
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
8657
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
8658
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
8659
+ Completed 200 OK in 8ms (Views: 4.3ms | ActiveRecord: 0.2ms)
8660
+  (0.1ms) rollback transaction
8661
+  (0.0ms) begin transaction
8662
+ ---------------------------------------------------------------
8663
+ PagesControllerTest: test_should_return_the_articles_on_sitemap
8664
+ ---------------------------------------------------------------
8665
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ? [["name", "My first article"], ["LIMIT", 1]]
8666
+  (0.1ms) SAVEPOINT active_record_1
8667
+ SQL (0.2ms) INSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "My first article"], ["created_at", 2016-09-29 17:55:59 UTC], ["updated_at", 2016-09-29 17:55:59 UTC]]
8668
+  (0.0ms) RELEASE SAVEPOINT active_record_1
8669
+ Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:55:59 -0300
8670
+ Processing by RailsSitemap::PagesController#index as XML
8671
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
8672
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
8673
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
8674
+ Completed 200 OK in 8ms (Views: 4.3ms | ActiveRecord: 0.1ms)
8675
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ? [["LIMIT", 1]]
8676
+  (2.0ms) rollback transaction
8677
+  (0.1ms) begin transaction
8678
+ -----------------------------------------------------
8679
+ PagesControllerTest: test_should_return_the_right_xml
8680
+ -----------------------------------------------------
8681
+ Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 14:55:59 -0300
8682
+ Processing by RailsSitemap::PagesController#index as XML
8683
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
8684
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
8685
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
8686
+ Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.1ms)
8687
+  (0.1ms) rollback transaction
@@ -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\"?><?xml-stylesheet type=\"text/xsl\" href=http://www.example.com/main-sitemap.xsl?>\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\n <url>\n <loc>http://www.example.com</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>![CDATA[mario-3bb8ffa9dfd72eb62696af136f8b05883b8b7623b8773851610c8bf366dfd013.png]]</image:title>\n </image:image>\n </url>\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\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"
12
12
  end
13
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.5
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pablo Gonzaga