Skip to content

Commit 5f76c67

Browse files
committed
rubocop -A
1 parent 1823c31 commit 5f76c67

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

bin/ci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ require_relative "../config/boot"
33
require "active_support/continuous_integration"
44

55
CI = ActiveSupport::ContinuousIntegration
6-
require_relative "../config/ci.rb"
6+
require_relative "../config/ci"

bin/pnpm

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
APP_ROOT = File.expand_path("..", __dir__)
44
Dir.chdir(APP_ROOT) do
55
pnpm = ENV.fetch("PATH", "")
6-
.split(File::PATH_SEPARATOR)
7-
.select { |dir| File.expand_path(dir) != __dir__ }
8-
.product(["pnpm", "pnpm.cmd", "pnpm.ps1", "pnpm.exe"])
9-
.map { |dir, file| File.expand_path(file, dir) }
10-
.find { |file| File.executable?(file) }
6+
.split(File::PATH_SEPARATOR)
7+
.select { |dir| File.expand_path(dir) != __dir__ }
8+
.product(["pnpm", "pnpm.cmd", "pnpm.ps1", "pnpm.exe"])
9+
.map { |dir, file| File.expand_path(file, dir) }
10+
.find { |file| File.executable?(file) }
1111

1212
if pnpm
1313
exec pnpm, *ARGV
1414
else
15-
$stderr.puts "pnpm executable was not detected in the system."
16-
$stderr.puts "Install pnpm by following https://pnpm.io/installation"
15+
warn "pnpm executable was not detected in the system."
16+
warn "Install pnpm by following https://pnpm.io/installation"
1717
exit 1
1818
end
1919
end

bin/setup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ FileUtils.chdir APP_ROOT do
3434

3535
unless ARGV.include?("--skip-server")
3636
puts "\n== Starting development server =="
37-
STDOUT.flush # flush the output before exec(2) so that it displays
37+
$stdout.flush # flush the output before exec(2) so that it displays
3838
exec "bin/dev"
3939
end
4040
end

bin/yarn

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
APP_ROOT = File.expand_path("..", __dir__)
44
Dir.chdir(APP_ROOT) do
5-
$stderr.puts "Yarn is no longer used in this project. Forwarding to pnpm..."
5+
warn "Yarn is no longer used in this project. Forwarding to pnpm..."
66
exec File.expand_path("pnpm", __dir__), *ARGV
77
rescue Errno::ENOENT
8-
$stderr.puts "pnpm executable was not detected in the system."
9-
$stderr.puts "Install pnpm by following https://pnpm.io/installation"
8+
warn "pnpm executable was not detected in the system."
9+
warn "Install pnpm by following https://pnpm.io/installation"
1010
exit 1
1111
end

0 commit comments

Comments
 (0)