rails_sitemap 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/routes.rb +1 -1
- data/lib/rails_sitemap/version.rb +1 -1
- data/test/dummy/log/test.log +372 -0
- data/test/integration/sitemaps_controller_test.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d025c334647e66aa56b06e7b173aad01f7502055
|
4
|
+
data.tar.gz: 12726a38e1ae9d1362e1f39536b4df3d6a5e3e01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d62ec8c83bf394084e713b88c0b92d291a9e2b20694d4a9377da7cf301fd4473ecc669cb979435e040842f4f9e0813b274fca7a4e0cd62ba217cb6a5c4441b9
|
7
|
+
data.tar.gz: 344f33c0ad480eaad2c6c0041ec8770a6b51e21b072630b16fa55dfb6953762568f8801583e959de24cd778ed9f41c5e7d823d8156e7afdedebd682cbee56af5
|
data/config/routes.rb
CHANGED
@@ -2,7 +2,7 @@ RailsSitemap::Engine.routes.draw do
|
|
2
2
|
get 'pages-sitemap' => 'pages#index'
|
3
3
|
get 'attachment-sitemap' => 'attachment#index'
|
4
4
|
get 'geo-sitemap' => 'geo#index'
|
5
|
-
get '
|
5
|
+
get 'sitemap_index' => 'sitemaps#index'
|
6
6
|
|
7
7
|
resources :locations, only: :index
|
8
8
|
end
|
data/test/dummy/log/test.log
CHANGED
@@ -7569,3 +7569,375 @@ Processing by RailsSitemap::SitemapsController#index as XML
|
|
7569
7569
|
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.4ms)
|
7570
7570
|
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.0ms)
|
7571
7571
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
7572
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7573
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7574
|
+
---------------------------------------------------------------
|
7575
|
+
PagesControllerTest: test_should_return_the_articles_on_sitemap
|
7576
|
+
---------------------------------------------------------------
|
7577
|
+
[1m[36mArticle Load (0.3ms)[0m [1m[34mSELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ?[0m [["name", "My first article"], ["LIMIT", 1]]
|
7578
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
7579
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "My first article"], ["created_at", 2016-09-28 18:14:37 UTC], ["updated_at", 2016-09-28 18:14:37 UTC]]
|
7580
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
7581
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-28 15:14:37 -0300
|
7582
|
+
Processing by RailsSitemap::PagesController#index as XML
|
7583
|
+
[1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
7584
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
7585
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (3.7ms)
|
7586
|
+
Completed 200 OK in 30ms (Views: 23.1ms | ActiveRecord: 0.2ms)
|
7587
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
7588
|
+
[1m[35m (2.1ms)[0m [1m[31mrollback transaction[0m
|
7589
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7590
|
+
-----------------------------------------------------
|
7591
|
+
PagesControllerTest: test_should_return_the_right_xml
|
7592
|
+
-----------------------------------------------------
|
7593
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-28 15:14:37 -0300
|
7594
|
+
Processing by RailsSitemap::PagesController#index as XML
|
7595
|
+
[1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
7596
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
7597
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.6ms)
|
7598
|
+
Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.2ms)
|
7599
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
7600
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7601
|
+
------------------------------------------------------
|
7602
|
+
PagesControllerTest: test_should_return_a_success_code
|
7603
|
+
------------------------------------------------------
|
7604
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-28 15:14:37 -0300
|
7605
|
+
Processing by RailsSitemap::PagesController#index as XML
|
7606
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
7607
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
7608
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
|
7609
|
+
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.1ms)
|
7610
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7611
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7612
|
+
----------------------------------------------------------
|
7613
|
+
LocationsControllerTest: test_should_return_a_success_code
|
7614
|
+
----------------------------------------------------------
|
7615
|
+
Started GET "/locations.kml" for 127.0.0.1 at 2016-09-28 15:14:37 -0300
|
7616
|
+
Processing by RailsSitemap::LocationsController#index as KML
|
7617
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
|
7618
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.4ms)
|
7619
|
+
Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.0ms)
|
7620
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7621
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7622
|
+
---------------------------------------------------------
|
7623
|
+
LocationsControllerTest: test_should_return_the_right_xml
|
7624
|
+
---------------------------------------------------------
|
7625
|
+
Started GET "/locations.kml" for 127.0.0.1 at 2016-09-28 15:14:37 -0300
|
7626
|
+
Processing by RailsSitemap::LocationsController#index as KML
|
7627
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
|
7628
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.6ms)
|
7629
|
+
Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.0ms)
|
7630
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
7631
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7632
|
+
----------------------------
|
7633
|
+
RailsSitemapTest: test_truth
|
7634
|
+
----------------------------
|
7635
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7636
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7637
|
+
-----------------------------------------------------------
|
7638
|
+
AttachmentControllerTest: test_should_return_a_success_code
|
7639
|
+
-----------------------------------------------------------
|
7640
|
+
Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-28 15:14:37 -0300
|
7641
|
+
Processing by RailsSitemap::AttachmentController#index as XML
|
7642
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
|
7643
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.8ms)
|
7644
|
+
Completed 200 OK in 224ms (Views: 5.4ms | ActiveRecord: 0.0ms)
|
7645
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
7646
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7647
|
+
----------------------------------------------------------
|
7648
|
+
AttachmentControllerTest: test_should_return_the_right_xml
|
7649
|
+
----------------------------------------------------------
|
7650
|
+
Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-28 15:14:37 -0300
|
7651
|
+
Processing by RailsSitemap::AttachmentController#index as XML
|
7652
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
|
7653
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.9ms)
|
7654
|
+
Completed 200 OK in 10ms (Views: 7.5ms | ActiveRecord: 0.0ms)
|
7655
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
7656
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7657
|
+
----------------------------------------------------
|
7658
|
+
GeoControllerTest: test_should_return_a_success_code
|
7659
|
+
----------------------------------------------------
|
7660
|
+
Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-28 15:14:37 -0300
|
7661
|
+
Processing by RailsSitemap::GeoController#index as XML
|
7662
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
|
7663
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.4ms)
|
7664
|
+
Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.0ms)
|
7665
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
7666
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7667
|
+
---------------------------------------------------
|
7668
|
+
GeoControllerTest: test_should_return_the_right_xml
|
7669
|
+
---------------------------------------------------
|
7670
|
+
Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-28 15:14:37 -0300
|
7671
|
+
Processing by RailsSitemap::GeoController#index as XML
|
7672
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
|
7673
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.3ms)
|
7674
|
+
Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms)
|
7675
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7676
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7677
|
+
--------------------------------------------------------
|
7678
|
+
SitemapsControllerTest: test_should_return_the_right_xml
|
7679
|
+
--------------------------------------------------------
|
7680
|
+
Started GET "/sitemap.xml" for 127.0.0.1 at 2016-09-28 15:14:37 -0300
|
7681
|
+
Processing by RailsSitemap::SitemapsController#index as XML
|
7682
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
|
7683
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.7ms)
|
7684
|
+
Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.0ms)
|
7685
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
7686
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7687
|
+
---------------------------------------------------------
|
7688
|
+
SitemapsControllerTest: test_should_return_a_success_code
|
7689
|
+
---------------------------------------------------------
|
7690
|
+
Started GET "/sitemap.xml" for 127.0.0.1 at 2016-09-28 15:14:37 -0300
|
7691
|
+
Processing by RailsSitemap::SitemapsController#index as XML
|
7692
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
|
7693
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.7ms)
|
7694
|
+
Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms)
|
7695
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
7696
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7697
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7698
|
+
----------------------------------------------------------
|
7699
|
+
LocationsControllerTest: test_should_return_a_success_code
|
7700
|
+
----------------------------------------------------------
|
7701
|
+
Started GET "/locations.kml" for 127.0.0.1 at 2016-09-29 13:50:17 -0300
|
7702
|
+
Processing by RailsSitemap::LocationsController#index as KML
|
7703
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
|
7704
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (3.7ms)
|
7705
|
+
Completed 200 OK in 31ms (Views: 24.6ms | ActiveRecord: 0.0ms)
|
7706
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
7707
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7708
|
+
---------------------------------------------------------
|
7709
|
+
LocationsControllerTest: test_should_return_the_right_xml
|
7710
|
+
---------------------------------------------------------
|
7711
|
+
Started GET "/locations.kml" for 127.0.0.1 at 2016-09-29 13:50:17 -0300
|
7712
|
+
Processing by RailsSitemap::LocationsController#index as KML
|
7713
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
|
7714
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.4ms)
|
7715
|
+
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.0ms)
|
7716
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
7717
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7718
|
+
----------------------------
|
7719
|
+
RailsSitemapTest: test_truth
|
7720
|
+
----------------------------
|
7721
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7722
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7723
|
+
--------------------------------------------------------
|
7724
|
+
SitemapsControllerTest: test_should_return_the_right_xml
|
7725
|
+
--------------------------------------------------------
|
7726
|
+
Started GET "/sitemap_index.xml" for 127.0.0.1 at 2016-09-29 13:50:17 -0300
|
7727
|
+
Processing by RailsSitemap::SitemapsController#index as XML
|
7728
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
|
7729
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.4ms)
|
7730
|
+
Completed 200 OK in 13ms (Views: 7.2ms | ActiveRecord: 0.0ms)
|
7731
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
7732
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7733
|
+
---------------------------------------------------------
|
7734
|
+
SitemapsControllerTest: test_should_return_a_success_code
|
7735
|
+
---------------------------------------------------------
|
7736
|
+
Started GET "/sitemap_index.xml" for 127.0.0.1 at 2016-09-29 13:50:17 -0300
|
7737
|
+
Processing by RailsSitemap::SitemapsController#index as XML
|
7738
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
|
7739
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.4ms)
|
7740
|
+
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.0ms)
|
7741
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7742
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7743
|
+
----------------------------------------------------
|
7744
|
+
GeoControllerTest: test_should_return_a_success_code
|
7745
|
+
----------------------------------------------------
|
7746
|
+
Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-29 13:50:17 -0300
|
7747
|
+
Processing by RailsSitemap::GeoController#index as XML
|
7748
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
|
7749
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.4ms)
|
7750
|
+
Completed 200 OK in 9ms (Views: 5.3ms | ActiveRecord: 0.0ms)
|
7751
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
7752
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7753
|
+
---------------------------------------------------
|
7754
|
+
GeoControllerTest: test_should_return_the_right_xml
|
7755
|
+
---------------------------------------------------
|
7756
|
+
Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-29 13:50:17 -0300
|
7757
|
+
Processing by RailsSitemap::GeoController#index as XML
|
7758
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
|
7759
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.3ms)
|
7760
|
+
Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.0ms)
|
7761
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7762
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7763
|
+
-----------------------------------------------------------
|
7764
|
+
AttachmentControllerTest: test_should_return_a_success_code
|
7765
|
+
-----------------------------------------------------------
|
7766
|
+
Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-29 13:50:17 -0300
|
7767
|
+
Processing by RailsSitemap::AttachmentController#index as XML
|
7768
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
|
7769
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.4ms)
|
7770
|
+
Completed 200 OK in 313ms (Views: 7.1ms | ActiveRecord: 0.0ms)
|
7771
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
7772
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7773
|
+
----------------------------------------------------------
|
7774
|
+
AttachmentControllerTest: test_should_return_the_right_xml
|
7775
|
+
----------------------------------------------------------
|
7776
|
+
Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-29 13:50:17 -0300
|
7777
|
+
Processing by RailsSitemap::AttachmentController#index as XML
|
7778
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
|
7779
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.4ms)
|
7780
|
+
Completed 200 OK in 9ms (Views: 5.7ms | ActiveRecord: 0.0ms)
|
7781
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
7782
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7783
|
+
---------------------------------------------------------------
|
7784
|
+
PagesControllerTest: test_should_return_the_articles_on_sitemap
|
7785
|
+
---------------------------------------------------------------
|
7786
|
+
[1m[36mArticle Load (2.6ms)[0m [1m[34mSELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ?[0m [["name", "My first article"], ["LIMIT", 1]]
|
7787
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
7788
|
+
[1m[35mSQL (2.7ms)[0m [1m[32mINSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "My first article"], ["created_at", 2016-09-29 16:50:17 UTC], ["updated_at", 2016-09-29 16:50:17 UTC]]
|
7789
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
7790
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 13:50:17 -0300
|
7791
|
+
Processing by RailsSitemap::PagesController#index as XML
|
7792
|
+
[1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
7793
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
7794
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
|
7795
|
+
Completed 200 OK in 16ms (Views: 5.3ms | ActiveRecord: 0.2ms)
|
7796
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
7797
|
+
[1m[35m (2.1ms)[0m [1m[31mrollback transaction[0m
|
7798
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7799
|
+
-----------------------------------------------------
|
7800
|
+
PagesControllerTest: test_should_return_the_right_xml
|
7801
|
+
-----------------------------------------------------
|
7802
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 13:50:17 -0300
|
7803
|
+
Processing by RailsSitemap::PagesController#index as XML
|
7804
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
7805
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
7806
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
|
7807
|
+
Completed 200 OK in 9ms (Views: 5.3ms | ActiveRecord: 0.1ms)
|
7808
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
7809
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7810
|
+
------------------------------------------------------
|
7811
|
+
PagesControllerTest: test_should_return_a_success_code
|
7812
|
+
------------------------------------------------------
|
7813
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 13:50:17 -0300
|
7814
|
+
Processing by RailsSitemap::PagesController#index as XML
|
7815
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
7816
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
7817
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.4ms)
|
7818
|
+
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.1ms)
|
7819
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
7820
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7821
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7822
|
+
----------------------------
|
7823
|
+
RailsSitemapTest: test_truth
|
7824
|
+
----------------------------
|
7825
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7826
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7827
|
+
-----------------------------------------------------
|
7828
|
+
PagesControllerTest: test_should_return_the_right_xml
|
7829
|
+
-----------------------------------------------------
|
7830
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 13:55:04 -0300
|
7831
|
+
Processing by RailsSitemap::PagesController#index as XML
|
7832
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
7833
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
7834
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (1.1ms)
|
7835
|
+
Completed 200 OK in 12ms (Views: 7.2ms | ActiveRecord: 0.2ms)
|
7836
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
7837
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7838
|
+
------------------------------------------------------
|
7839
|
+
PagesControllerTest: test_should_return_a_success_code
|
7840
|
+
------------------------------------------------------
|
7841
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 13:55:04 -0300
|
7842
|
+
Processing by RailsSitemap::PagesController#index as XML
|
7843
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
7844
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
7845
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
|
7846
|
+
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.1ms)
|
7847
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7848
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7849
|
+
---------------------------------------------------------------
|
7850
|
+
PagesControllerTest: test_should_return_the_articles_on_sitemap
|
7851
|
+
---------------------------------------------------------------
|
7852
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ?[0m [["name", "My first article"], ["LIMIT", 1]]
|
7853
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
7854
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "My first article"], ["created_at", 2016-09-29 16:55:04 UTC], ["updated_at", 2016-09-29 16:55:04 UTC]]
|
7855
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
7856
|
+
Started GET "/pages-sitemap.xml" for 127.0.0.1 at 2016-09-29 13:55:04 -0300
|
7857
|
+
Processing by RailsSitemap::PagesController#index as XML
|
7858
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
7859
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb
|
7860
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/pages/index.xml.erb (0.5ms)
|
7861
|
+
Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.1ms)
|
7862
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
7863
|
+
[1m[35m (2.1ms)[0m [1m[31mrollback transaction[0m
|
7864
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7865
|
+
---------------------------------------------------------
|
7866
|
+
SitemapsControllerTest: test_should_return_a_success_code
|
7867
|
+
---------------------------------------------------------
|
7868
|
+
Started GET "/sitemap_index.xml" for 127.0.0.1 at 2016-09-29 13:55:04 -0300
|
7869
|
+
Processing by RailsSitemap::SitemapsController#index as XML
|
7870
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
|
7871
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.4ms)
|
7872
|
+
Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.0ms)
|
7873
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
7874
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7875
|
+
--------------------------------------------------------
|
7876
|
+
SitemapsControllerTest: test_should_return_the_right_xml
|
7877
|
+
--------------------------------------------------------
|
7878
|
+
Started GET "/sitemap_index.xml" for 127.0.0.1 at 2016-09-29 13:55:04 -0300
|
7879
|
+
Processing by RailsSitemap::SitemapsController#index as XML
|
7880
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb
|
7881
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemaps/index.xml.erb (0.4ms)
|
7882
|
+
Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.0ms)
|
7883
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
7884
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7885
|
+
-----------------------------------------------------------
|
7886
|
+
AttachmentControllerTest: test_should_return_a_success_code
|
7887
|
+
-----------------------------------------------------------
|
7888
|
+
Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-29 13:55:04 -0300
|
7889
|
+
Processing by RailsSitemap::AttachmentController#index as XML
|
7890
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
|
7891
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (1.3ms)
|
7892
|
+
Completed 200 OK in 241ms (Views: 6.3ms | ActiveRecord: 0.0ms)
|
7893
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
7894
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7895
|
+
----------------------------------------------------------
|
7896
|
+
AttachmentControllerTest: test_should_return_the_right_xml
|
7897
|
+
----------------------------------------------------------
|
7898
|
+
Started GET "/attachment-sitemap.xml" for 127.0.0.1 at 2016-09-29 13:55:05 -0300
|
7899
|
+
Processing by RailsSitemap::AttachmentController#index as XML
|
7900
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb
|
7901
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/attachment/index.xml.erb (0.4ms)
|
7902
|
+
Completed 200 OK in 8ms (Views: 4.3ms | ActiveRecord: 0.0ms)
|
7903
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
7904
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7905
|
+
---------------------------------------------------------
|
7906
|
+
LocationsControllerTest: test_should_return_the_right_xml
|
7907
|
+
---------------------------------------------------------
|
7908
|
+
Started GET "/locations.kml" for 127.0.0.1 at 2016-09-29 13:55:05 -0300
|
7909
|
+
Processing by RailsSitemap::LocationsController#index as KML
|
7910
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
|
7911
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.4ms)
|
7912
|
+
Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.0ms)
|
7913
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
7914
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7915
|
+
----------------------------------------------------------
|
7916
|
+
LocationsControllerTest: test_should_return_a_success_code
|
7917
|
+
----------------------------------------------------------
|
7918
|
+
Started GET "/locations.kml" for 127.0.0.1 at 2016-09-29 13:55:05 -0300
|
7919
|
+
Processing by RailsSitemap::LocationsController#index as KML
|
7920
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb
|
7921
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/locations/index.kml.erb (0.6ms)
|
7922
|
+
Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms)
|
7923
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7924
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7925
|
+
---------------------------------------------------
|
7926
|
+
GeoControllerTest: test_should_return_the_right_xml
|
7927
|
+
---------------------------------------------------
|
7928
|
+
Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-29 13:55:05 -0300
|
7929
|
+
Processing by RailsSitemap::GeoController#index as XML
|
7930
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
|
7931
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.3ms)
|
7932
|
+
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.0ms)
|
7933
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
7934
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7935
|
+
----------------------------------------------------
|
7936
|
+
GeoControllerTest: test_should_return_a_success_code
|
7937
|
+
----------------------------------------------------
|
7938
|
+
Started GET "/geo-sitemap.xml" for 127.0.0.1 at 2016-09-29 13:55:05 -0300
|
7939
|
+
Processing by RailsSitemap::GeoController#index as XML
|
7940
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb
|
7941
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/geo/index.xml.erb (0.3ms)
|
7942
|
+
Completed 200 OK in 7ms (Views: 4.0ms | ActiveRecord: 0.0ms)
|
7943
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
@@ -2,12 +2,12 @@ require 'test_helper'
|
|
2
2
|
|
3
3
|
class SitemapsControllerTest < ActionDispatch::IntegrationTest
|
4
4
|
test 'should return a success code' do
|
5
|
-
get '/
|
5
|
+
get '/sitemap_index.xml'
|
6
6
|
assert_equal 200, status
|
7
7
|
end
|
8
8
|
|
9
9
|
test 'should return the right xml' do
|
10
|
-
get '/
|
10
|
+
get '/sitemap_index.xml'
|
11
11
|
assert_equal response.body, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<sitemapindex xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n <sitemap>\n <loc>http://www.example.com/pages-sitemap.xml</loc>\n <lastmod>2016-09-22T18:11:05-03:00</lastmod>\n </sitemap>\n <sitemap>\n <loc>http://www.example.com/attachment-sitemap.xml</loc>\n <lastmod>2016-09-22T18:11:05-03:00</lastmod>\n </sitemap>\n <sitemap>\n <loc>http://www.example.com/geo-sitemap.xml</loc>\n <lastmod>2016-09-22T18:11:05-03:00</lastmod>\n </sitemap>\n</sitemapindex>\n"
|
12
12
|
end
|
13
13
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_sitemap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pablo Gonzaga
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|