rails_sitemap 0.4.0 → 0.4.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: 40990c72f5bb32fbddc227b97e5b62e415b891ce
4
- data.tar.gz: 8c0f0f08200ea985dda080fa802156220d9c3bc8
3
+ metadata.gz: a2298fffe79ae11b7bc7f32c9d5db4c0e4fafdf8
4
+ data.tar.gz: f11defd3481451e6036bed72f004006a9fde0359
5
5
  SHA512:
6
- metadata.gz: 1bd4e2416e3f24576ace09e340f717ec05bfd616c8f8dd11d815f915eb85659ca7e2350849865e0359b2b56763fe42672d9570ba55822706e551cd759f3d993e
7
- data.tar.gz: 29e50abc60c62bc2cc8bbe7755e1f2b5b8aa6cbb50ae222de39824fe8e0c030242f790afe5d0d450f6186c4211e9fff98640ec13da75b49097a35986c77f2a17
6
+ metadata.gz: 3b4cdc8ef4af04613bfd8a05fa8fb6f4c6b9678602855a771f38ef2e917675d56ba3b2cc18017ef747c0d95d4e0e804ba9a9bd05b1ff6a76ed5ab24accf08c79
7
+ data.tar.gz: 3d187b43dfb620d12bd6ba829742df1be88565f26f8c2c4f20f1a2bb6d070027878bd3b2b54ce3368d421181446138ddf477c7b5b4f2399c41ba47be0a7e6d4b
@@ -1,5 +1,5 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
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">
2
+ <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
3
3
  <%@image_entries.each do |image_entry|%>
4
4
  <url>
5
5
  <%if image_entry.coordinates%>
@@ -1,3 +1,3 @@
1
1
  module RailsSitemap
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
@@ -11781,3 +11781,375 @@ Processing by RailsSitemap::SitemapsController#index as XML
11781
11781
  Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.6ms)
11782
11782
  Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.0ms)
11783
11783
   (0.1ms) rollback transaction
