Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 44 lines (33 sloc) 1.486 kb
08f5d4e @dchelimsky Better handling of gemfile scenarios
dchelimsky authored
1 # Information for rspec-rails developers
2
3 rspec-rails lives in a complicated ecosystem. We need to run it against
4 multiple versions of rails and multiple versions of Ruby as well. There are
5 several tools already available to manage running against multiple versions of
6 Ruby (e.g. rvm), and there are even some multi-rails tools (e.g. multi-rails)
7 but we haven't found one that does exactly what we need here, so we've rolled
8 our own.
9
10 ## The short version
11
12 thor rails:use 3.0.6
13 rake
14
15 ## The long version
16
17 ### thor rails:use
18
19 The `thor rails:use` task accepts any released version of rails, or either the
20 3-0-stable or master branches.
21
22 thor rails:use master
23 thor rails:use 3-0-stable
24 thor rails:use 3.0.6
25 thor rails:use 3.0.5
26 thor rails:use 3.0.4
27 thor rails:use 3.0.3
28 thor rails:use 3.0.2
29 thor rails:use 3.0.1
30 thor rails:use 3.0.0
31
32 It then does several things:
33
34 * generates a .gemfile file with the version listed. This is used internally by
35 assorted rake tasks.
36 * installs the bundle using the appropriate file in the gemfiles directory
37 ** this includes binstubs, which are stored in ./gemfiles/bin
38 * symlinks the gemfiles/bin directory to ./bin (in the project root) to support
39 running bin/rspec from the project root
40
41 At any time, if you want to change rails versions, run `thor rails:use` with a
42 new version number. To play it safe, you probably want to also run `rake
43 clobber` to delete all the code generated by the previous rails version.
Something went wrong with that request. Please try again.