Skip to content

Commit

Permalink
Deprecated rss_feed_language in config
Browse files Browse the repository at this point in the history
Now uses Rails app locale instead (I18n.locale)

Added a deprecation message for those who still have this config in place.
Rebuilt YARD docs
  • Loading branch information
Bodacious committed Feb 11, 2013
1 parent dbf3c81 commit 68c13f9
Show file tree
Hide file tree
Showing 37 changed files with 85 additions and 173 deletions.
8 changes: 4 additions & 4 deletions .yardoc/checksums
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ lib/validators.rb 6aadd83d9ca5e938ed70a3197e65895df1a09385
lib/blogit/blogs.rb 3a680df1b9af236ed8ec0d1b27d603e2e4eed04f
lib/blogit/engine.rb f84724f25c7a0585e64c6acd94c5fade6d0ac8c0
lib/blogit/parsers.rb f278923598a6405003550b89b6969f9920d54234
lib/blogit/version.rb 91d5fbdf9f9576845cdde2c3150c14919edf4cff
lib/blogit/version.rb f8fd832316371c8f386d1b75d4fd397c9090d11f
lib/blogit/renderers.rb b1b967649726c1664e330ff7ed94dcdd87fd2620
app/models/blogit/post.rb 80a2654ad91819a829bfbfaacbc7065dc2b6a4a1
lib/blogit/configuration.rb ac2215a3525337b1dc86b6c2efe5680219b517ab
lib/blogit/configuration.rb 36eecdd7c224d91d7aba29343ffee44339d03230
app/models/blogit/comment.rb b263d1ebebd612500e58981091559232f9c1aff7
lib/blogit/parsers/html_parser.rb b84d2711acea18771caab5928d331ecfd058be89
app/helpers/blogit/posts_helper.rb e8a7cf7c672de5e9e091932b0ca7c2d0de87c6e5
lib/generators/templates/blogit.rb 39a8e882160170f829cbd49d1dda0a669ad84f65
lib/generators/templates/blogit.rb 52a2dc882e287378c3e0b3711cad88d0497c3b99
lib/validators/absence_validator.rb 40e6f082d3987218954eff560a29320432ea22c9
lib/blogit/parsers/textile_parser.rb 27d5cc27e9af81af11390b57c186ea59dc2ed486
lib/blogit/parsers/markdown_parser.rb 6f79e703b5b2b69ae6abf6f5422c53442b5dc3a3
app/helpers/blogit/comments_helper.rb 2b5c52b02abdbebb0f4051b8b3e5fba4ee767d09
app/sweepers/blogit/blogit_sweeper.rb 48ec560fb55aa93c2bd922bafe3e173c0aea1882
app/helpers/blogit/application_helper.rb 0c69daf1403214a732e291a360b288d19fb3a5c6
app/helpers/blogit/application_helper.rb a2089f9af55ec10600bdd94a58ad4824f3c3b2d7
lib/blogit/renderers/html_with_albino.rb cd1569d6d1d661921e9cea7880fc7132dbf9a355
lib/generators/blogit/install_generator.rb 1938dcb8e9ce28837f728c661f5f83c091bc41d5
app/controllers/blogit/posts_controller.rb fc660da65397e488ae715a722cf50c02b8ad1da7
Expand Down
Binary file modified .yardoc/object_types
Binary file not shown.
Binary file modified .yardoc/objects/root.dat
Binary file not shown.
4 changes: 2 additions & 2 deletions app/views/blogit/posts/index.rss.builder
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ xml.rss "version" => "2.0", "xmlns:dc" => "htt://purl.org/dc/elements/1.1/" do

xml.lastBuildDate CGI.rfc1123_date @posts.first.try(:updated_at)

xml.language blogit_conf.rss_feed_language

xml.language I18n.locale
@posts.each do |post|

xml.item do
Expand Down
4 changes: 2 additions & 2 deletions doc/Blogit.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ <h2>Constant Summary</h2>
<dt id="VERSION-constant" class="">VERSION =

</dt>
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0.5.0</span><span class='tstring_end'>&quot;</span></span></pre></dd>
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0.5.1</span><span class='tstring_end'>&quot;</span></span></pre></dd>

</dl>

