aboutsummaryrefslogtreecommitdiffstats
path: root/src/demo_client.rb
diff options
context:
space:
mode:
authorKevin Redon <kevredon@mail.tsaitgaist.info>2013-12-18 14:40:44 +0100
committerKevin Redon <kevredon@mail.tsaitgaist.info>2013-12-18 14:40:44 +0100
commita771ba47bb6da1b1249c4b61ecbd06e44b54c474 (patch)
tree42748cdc9ce60c60f761c102637f02d95452e47b /src/demo_client.rb
parentfd6db3b79e4a7c5a99e49097d5e68b93f15e921e (diff)
updated 'require' statement to ruby's 2.0 'require_relative'
Diffstat (limited to 'src/demo_client.rb')
-rwxr-xr-xsrc/demo_client.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/demo_client.rb b/src/demo_client.rb
index 40cb1f3..c8c8911 100755
--- a/src/demo_client.rb
+++ b/src/demo_client.rb
@@ -19,10 +19,10 @@ along with sofSIM. If not, see <http://www.gnu.org/licenses/>.
Copyright (C) 2011 Kevin "tsaitgaist" Redon kevredon@mail.tsaitgaist.info
=end
# this programm will create a client which can be used to test servers
-require './sap/client.rb'
-require './lib/apdu.rb'
-require './info_client.rb'
-require './copy_client.rb'
+require_relative 'sap/client'
+require_relative 'lib/apdu'
+require_relative 'info_client'
+require_relative 'copy_client'
#=============
#== default ==
@@ -131,7 +131,7 @@ when "bt"
if @bt then
io = SerialPort.new(@bt)
else
- require './tools/bluetooth_sap_serial.rb'
+ require_relative 'tools/bluetooth_sap_serial'
bt = BluetoothSAPSerial.new
# using SerialPort because reading the File does not work (have to find right stty options)
io = SerialPort.new(bt.connect)