Skip to content

Commit cab05c1

Browse files
committed
Apply manual corrections
1 parent 3ae4fd1 commit cab05c1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ext/tiny_tds/extconf.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33

44
if ENV["MAINTAINER_MODE"]
55
warn "Maintainer mode enabled."
6-
$CFLAGS <<
6+
$CFLAGS << # standard:disable Style/GlobalVars
77
" -Wall" \
88
" -ggdb" \
99
" -DDEBUG" \
1010
" -pedantic"
11-
$LDFLAGS <<
11+
$LDFLAGS << # standard:disable Style/GlobalVars
1212
" -ggdb"
1313
end
1414

15-
if gem_platform = with_config("cross-build")
15+
if (gem_platform = with_config("cross-build"))
1616
require "mini_portile2"
1717

1818
openssl_platform = with_config("openssl-platform")
@@ -122,7 +122,7 @@ def configure_defaults
122122
end
123123

124124
# enable relative path to later load the FreeTDS shared library
125-
$LDFLAGS << " '-Wl,-rpath=$$ORIGIN/../../../ports/#{gem_platform}/lib'"
125+
$LDFLAGS << " '-Wl,-rpath=$$ORIGIN/../../../ports/#{gem_platform}/lib'" # standard:disable Style/GlobalVars
126126

127127
dir_config("freetds", "#{freetds_recipe.path}/include", "#{freetds_recipe.path}/lib")
128128
else

test/thread_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class ThreadTest < TinyTds::TestCase
4646
@pool.with do |client|
4747
result = client.execute "select dbname()"
4848
result.each { |r| puts r }
49-
rescue Exception => _e
49+
rescue => _e
5050
# We are throwing an error on purpose here since 0.6.1 would
5151
# segfault on errors thrown in threads
5252
end

0 commit comments

Comments
 (0)