I use an IDE called DSP Robotics Flowstone v3.0.8.1 in which I run Ruby v1.9.3. When I run the following Ruby command in the IDE, it works perfectly fine, but the moment I export the code as an *.exe
file, the require 'randomsecure'
instruction seems to NOT find the randomsecure.rb
file on my Windows 10 Pro PC as it doesn't function at all:
require 'c:\Program Files (x86)\Dunbot Software\Unique Random Code Generators\securerandom'
output 0, SecureRandom.urlsafe_base64(25,true)
Why does this works in the IDE, but not when exported as an *.exe
file?
NOTE: When exported as an *.exe
, the *.exe
file as well as the securerandom.rb
file are still in the exact same directory as the original *.fsm
file that worked in the IDE.