Skip to content
Newer
Older
100644 38 lines (27 sloc) 1.24 KB
08f5d4e @dchelimsky Better handling of gemfile scenarios
dchelimsky authored Apr 17, 2011
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
20f3780 @dchelimsky doc tweaks
dchelimsky authored Jul 7, 2011
12 gem install thor bundler
af3ff6e @dchelimsky dev: reference 3.1.3 instead of 3.1.1
dchelimsky authored Nov 21, 2011
13 thor version:use 3.1.3
20f3780 @dchelimsky doc tweaks
dchelimsky authored Jul 8, 2011
14 rake
08f5d4e @dchelimsky Better handling of gemfile scenarios
dchelimsky authored Apr 17, 2011
15
16 ## The long version
17
5687b8d @dchelimsky dev: much simpler management of multiple gemfiles
dchelimsky authored Nov 20, 2011
18 ### thor version:use
08f5d4e @dchelimsky Better handling of gemfile scenarios
dchelimsky authored Apr 17, 2011
19
3562f8f @justinko typo [ci skip]
justinko authored Apr 13, 2012
20 The `thor version:use` task accepts any released version of rails, or either the
08f5d4e @dchelimsky Better handling of gemfile scenarios
dchelimsky authored Apr 17, 2011
21 3-0-stable or master branches.
22
5687b8d @dchelimsky dev: much simpler management of multiple gemfiles
dchelimsky authored Nov 20, 2011
23 thor version:use master
24 thor version:use 3-0-stable
af3ff6e @dchelimsky dev: reference 3.1.3 instead of 3.1.1
dchelimsky authored Nov 21, 2011
25 thor version:use 3-1-stable
26 thor version:use 3.1.3 # or any release >= 3.0.0
5687b8d @dchelimsky dev: much simpler management of multiple gemfiles
dchelimsky authored Nov 20, 2011
27
28 It then does a few things:
29
30 * generates a .rails-version file with the version listed. This is used
31 internally by assorted rake tasks.
32 * installs the bundle
33 * this includes binstubs, which are stored in ./bin
34
35 At any time, if you want to change rails versions, run `thor version:use` with
36 a new version number. To play it safe, you probably want to also run `rake
08f5d4e @dchelimsky Better handling of gemfile scenarios
dchelimsky authored Apr 17, 2011
37 clobber` to delete all the code generated by the previous rails version.
Something went wrong with that request. Please try again.