`SwitchCommand#snippet` failed when the bundle was installed via TextMate’s bundle preferences because the snippet files then use binary property list format (see #92 (comment) for details). However, the method's return value was discarded anyway :-/ (In b48e860 `#write_and_open` was changed to ignore the `content` parameter.) This commit removes all the unused code (at least I hope so).
This scope available since TextMate 2.0-alpha.9557. It is automatically active in projects having a `.rspec` file. So the shortcuts for “Run Again” and “Run Examples in selected …” can now be used even from non-RSpec files in such projects.
So we have a distinct shortcut here (⌥⌘R was shared with “Run Last Example”).
This is basically #88, but I reordered and squashed some commits.
…ted. All examples in `spec/`, to be exact.
Fixes #87. This seems the correct way of dealing with it, see e.g. https://github.com/textmate/textmate/blob/2eaa97b1dc3a1df58a172769bc9646fb4a0610d2/Applications/TextMate/support/Bundles/Avian.tmbundle/Commands/Show%20Images.tmCommand#L14
This reverts commit 09fe0a3. Commands using `RSpec::Mate::Runner` must not use the ruby18 shim (for now, at least). Fixes “LoadError: cannot load such file -- bundler” when running this command in a project where a Gemfile exists.