Skip to content

Commit

Permalink
Div change, version increase, pre-formatting, NPM v0.0.8 bump
Browse files Browse the repository at this point in the history
- Change div class names, props @jared
- Increase versions for all dependencies
- Remove pre-formatted messages
- NPM v0.0.8 bump
  • Loading branch information
JasonGiedymin committed Mar 15, 2012
1 parent 9cbf1ab commit 93405d3
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
6 changes: 6 additions & 0 deletions History.md
@@ -1,3 +1,9 @@
0.0.8 / 2012-03-14
==================
* Change div class names, props @Jared
* Increased versions for all dependencies
* Removed pre-formatted messages

0.0.7 / 2012-02-29
==================
* Support for Bootstrap v2.0+ alerts
Expand Down
2 changes: 1 addition & 1 deletion index.coffee
Expand Up @@ -20,7 +20,7 @@ module.exports = (req, res) ->
buf.push("<a class=\"close\" href=\"#\" data-dismiss=\"alert\">×</a>")
for j in [0...msgs.length]
msg = msgs[j]
buf.push("<p>#{msg}</p>")
buf.push("#{msg}")
buf.push("</div>")
buf.push("</div>")

Expand Down
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -16,7 +16,7 @@ module.exports = function(req, res) {
buf.push("<a class=\"close\" href=\"#\" data-dismiss=\"alert\">×</a>");
for (j = 0, _ref = msgs.length; 0 <= _ref ? j < _ref : j > _ref; 0 <= _ref ? j++ : j--) {
msg = msgs[j];
buf.push("<p>" + msg + "</p>");
buf.push("" + msg);
}
buf.push("</div>");
}
Expand Down
8 changes: 4 additions & 4 deletions package.json
@@ -1,14 +1,14 @@
{ "name": "express-messages-bootstrap"
, "description": "Express flash notification message rendering compatible with Twitter's Bootstrap v2.0+. Based on TJ Holowaychuk's express-messages."
, "version": "0.0.7"
, "version": "0.0.8"
, "author": "Jason Giedymin <jasong@apache.org>"
, "keywords": ["express", "bootstrap", "flash"]
, "repository": "git://github.com/JasonGiedymin/express-messages-bootstrap"
, "main": "index"
, "devDependencies": {
"express": "2.4.4"
, "expresso": "0.8.1"
, "ejs": "0.4.3"
"express": ">= 2.4.4"
, "expresso": ">= 0.8.1"
, "ejs": ">= 0.4.3"
}
, "engines": { "node": ">= 0.2.0" }
}
8 changes: 4 additions & 4 deletions test/messages.test.js
Expand Up @@ -17,10 +17,10 @@ module.exports = {
app.dynamicHelpers({ messages: messages });

app.get('/', function(req, res, next){
req.flash('error', 'This is an error.');
req.flash('info', 'This is an info.');
req.flash('warning', 'This is a warning.');
req.flash('success', 'This is success.');
req.flash('error', '<p>This is an error.</p>');
req.flash('info', '<p>This is an info.</p>');
req.flash('warning', '<p>This is a warning.</p>');
req.flash('success', '<p>This is success.</p>');

res.render('messages.ejs', {
layout: false
Expand Down

0 comments on commit 93405d3

Please sign in to comment.