Skip to content

Commit

Permalink
Merged syncPEOPLE on Rails bundle in to built-in Rails bundle. Releas…
Browse files Browse the repository at this point in the history
…ed as MIT licensed.

git-svn-id: http://svn.textmate.org/trunk/Bundles/Rails.tmbundle@2749 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information
canadaduane committed Feb 22, 2006
1 parent 82bfe01 commit 742e6be
Show file tree
Hide file tree
Showing 26 changed files with 1,218 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ABOUT
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
== Rails Bundle 1.0
This bundle is (c) 2006 syncPEOPLE, LLC.
As of version 1.0, it is distributed under the terms of the MIT License.

http://syncpeople.com/ - We develop social interaction tools for online and real-world conferences and events.

== Author(s) ==
Duane Johnson
duane.johnson@gmail.com
http://blog.inquirylabs.com/
26 changes: 26 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
2006-02-22 Changed key bindings to TextMate conventions (http://macromates.com/textmate/manual/key_bindings#conventions)
2006-02-22 Footnotes can be turned off for specific pages:
e.g. render :action => 'whatever', :footnotes => false [Duane]
2006-02-22 intelligent go to file now asks for a view file name if it doesn't exist before going there [Duane]
2006-02-22 Fixed that intelligent go to file was not recognizing view files other than rhtml [Duane]
2006-02-21 Generated files open automatically [Duane, Sami Samhuri]
2006-02-21 Generate migrations works (has to be chdir to rails_root to work) [Duane]
2006-02-21 Fixed that the footnotes plugin was doubling the /controllers/ segment [Duane, Cliff Matthews]
2006-02-21 Fixed that the footnotes plugin was rendering for rxml and rjs pages [Duane]

0.9.1 Released

2006-02-21 Fixed that the footnotes plugin was breaking on redirects [Duane]

0.9 Released

2006-02-20 Added Migration Snippets [Sami Samhuri]
2006-02-20 Added Rails Engines plugin [Duane]
2006-02-20 Added double quotes around call to CocoaDialog [Kent Siblev]
2006-02-20 Intelligent Go To File will now go to the file nearest the caret for stylesheet and javascript tags with multiple files [Cliff Matthews]
2006-02-20 Added plugin install script bound to ctrl-option-command-\ [Duane]
2006-02-20 Added 'plugins' directory to Support, and included textmate_footnotes plugin. [Duane]
2006-02-20 More intelligent argument regexps for javascripts and stylesheets [Cliff Matthews]
2006-02-20 Generate command is now a background process [Duane]

0.8 Released
22 changes: 22 additions & 0 deletions Commands/Generate.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>RUBYLIB="$TM_BUNDLE_PATH/Support/lib:$RUBYLIB"
generate.rb &amp;&gt;/dev/null &amp;
</string>
<key>input</key>
<string>none</string>
<key>keyEquivalent</key>
<string>^G</string>
<key>name</key>
<string>Generate</string>
<key>output</key>
<string>afterSelectedText</string>
<key>uuid</key>
<string>4904EDC7-5ED3-4132-AAB2-C2AD87C97EFE</string>
</dict>
</plist>
21 changes: 21 additions & 0 deletions Commands/Install Bundled Plugin.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>RUBYLIB="$TM_BUNDLE_PATH/Support/lib:$RUBYLIB"
install_plugin.rb</string>
<key>input</key>
<string>none</string>
<key>keyEquivalent</key>
<string>^|</string>
<key>name</key>
<string>Install Bundled Plugin</string>
<key>output</key>
<string>discard</string>
<key>uuid</key>
<string>46ECE243-0448-4A64-A223-27CC21E7704D</string>
</dict>
</plist>
23 changes: 23 additions & 0 deletions Commands/Intelligent Go To File.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>RUBYLIB="$TM_BUNDLE_PATH/Support/lib:$RUBYLIB"
intelligent_go_to_file.rb</string>
<key>input</key>
<string>none</string>
<key>keyEquivalent</key>
<string>#</string>
<key>name</key>
<string>Intelligent Go To File</string>
<key>output</key>
<string>afterSelectedText</string>
<key>scope</key>
<string>source.ruby.rails, text.html.ruby, comment.line.number-sign.ruby</string>
<key>uuid</key>
<string>43304E62-66F7-424D-8AF6-33E0237BF349</string>
</dict>
</plist>
26 changes: 26 additions & 0 deletions Commands/Make Selection in to Partial.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
<string>saveModifiedFiles</string>
<key>command</key>
<string>RUBYLIB="$TM_BUNDLE_PATH/Support/lib:$RUBYLIB"
create_partial_from_selection.rb
</string>
<key>fallbackInput</key>
<string>line</string>
<key>input</key>
<string>selection</string>
<key>keyEquivalent</key>
<string>^P</string>
<key>name</key>
<string>Create Partial from Selection</string>
<key>output</key>
<string>replaceSelectedText</string>
<key>scope</key>
<string>source.ruby.rails, text.html.ruby, , comment.line.number-sign.ruby</string>
<key>uuid</key>
<string>1DD8A214-1C97-45BA-ADEE-8F888DDE8570</string>
</dict>
</plist>
81 changes: 81 additions & 0 deletions Commands/Show Enhanced TODO List.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string># Credit goes to Brad Miller, the original author of the TODO bundle, as well
# as Niko for the colors, and Soryu and Allan Odgard for some fixes.
WorkPath="${TM_PROJECT_DIRECTORY:-`dirname "$TM_FILEPATH"`}"
WorkPath=${WorkPath// /%20} # turn spaces into %20
export WorkPath
cat &lt;&lt;EOF
&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd"&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"&gt;
&lt;style type="text/css"&gt;
body { font: 12px 'Lucida Grande'; }
.FIXME { color:red; }
.TODO { color:orange; }
.CHANGED { color:green; }
&lt;/style&gt;
&lt;script language="JavaScript" type="text/javascript"&gt;
&lt;!--
function toggleDisplayByClass(t,c,v1,v2) {
var elements = document.getElementsByTagName(t);
for(var i = 0; i &lt; elements.length; i++){
var node = elements.item(i);
if(node.className != c)
continue;
if(node.style.display == v1)
node.style.display = v2;
else
node.style.display = v1;
}
}
--&gt;
&lt;/script&gt;
&lt;title&gt;Todo List&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h1&gt;TODO LIST&lt;/h1&gt;
&lt;button type="button" style="background-color:#af9" onClick='toggleDisplayByClass("li","CHANGED","none", "list-item");'&gt;
Toggle CHANGED
&lt;/button&gt;
&amp;nbsp;&amp;nbsp;
&lt;button type="button" style="background-color:#fc0" onClick='toggleDisplayByClass("li","TODO","none", "list-item");'&gt;
Toggle TODO
&lt;/button&gt;
&amp;nbsp;&amp;nbsp;
&lt;button type="button" style="background-color:#f33" onClick='toggleDisplayByClass("li","FIXME","none", "list-item");'&gt;
Toggle FIXME
&lt;/button&gt;
&lt;ul&gt;
EOF
# NOTE: The following 'find' command skips everything in the
# vendor/, bundles/ and engine_files/ directories.
cd "${TM_PROJECT_DIRECTORY:-`dirname "$TM_FILEPATH"`}"
find . -name '.svn' -type d -prune -or -name 'vendor' -type d -prune -or -name 'bundles' -type d -prune -or -name 'engine_files' -type d -prune -or -type f -exec grep -HnwE "TODO|FIXME|FIX ME|CHANGED" '{}' \; | perl -pe '$|=1; s/&amp;/&amp;amp;/g; s/&lt;/&amp;lt;/g; s/&gt;/&amp;gt;/g; s!(.*?):(.*?):.*?(TODO|FIXME|CHANGED)[:,]?(.*)$!&lt;li class="$3"&gt; $1: &lt;a class="$3" href="txmt://open?url=file://$ENV{'WorkPath'}/$1&amp;amp;line=$2"&gt;$3: $4&lt;/a&gt;&lt;/li&gt;!'
echo "&lt;/ul&gt;&lt;/body&gt;"</string>
<key>input</key>
<string>none</string>
<key>keyEquivalent</key>
<string>^T</string>
<key>name</key>
<string>Show Enhanced TODO List</string>
<key>output</key>
<string>showAsHTML</string>
<key>uuid</key>
<string>7F64FC7D-8C06-4957-980C-4E63FFF515A3</string>
</dict>
</plist>
7 changes: 7 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright (c) 2006 syncPEOPLE, LLC.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), 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:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", 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.
16 changes: 16 additions & 0 deletions Snippets/Migration Add Column (mac).plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>add_column "${1:table}", "${2:column}", :${3:string}</string>
<key>name</key>
<string>Migration Add Column (mac)</string>
<key>scope</key>
<string></string>
<key>tabTrigger</key>
<string>mac</string>
<key>uuid</key>
<string>0D8DA40B-0652-42E8-AB20-5B6847DC2F11</string>
</dict>
</plist>
17 changes: 17 additions & 0 deletions Snippets/Migration Add and Remove Column (marc).plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>add_column "${1:table}", "${2:column}", :${3:string}
${4:remove_column "$1", "$2"}</string>
<key>name</key>
<string>Migration Add and Remove Column (marc)</string>
<key>scope</key>
<string></string>
<key>tabTrigger</key>
<string>marc</string>
<key>uuid</key>
<string>0199CACD-3A7E-4AC3-AA57-E251E4C809C2</string>
</dict>
</plist>
16 changes: 16 additions & 0 deletions Snippets/Migration Create Column (mcc).plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>t.column "${1:title}", :${2:string}</string>
<key>name</key>
<string>Migration Create Column (mcc)</string>
<key>scope</key>
<string></string>
<key>tabTrigger</key>
<string>mcc</string>
<key>uuid</key>
<string>7592CA99-75D7-48B6-9133-00B9F148FF43</string>
</dict>
</plist>
18 changes: 18 additions & 0 deletions Snippets/Migration Create Table (mct).plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>create_table "${1:table}" do |t|
$0
end</string>
<key>name</key>
<string>Migration Create Table (mct)</string>
<key>scope</key>
<string></string>
<key>tabTrigger</key>
<string>mct</string>
<key>uuid</key>
<string>59A47C33-97C5-411D-ADBE-ABD2324BD130</string>
</dict>
</plist>
19 changes: 19 additions & 0 deletions Snippets/Migration Create and Drop Table (mcdt).plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>create_table "${1:table}" do |t|
$0
end
${2:drop_table "$1"}</string>
<key>name</key>
<string>Migration Create and Drop Table (mcdt)</string>
<key>scope</key>
<string></string>
<key>tabTrigger</key>
<string>mcdt</string>
<key>uuid</key>
<string>1E16C197-9649-4C7A-98B1-789309430CEE</string>
</dict>
</plist>
16 changes: 16 additions & 0 deletions Snippets/Migration Drop Table (mdt).plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>drop_table "${1:table}"</string>
<key>name</key>
<string>Migration Drop Table (mdt)</string>
<key>scope</key>
<string></string>
<key>tabTrigger</key>
<string>mdt</string>
<key>uuid</key>
<string>C3ED4A88-B9CF-4F2B-B195-3C582ED58C5F</string>
</dict>
</plist>
16 changes: 16 additions & 0 deletions Snippets/Migration Remove Column (mrc).plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>remove_column "${1:table}", "${2:column}"</string>
<key>name</key>
<string>Migration Remove Column (mrc)</string>
<key>scope</key>
<string></string>
<key>tabTrigger</key>
<string>mrc</string>
<key>uuid</key>
<string>F0A39EAD-6D01-437B-9A79-468E0571CB3D</string>
</dict>
</plist>
16 changes: 16 additions & 0 deletions Snippets/Migration Rename Column (mrnc).plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>rename_column "${1:table}", "${2:old_column_name}", "${3:new_column_name}"</string>
<key>name</key>
<string>Migration Rename Column (mrnc)</string>
<key>scope</key>
<string></string>
<key>tabTrigger</key>
<string>mrnc</string>
<key>uuid</key>
<string>2821E53A-B232-4057-BD69-E733D696A2C4</string>
</dict>
</plist>
16 changes: 16 additions & 0 deletions Snippets/Migration Rename Table (mrnt).plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>rename_table "${1:old_table_name}", "${2:new_table_name}"</string>
<key>name</key>
<string>Migration Rename Table (mrnt)</string>
<key>scope</key>
<string></string>
<key>tabTrigger</key>
<string>mrnt</string>
<key>uuid</key>
<string>BCD61C1D-CFA5-46A5-B829-6F7740AC8651</string>
</dict>
</plist>
Loading

0 comments on commit 742e6be

Please sign in to comment.