File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 3
3
4
4
def already_installed ( dep )
5
5
!Gem ::DependencyInstaller . new ( :domain => :local ) . find_gems_with_sources ( dep ) . empty? ||
6
- !Gem ::DependencyInstaller . new ( :domain => :local , :prerelease => true ) . find_gems_with_sources ( dep ) . empty?
6
+ !Gem ::DependencyInstaller . new ( :domain => :local , :prerelease => true ) . find_gems_with_sources ( dep ) . empty?
7
+ end
8
+
9
+ def debase_installed
10
+ Gem ::Specification . find_by_name ( 'debase' )
7
11
end
8
12
9
13
unless jruby || rbx
@@ -14,15 +18,17 @@ def already_installed(dep)
14
18
15
19
begin
16
20
Gem ::Command . build_args = ARGV
17
- rescue NoMethodError
21
+ rescue NoMethodError
18
22
end
19
23
20
24
if RUBY_VERSION < "1.9"
21
25
dep = Gem ::Dependency . new ( "ruby-debug-base" , '>=0.10.4' )
22
26
elsif RUBY_VERSION < '2.0'
23
27
dep = Gem ::Dependency . new ( "ruby-debug-base19x" , '>=0.11.30.pre15' )
24
- else
28
+ else
25
29
dep = Gem ::Dependency . new ( "debase" , '> 0' )
30
+
31
+ return unless debase_installed
26
32
end
27
33
28
34
begin
You can’t perform that action at this time.
0 commit comments