Skip to content

Commit a89dcbf

Browse files
author
kevin
committed
This is a merge from the git repository hosted by Dr. Nic
http://github.com/drnic/ruby-on-rails-tmbundle/commit/7edadd1 == 1.90.0 2008-03-08 * Major Upgrade to Rails 2.0 - Initial release * Ruby on Rails bundle maintenance has been taken over by Dr Nic Williams from its initial legendary creator Duane Johnson. * Added so far: * Snippets/Commands for: * Tests * assert_select (ass) * assert_difference/assert_no_difference (asd/asnd) * GET+POST test method stubs (deftg+deftp) * posts(:) + Alt+Esc allows you to select a posts.yml fixture * Controllers * respond_to (rest) and respond_to(html) (Shift+Cmd+H) * 'Go To View' within a respond_to will use the format/wants type as the default * REMOVED: render_component snippets * loggers - pass a block instead of raw string to save time if logging not used (e.g. production) [Stephen Touset] * redirect_to for resource paths (rep, repp, renp, renpp) * render :update (ru) [Simon Jefford] * Views * form_for and form_for(with errors) (ff,ffe) * Various form_for helpers in a drop-down list, e.g. f.text_field (f.) * Various form_for helpers with own tab completion, e.g. f.text_field (fftf) * link_to for resource paths (lip, lipp, linp, linpp) * <% end -%> (end) * for-loop (for) * link_to(@model.name, @model) (ltm) * Layouts * javascript_include_tag - jit * stylesheet_link_tag - slt * Models * has_many :though (hmt) * association snippets give better defaults (e.g. bt + hm) * validates_format_of (vf,vfif) [Dean Strelau] * validates_numericality_of (vn,vnif) [Tom Morris] * before/after callbacks (prefix bef/aft + 1st letter of words) [Sam Granieri] * Migrations * Sexy Migrations now available as "t." snippets and regular snippets [Lawrence Pit] * Migration classes have own textmate scope * Add/Remove Columns - the 'down' statements are in reverse order [Lawrence Pit, Daniel Kristensen] * Added 'Redo Last Migration' [Simon Jefford] * Functional Tests * assert_redirect_to for resource paths (artp, artpp, artnp, artnpp) * assert(assigns(:model)) (asg) * Routes * named routes, resources snippets (map, mapr, maprs) * catch_all (mapca) [Sam Granieri] * Active Support * cattr_accessor/mattr_accessor (crw/mrw) [Jacob Swanner] * returning (returning) [Jacob Swanner] * Language/Syntax * New keywords: rescue_from, alias_method_chain, alias_attribute, delegate, respond_to [David Lowenfels, Jacob Swanner] * Added rb as a valid Rails file type [James Deville] * Commands * Auto-completion for Foxy Fixtures * html.erb is the default for new templates (backwards compatibility is being worked on too) * 'Go To XXX' - available for wide range of permutations. Fixtures -> Models; Models -> Controllers, etc * haml is a valid file extension [Steve Ross] * specify alternate default file extensions for: [Steve Ross] * javascript - ENV['RAILS_JS_EXT'] * stylesheet - ENV['RAILS_CSS_EXT'] * view - ENV['RAILS_VIEW_EXT'] * 'Call Generate Script' now accesses all a project's generators * Plugins * Footnote * footnote-edge uses .erb for templates [Stephen Bannasch] * Internals * Rakefile - test runner [Steve Ross] * Added generator_test * Removed unnecessary misc_test * script/clean_bundle_file_names - rename non-os-agnostic file names [Charles Roper] * Haml support [Lawrence Pit] For thoughts and patches, email [email protected] git-svn-id: http://macromates.com/svn/Bundles/trunk/Bundles/Ruby%20on%20Rails.tmbundle@9069 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
1 parent bb24cf7 commit a89dcbf

File tree

287 files changed

+8612
-1054
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

287 files changed

