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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ce924d7fa6e619f5570ed629e27e5d46ff1e5793
4
- data.tar.gz: 9909d3e927aa6478318e367e4eada3c2c2e00920
3
+ metadata.gz: f83616bc0baa96f5a7b4e6887d00cfb106c20b15
4
+ data.tar.gz: 1b19cd2aa27f169b5bb5099f984aa76f09e37271
5
5
  SHA512:
6
- metadata.gz: 405b06ecf03b291ff42941376ad53b770f8257ebc242ef5d282e7e759a91ffe87ed34f8d1e986addb8f08604723f48067543c1d07d4254e9f55deb2c2c8cfad8
7
- data.tar.gz: a50aa5c5e7baf91e2627c1bc84aad5dd5c28062fcf28014a1f861b654eb1568f8a03593bb4cd7ce19581f067b509b811baa20792e60463e81c81af3dc89d31c6
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.downcase}/#{id}"
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
 
@@ -1,3 +1,3 @@
1
1
  module RailsSitemap
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
@@ -2640,5 +2640,49 @@ Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.1ms)
2640
2640
   (0.0ms) begin transaction
2641
2641
  ----------------------------
2642
2642
  RailsSitemapTest: test_truth
2643
+ ----------------------------
2644
+  (0.0ms) rollback transaction
2645
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2646
+  (0.1ms) begin transaction
2647
+ -----------------------------------------------------------------
2648
+ SitemapControllerTest: test_should_return_the_articles_on_sitemap
2649
+ -----------------------------------------------------------------
2650
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."name" = ? LIMIT ? [["name", "My first article"], ["LIMIT", 1]]
2651
+  (0.0ms) SAVEPOINT active_record_1
2652
+ SQL (0.2ms) INSERT INTO "articles" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "My first article"], ["created_at", 2016-09-26 19:44:06 UTC], ["updated_at", 2016-09-26 19:44:06 UTC]]
2653
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" DESC LIMIT ? [["LIMIT", 1]]
2661
+  (2.0ms) rollback transaction
2662
+  (0.1ms) begin transaction
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
+ Article Load (0.2ms) SELECT "articles".* FROM "articles"
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
+  (0.1ms) rollback transaction
2673
+  (0.1ms) begin transaction
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
+ Article Load (0.1ms) SELECT "articles".* FROM "articles"
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
+  (0.0ms) rollback transaction
2684
+  (0.0ms) begin transaction
2685
+ ----------------------------
2686
+ RailsSitemapTest: test_truth
2643
2687
  ----------------------------
2644
2688
   (0.0ms) rollback transaction
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.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pablo Gonzaga