Expand Down Expand Up @@ -277,7 +277,7 @@ <h3 class="signature " id="configure-class_method">
</div>

<div id="footer">
Generated on Sun Nov 4 12:13:31 2012 by
Generated on Mon Feb 11 09:00:36 2013 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.3 (ruby-1.9.3).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/Blogit/ApplicationController.html
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ <h3 class="signature " id="this_blogger?-instance_method">
</div>

<div id="footer">
Generated on Sun Nov 4 12:13:34 2012 by
Generated on Mon Feb 11 09:00:37 2013 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.3 (ruby-1.9.3).
</div>
Expand Down
4 changes: 2 additions & 2 deletions doc/Blogit/ApplicationHelper.html
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ <h3 class="signature " id="time_tag-instance_method">
<span class='id identifier rubyid_time_string'>time_string</span> <span class='op'>=</span> <span class='id identifier rubyid_time_object'>time_object</span><span class='period'>.</span><span class='id identifier rubyid_strftime'>strftime</span><span class='lparen'>(</span><span class='id identifier rubyid_format'>format</span><span class='rparen'>)</span>
<span class='comment'># if there's a specified format and it's a symbol, assume it's a predefined format
</span> <span class='kw'>elsif</span> <span class='id identifier rubyid_format'>format</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_format'>format</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Symbol</span><span class='rparen'>)</span>
<span class='id identifier rubyid_time_string'>time_string</span> <span class='op'>=</span> <span class='id identifier rubyid_time_object'>time_object</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='lparen'>(</span><span class='id identifier rubyid_format'>format</span><span class='rparen'>)</span>
<span class='id identifier rubyid_time_string'>time_string</span> <span class='op'>=</span> <span class='const'>I18n</span><span class='period'>.</span><span class='id identifier rubyid_localize'>localize</span><span class='lparen'>(</span><span class='id identifier rubyid_time_object'>time_object</span><span class='comma'>,</span> <span class='label'>format:</span> <span class='id identifier rubyid_format'>format</span><span class='rparen'>)</span>
<span class='kw'>else</span>
<span class='id identifier rubyid_time_string'>time_string</span> <span class='op'>=</span> <span class='id identifier rubyid_time_object'>time_object</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
<span class='kw'>end</span>
Expand All @@ -783,7 +783,7 @@ <h3 class="signature " id="time_tag-instance_method">
</div>

<div id="footer">
Generated on Sun Nov 4 12:13:31 2012 by
Generated on Mon Feb 11 09:00:36 2013 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.3 (ruby-1.9.3).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/Blogit/BlogitSweeper.html
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ <h3 class="signature first" id="after_save-instance_method">
</div>

<div id="footer">
Generated on Sun Nov 4 12:13:33 2012 by
Generated on Mon Feb 11 09:00:37 2013 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.3 (ruby-1.9.3).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/Blogit/Blogs.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ <h3 class="signature first" id="included-class_method">
</div>

<div id="footer">
Generated on Sun Nov 4 12:13:31 2012 by
Generated on Mon Feb 11 09:00:36 2013 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.3 (ruby-1.9.3).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/Blogit/Blogs/ClassMethods.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ <h3 class="signature first" id="blogs-instance_method">
</div>

<div id="footer">
Generated on Sun Nov 4 12:13:31 2012 by
Generated on Mon Feb 11 09:00:36 2013 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.3 (ruby-1.9.3).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/Blogit/Comment.html
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ <h3 class="signature first" id="nickname-instance_method">
</div>

<div id="footer">
Generated on Sun Nov 4 12:13:33 2012 by
Generated on Mon Feb 11 09:00:36 2013 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.3 (ruby-1.9.3).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/Blogit/CommentsController.html
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ <h3 class="signature " id="destroy-instance_method">
</div>

<div id="footer">
Generated on Sun Nov 4 12:13:34 2012 by
Generated on Mon Feb 11 09:00:37 2013 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.3 (ruby-1.9.3).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/Blogit/CommentsHelper.html
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ <h3 class="signature first" id="blog_comment_tag-instance_method">
</div>

<div id="footer">
Generated on Sun Nov 4 12:13:31 2012 by
Generated on Mon Feb 11 09:00:36 2013 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.3 (ruby-1.9.3).
</div>
Expand Down
102 changes: 15 additions & 87 deletions doc/Blogit/Configuration.html
Original file line number Diff line number Diff line change
Expand Up @@ -628,33 +628,6 @@ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collap
"[Application Name] Blog Posts".</p>
</div></span>

</li>


<li class="public ">
<span class="summary_signature">

<a href="#rss_feed_language-instance_method" title="#rss_feed_language (instance method)">- (Object) <strong>rss_feed_language</strong> </a>



</span>












<span class="summary_desc"><div class='inline'>
<p>The default language of the RSS feed Defaults to 'en'.</p>
</div></span>

</li>


Expand Down Expand Up @@ -806,6 +779,10 @@ <h3 class="signature first" id="initialize-instance_method">
<pre class="lines">


96
97
98
99
100
101
102
Expand All @@ -822,15 +799,10 @@ <h3 class="signature first" id="initialize-instance_method">
113
114
115
116
117
118
119
120
121</pre>
116</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/blogit/configuration.rb', line 100</span>
<pre class="code"><span class="info file"># File 'lib/blogit/configuration.rb', line 96</span>

<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
<span class='ivar'>@include_comments</span> <span class='op'>=</span> <span class='symbol'>:active_record</span>
Expand All @@ -851,7 +823,6 @@ <h3 class="signature first" id="initialize-instance_method">
<span class='ivar'>@highlight_code_syntax</span> <span class='op'>=</span> <span class='kw'>true</span>
<span class='ivar'>@rss_feed_title</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='const'>Rails</span><span class='period'>.</span><span class='id identifier rubyid_application'>application</span><span class='period'>.</span><span class='id identifier rubyid_engine_name'>engine_name</span><span class='period'>.</span><span class='id identifier rubyid_titleize'>titleize</span><span class='rbrace'>}</span><span class='tstring_content'> Blog Posts</span><span class='tstring_end'>&quot;</span></span>
<span class='ivar'>@rss_feed_description</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='const'>Rails</span><span class='period'>.</span><span class='id identifier rubyid_application'>application</span><span class='period'>.</span><span class='id identifier rubyid_engine_name'>engine_name</span><span class='period'>.</span><span class='id identifier rubyid_titleize'>titleize</span><span class='rbrace'>}</span><span class='tstring_content'> Blog Posts</span><span class='tstring_end'>&quot;</span></span>
<span class='ivar'>@rss_feed_language</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>en</span><span class='tstring_end'>&quot;</span></span>
<span class='ivar'>@redcarpet_options</span> <span class='op'>=</span> <span class='const'>REDCARPET_OPTIONS</span>
<span class='kw'>end</span></pre>
</td>
Expand Down Expand Up @@ -1516,12 +1487,12 @@ <h3 class="signature " id="inline_main_app_named_routes-instance_method">
<pre class="lines">


88
89
90</pre>
84
85
86</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/blogit/configuration.rb', line 88</span>
<pre class="code"><span class="info file"># File 'lib/blogit/configuration.rb', line 84</span>

<span class='kw'>def</span> <span class='id identifier rubyid_inline_main_app_named_routes'>inline_main_app_named_routes</span>
<span class='ivar'>@inline_main_app_named_routes</span>
Expand Down Expand Up @@ -1672,49 +1643,6 @@ <h3 class="signature " id="rss_feed_description-instance_method">
</div>


<span id="rss_feed_language=-instance_method"></span>
<div class="method_details ">
<h3 class="signature " id="rss_feed_language-instance_method">

- (<tt>Object</tt>) <strong>rss_feed_language</strong>





</h3><div class="docstring">
<div class="discussion">

<p>The default language of the RSS feed Defaults to 'en'</p>


</div>
</div>
<div class="tags">


</div><table class="source_code">
<tr>
<td>
<pre class="lines">


84
85
86</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/blogit/configuration.rb', line 84</span>

<span class='kw'>def</span> <span class='id identifier rubyid_rss_feed_language'>rss_feed_language</span>
<span class='ivar'>@rss_feed_language</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>


<span id="rss_feed_title=-instance_method"></span>
<div class="method_details ">
<h3 class="signature " id="rss_feed_title-instance_method">
Expand Down Expand Up @@ -1823,12 +1751,12 @@ <h3 class="signature first" id="default_parser_class-instance_method">
<pre class="lines">


123
124
125</pre>
118
119
120</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/blogit/configuration.rb', line 123</span>
<pre class="code"><span class="info file"># File 'lib/blogit/configuration.rb', line 118</span>

<span class='kw'>def</span> <span class='id identifier rubyid_default_parser_class'>default_parser_class</span>
<span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Blogit::Parsers::</span><span class='embexpr_beg'>#{</span><span class='ivar'>@default_parser</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_classify'>classify</span><span class='rbrace'>}</span><span class='tstring_content'>Parser</span><span class='tstring_end'>&quot;</span></span><span class='period'>.</span><span class='id identifier rubyid_constantize'>constantize</span>
Expand All @@ -1843,7 +1771,7 @@ <h3 class="signature first" id="default_parser_class-instance_method">
</div>

<div id="footer">
Generated on Sun Nov 4 12:13:33 2012 by
Generated on Mon Feb 11 09:00:36 2013 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.3 (ruby-1.9.3).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/Blogit/ConfigurationError.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ <h2>Overview</h2><div class="docstring">
</div>

<div id="footer">
Generated on Sun Nov 4 12:13:32 2012 by
Generated on Mon Feb 11 09:00:36 2013 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.3 (ruby-1.9.3).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/Blogit/Engine.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
</div>

<div id="footer">
Generated on Sun Nov 4 12:13:32 2012 by
Generated on Mon Feb 11 09:00:36 2013 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.3 (ruby-1.9.3).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/Blogit/Generators.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ <h2>Defined Under Namespace</h2>
</div>

<div id="footer">
Generated on Sun Nov 4 12:13:31 2012 by
Generated on Mon Feb 11 09:00:36 2013 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.3 (ruby-1.9.3).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/Blogit/Generators/InstallGenerator.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ <h3 class="signature first" id="copy_initializer-instance_method">
</div>

<div id="footer">
Generated on Sun Nov 4 12:13:33 2012 by
Generated on Mon Feb 11 09:00:37 2013 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.3 (ruby-1.9.3).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/Blogit/Parsers.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ <h2>Defined Under Namespace</h2>
</div>

<div id="footer">
Generated on Sun Nov 4 12:13:31 2012 by
Generated on Mon Feb 11 09:00:36 2013 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.3 (ruby-1.9.3).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/Blogit/Parsers/HtmlParser.html
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ <h3 class="signature first" id="parsed-instance_method">
</div>

<div id="footer">
Generated on Sun Nov 4 12:13:33 2012 by
Generated on Mon Feb 11 09:00:36 2013 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.3 (ruby-1.9.3).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/Blogit/Parsers/MarkdownParser.html
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ <h3 class="signature first" id="parsed-instance_method">
</div>

<div id="footer">
Generated on Sun Nov 4 12:13:33 2012 by
Generated on Mon Feb 11 09:00:36 2013 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.3 (ruby-1.9.3).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/Blogit/Parsers/TextileParser.html
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ <h3 class="signature first" id="parsed-instance_method">
</div>

<div id="footer">
Generated on Sun Nov 4 12:13:33 2012 by
Generated on Mon Feb 11 09:00:36 2013 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.3 (ruby-1.9.3).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/Blogit/Post.html
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ <h1>Instance Methods =</h1>
</div>

<div id="footer">
Generated on Sun Nov 4 12:13:32 2012 by
Generated on Mon Feb 11 09:00:36 2013 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.3 (ruby-1.9.3).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/Blogit/PostsController.html
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ <h3 class="signature " id="update-instance_method">
</div>

<div id="footer">
Generated on Sun Nov 4 12:13:33 2012 by
Generated on Mon Feb 11 09:00:37 2013 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.3 (ruby-1.9.3).
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/Blogit/PostsHelper.html
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ <h3 class="signature " id="share_bar_for-instance_method">
</div>

<div id="footer">
Generated on Sun Nov 4 12:13:31 2012 by
Generated on Mon Feb 11 09:00:36 2013 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.3 (ruby-1.9.3).
</div>
Expand Down
Loading

0 comments on commit 68c13f9

Please sign in to comment.