File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 5
5
# Note that changes in the inspected code, or installation of new
6
6
# versions of RuboCop, may require this file to be generated again.
7
7
8
- # Offense count: 2
9
- # Configuration parameters: AllowSafeAssignment.
10
- Lint/AssignmentInCondition :
11
- Enabled : false
12
-
13
8
# Offense count: 1
14
9
Lint/RescueException :
15
10
Enabled : false
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ def asplode(lib)
53
53
abort "-----\n Cannot find library dir(s) #{ lib } \n -----" unless lib && lib . split ( File ::PATH_SEPARATOR ) . any? { |dir | File . directory? ( dir ) }
54
54
warn "-----\n Using --with-mysql-dir=#{ File . dirname inc } \n -----"
55
55
rpath_dir = lib
56
- elsif mc = ( with_config ( 'mysql-config' ) || Dir [ GLOB ] . first )
56
+ elsif ( mc = ( with_config ( 'mysql-config' ) || Dir [ GLOB ] . first ) )
57
57
# If the user has provided a --with-mysql-config argument, we must respect it or fail.
58
58
# If the user gave --with-mysql-config with no argument means we should try to find it.
59
59
mc = Dir [ GLOB ] . first if mc == true
@@ -170,7 +170,7 @@ def asplode(lib)
170
170
warn "-----\n Setting mysql rpath to #{ explicit_rpath } \n -----"
171
171
$LDFLAGS << rpath_flags
172
172
else
173
- if libdir = rpath_dir [ %r{(-L)?(/[^ ]+)} , 2 ]
173
+ if ( libdir = rpath_dir [ %r{(-L)?(/[^ ]+)} , 2 ] )
174
174
rpath_flags = " -Wl,-rpath,#{ libdir } "
175
175
if RbConfig ::CONFIG [ "RPATHFLAG" ] . to_s . empty? && try_link ( 'int main() {return 0;}' , rpath_flags )
176
176
# Usually Ruby sets RPATHFLAG the right way for each system, but not on OS X.
You can’t perform that action at this time.
0 commit comments