+8612
-1054
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
config/*.yml
2+
website/dist
3+
.DS_Store

ABOUT

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,36 @@
1-
== Rails Bundle 1.0
1+
== Rails Bundle 1.0 -> 2.0 SOON
22
This bundle is (c) 2006 syncPEOPLE, LLC.
33
As of version 1.0, it is distributed under the terms of the MIT License.
44

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

7-
== Author(s) ==
7+
== Maintained by ==
8+
Dr Nic Williams
9+
10+
http://drnicwilliams.com
11+
12+
== Created by ==
813
Duane Johnson
914
1015
http://blog.inquirylabs.com/
16+
17+
== Contributors (no doubt missing many) ==
18+
Sami Samhuri
19+
James Edward Grey II
20+
Michael Sheets
21+
Allan Odgaard
22+
Cliff Matthews
23+
Kent Siblev
24+
Stephen Touset
25+
Lawrence Pit
26+
Dean Strelau
27+
Daniel Kristensen
28+
Simon Jefford
29+
James Deville
30+
Stephen Bannasch
31+
Tom Morris
32+
David Lowenfels
33+
Sam Granieri
34+
Jacob Swanner
35+
Steve Ross
36+
Charles Roper

CHANGELOG

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,85 @@
1+
[Edge] Trundle to Rails 2.0 Bundle
2+
Ruby on Rails bundle maintenance has been taken over by Dr Nic Williams from its initial legendary creator Duane Johnson.
3+
See git branch two_point_ooh for initial drive to upgrade bundle for Rails 2.0 conventions (http://github.com/drnic/ruby-on-rails-tmbundle/tree/two_point_ooh)
4+
5+
Added so far:
6+
* Snippets/Commands for:
7+
* Tests
8+
* assert_select (ass)
9+
* assert_difference/assert_no_difference (asd/asnd)
10+
* GET+POST test method stubs (deftg+deftp)
11+
* posts(:) + Alt+Esc allows you to select a posts.yml fixture
12+
* Controllers
13+
* respond_to (rest) and respond_to(html) (Shift+Cmd+H)
14+
* 'Go To View' within a respond_to will use the format/wants type as the default
15+
* REMOVED: render_component snippets
16+
* loggers - pass a block instead of raw string to save time if
17+
logging not used (e.g. production) [Stephen Touset]
18+
* redirect_to for resource paths (rep, repp, renp, renpp)
19+
* render :update (ru) [Simon Jefford]
20+
* Views
21+
* form_for and form_for(with errors) (ff,ffe)
22+
* Various form_for helpers in a drop-down list, e.g. f.text_field (f.)
23+
* Various form_for helpers with own tab completion, e.g. f.text_field (fftf)
24+
* link_to for resource paths (lip, lipp, linp, linpp)
25+
* <% end -%> (end)
26+
* for-loop (for)
27+
* link_to(@model.name, @model) (ltm)
28+
* Layouts
29+
* javascript_include_tag - jit
30+
* stylesheet_link_tag - slt
31+
* Models
32+
* has_many :though (hmt)
33+
* association snippets give better defaults (e.g. bt + hm)
34+
* validates_format_of (vf,vfif) [Dean Strelau]
35+
* validates_numericality_of (vn,vnif) [Tom Morris]
36+
* before/after callbacks (prefix bef/aft + 1st letter of words) [Sam Granieri]
37+
* Migrations
38+
* Sexy Migrations now available as "t." snippets and regular snippets [Lawrence Pit]
39+
* Migration classes have own textmate scope
40+
* Add/Remove Columns - the 'down' statements are in reverse
41+
order [Lawrence Pit, Daniel Kristensen]
42+
* Added 'Redo Last Migration' [Simon Jefford]
43+
* Functional Tests
44+
* assert_redirect_to for resource paths (artp, artpp, artnp, artnpp)
45+
* assert(assigns(:model)) (asg)
46+
* Routes
47+
* named routes, resources snippets (map, mapr, maprs)
48+
* catch_all (mapca) [Sam Granieri]
49+
* Active Support
50+
* cattr_accessor/mattr_accessor (crw/mrw) [Jacob Swanner]
51+
* returning (returning) [Jacob Swanner]
52+
* Language/Syntax
53+
* New keywords: rescue_from, alias_method_chain, alias_attribute, delegate, respond_to [David Lowenfels, Jacob Swanner]
54+
* Added rb as a valid Rails file type [James Deville]
55+
* Commands
56+
* Auto-completion for Foxy Fixtures
57+
* html.erb is the default for new templates (backwards compatibility
58+
is being worked on too)
59+
* 'Go To XXX' - available for wide range of permutations.
60+
Fixtures -> Models; Models -> Controllers, etc
61+
* haml is a valid file extension [Steve Ross]
62+
* specify alternate default file extensions for: [Steve Ross]
63+
* javascript - ENV['RAILS_JS_EXT']
64+
* stylesheet - ENV['RAILS_CSS_EXT']
65+
* view - ENV['RAILS_VIEW_EXT']
66+
* 'Call Generate Script' now accesses all a project's generators
67+
* Plugins
68+
* Footnote
69+
* footnote-edge uses .erb for templates [Stephen Bannasch]
70+
* Internals
71+
* Rakefile - test runner [Steve Ross]
72+
* Added generator_test
73+
* Removed unnecessary misc_test
74+
* script/clean_bundle_file_names - rename non-os-agnostic file names [Charles Roper]
75+
* Haml support [Lawrence Pit]
76+
77+
For thoughts and patches, email [email protected]
78+
79+
* BLACKHOLE OF CHANGELOG *
80+
...
81+
82+
* END OF BLACKHOLE *
183
2006-09-28 Added "Rake Migrate to Version", changed "rake migrate" to "rake db:migrate" to remove warning message.
284
2006-02-22 Changed key bindings to TextMate conventions (http://macromates.com/textmate/manual/key_bindings#conventions)
385
2006-02-22 Footnotes can be turned off for specific pages:

Capfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
2+
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
3+
load 'config/deploy'
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>beforeRunningCommand</key>
6+
<string>nop</string>
7+
<key>command</key>
8+
<string>RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
9+
"${TM_RUBY:=ruby}" "${TM_BUNDLE_SUPPORT}/bin/fixture_auto_complete.rb" preserve</string>
10+
<key>fallbackInput</key>
11+
<string>line</string>
12+
<key>input</key>
13+
<string>selection</string>
14+
<key>keyEquivalent</key>
15+
<string>~$</string>
16+
<key>name</key>
17+
<string>Autocomplete Foreign Key Fixture Reference (habtm)</string>
18+
<key>output</key>
19+
<string>insertAsSnippet</string>
20+
<key>scope</key>
21+
<string>source.yaml</string>
22+
<key>uuid</key>
23+
<string>275C0B86-F735-49B6-8A22-218A8F4CC2E0</string>
24+
</dict>
25+
</plist>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>beforeRunningCommand</key>
6+
<string>nop</string>
7+
<key>command</key>
8+
<string>RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
9+
"${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/fixture_auto_complete.rb" </string>
10+
<key>fallbackInput</key>
11+
<string>line</string>
12+
<key>input</key>
13+
<string>selection</string>
14+
<key>keyEquivalent</key>
15+
<string>~</string>
16+
<key>name</key>
17+
<string>Autocomplete Foreign Key Fixture Reference</string>
18+
<key>output</key>
19+
<string>insertAsSnippet</string>
20+
<key>scope</key>
21+
<string>source.yaml, meta.rails.unit_test, meta.rails.functional_test</string>
22+
<key>uuid</key>
23+
<string>0BCF0EE2-35EE-4959-A771-E74D55271D5A</string>
24+
</dict>
25+
</plist>

Commands/Go To Alternate File.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<key>output</key>
1717
<string>showAsTooltip</string>
1818
<key>scope</key>
19-
<string>text.html.ruby, source.ruby.rails.embedded.html, meta.rails.helper, meta.rails.functional_test, source.js, source.css</string>
19+
<string>text.html.ruby, source.ruby.rails.embedded.html, meta.rails.helper, meta.rails.functional_test, source.js, source.css, source.yaml, meta.rails.model, meta.rails.unit_test, text.haml</string>
2020
<key>uuid</key>
2121
<string>9453F0B3-B946-445F-BDB0-B01DE70732FC</string>
2222
</dict>

Commands/Go To File on This Line.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<key>output</key>
1717
<string>showAsTooltip</string>
1818
<key>scope</key>
19-
<string>source.ruby.rails, text.html.ruby, source.ruby.rails.embedded.html</string>
19+
<string>source.ruby.rails, text.html.ruby, source.ruby.rails.embedded.html, text.haml</string>
2020
<key>uuid</key>
2121
<string>09BB96F2-75FD-48A7-8314-B5B56B09B477</string>
2222
</dict>

Commands/Go To File.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<key>output</key>
1717
<string>showAsTooltip</string>
1818
<key>scope</key>
19-
<string>source.ruby.rails, text.html.ruby, source.ruby.rails.embedded.html</string>
19+
<string>source.ruby.rails, text.html.ruby, source.ruby.rails.embedded.html, source.yaml, text.haml, source.css, source.js, source.sass</string>
2020
<key>uuid</key>
2121
<string>0CCC8443-40F3-4BAB-9440-D737562B5F45</string>
2222
</dict>

Commands/Go To Functional Test.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<key>output</key>
1717
<string>showAsTooltip</string>
1818
<key>scope</key>
19-
<string>meta.rails.controller</string>
19+
<string>meta.rails.controller, meta.rails.helper, meta.rails.model, source.yaml, meta.rails.unit_test</string>
2020
<key>uuid</key>
2121
<string>DFE393BE-0764-49FE-B464-6350A50921E6</string>
2222
</dict>

Commands/Go To Helper.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<key>output</key>
1717
<string>showAsTooltip</string>
1818
<key>scope</key>
19-
<string>text.html.ruby, source.ruby.rails.embedded.html, meta.rails.controller, meta.rails.unit_test</string>
19+
<string>text.html.ruby, source.ruby.rails.embedded.html, meta.rails.controller, meta.rails.model, meta.rails.unit_test, meta.rails.functional_test, text.haml</string>
2020
<key>uuid</key>
2121
<string>51C9C27A-D931-49F9-B6D8-C0E7ABEC992D</string>
2222
</dict>

Commands/Go To Javascript.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<key>output</key>
1717
<string>showAsTooltip</string>
1818
<key>scope</key>
19-
<string>text.html.ruby, source.ruby.rails.embedded.html, meta.rails.controller, meta.rails.helper</string>
19+
<string>text.html.ruby, source.ruby.rails.embedded.html, meta.rails.controller, meta.rails.helper, text.haml</string>
2020
<key>uuid</key>
2121
<string>B078346F-61D8-4E75-9427-80720FBC67F7</string>
2222
</dict>

Commands/Go To Model.tmCommand

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>beforeRunningCommand</key>
6+
<string>nop</string>
7+
<key>command</key>
8+
<string>RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
9+
"${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/go_to_alternate_file.rb" model</string>
10+
<key>input</key>
11+
<string>none</string>
12+
<key>keyEquivalent</key>
13+
<string>~$@</string>
14+
<key>name</key>
15+
<string>Go to Model</string>
16+
<key>output</key>
17+
<string>showAsTooltip</string>
18+
<key>scope</key>
19+
<string>text.html.ruby, source.ruby.rails.embedded.html, meta.rails.helper, meta.rails.unit_test, source.js, source.css, source.yaml, meta.rails.controller, meta.rails.functional_test, text.haml</string>
20+
<key>uuid</key>
21+
<string>C7151BF3-7068-4344-9B09-86F3BF4A9C63</string>
22+
</dict>
23+
</plist>

Commands/Go To Stylesheet.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<key>output</key>
1717
<string>showAsTooltip</string>
1818
<key>scope</key>
19-
<string>text.html.ruby, source.ruby.rails.embedded.html, meta.rails.controller, meta.rails.helper</string>
19+
<string>text.html.ruby, source.ruby.rails.embedded.html, meta.rails.controller, meta.rails.helper, text.haml</string>
2020
<key>uuid</key>
2121
<string>B207BBD4-D6AA-41E9-9530-27210F2D7B66</string>
2222
</dict>

Commands/Go To Unit Test.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<key>output</key>
1717
<string>showAsTooltip</string>
1818
<key>scope</key>
19-
<string>meta.rails.model, meta.rails.helper</string>
19+
<string>meta.rails.controller, meta.rails.helper, meta.rails.model, meta.rails.functional_test, source.yaml</string>
2020
<key>uuid</key>
2121
<string>BDBB15A4-2824-4BEC-93A5-7475F9C46A39</string>
2222
</dict>

Commands/Go To View.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
55
<key>beforeRunningCommand</key>
@@ -16,7 +16,7 @@
1616
<key>output</key>
1717
<string>showAsTooltip</string>
1818
<key>scope</key>
19-
<string>meta.rails.controller, meta.rails.mailer, source.js, source.css, meta.rails.functional_test</string>
19+
<string>meta.rails.controller, meta.rails.mailer, source.js, source.css</string>
2020
<key>uuid</key>
2121
<string>EE862691-A624-4797-90CF-EDD39EFB2D8E</string>
2222
</dict>

Commands/Go to Fixture.tmCommand

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>beforeRunningCommand</key>
6+
<string>nop</string>
7+
<key>command</key>
8+
<string>RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
9+
"${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/go_to_alternate_file.rb" fixture</string>
10+
<key>input</key>
11+
<string>none</string>
12+
<key>keyEquivalent</key>
13+
<string>~$@</string>
14+
<key>name</key>
15+
<string>Go to Fixture</string>
16+
<key>output</key>
17+
<string>showAsTooltip</string>
18+
<key>scope</key>
19+
<string>meta.rails.controller, meta.rails.helper, meta.rails.model, meta.rails.unit_test, meta.rails.functional_test</string>
20+
<key>uuid</key>
21+
<string>638D94A4-BDFC-4FE9-8909-9934F3FD2899</string>
22+
</dict>
23+
</plist>

Commands/Make Selection in to Partial.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<key>output</key>
2020
<string>replaceSelectedText</string>
2121
<key>scope</key>
22-
<string>source.ruby.rails, text.html.ruby</string>
22+
<string>source.ruby.rails, text.html.ruby, text.haml</string>
2323
<key>uuid</key>
2424
<string>1DD8A214-1C97-45BA-ADEE-8F888DDE8570</string>
2525
</dict>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>beforeRunningCommand</key>
6+
<string>nop</string>
7+
<key>command</key>
8+
<string>RUBYLIB="$TM_BUNDLE_SUPPORT/lib:$RUBYLIB"
9+
"${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/rake_helper.rb" db:migrate:redo
10+
</string>
11+
<key>input</key>
12+
<string>none</string>
13+
<key>keyEquivalent</key>
14+
<string>^|</string>
15+
<key>name</key>
16+
<string>Redo Last Migration</string>
17+
<key>output</key>
18+
<string>showAsHTML</string>
19+
<key>scope</key>
20+
<string>source.ruby.rails, source.yaml</string>
21+
<key>uuid</key>
22+
<string>CFDA9F62-D071-4E0F-AD10-66AE0729FFCF</string>
23+
</dict>
24+
</plist>

0 commit comments

Comments
 (0)