test/dummy/bin/setup in tasks_scheduler-0.3.0 vs test/dummy/bin/setup in tasks_scheduler-0.4.0
- old
+ new
@@ -1,9 +1,11 @@
#!/usr/bin/env ruby
+# frozen_string_literal: true
+
require 'pathname'
# path to your application root.
-APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
+APP_ROOT = Pathname.new File.expand_path('..', __dir__)
Dir.chdir APP_ROOT do
# This script is a starting point to setup your application.
# Add necessary setup steps to this file: