File tree Expand file tree Collapse file tree 4 files changed +12
-30
lines changed Expand file tree Collapse file tree 4 files changed +12
-30
lines changed Original file line number Diff line number Diff line change 2
2
doc
3
3
pkg
4
4
vendor
5
- .bundle
6
5
* .gem
7
6
Gemfile
8
7
Gemfile.lock
Original file line number Diff line number Diff line change 1
- script : " rake ci --trace 2>&1"
1
+ script : " rake --trace 2>&1"
2
2
rvm :
3
3
- 1.8.7
4
4
- 1.9.1
5
5
- 1.9.2
6
6
gemfile :
7
- - gemfiles/rails-3.0.6
8
- - gemfiles/rails-3-0-stable
9
- - gemfiles/rails-master
7
+ - $PWD/ gemfiles/rails-3.0.7
8
+ - $PWD/ gemfiles/rails-3-0-stable
9
+ - $PWD/ gemfiles/rails-master
10
10
env :
11
11
- USE_GIT_REPOS=true
Original file line number Diff line number Diff line change 1
- unless File . exist? ( "./.gemfile" )
2
- warn <<-MESSAGE
3
- =============================================================================
4
- You must set the version of rails you want to run against. The simplest way
5
- to accomplish this is to install thor (if you don't already have it) and run:
6
-
7
- thor rails:use 3.0.6
8
-
9
- You can use any of the following versions/branches:
10
-
11
- 3.0.0 .. 3.0.6
12
- master
13
- 3-0-stable
14
-
15
- See the README_DEV.md file for more information.
16
- =============================================================================
17
-
18
- MESSAGE
19
- exit 1
20
- end
21
-
22
1
require 'pathname'
23
2
ENV [ "BUNDLE_GEMFILE" ] ||= begin
24
3
version = if File . exist? ( "./.gemfile" )
25
4
File . read ( "./.gemfile" ) . chomp
26
5
else
27
- "rails-3.0.6 "
6
+ "rails-3.0.7 "
28
7
end
29
8
File . expand_path ( "../gemfiles/#{ version } " , __FILE__ )
30
9
end
@@ -83,10 +62,12 @@ namespace :generate do
83
62
desc "generate a fresh app with rspec installed"
84
63
task :app do |t |
85
64
unless File . directory? ( './tmp/example_app' )
86
- sh "bin/ rails new ./tmp/example_app"
65
+ sh "rails new ./tmp/example_app"
87
66
bindir = File . expand_path ( "gemfiles/bin" )
88
- Dir . chdir ( "./tmp/example_app" ) do
89
- sh "ln -s #{ bindir } "
67
+ if test ?d, bindir
68
+ Dir . chdir ( "./tmp/example_app" ) do
69
+ sh "ln -s #{ bindir } "
70
+ end
90
71
end
91
72
end
92
73
end
Original file line number Diff line number Diff line change
1
+ ---
2
+ BUNDLE_BIN: bin
You can’t perform that action at this time.
0 commit comments