You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Rakefile
+23-21Lines changed: 23 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,15 @@
1
+
defexit_exception(e)
2
+
$stderr.putse.message
3
+
exite.status_code
4
+
end
5
+
1
6
# Note : this causes annoying psych warnings under Ruby 1.9.2-p180; to fix, upgrade to 1.9.3
2
7
begin
3
8
require'bundler'
4
9
Bundler.setup(:default,:development)
5
10
rescueBundler::BundlerError=>e
6
-
$stderr.putse.message
7
-
$stderr.puts"Run `bundle install` to install missing gems"
8
-
exite.status_code
11
+
$stderr.puts'Run `bundle install` to install missing gems'
12
+
exit_exception(e)
9
13
end
10
14
11
15
using_dsl=false
@@ -14,18 +18,16 @@ begin
14
18
using_dsl=true
15
19
rescueException=>e
16
20
# We might just be on an old version of Rake...
21
+
exit_exception(e)
17
22
end
18
23
require'rake'
19
-
if(using_dsl)
20
-
includeRake::DSL
21
-
end
24
+
includeRake::DSLifusing_dsl
22
25
23
-
require"./lib/annotate"
24
-
25
-
require"mg"
26
+
require'./lib/annotate'
27
+
require'mg'
26
28
begin
27
29
MG.new("annotate.gemspec")
28
-
rescueException=>e
30
+
rescueException
29
31
STDERR.puts("WARNING: Couldn't read gemspec. As such, a number of tasks may be unavailable to you until you run 'rake gem:gemspec' to correct the issue.")
30
32
# Gemspec is probably in a broken state, so let's give ourselves a chance to
31
33
# build a new one...
@@ -88,7 +90,7 @@ namespace :jeweler do
88
90
FileUtils.rm_f("pkg")
89
91
end
90
92
end
91
-
task:clobber=>:'jeweler:clobber'
93
+
taskclobber::'jeweler:clobber'
92
94
93
95
require"rspec/core/rake_task"# RSpec 2.0
94
96
RSpec::Core::RakeTask.new(:spec)do |t|
@@ -111,7 +113,7 @@ namespace :gemsets do
111
113
end
112
114
end
113
115
end
114
-
task:clobber=>:'gemsets:empty'
116
+
taskclobber::'gemsets:empty'
115
117
116
118
namespace:integrationdo
117
119
desc"Remove any cruft generated by manual debugging runs which is .gitignore'd."
@@ -120,19 +122,19 @@ namespace :integration do
120
122
end
121
123
122
124
desc"Reset any changed files, and remove any untracked files in spec/integration/*/, plus run integration:clean."
0 commit comments