diff options
| author | Tom Black <[email protected]> | 2018-10-30 15:55:09 -0400 |
|---|---|---|
| committer | Tom Black <[email protected]> | 2018-10-30 15:55:09 -0400 |
| commit | fd8b90bd1d5e874f0402af069fd7dd266b68532f (patch) | |
| tree | c5a42bfd92e00ecc8085f7cef0cb5ec5b5bab8b3 /bin | |
| parent | bbd56099ebb359db02c8344b8af42e0bd1b7a835 (diff) | |
| download | ruby2d-fd8b90bd1d5e874f0402af069fd7dd266b68532f.tar.gz ruby2d-fd8b90bd1d5e874f0402af069fd7dd266b68532f.zip | |
Fix deprecation warnings
Also use `-w` flag when running MRI tests
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/ruby2d | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -36,7 +36,7 @@ def check_build_src_file(rb_file) if !rb_file puts "Please provide a Ruby file to build" exit - elsif !File.exists? rb_file + elsif !File.exist? rb_file puts "Can't find file: #{rb_file}" exit end @@ -155,7 +155,7 @@ def build_apple(rb_file, device) check_build_src_file(rb_file) # Check for Simple 2D framework, - unless File.exists?('/usr/local/Frameworks/Simple2D/iOS/Simple2D.framework') && File.exists?('/usr/local/Frameworks/Simple2D/tvOS/Simple2D.framework') + unless File.exist?('/usr/local/Frameworks/Simple2D/iOS/Simple2D.framework') && File.exist?('/usr/local/Frameworks/Simple2D/tvOS/Simple2D.framework') puts "#{'Error:'.error} Simple 2D iOS and tvOS frameworks not found. Install them and try again.\n" exit end @@ -220,7 +220,7 @@ end # Launch a native app def launch_native - if !File.exists? 'build/app' + if !File.exist? 'build/app' puts "No native app built!" exit end @@ -230,7 +230,7 @@ end # Launch a web app def launch_web - if !File.exists? 'build/app.html' + if !File.exist? 'build/app.html' puts "No web app built!" exit end @@ -249,7 +249,7 @@ end def launch_apple(device) case device when 'ios' - if !File.exists? 'build/ios/build/Release-iphonesimulator/MyApp.app' + if !File.exist? 'build/ios/build/Release-iphonesimulator/MyApp.app' puts "No iOS app built!" exit end @@ -257,7 +257,7 @@ def launch_apple(device) simple2d simulator --install "build/ios/build/Release-iphonesimulator/MyApp.app" && simple2d simulator --launch "Ruby2D.MyApp"` when 'tvos' - if !File.exists? 'build/tvos/build/Release-appletvsimulator/MyApp.app' + if !File.exist? 'build/tvos/build/Release-appletvsimulator/MyApp.app' puts "No tvOS app built!" exit end |
