summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJared Norman <jared@super.gd>2020-07-07 18:30:11 -0700
committerJared Norman <jared@super.gd>2020-07-14 13:07:55 -0700
commitc170aa6c7e82560747e252682852984d2e8fdba0 (patch)
tree61c1019cadb134fec4f34ffc3680c933826eeba9 /bin
parent15e30c62c721bd6f5e17dcd3d2f610f4b164269c (diff)
Run project through standardrb
Diffstat (limited to 'bin')
-rwxr-xr-xbin/rails-engine12
-rwxr-xr-xbin/rails-sandbox8
2 files changed, 10 insertions, 10 deletions
diff --git a/bin/rails-engine b/bin/rails-engine
index 3684b30..5853e4d 100755
--- a/bin/rails-engine
+++ b/bin/rails-engine
@@ -2,12 +2,12 @@
# This command will automatically be run when you run "rails" with Rails gems
# installed from the root of your application.
-ENGINE_ROOT = File.expand_path('..', __dir__)
-ENGINE_PATH = File.expand_path('../lib/solidus_taxjar/engine', __dir__)
+ENGINE_ROOT = File.expand_path("..", __dir__)
+ENGINE_PATH = File.expand_path("../lib/solidus_taxjar/engine", __dir__)
# Set up gems listed in the Gemfile.
-ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
-require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
+ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
+require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"])
-require 'rails/all'
-require 'rails/engine/commands'
+require "rails/all"
+require "rails/engine/commands"
diff --git a/bin/rails-sandbox b/bin/rails-sandbox
index c89b2ae..78020af 100755
--- a/bin/rails-sandbox
+++ b/bin/rails-sandbox
@@ -1,16 +1,16 @@
#!/usr/bin/env ruby
-app_root = 'sandbox'
+app_root = "sandbox"
unless File.exist? "#{app_root}/bin/rails"
- warn 'Creating the sandbox app...'
+ warn "Creating the sandbox app..."
Dir.chdir "#{__dir__}/.." do
system "#{__dir__}/sandbox" or begin # rubocop:disable Style/AndOr
- warn 'Automatic creation of the sandbox app failed'
+ warn "Automatic creation of the sandbox app failed"
exit 1
end
end
end
Dir.chdir app_root
-exec 'bin/rails', *ARGV
+exec "bin/rails", *ARGV