diff options
author | Kevin Redon <kevredon@mail.tsaitgaist.info> | 2013-12-18 14:40:44 +0100 |
---|---|---|
committer | Kevin Redon <kevredon@mail.tsaitgaist.info> | 2013-12-18 14:40:44 +0100 |
commit | a771ba47bb6da1b1249c4b61ecbd06e44b54c474 (patch) | |
tree | 42748cdc9ce60c60f761c102637f02d95452e47b /src/demo_client.rb | |
parent | fd6db3b79e4a7c5a99e49097d5e68b93f15e921e (diff) |
updated 'require' statement to ruby's 2.0 'require_relative'
Diffstat (limited to 'src/demo_client.rb')
-rwxr-xr-x | src/demo_client.rb | 10 |
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) |