rails_sitemap 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/rails_sitemap/sitemap_controller.rb +1 -1
- data/lib/rails_sitemap/version.rb +1 -1
- data/test/dummy/log/test.log +44 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f83616bc0baa96f5a7b4e6887d00cfb106c20b15
|
4
|
+
data.tar.gz: 1b19cd2aa27f169b5bb5099f984aa76f09e37271
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fc869ac09b908dec696f400f795cdb8e4be87e1c782b8f724a40fbc2c811425058b8737064e56b5877320e56e2b19ef8c9ac8fab530735ce47ca17e8a39def7
|
7
|
+
data.tar.gz: 721c025affcb5914e7b48b400eb991fe4c3649fc9e274d8d5fcbf5a760e238f95d3300156a3c2a68339287cd93653b3a9353e99838d79f933db36f4d7114770e
|
@@ -55,7 +55,7 @@ module RailsSitemap
|
|
55
55
|
model_class.all.each do |object|
|
56
56
|
id = object.try(:slug) || object.id
|
57
57
|
|
58
|
-
object_path = "/#{model_sitemap.pluralize
|
58
|
+
object_path = "/#{model_sitemap.underscore.pluralize}/#{id}"
|
59
59
|
last_modification = object.updated_at.to_datetime.to_s
|
60
60
|
object_priority = RailsSitemap.priority
|
61
61
|
|
data/test/dummy/log/test.log
CHANGED
@@ -2640,5 +2640,49 @@ Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.1ms)
|
|
2640
2640
|
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2641
2641
|
----------------------------
|
2642
2642
|
RailsSitemapTest: test_truth
|
2643
|
+
----------------------------
|
2644
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2645
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2646
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2647
|
+
-----------------------------------------------------------------
|
2648
|
+
SitemapControllerTest: test_should_return_the_articles_on_sitemap
|
2649
|
+
-----------------------------------------------------------------
|
2650
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ?[0m [["name", "My first article"], ["LIMIT", 1]]
|
2651
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2652
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "My first article"], ["created_at", 2016-09-26 19:44:06 UTC], ["updated_at", 2016-09-26 19:44:06 UTC]]
|
2653
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2654
|
+
Started GET "/sitemap.xml" for 127.0.0.1 at 2016-09-26 16:44:06 -0300
|
2655
|
+
Processing by RailsSitemap::SitemapController#index as XML
|
2656
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
2657
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemap/index.xml.erb
|
2658
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemap/index.xml.erb (1.1ms)
|
2659
|
+
Completed 200 OK in 11ms (Views: 7.1ms | ActiveRecord: 0.1ms)
|
2660
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
2661
|
+
[1m[35m (2.0ms)[0m [1m[31mrollback transaction[0m
|
2662
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2663
|
+
-------------------------------------------------------
|
2664
|
+
SitemapControllerTest: test_should_return_the_right_xml
|
2665
|
+
-------------------------------------------------------
|
2666
|
+
Started GET "/sitemap.xml" for 127.0.0.1 at 2016-09-26 16:44:06 -0300
|
2667
|
+
Processing by RailsSitemap::SitemapController#index as XML
|
2668
|
+
[1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
2669
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemap/index.xml.erb
|
2670
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemap/index.xml.erb (0.6ms)
|
2671
|
+
Completed 200 OK in 12ms (Views: 8.3ms | ActiveRecord: 0.2ms)
|
2672
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2673
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2674
|
+
--------------------------------------------------------
|
2675
|
+
SitemapControllerTest: test_should_return_a_success_code
|
2676
|
+
--------------------------------------------------------
|
2677
|
+
Started GET "/sitemap.xml" for 127.0.0.1 at 2016-09-26 16:44:06 -0300
|
2678
|
+
Processing by RailsSitemap::SitemapController#index as XML
|
2679
|
+
[1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "articles".* FROM "articles"[0m
|
2680
|
+
Rendering /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemap/index.xml.erb
|
2681
|
+
Rendered /Users/pgonzaga/repositories/rails_sitemap/app/views/rails_sitemap/sitemap/index.xml.erb (0.5ms)
|
2682
|
+
Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.1ms)
|
2683
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2684
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2685
|
+
----------------------------
|
2686
|
+
RailsSitemapTest: test_truth
|
2643
2687
|
----------------------------
|
2644
2688
|
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|