rails_sitemap 0.3.0 → 0.3.1

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