You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2015/11/17 21:47:12 UTC

wicket-site git commit: Fix deprecation warnings like

Repository: wicket-site
Updated Branches:
  refs/heads/asf-site bc443d32c -> 0d4cbb7c8


Fix deprecation warnings like

Deprecation: Collection#reverse should be called on the #docs array directly.
                    Called by /home/martin/git/apache/wicket-site/_plugins/tiered_archives_plugin.rb:25:in `site_payload'.


Project: http://git-wip-us.apache.org/repos/asf/wicket-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket-site/commit/0d4cbb7c
Tree: http://git-wip-us.apache.org/repos/asf/wicket-site/tree/0d4cbb7c
Diff: http://git-wip-us.apache.org/repos/asf/wicket-site/diff/0d4cbb7c

Branch: refs/heads/asf-site
Commit: 0d4cbb7c85cfea7a37eef6c332eb6e11a35fa089
Parents: bc443d3
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Tue Nov 17 21:45:21 2015 +0100
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Tue Nov 17 21:45:21 2015 +0100

----------------------------------------------------------------------
 _plugins/monthly_archive_plugin.rb | 2 +-
 _plugins/tiered_archives_plugin.rb | 2 +-
 _plugins/yearly_archive_plugin.rb  | 2 +-
 content/atom.xml                   | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket-site/blob/0d4cbb7c/_plugins/monthly_archive_plugin.rb
----------------------------------------------------------------------
diff --git a/_plugins/monthly_archive_plugin.rb b/_plugins/monthly_archive_plugin.rb
index b30b574..51f3b89 100644
--- a/_plugins/monthly_archive_plugin.rb
+++ b/_plugins/monthly_archive_plugin.rb
@@ -35,7 +35,7 @@ module Jekyll
     end
 
     def posts_group_by_year_and_month(site)
-      site.posts.each.group_by { |post| [post.date.year, post.date.month] }
+      site.posts.docs.each.group_by { |post| [post.date.year, post.date.month] }
     end
 
   end

http://git-wip-us.apache.org/repos/asf/wicket-site/blob/0d4cbb7c/_plugins/tiered_archives_plugin.rb
----------------------------------------------------------------------
diff --git a/_plugins/tiered_archives_plugin.rb b/_plugins/tiered_archives_plugin.rb
index 534385b..9245db9 100644
--- a/_plugins/tiered_archives_plugin.rb
+++ b/_plugins/tiered_archives_plugin.rb
@@ -22,7 +22,7 @@ class Jekyll::Site
 
   def site_payload
     data = site_payload_without_tiered_archives
-    data['site']['years'] = TieredArchives::find_years(self.posts.reverse)
+    data['site']['years'] = TieredArchives::find_years(self.posts.docs.reverse)
     data
   end
 end

http://git-wip-us.apache.org/repos/asf/wicket-site/blob/0d4cbb7c/_plugins/yearly_archive_plugin.rb
----------------------------------------------------------------------
diff --git a/_plugins/yearly_archive_plugin.rb b/_plugins/yearly_archive_plugin.rb
index 38bc216..a585522 100644
--- a/_plugins/yearly_archive_plugin.rb
+++ b/_plugins/yearly_archive_plugin.rb
@@ -35,7 +35,7 @@ module Jekyll
     end
 
     def posts_group_by_year(site)
-      site.posts.each.group_by { |post| [post.date.year] }
+      site.posts.docs.each.group_by { |post| [post.date.year] }
     end
 
   end

http://git-wip-us.apache.org/repos/asf/wicket-site/blob/0d4cbb7c/content/atom.xml
----------------------------------------------------------------------
diff --git a/content/atom.xml b/content/atom.xml
index 66368bf..cbbdb72 100644
--- a/content/atom.xml
+++ b/content/atom.xml
@@ -3,7 +3,7 @@
     <title>Apache Wicket</title>
     <link href="http://wicket.apache.org/atom.xml" rel="self"/>
     <link href="http://wicket.apache.org/"/>
-    <updated>2015-11-17T21:34:33+01:00</updated>
+    <updated>2015-11-17T21:45:12+01:00</updated>
     <id>http://wicket.apache.org/</id>
     <author>
         <name>Apache Wicket</name>