11784
+ ActiveRecord::SchemaMigration Load (2.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11785
+  (0.1ms) begin transaction
11786
+ ------------------------------------------------------
11787
+ PagesControllerTest: test_should_return_a_success_code
11788
+ ------------------------------------------------------
11789
+ Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-10-10 10:48:06 -0300
11790
+ Processing by RailsSitemap::PagesController#index as XML
11791
+ Article Load (2.3ms) SELECT "articles".* FROM "articles"
11792
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
11793
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (4.3ms)
11794
+ Completed 200 OK in 49ms (Views: 25.4ms | ActiveRecord: 2.7ms)
11795
+  (0.2ms) rollback transaction
11796
+  (0.1ms) begin transaction
11797
+ ---------------------------------------------------------------
11798
+ PagesControllerTest: test_should_return_the_articles_on_sitemap
11799
+ ---------------------------------------------------------------
11800
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ? [["name", "My first article"], ["LIMIT", 1]]
11801
+  (0.1ms) SAVEPOINT active_record_1
11802
+ SQL (2.8ms) INSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "My first article"], ["created_at", 2016-10-10 13:48:06 UTC], ["updated_at", 2016-10-10 13:48:06 UTC]]
11803
+  (0.2ms) RELEASE SAVEPOINT active_record_1
11804
+ Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-10-10 10:48:06 -0300
11805
+ Processing by RailsSitemap::PagesController#index as XML
11806
+ Article Load (0.2ms) SELECT "articles".* FROM "articles"
11807
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
11808
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.7ms)
11809
+ Completed 200 OK in 18ms (Views: 9.5ms | ActiveRecord: 0.2ms)
11810
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ? [["LIMIT", 1]]
11811
+  (2.1ms) rollback transaction
11812
+  (0.1ms) begin transaction
11813
+ -----------------------------------------------------
11814
+ PagesControllerTest: test_should_return_the_right_xml
11815
+ -----------------------------------------------------
11816
+ Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-10-10 10:48:06 -0300
11817
+ Processing by RailsSitemap::PagesController#index as XML
11818
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
11819
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
11820
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
11821
+ Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.1ms)
11822
+  (0.1ms) rollback transaction
11823
+  (0.0ms) begin transaction
11824
+ ----------------------------------------------------------
11825
+ LocationsControllerTest: test_should_return_a_success_code
11826
+ ----------------------------------------------------------
11827
+ Started GET "/locations.kml" for 127.0.0.1 at 2016-10-10 10:48:06 -0300
11828
+ Processing by RailsSitemap::LocationsController#index as KML
11829
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
11830
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (7.3ms)
11831
+ Completed 200 OK in 22ms (Views: 16.7ms | ActiveRecord: 0.0ms)
11832
+  (0.1ms) rollback transaction
11833
+  (0.1ms) begin transaction
11834
+ ---------------------------------------------------------
11835
+ LocationsControllerTest: test_should_return_the_right_xml
11836
+ ---------------------------------------------------------
11837
+ Started GET "/locations.kml" for 127.0.0.1 at 2016-10-10 10:48:06 -0300
11838
+ Processing by RailsSitemap::LocationsController#index as KML
11839
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
11840
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.4ms)
11841
+ Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.0ms)
11842
+  (0.0ms) rollback transaction
11843
+  (0.1ms) begin transaction
11844
+ ----------------------------
11845
+ RailsSitemapTest: test_truth
11846
+ ----------------------------
11847
+  (0.1ms) rollback transaction
11848
+  (0.0ms) begin transaction
11849
+ ---------------------------------------------------------
11850
+ SitemapsControllerTest: test_should_return_a_success_code
11851
+ ---------------------------------------------------------
11852
+ Started GET "/sitemap_index.xml" for 127.0.0.1 at 2016-10-10 10:48:06 -0300
11853
+ Processing by RailsSitemap::SitemapsController#index as XML
11854
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
11855
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.4ms)
11856
+ Completed 200 OK in 10ms (Views: 5.4ms | ActiveRecord: 0.0ms)
11857
+  (0.1ms) rollback transaction
11858
+  (0.0ms) begin transaction
11859
+ --------------------------------------------------------
11860
+ SitemapsControllerTest: test_should_return_the_right_xml
11861
+ --------------------------------------------------------
11862
+ Started GET "/sitemap_index.xml" for 127.0.0.1 at 2016-10-10 10:48:06 -0300
11863
+ Processing by RailsSitemap::SitemapsController#index as XML
11864
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
11865
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.5ms)
11866
+ Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.0ms)
11867
+  (0.1ms) rollback transaction
11868
+  (0.0ms) begin transaction
11869
+ ----------------------------------------------------
11870
+ GeoControllerTest: test_should_return_a_success_code
11871
+ ----------------------------------------------------
11872
+ Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-10-10 10:48:06 -0300
11873
+ Processing by RailsSitemap::GeoController#index as XML
11874
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
11875
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.7ms)
11876
+ Completed 200 OK in 14ms (Views: 8.5ms | ActiveRecord: 0.0ms)
11877
+  (0.1ms) rollback transaction
11878
+  (0.1ms) begin transaction
11879
+ ---------------------------------------------------
11880
+ GeoControllerTest: test_should_return_the_right_xml
11881
+ ---------------------------------------------------
11882
+ Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-10-10 10:48:06 -0300
11883
+ Processing by RailsSitemap::GeoController#index as XML
11884
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
11885
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.3ms)
11886
+ Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.0ms)
11887
+  (0.1ms) rollback transaction
11888
+  (0.0ms) begin transaction
11889
+ -----------------------------------------------------------
11890
+ AttachmentControllerTest: test_should_return_a_success_code
11891
+ -----------------------------------------------------------
11892
+ Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-10-10 10:48:06 -0300
11893
+ Processing by RailsSitemap::AttachmentController#index as XML
11894
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
11895
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.5ms)
11896
+ Completed 200 OK in 261ms (Views: 7.9ms | ActiveRecord: 0.0ms)
11897
+  (0.1ms) rollback transaction
11898
+  (0.1ms) begin transaction
11899
+ ----------------------------------------------------------
11900
+ AttachmentControllerTest: test_should_return_the_right_xml
11901
+ ----------------------------------------------------------
11902
+ Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-10-10 10:48:06 -0300
11903
+ Processing by RailsSitemap::AttachmentController#index as XML
11904
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
11905
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.4ms)
11906
+ Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.0ms)
11907
+  (0.1ms) rollback transaction
11908
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
11909
+  (0.1ms) begin transaction
11910
+ ----------------------------------------------------------
11911
+ AttachmentControllerTest: test_should_return_the_right_xml
11912
+ ----------------------------------------------------------
11913
+ Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-10-10 10:49:20 -0300
11914
+ Processing by RailsSitemap::AttachmentController#index as XML
11915
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
11916
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (2.8ms)
11917
+ Completed 200 OK in 240ms (Views: 8.5ms | ActiveRecord: 0.0ms)
11918
+  (0.1ms) rollback transaction
11919
+  (0.1ms) begin transaction
11920
+ -----------------------------------------------------------
11921
+ AttachmentControllerTest: test_should_return_a_success_code
11922
+ -----------------------------------------------------------
11923
+ Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-10-10 10:49:45 -0300
11924
+ Processing by RailsSitemap::AttachmentController#index as XML
11925
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
11926
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.6ms)
11927
+ Completed 200 OK in 9ms (Views: 5.8ms | ActiveRecord: 0.0ms)
11928
+  (0.1ms) rollback transaction
11929
+  (0.0ms) begin transaction
11930
+ ---------------------------------------------------------
11931
+ LocationsControllerTest: test_should_return_the_right_xml
11932
+ ---------------------------------------------------------
11933
+ Started GET "/locations.kml" for 127.0.0.1 at 2016-10-10 10:49:45 -0300
11934
+ Processing by RailsSitemap::LocationsController#index as KML
11935
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
11936
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.4ms)
11937
+ Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.0ms)
11938
+  (0.1ms) rollback transaction
11939
+  (0.1ms) begin transaction
11940
+ ----------------------------------------------------------
11941
+ LocationsControllerTest: test_should_return_a_success_code
11942
+ ----------------------------------------------------------
11943
+ Started GET "/locations.kml" for 127.0.0.1 at 2016-10-10 10:49:45 -0300
11944
+ Processing by RailsSitemap::LocationsController#index as KML
11945
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
11946
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.4ms)
11947
+ Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.0ms)
11948
+  (0.0ms) rollback transaction
11949
+  (0.0ms) begin transaction
11950
+ ---------------------------------------------------------
11951
+ SitemapsControllerTest: test_should_return_a_success_code
11952
+ ---------------------------------------------------------
11953
+ Started GET "/sitemap_index.xml" for 127.0.0.1 at 2016-10-10 10:49:45 -0300
11954
+ Processing by RailsSitemap::SitemapsController#index as XML
11955
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
11956
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.4ms)
11957
+ Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms)
11958
+  (0.1ms) rollback transaction
11959
+  (0.1ms) begin transaction
11960
+ --------------------------------------------------------
11961
+ SitemapsControllerTest: test_should_return_the_right_xml
11962
+ --------------------------------------------------------
11963
+ Started GET "/sitemap_index.xml" for 127.0.0.1 at 2016-10-10 10:49:45 -0300
11964
+ Processing by RailsSitemap::SitemapsController#index as XML
11965
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
11966
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.3ms)
11967
+ Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.0ms)
11968
+  (0.0ms) rollback transaction
11969
+  (0.0ms) begin transaction
11970
+ ----------------------------
11971
+ RailsSitemapTest: test_truth
11972
+ ----------------------------
11973
+  (0.0ms) rollback transaction
11974
+  (0.0ms) begin transaction
11975
+ ----------------------------------------------------
11976
+ GeoControllerTest: test_should_return_a_success_code
11977
+ ----------------------------------------------------
11978
+ Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-10-10 10:49:45 -0300
11979
+ Processing by RailsSitemap::GeoController#index as XML
11980
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
11981
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.3ms)
11982
+ Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.0ms)
11983
+  (0.1ms) rollback transaction
11984
+  (0.1ms) begin transaction
11985
+ ---------------------------------------------------
11986
+ GeoControllerTest: test_should_return_the_right_xml
11987
+ ---------------------------------------------------
11988
+ Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-10-10 10:49:45 -0300
11989
+ Processing by RailsSitemap::GeoController#index as XML
11990
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
11991
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.3ms)
11992
+ Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.0ms)
11993
+  (0.1ms) rollback transaction
11994
+  (0.1ms) begin transaction
11995
+ ------------------------------------------------------
11996
+ PagesControllerTest: test_should_return_a_success_code
11997
+ ------------------------------------------------------
11998
+ Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-10-10 10:49:45 -0300
11999
+ Processing by RailsSitemap::PagesController#index as XML
12000
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
12001
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
12002
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
12003
+ Completed 200 OK in 9ms (Views: 4.5ms | ActiveRecord: 0.2ms)
12004
+  (0.1ms) rollback transaction
12005
+  (0.1ms) begin transaction
12006
+ ---------------------------------------------------------------
12007
+ PagesControllerTest: test_should_return_the_articles_on_sitemap
12008
+ ---------------------------------------------------------------
12009
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ? [["name", "My first article"], ["LIMIT", 1]]
12010
+  (0.0ms) SAVEPOINT active_record_1
12011
+ SQL (0.2ms) INSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "My first article"], ["created_at", 2016-10-10 13:49:45 UTC], ["updated_at", 2016-10-10 13:49:45 UTC]]
12012
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12013
+ Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-10-10 10:49:45 -0300
12014
+ Processing by RailsSitemap::PagesController#index as XML
12015
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
12016
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
12017
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
12018
+ Completed 200 OK in 8ms (Views: 4.6ms | ActiveRecord: 0.1ms)
12019
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ? [["LIMIT", 1]]
12020
+  (2.0ms) rollback transaction
12021
+  (0.1ms) begin transaction
12022
+ -----------------------------------------------------
12023
+ PagesControllerTest: test_should_return_the_right_xml
12024
+ -----------------------------------------------------
12025
+ Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-10-10 10:49:45 -0300
12026
+ Processing by RailsSitemap::PagesController#index as XML
12027
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
12028
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
12029
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
12030
+ Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.1ms)
12031
+  (0.1ms) rollback transaction
12032
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
12033
+  (0.1ms) begin transaction
12034
+ ----------------------------------------------------
12035
+ GeoControllerTest: test_should_return_a_success_code
12036
+ ----------------------------------------------------
12037
+ Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-10-10 10:49:50 -0300
12038
+ Processing by RailsSitemap::GeoController#index as XML
12039
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
12040
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.9ms)
12041
+ Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms)
12042
+  (0.1ms) rollback transaction
12043
+  (0.0ms) begin transaction
12044
+ ---------------------------------------------------
12045
+ GeoControllerTest: test_should_return_the_right_xml
12046
+ ---------------------------------------------------
12047
+ Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-10-10 10:49:50 -0300
12048
+ Processing by RailsSitemap::GeoController#index as XML
12049
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
12050
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.3ms)
12051
+ Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.0ms)
12052
+  (0.0ms) rollback transaction
12053
+  (0.1ms) begin transaction
12054
+ ----------------------------
12055
+ RailsSitemapTest: test_truth
12056
+ ----------------------------
12057
+  (0.0ms) rollback transaction
12058
+  (0.0ms) begin transaction
12059
+ ------------------------------------------------------
12060
+ PagesControllerTest: test_should_return_a_success_code
12061
+ ------------------------------------------------------
12062
+ Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-10-10 10:49:50 -0300
12063
+ Processing by RailsSitemap::PagesController#index as XML
12064
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
12065
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
12066
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
12067
+ Completed 200 OK in 9ms (Views: 4.6ms | ActiveRecord: 0.2ms)
12068
+  (0.1ms) rollback transaction
12069
+  (0.0ms) begin transaction
12070
+ -----------------------------------------------------
12071
+ PagesControllerTest: test_should_return_the_right_xml
12072
+ -----------------------------------------------------
12073
+ Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-10-10 10:49:50 -0300
12074
+ Processing by RailsSitemap::PagesController#index as XML
12075
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
12076
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
12077
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
12078
+ Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.1ms)
12079
+  (0.1ms) rollback transaction
12080
+  (0.1ms) begin transaction
12081
+ ---------------------------------------------------------------
12082
+ PagesControllerTest: test_should_return_the_articles_on_sitemap
12083
+ ---------------------------------------------------------------
12084
+ Article Load (0.5ms) SELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ? [["name", "My first article"], ["LIMIT", 1]]
12085
+  (0.0ms) SAVEPOINT active_record_1
12086
+ SQL (0.2ms) INSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "My first article"], ["created_at", 2016-10-10 13:49:50 UTC], ["updated_at", 2016-10-10 13:49:50 UTC]]
12087
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12088
+ Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-10-10 10:49:50 -0300
12089
+ Processing by RailsSitemap::PagesController#index as XML
12090
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
12091
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
12092
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
12093
+ Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.1ms)
12094
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ? [["LIMIT", 1]]
12095
+  (2.2ms) rollback transaction
12096
+  (0.1ms) begin transaction
12097
+ -----------------------------------------------------------
12098
+ AttachmentControllerTest: test_should_return_a_success_code
12099
+ -----------------------------------------------------------
12100
+ Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-10-10 10:49:50 -0300
12101
+ Processing by RailsSitemap::AttachmentController#index as XML
12102
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
12103
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.8ms)
12104
+ Completed 200 OK in 224ms (Views: 5.4ms | ActiveRecord: 0.0ms)
12105
+  (0.1ms) rollback transaction
12106
+  (0.1ms) begin transaction
12107
+ ----------------------------------------------------------
12108
+ AttachmentControllerTest: test_should_return_the_right_xml
12109
+ ----------------------------------------------------------
12110
+ Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-10-10 10:49:50 -0300
12111
+ Processing by RailsSitemap::AttachmentController#index as XML
12112
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
12113
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.5ms)
12114
+ Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.0ms)
12115
+  (0.1ms) rollback transaction
12116
+  (0.1ms) begin transaction
12117
+ ---------------------------------------------------------
12118
+ SitemapsControllerTest: test_should_return_a_success_code
12119
+ ---------------------------------------------------------
12120
+ Started GET "/sitemap_index.xml" for 127.0.0.1 at 2016-10-10 10:49:50 -0300
12121
+ Processing by RailsSitemap::SitemapsController#index as XML
12122
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
12123
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.4ms)
12124
+ Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.0ms)
12125
+  (0.1ms) rollback transaction
12126
+  (0.1ms) begin transaction
12127
+ --------------------------------------------------------
12128
+ SitemapsControllerTest: test_should_return_the_right_xml
12129
+ --------------------------------------------------------
12130
+ Started GET "/sitemap_index.xml" for 127.0.0.1 at 2016-10-10 10:49:50 -0300
12131
+ Processing by RailsSitemap::SitemapsController#index as XML
12132
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
12133
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.4ms)
12134
+ Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.0ms)
12135
+  (0.1ms) rollback transaction
12136
+  (0.1ms) begin transaction
12137
+ ----------------------------------------------------------
12138
+ LocationsControllerTest: test_should_return_a_success_code
12139
+ ----------------------------------------------------------
12140
+ Started GET "/locations.kml" for 127.0.0.1 at 2016-10-10 10:49:50 -0300
12141
+ Processing by RailsSitemap::LocationsController#index as KML
12142
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
12143
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.4ms)
12144
+ Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.0ms)
12145
+  (0.1ms) rollback transaction
12146
+  (0.1ms) begin transaction
12147
+ ---------------------------------------------------------
12148
+ LocationsControllerTest: test_should_return_the_right_xml
12149
+ ---------------------------------------------------------
12150
+ Started GET "/locations.kml" for 127.0.0.1 at 2016-10-10 10:49:50 -0300
12151
+ Processing by RailsSitemap::LocationsController#index as KML
12152
+ Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
12153
+ Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.4ms)
12154
+ Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.0ms)
12155
+  (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 <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"
11
+ assert_equal response.body, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\" xmlns:image=\"http://www.google.com/schemas/sitemap-image/1.1\">\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.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pablo Gonzaga