collectiveidea / awesomeness
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (1)
- Wiki (1)
- Graphs
-
Tree:
401e63e
commit 401e63e2d38fbfd590757363acda98dad667b56d
tree 8239d40b4467ea4c7933b92687bf22d1d1269cd2
parent a50495fef3b41c27d5880c9c3b1caecc181879f4
tree 8239d40b4467ea4c7933b92687bf22d1d1269cd2
parent a50495fef3b41c27d5880c9c3b1caecc181879f4
| name | age | message | |
|---|---|---|---|
| |
README | ||
| |
Rakefile | Tue Mar 27 20:26:19 -0700 2007 | |
| |
generators/ | Sun Jul 15 05:00:54 -0700 2007 | |
| |
init.rb | Fri Sep 14 14:20:29 -0700 2007 | |
| |
install.rb | ||
| |
lib/ | ||
| |
recipes/ | ||
| |
tasks/ | ||
| |
test/ | ||
| |
uninstall.rb |
README
Collective Idea's Awesomeness ============================= A collection of stuff that we use often, but not generic enough to go in another plugin. If you've stumbled across this and love/hate it, let us know! == Core Extensions * Object#tap (http://moonbase.rydia.net/mental/blog/programming/eavesdropping-on-expressions) * String#widont to make typography nicer (http://shauninman.com/archive/2006/08/22/widont_wordpress_plugin) * Array#uniq with a block >> %w(the cow jumped over the moon).uniq {|s| s.length } => ["the", "jumped", "over"] * Round floats to the nearest x >> 5.38475.round(0.5) => 5.5 * Hash goodies >> {:a => [1,3,4], :b => [2,5]}.without(:a => 1) => {:a => [3,4], :b => [2,5]} >> {:a => "", :b => nil, :c => 1}.compact => {:c => 1} * And more… == Rails Helpers * Unicode TextHelper additions that change the default truncate & excerpt string to an elipsis (…) instead of just thr ee periods (...) * Add widont to textilize methods * Transparent removal of trailing slashes in URLs == Rake Tasks == Capistrano Recipes * Use :remote_cache by default * Disable and enable web during restarts * Run deploy:cleanup after deploys * Backups


