diff --git a/ERB/lt.link_to-ERB.sublime-snippet b/ERB/lt.link_to-ERB.sublime-snippet index fbabe47..04bad77 100644 --- a/ERB/lt.link_to-ERB.sublime-snippet +++ b/ERB/lt.link_to-ERB.sublime-snippet @@ -1,6 +1,6 @@ - ]]> + ]]> lt text.html.ruby ERB link_to - \ No newline at end of file + diff --git a/README.md b/README.md index 7f9c75f..3e30b86 100644 --- a/README.md +++ b/README.md @@ -7,14 +7,16 @@ I started this project as I had over 500 ruby/rails/rspec snippets installed - e Search for "Rails Developer Snippets" via Package Control otherwise... ### Mac OSX cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages - git clone git@github.com:j10io/sublime-railsdev.git + git clone git@github.com:j10io/railsdev-sublime-snippets.git ### Linux cd ~/.config/sublime-text-2/Packages - git clone git@github.com:j10io/sublime-railsdev.git + git clone git@github.com:j10io/railsdev-sublime-snippets.git ### Windows cd Users//AppData/Roaming/Sublime\ Text\ 2/Packages/ - git clone git@github.com:j10io/sublime-railsdev.git - + git clone git@github.com:j10io/railsdev-sublime-snippets.git +### Sublime Text 3 - Mac OSX + cd ~/Library/Application Support/Sublime Text 3/Packages/User + git clone git@github.com:j10io/railsdev-sublime-snippets.git ## Dependencies * [ApplySyntax](https://github.com/facelessuser/ApplySyntax) a sublime text plugin for syntax detection (rspec etc...) @@ -23,10 +25,10 @@ I started this project as I had over 500 ruby/rails/rspec snippets installed - e ## Some support for * [capybara](https://github.com/jnicklas/capybara) Acceptance test framework for web applications * [shoulda](https://github.com/thoughtbot/shoulda) a validations gem by thoughtbot - + ## My Setup (I'm on OSX... your mileage may vary) - 1. Install the dependencies above. + 1. Install the dependencies above. 2. It's worth noting, whilst I wanted to keep **some** of the functionality that Sublime Text provides for Ruby/Rails by default, as well as **some** functionality that the RSpec plugin provides, to avoid **snippet collisions**, I deleted all other Ruby/Rails/RSpec .sublime-snippet files from: * ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Ruby diff --git a/RSpec/dci.rspec-describe-context-it-block.sublime-snippet b/RSpec/dci.rspec-describe-context-it-block.sublime-snippet new file mode 100644 index 0000000..84f0fe1 --- /dev/null +++ b/RSpec/dci.rspec-describe-context-it-block.sublime-snippet @@ -0,0 +1,13 @@ + + + dci + source.ruby.rspec + RSpec Describe + Context + It Block + \ No newline at end of file diff --git a/RSpec/exp.rspec-exp.sublime-snippet b/RSpec/exp.rspec-exp.sublime-snippet new file mode 100644 index 0000000..8386f52 --- /dev/null +++ b/RSpec/exp.rspec-exp.sublime-snippet @@ -0,0 +1,6 @@ + + + exp + source.ruby.rspec + RSpec Expect + \ No newline at end of file diff --git a/RSpec/ie.rspec-it-expect-inline.sublime-snippet b/RSpec/ie.rspec-it-expect-inline.sublime-snippet new file mode 100644 index 0000000..47a6352 --- /dev/null +++ b/RSpec/ie.rspec-it-expect-inline.sublime-snippet @@ -0,0 +1,6 @@ + + + ie + source.ruby.rspec + RSpec It Expect Inline + \ No newline at end of file diff --git a/RSpec/iec.rspec-it-expect-change-inline.sublime-snippet b/RSpec/iec.rspec-it-expect-change-inline.sublime-snippet new file mode 100644 index 0000000..e7903b7 --- /dev/null +++ b/RSpec/iec.rspec-it-expect-change-inline.sublime-snippet @@ -0,0 +1,6 @@ + + + iec + source.ruby.rspec + RSpec It Expect Change Inline + \ No newline at end of file diff --git a/RSpec/shb.rspec-it-should-have_button.sublime-snippet b/RSpec/shb.rspec-it-should-have_button.sublime-snippet index 8e64dd5..9a45ae3 100644 --- a/RSpec/shb.rspec-it-should-have_button.sublime-snippet +++ b/RSpec/shb.rspec-it-should-have_button.sublime-snippet @@ -1,6 +1,6 @@ - > + shb source.ruby.rspec RSpec Should Have Button - \ No newline at end of file + diff --git a/RSpec/shf.rspec-it-should-have_field.sublime-snippet b/RSpec/shf.rspec-it-should-have_field.sublime-snippet index 44f9bbb..ee13bba 100644 --- a/RSpec/shf.rspec-it-should-have_field.sublime-snippet +++ b/RSpec/shf.rspec-it-should-have_field.sublime-snippet @@ -1,6 +1,6 @@ - > + shf source.ruby.rspec RSpec Should Have Field - \ No newline at end of file + diff --git a/RSpec/shl.rspec-it-should-have_link.sublime-snippet b/RSpec/shl.rspec-it-should-have_link.sublime-snippet index 5e14c7b..1a92f5c 100644 --- a/RSpec/shl.rspec-it-should-have_link.sublime-snippet +++ b/RSpec/shl.rspec-it-should-have_link.sublime-snippet @@ -1,6 +1,6 @@ - > + shl source.ruby.rspec RSpec Should Have Link - \ No newline at end of file + diff --git a/RSpec/shs.rspec-it-should-have_selector.sublime-snippet b/RSpec/shs.rspec-it-should-have_selector.sublime-snippet index 518e8ad..6c2855b 100644 --- a/RSpec/shs.rspec-it-should-have_selector.sublime-snippet +++ b/RSpec/shs.rspec-it-should-have_selector.sublime-snippet @@ -1,6 +1,6 @@ - > + shs source.ruby.rspec RSpec Should Have Selector - \ No newline at end of file + diff --git a/RSpec/srt.rspec-it-should-respond_to.sublime-snippet b/RSpec/srt.rspec-it-should-respond_to.sublime-snippet index 242344f..ca0c1d2 100644 --- a/RSpec/srt.rspec-it-should-respond_to.sublime-snippet +++ b/RSpec/srt.rspec-it-should-respond_to.sublime-snippet @@ -1,6 +1,6 @@ - > + srt source.ruby.rspec RSpec Should Respond To - \ No newline at end of file + diff --git a/Rails/ctrlr.rails-restful-controller.sublime-snippet b/Rails/ctrlr.rails-restful-controller.sublime-snippet index 0c9c979..c9c02ae 100644 --- a/Rails/ctrlr.rails-restful-controller.sublime-snippet +++ b/Rails/ctrlr.rails-restful-controller.sublime-snippet @@ -1,6 +1,6 @@ + + pa + source.ruby.rails + Rails Params Hash +