Skip to content

Commit

Permalink
This is a merge from the git repository hosted by Dr. Nic
Browse files Browse the repository at this point in the history
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 drnicwilliams@gmail.com


git-svn-id: http://macromates.com/svn/Bundles/trunk/Bundles/Ruby%20on%20Rails.tmbundle@9069 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information
kevin committed Mar 8, 2008
1 parent bb24cf7 commit a89dcbf
Show file tree
Hide file tree
Showing 287 changed files with 8,612 additions and 1,054 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
config/*.yml
website/dist
.DS_Store
30 changes: 28 additions & 2 deletions ABOUT
Original file line number Diff line number Diff line change
@@ -1,10 +1,36 @@
== Rails Bundle 1.0
== Rails Bundle 1.0 -> 2.0 SOON
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) ==
== Maintained by ==
Dr Nic Williams
drnicwilliams@gmail.com
http://drnicwilliams.com

== Created by ==
Duane Johnson
duane.johnson@gmail.com
http://blog.inquirylabs.com/

== Contributors (no doubt missing many) ==
Sami Samhuri
James Edward Grey II
Michael Sheets
Allan Odgaard
Cliff Matthews
Kent Siblev
Stephen Touset
Lawrence Pit
Dean Strelau
Daniel Kristensen
Simon Jefford
James Deville
Stephen Bannasch
Tom Morris
David Lowenfels
Sam Granieri
Jacob Swanner
Steve Ross
Charles Roper
82 changes: 82 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,85 @@
[Edge] Trundle to Rails 2.0 Bundle
Ruby on Rails bundle maintenance has been taken over by Dr Nic Williams from its initial legendary creator Duane Johnson.
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)

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 drnicwilliams@gmail.com

* BLACKHOLE OF CHANGELOG *
...

* END OF BLACKHOLE *
2006-09-28 Added "Rake Migrate to Version", changed "rake migrate" to "rake db:migrate" to remove warning message.
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:
Expand Down
3 changes: 3 additions & 0 deletions Capfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
load 'config/deploy'
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//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_SUPPORT/lib:$RUBYLIB"
"${TM_RUBY:=ruby}" "${TM_BUNDLE_SUPPORT}/bin/fixture_auto_complete.rb" preserve</string>
<key>fallbackInput</key>
<string>line</string>
<key>input</key>
<string>selection</string>
<key>keyEquivalent</key>
<string>~$</string>
<key>name</key>
<string>Autocomplete Foreign Key Fixture Reference (habtm)</string>
<key>output</key>
<string>insertAsSnippet</string>
<key>scope</key>
<string>source.yaml</string>
<key>uuid</key>
<string>275C0B86-F735-49B6-8A22-218A8F4CC2E0</string>
</dict>
</plist>
25 changes: 25 additions & 0 deletions Commands/Autocomplete Foreign Key Fixture Reference.tmCommand
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//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_SUPPORT/lib:$RUBYLIB"
"${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/fixture_auto_complete.rb" </string>
<key>fallbackInput</key>
<string>line</string>
<key>input</key>
<string>selection</string>
<key>keyEquivalent</key>
<string>~</string>
<key>name</key>
<string>Autocomplete Foreign Key Fixture Reference</string>
<key>output</key>
<string>insertAsSnippet</string>
<key>scope</key>
<string>source.yaml, meta.rails.unit_test, meta.rails.functional_test</string>
<key>uuid</key>
<string>0BCF0EE2-35EE-4959-A771-E74D55271D5A</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion Commands/Go To Alternate File.plist
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<key>output</key>
<string>showAsTooltip</string>
<key>scope</key>
<string>text.html.ruby, source.ruby.rails.embedded.html, meta.rails.helper, meta.rails.functional_test, source.js, source.css</string>
<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>
<key>uuid</key>
<string>9453F0B3-B946-445F-BDB0-B01DE70732FC</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion Commands/Go To File on This Line.plist
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<key>output</key>
<string>showAsTooltip</string>
<key>scope</key>
<string>source.ruby.rails, text.html.ruby, source.ruby.rails.embedded.html</string>
<string>source.ruby.rails, text.html.ruby, source.ruby.rails.embedded.html, text.haml</string>
<key>uuid</key>
<string>09BB96F2-75FD-48A7-8314-B5B56B09B477</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion Commands/Go To File.plist
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<key>output</key>
<string>showAsTooltip</string>
<key>scope</key>
<string>source.ruby.rails, text.html.ruby, source.ruby.rails.embedded.html</string>
<string>source.ruby.rails, text.html.ruby, source.ruby.rails.embedded.html, source.yaml, text.haml, source.css, source.js, source.sass</string>
<key>uuid</key>
<string>0CCC8443-40F3-4BAB-9440-D737562B5F45</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion Commands/Go To Functional Test.plist
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<key>output</key>
<string>showAsTooltip</string>
<key>scope</key>
<string>meta.rails.controller</string>
<string>meta.rails.controller, meta.rails.helper, meta.rails.model, source.yaml, meta.rails.unit_test</string>
<key>uuid</key>
<string>DFE393BE-0764-49FE-B464-6350A50921E6</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion Commands/Go To Helper.plist
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<key>output</key>
<string>showAsTooltip</string>
<key>scope</key>
<string>text.html.ruby, source.ruby.rails.embedded.html, meta.rails.controller, meta.rails.unit_test</string>
<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>
<key>uuid</key>
<string>51C9C27A-D931-49F9-B6D8-C0E7ABEC992D</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion Commands/Go To Javascript.plist
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<key>output</key>
<string>showAsTooltip</string>
<key>scope</key>
<string>text.html.ruby, source.ruby.rails.embedded.html, meta.rails.controller, meta.rails.helper</string>
<string>text.html.ruby, source.ruby.rails.embedded.html, meta.rails.controller, meta.rails.helper, text.haml</string>
<key>uuid</key>
<string>B078346F-61D8-4E75-9427-80720FBC67F7</string>
</dict>
Expand Down
23 changes: 23 additions & 0 deletions Commands/Go To Model.tmCommand
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_SUPPORT/lib:$RUBYLIB"
"${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/go_to_alternate_file.rb" model</string>
<key>input</key>
<string>none</string>
<key>keyEquivalent</key>
<string>~$@</string>
<key>name</key>
<string>Go to Model</string>
<key>output</key>
<string>showAsTooltip</string>
<key>scope</key>
<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>
<key>uuid</key>
<string>C7151BF3-7068-4344-9B09-86F3BF4A9C63</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion Commands/Go To Stylesheet.plist
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<key>output</key>
<string>showAsTooltip</string>
<key>scope</key>
<string>text.html.ruby, source.ruby.rails.embedded.html, meta.rails.controller, meta.rails.helper</string>
<string>text.html.ruby, source.ruby.rails.embedded.html, meta.rails.controller, meta.rails.helper, text.haml</string>
<key>uuid</key>
<string>B207BBD4-D6AA-41E9-9530-27210F2D7B66</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion Commands/Go To Unit Test.plist
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<key>output</key>
<string>showAsTooltip</string>
<key>scope</key>
<string>meta.rails.model, meta.rails.helper</string>
<string>meta.rails.controller, meta.rails.helper, meta.rails.model, meta.rails.functional_test, source.yaml</string>
<key>uuid</key>
<string>BDBB15A4-2824-4BEC-93A5-7475F9C46A39</string>
</dict>
Expand Down
4 changes: 2 additions & 2 deletions Commands/Go To View.plist
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?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">
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
Expand All @@ -16,7 +16,7 @@
<key>output</key>
<string>showAsTooltip</string>
<key>scope</key>
<string>meta.rails.controller, meta.rails.mailer, source.js, source.css, meta.rails.functional_test</string>
<string>meta.rails.controller, meta.rails.mailer, source.js, source.css</string>
<key>uuid</key>
<string>EE862691-A624-4797-90CF-EDD39EFB2D8E</string>
</dict>
Expand Down
23 changes: 23 additions & 0 deletions Commands/Go to Fixture.tmCommand
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_SUPPORT/lib:$RUBYLIB"
"${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/go_to_alternate_file.rb" fixture</string>
<key>input</key>
<string>none</string>
<key>keyEquivalent</key>
<string>~$@</string>
<key>name</key>
<string>Go to Fixture</string>
<key>output</key>
<string>showAsTooltip</string>
<key>scope</key>
<string>meta.rails.controller, meta.rails.helper, meta.rails.model, meta.rails.unit_test, meta.rails.functional_test</string>
<key>uuid</key>
<string>638D94A4-BDFC-4FE9-8909-9934F3FD2899</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion Commands/Make Selection in to Partial.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>output</key>
<string>replaceSelectedText</string>
<key>scope</key>
<string>source.ruby.rails, text.html.ruby</string>
<string>source.ruby.rails, text.html.ruby, text.haml</string>
<key>uuid</key>
<string>1DD8A214-1C97-45BA-ADEE-8F888DDE8570</string>
</dict>
Expand Down
24 changes: 24 additions & 0 deletions Commands/Redo Last Migration.tmCommand
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//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_SUPPORT/lib:$RUBYLIB"
"${TM_RUBY:=ruby}" -- "${TM_BUNDLE_SUPPORT}/bin/rake_helper.rb" db:migrate:redo
</string>
<key>input</key>
<string>none</string>
<key>keyEquivalent</key>
<string>^|</string>
<key>name</key>
<string>Redo Last Migration</string>
<key>output</key>
<string>showAsHTML</string>
<key>scope</key>
<string>source.ruby.rails, source.yaml</string>
<key>uuid</key>
<string>CFDA9F62-D071-4E0F-AD10-66AE0729FFCF</string>
</dict>
</plist>
Loading

0 comments on commit a89dcbf

Please sign in to comment.