rails_sitemap 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07f8c0a084d92d4b3f7d88181e229a196ee40fae
4
- data.tar.gz: e4b3b6809ddfe4b0c8f79d17bee59e0bda059b48
3
+ metadata.gz: d025c334647e66aa56b06e7b173aad01f7502055
4
+ data.tar.gz: 12726a38e1ae9d1362e1f39536b4df3d6a5e3e01
5
5
  SHA512:
6
- metadata.gz: d16ac57e2598507ce0c406c3492a44eab9d8eee80bc6bb1f2f5ee54addad99cb5e40d70b73cbd1643196e37387f47e6d391424ecb45a2a1b2a68a2941a52df0e
7
- data.tar.gz: c4501c1121ba0a27e08bc0b5c56dc6beaded9072147e04ee816bcddf8ba22ef13f2fa9f3863273d8c4e758920b9e914c6467071dab73d18fdb297bb6d0651409
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 'sitemap' => 'sitemaps#index'
5
+ get 'sitemap_index' => 'sitemaps#index'
6
6
 
7
7
  resources :locations, only: :index
8
8
  end
@@ -1,3 +1,3 @@
1
1
  module RailsSitemap
2
- VERSION = '0.2.4'
2
+ VERSION = '0.2.5'
3
3
  end
@@ -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
   (0.1ms) rollback transaction
7572
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
7573
+  (0.1ms) begin transaction
7574
+ ---------------------------------------------------------------
7575
+ PagesControllerTest: test_should_return_the_articles_on_sitemap
7576
+ ---------------------------------------------------------------
7577
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ? [["name", "My first article"], ["LIMIT", 1]]
7578
+  (0.1ms) SAVEPOINT active_record_1
7579
+ SQL (0.4ms) INSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "My first article"], ["created_at", 2016-09-28 18:14:37 UTC], ["updated_at", 2016-09-28 18:14:37 UTC]]
7580
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ Article Load (0.2ms) SELECT "articles".* FROM "articles"
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ? [["LIMIT", 1]]
7588
+  (2.1ms) rollback transaction
7589
+  (0.1ms) begin transaction
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
+ Article Load (0.2ms) SELECT "articles".* FROM "articles"
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
+  (0.1ms) rollback transaction
7600
+  (0.1ms) begin transaction
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
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
+  (0.0ms) rollback transaction
7611
+  (0.0ms) begin transaction
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
+  (0.0ms) rollback transaction
7621
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
7631
+  (0.0ms) begin transaction
7632
+ ----------------------------
7633
+ RailsSitemapTest: test_truth
7634
+ ----------------------------
7635
+  (0.0ms) rollback transaction
7636
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
7646
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
7656
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
7666
+  (0.1ms) begin transaction
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
+  (0.0ms) rollback transaction
7676
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
7686
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
7696
+ ActiveRecord::SchemaMigration Load (2.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
7697
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
7707
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
7717
+  (0.1ms) begin transaction
7718
+ ----------------------------
7719
+ RailsSitemapTest: test_truth
7720
+ ----------------------------
7721
+  (0.0ms) rollback transaction
7722
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
7732
+  (0.0ms) begin transaction
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
+  (0.0ms) rollback transaction
7742
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
7752
+  (0.0ms) begin transaction
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
+  (0.0ms) rollback transaction
7762
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
7772
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
7782
+  (0.0ms) begin transaction
7783
+ ---------------------------------------------------------------
7784
+ PagesControllerTest: test_should_return_the_articles_on_sitemap
7785
+ ---------------------------------------------------------------
7786
+ Article Load (2.6ms) SELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ? [["name", "My first article"], ["LIMIT", 1]]
7787
+  (0.1ms) SAVEPOINT active_record_1
7788
+ SQL (2.7ms) INSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "My first article"], ["created_at", 2016-09-29 16:50:17 UTC], ["updated_at", 2016-09-29 16:50:17 UTC]]
7789
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+ Article Load (0.2ms) SELECT "articles".* FROM "articles"
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ? [["LIMIT", 1]]
7797
+  (2.1ms) rollback transaction
7798
+  (0.1ms) begin transaction
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
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
+  (0.1ms) rollback transaction
7809
+  (0.1ms) begin transaction
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
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
+  (0.1ms) rollback transaction
7820
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7821
+  (0.1ms) begin transaction
7822
+ ----------------------------
7823
+ RailsSitemapTest: test_truth
7824
+ ----------------------------
7825
+  (0.0ms) rollback transaction
7826
+  (0.0ms) begin transaction
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
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
+  (0.1ms) rollback transaction
7837
+  (0.1ms) begin transaction
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
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
+  (0.0ms) rollback transaction
7848
+  (0.1ms) begin transaction
7849
+ ---------------------------------------------------------------
7850
+ PagesControllerTest: test_should_return_the_articles_on_sitemap
7851
+ ---------------------------------------------------------------
7852
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ? [["name", "My first article"], ["LIMIT", 1]]
7853
+  (0.1ms) SAVEPOINT active_record_1
7854
+ SQL (0.3ms) INSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "My first article"], ["created_at", 2016-09-29 16:55:04 UTC], ["updated_at", 2016-09-29 16:55:04 UTC]]
7855
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ? [["LIMIT", 1]]
7863
+  (2.1ms) rollback transaction
7864
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
7874
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
7884
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
7894
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
7904
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
7914
+  (0.1ms) begin transaction
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
+  (0.0ms) rollback transaction
7924
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
7934
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
@@ -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 '/sitemap.xml'
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 '/sitemap.xml'
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
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-28 00:00:00.000000000 Z
11
+ date: 2016-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails