Skip to content

Commit

Permalink
FlashHash looking pretty good
Browse files Browse the repository at this point in the history
  • Loading branch information
SFEley committed Apr 23, 2010
1 parent 6a6d4f7 commit faf2844
Show file tree
Hide file tree
Showing 20 changed files with 1,889 additions and 11 deletions.
5 changes: 3 additions & 2 deletions Rakefile
Expand Up @@ -5,11 +5,12 @@ begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "sinatra-flash"
gem.summary = %Q{TODO: one-line summary of your gem}
gem.description = %Q{TODO: longer description of your gem}
gem.summary = %Q{Proper flash messages in Sinatra}
gem.description = %Q{A Sinatra extension for setting and showing Rails-like flash messages. This extension improves on the Rack::Flash gem by being simpler to use, providing a full range of hash operations (including iterating through various flash keys, testing the size of the hash, etc.), and offering a 'styled_flash' view helper to render the entire flash hash with sensible CSS classes. The downside is reduced flexibility -- these methods will *only* work in Sinatra.}
gem.email = "sfeley@gmail.com"
gem.homepage = "http://github.com/SFEley/sinatra-flash"
gem.authors = ["Stephen Eley"]
gem.add_dependency "sinatra", ">= 1.0.0"
gem.add_development_dependency "rspec", ">= 1.2.9"
gem.add_development_dependency "yard", ">= 0"
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
Expand Down
115 changes: 115 additions & 0 deletions doc/LICENSE.html
@@ -0,0 +1,115 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />

<title>File: LICENSE [RDoc Documentation]</title>

<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet" />

<script src="./js/jquery.js" type="text/javascript"
charset="utf-8"></script>
<script src="./js/thickbox-compressed.js" type="text/javascript"
charset="utf-8"></script>
<script src="./js/quicksearch.js" type="text/javascript"
charset="utf-8"></script>
<script src="./js/darkfish.js" type="text/javascript"
charset="utf-8"></script>
</head>

<body class="file">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="./index.html">Home</a>
<a href="./index.html#classes">Classes</a>
<a href="./index.html#methods">Methods</a>
</h3>
</div>
</div>

<div id="project-metadata">


<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>

<li class="file"><a href="./LICENSE.html">LICENSE</a></li>

<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>

</ul>
</div>


<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class Index
<span class="search-toggle"><img src="./images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>

<ul class="link-list">

<li><a href="./Sinatra.html">Sinatra</a></li>

<li><a href="./Sinatra/Flash.html">Sinatra::Flash</a></li>

<li><a href="./Sinatra/Flash/FlashHash.html">Sinatra::Flash::FlashHash</a></li>

</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>


</div>
</div>

<div id="documentation">
<p>
Copyright &#169; 2009 Stephen Eley
</p>
<p>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
&#8220;Software&#8221;), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to the
following conditions:
</p>
<p>
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
</p>
<p>
THE SOFTWARE IS PROVIDED &#8220;AS IS&#8221;, WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
USE OR OTHER DEALINGS IN THE SOFTWARE.
</p>

</div>

<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 1.1.6</small>.</p>
</div>
</body>
</html>

128 changes: 128 additions & 0 deletions doc/README_rdoc.html
@@ -0,0 +1,128 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />

<title>File: README.rdoc [RDoc Documentation]</title>

<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet" />

<script src="./js/jquery.js" type="text/javascript"
charset="utf-8"></script>
<script src="./js/thickbox-compressed.js" type="text/javascript"
charset="utf-8"></script>
<script src="./js/quicksearch.js" type="text/javascript"
charset="utf-8"></script>
<script src="./js/darkfish.js" type="text/javascript"
charset="utf-8"></script>
</head>

<body class="file">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="./index.html">Home</a>
<a href="./index.html#classes">Classes</a>
<a href="./index.html#methods">Methods</a>
</h3>
</div>
</div>

<div id="project-metadata">


<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>

<li class="file"><a href="./LICENSE.html">LICENSE</a></li>

<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>

</ul>
</div>


<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class Index
<span class="search-toggle"><img src="./images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>

<ul class="link-list">

<li><a href="./Sinatra.html">Sinatra</a></li>

<li><a href="./Sinatra/Flash.html">Sinatra::Flash</a></li>

<li><a href="./Sinatra/Flash/FlashHash.html">Sinatra::Flash::FlashHash</a></li>

</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>


</div>
</div>

<div id="documentation">
<h1>sinatra-flash</h1>
<p>
Description goes here.
</p>
<h2>Note on Patches/Pull Requests</h2>
<pre>

</pre>
<ul>
<li><p>
Fork the project.
</p>
</li>
<li><p>
Make your feature addition or bug fix.
</p>
</li>
<li><p>
Add tests for it. This is important so I don&#8217;t break it in a future
version unintentionally.
</p>
</li>
<li><p>
Commit, do not mess with rakefile, version, or history. (if you want to
have your own version, that is fine but bump version in a commit by itself
I can ignore when I pull)
</p>
</li>
<li><p>
Send me a pull request. Bonus points for topic branches.
</p>
</li>
</ul>
<h2>Copyright</h2>
<p>
Copyright &#169; 2010 Stephen Eley. See <a href="LICENSE.html">LICENSE</a>
for details.
</p>

</div>

<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 1.1.6</small>.</p>
</div>
</body>
</html>

0 comments on commit faf2844

Please sign in to comment.