diff --git a/.rubocop.yml b/.rubocop.yml index 6d44e0976e..306aeb917d 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -2,6 +2,7 @@ # Check out: https://github.com/bbatsov/rubocop AllCops: + NewCops: enable DisplayCopNames: true TargetRubyVersion: 2.5 @@ -110,6 +111,9 @@ Layout/SpaceAroundMethodCallOperator: Lint/RaiseException: Enabled: true +Lint/EmptyInterpolation: + Enabled: false + Lint/StructNewOverride: Enabled: true diff --git a/Gemfile b/Gemfile index cc8b323dec..a0070ee102 100644 --- a/Gemfile +++ b/Gemfile @@ -12,32 +12,31 @@ gemspec # They must be defined here because of the way Travis CI works, in that it will only # bundle install from a single Gemfile. Therefore, all gems that we will need for any dummy/example # app have to be manually added to this file. -gem "bootsnap", ">= 1.1.0", require: false -gem "bootstrap-sass" -gem "jbuilder" -gem "jquery-rails" -gem "mini_racer" -gem "puma" -gem "rails_12factor" -gem "ruby-lint", require: false -gem "sass-rails" -gem "scss_lint", require: false -gem "sdoc", group: :doc -gem "spring" -gem "sprockets" -gem "sqlite3" -gem "turbolinks" -gem "uglifier" -gem "web-console", group: :development - -# below are copied from spec/dummy/Gemfile -gem "capybara" -gem "capybara-screenshot" -gem "launchy" -gem "rspec-rails" -gem "rspec-retry" -gem "selenium-webdriver" -gem "webpacker", ">= 5.2.1" - -gem "equivalent-xml", github: "mbklein/equivalent-xml" -gem "rainbow" +# gem "bootsnap", ">= 1.1.0", require: false +# gem "bootstrap-sass" +# gem "jbuilder" +# gem "jquery-rails" +# gem "mini_racer" +# gem "puma" +# gem "rails_12factor" +# gem "sass-rails" +# gem "scss_lint", require: false +# gem "sdoc", group: :doc +# gem "spring" +# gem "sprockets" +# gem "sqlite3" +# gem "turbolinks" +# gem "uglifier" +# gem "web-console", group: :development +# +# # below are copied from spec/dummy/Gemfile +# gem "capybara" +# gem "capybara-screenshot" +# gem "launchy" +# gem "rspec-rails" +# gem "rspec-retry" +# gem "selenium-webdriver" +# gem "webpacker", ">= 5.2.1" +# +# gem "equivalent-xml", github: "mbklein/equivalent-xml" +# gem "rainbow" diff --git a/lib/react_on_rails/test_helper/webpack_assets_compiler.rb b/lib/react_on_rails/test_helper/webpack_assets_compiler.rb index 644a533b6f..3da9e0fc3e 100644 --- a/lib/react_on_rails/test_helper/webpack_assets_compiler.rb +++ b/lib/react_on_rails/test_helper/webpack_assets_compiler.rb @@ -8,7 +8,7 @@ class WebpackAssetsCompiler def compile_assets if ReactOnRails.configuration.build_test_command.blank? msg = <<~MSG - You are using the React on Rails test helper. + You are using the React on Rails test helper. Either you used: ReactOnRails::TestHelper.configure_rspec_to_compile_assets or ReactOnRails::TestHelper.ensure_assets_compiled diff --git a/lib/react_on_rails/utils.rb b/lib/react_on_rails/utils.rb index 8c2495fb9b..b8eb5ac241 100644 --- a/lib/react_on_rails/utils.rb +++ b/lib/react_on_rails/utils.rb @@ -34,7 +34,7 @@ def self.wrap_message(msg, color = :red) end def self.object_to_boolean(value) - [true, "true", "yes", 1, "1", "t"].include?(value.class == String ? value.downcase : value) + [true, "true", "yes", 1, "1", "t"].include?(value.instance_of?(String) ? value.downcase : value) end def self.server_rendering_is_enabled? diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake index fdb53cce50..87b40ccfa6 100644 --- a/lib/tasks/assets.rake +++ b/lib/tasks/assets.rake @@ -40,10 +40,10 @@ end namespace :react_on_rails do namespace :assets do desc <<-DESC.strip_heredoc - Compile assets with webpack - Uses command defined with ReactOnRails.configuration.build_production_command - sh "#{ReactOnRails::Utils.prepend_cd_node_modules_directory('')}" - Note: This command is not automatically added to assets:precompile if the rails/webpacker + Compile assets with webpack + Uses command defined with ReactOnRails.configuration.build_production_command + sh "#{ReactOnRails::Utils.prepend_cd_node_modules_directory('')}" + Note: This command is not automatically added to assets:precompile if the rails/webpacker configuration file config/webpack/production.js exists. DESC task webpack: :locale do diff --git a/rakelib/docker.rake b/rakelib/docker.rake index 467569104a..6fb0ddaebf 100644 --- a/rakelib/docker.rake +++ b/rakelib/docker.rake @@ -6,11 +6,6 @@ namespace :docker do sh "docker-compose run lint rake lint:rubocop" end - desc "Run ruby-lint linter from docker" - task :ruby do - sh "docker-compose run lint rake lint:ruby" - end - desc "Run scss-lint linter from docker" task :scss do sh "docker-compose run lint rake lint:scss" diff --git a/rakelib/lint.rake b/rakelib/lint.rake index 17ca283e75..0ff9f738fe 100644 --- a/rakelib/lint.rake +++ b/rakelib/lint.rake @@ -10,12 +10,6 @@ namespace :lint do sh_in_dir(gem_root, "bundle exec rubocop .") end - desc "Run ruby-lint as shell" - task :ruby do - puts "See /ruby-lint.yml for what directories are included." - sh_in_dir(gem_root, "bundle exec ruby-lint .") - end - desc "Run scss-lint as shell" task :scss do sh_in_dir(gem_root, "bundle exec scss-lint spec/dummy/app/assets/stylesheets/") @@ -26,7 +20,7 @@ namespace :lint do sh_in_dir(gem_root, "yarn run eslint") end - desc "Run all eslint & rubocop linters. Skip ruby-lint and scss" + desc "Run all eslint & rubocop linters. Skip scss" task lint: %i[eslint rubocop] do puts "Completed all linting" end diff --git a/ruby-lint.yml b/ruby-lint.yml deleted file mode 100644 index d8556e4c74..0000000000 --- a/ruby-lint.yml +++ /dev/null @@ -1,25 +0,0 @@ -# Not currently using ruby-lint ---- -presenter: syntastic - -# Be sure to edit this per your project! -directories: - - app - - lib - - spec - -ignore_paths: - - client - - node_modules - - coverage - - examples - -analysis_classes: - # - argument_amount - - pedantics - - shadowing_variables - # Too many false positives for these - # - undefined_methods - # - undefined_variables - # - unused_variables - - useless_equality_checks diff --git a/spec/dummy/Gemfile b/spec/dummy/Gemfile index d111b8b79d..9d49beb8c9 100644 --- a/spec/dummy/Gemfile +++ b/spec/dummy/Gemfile @@ -41,7 +41,7 @@ gem "sdoc", group: :doc # Use Unicorn as the app server # gem 'unicorn' -gem "sprockets", "~>3.0" +gem "sprockets" # Use Capistrano for deployment # gem 'capistrano-rails', group: :development @@ -55,8 +55,7 @@ group :development, :test do gem "pry-doc" gem "pry-rails" gem "pry-rescue" - gem "rubocop", require: false - gem "ruby-lint", require: false + gem "rubocop", "0.93.1", require: false gem "scss_lint", require: false # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring diff --git a/spec/dummy/Gemfile.lock b/spec/dummy/Gemfile.lock index ce47ead5ec..ec45eb5a60 100644 --- a/spec/dummy/Gemfile.lock +++ b/spec/dummy/Gemfile.lock @@ -151,7 +151,7 @@ GEM nokogiri (1.10.10) mini_portile2 (~> 2.4.0) parallel (1.19.2) - parser (2.7.1.5) + parser (2.7.2.0) ast (~> 2.4.1) pry (0.13.1) coderay (~> 1.1) @@ -207,7 +207,7 @@ GEM rb-inotify (0.10.1) ffi (~> 1.0) rdoc (6.2.1) - regexp_parser (1.8.1) + regexp_parser (1.8.2) rexml (3.2.4) rspec-core (3.9.2) rspec-support (~> 3.9.3) @@ -230,20 +230,17 @@ GEM rspec-support (3.9.3) rspec_junit_formatter (0.4.1) rspec-core (>= 2, < 4, != 2.12.0) - rubocop (0.92.0) + rubocop (0.93.1) parallel (~> 1.10) parser (>= 2.7.1.5) rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.7) + regexp_parser (>= 1.8) rexml - rubocop-ast (>= 0.5.0) + rubocop-ast (>= 0.6.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 1.4.0, < 2.0) - rubocop-ast (0.7.1) + rubocop-ast (1.0.1) parser (>= 2.7.1.5) - ruby-lint (2.3.1) - parser (~> 2.2) - slop (~> 3.4, >= 3.4.7) ruby-progressbar (1.10.1) rubyzip (1.3.0) sass (3.7.4) @@ -274,7 +271,6 @@ GEM json (>= 1.8, < 3) simplecov-html (~> 0.10.0) simplecov-html (0.10.2) - slop (3.6.0) spring (2.1.1) sprockets (3.7.2) concurrent-ruby (~> 1.0) @@ -345,14 +341,13 @@ DEPENDENCIES rspec-rails rspec-retry rspec_junit_formatter - rubocop - ruby-lint + rubocop (= 0.93.1) sass-rails scss_lint sdoc selenium-webdriver spring - sprockets (~> 3.0) + sprockets sqlite3 turbolinks uglifier diff --git a/spec/dummy/bin/bundle b/spec/dummy/bin/bundle index 66e9889e8b..5015ba6f8b 100755 --- a/spec/dummy/bin/bundle +++ b/spec/dummy/bin/bundle @@ -1,3 +1,5 @@ #!/usr/bin/env ruby -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) -load Gem.bin_path('bundler', 'bundle') +# frozen_string_literal: true + +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) +load Gem.bin_path("bundler", "bundle") diff --git a/spec/dummy/bin/bundler b/spec/dummy/bin/bundler index 72c62ec0b5..876ae68307 100755 --- a/spec/dummy/bin/bundler +++ b/spec/dummy/bin/bundler @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('bundler', 'bundler') +load Gem.bin_path("bundler", "bundler") diff --git a/spec/dummy/bin/byebug b/spec/dummy/bin/byebug index 168cef39c4..ad63f990b2 100755 --- a/spec/dummy/bin/byebug +++ b/spec/dummy/bin/byebug @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('byebug', 'byebug') +load Gem.bin_path("byebug", "byebug") diff --git a/spec/dummy/bin/cdiff b/spec/dummy/bin/cdiff index 066279d26a..5cdf7f8eab 100755 --- a/spec/dummy/bin/cdiff +++ b/spec/dummy/bin/cdiff @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('term-ansicolor', 'cdiff') +load Gem.bin_path("term-ansicolor", "cdiff") diff --git a/spec/dummy/bin/chromedriver b/spec/dummy/bin/chromedriver index 2f538aad88..eee16535fe 100755 --- a/spec/dummy/bin/chromedriver +++ b/spec/dummy/bin/chromedriver @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('chromedriver-helper', 'chromedriver') +load Gem.bin_path("chromedriver-helper", "chromedriver") diff --git a/spec/dummy/bin/chromedriver-update b/spec/dummy/bin/chromedriver-update index 478b304843..6e7ffdc0e1 100755 --- a/spec/dummy/bin/chromedriver-update +++ b/spec/dummy/bin/chromedriver-update @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('chromedriver-helper', 'chromedriver-update') +load Gem.bin_path("chromedriver-helper", "chromedriver-update") diff --git a/spec/dummy/bin/coderay b/spec/dummy/bin/coderay index 5be1c00953..565f341fdc 100755 --- a/spec/dummy/bin/coderay +++ b/spec/dummy/bin/coderay @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('coderay', 'coderay') +load Gem.bin_path("coderay", "coderay") diff --git a/spec/dummy/bin/colortab b/spec/dummy/bin/colortab index 195df76fe4..fdd79747c4 100755 --- a/spec/dummy/bin/colortab +++ b/spec/dummy/bin/colortab @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('term-ansicolor', 'colortab') +load Gem.bin_path("term-ansicolor", "colortab") diff --git a/spec/dummy/bin/coveralls b/spec/dummy/bin/coveralls index 5a8ac811e5..557aeed4df 100755 --- a/spec/dummy/bin/coveralls +++ b/spec/dummy/bin/coveralls @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('coveralls', 'coveralls') +load Gem.bin_path("coveralls", "coveralls") diff --git a/spec/dummy/bin/decolor b/spec/dummy/bin/decolor index 214e8d18cd..2586b78fd8 100755 --- a/spec/dummy/bin/decolor +++ b/spec/dummy/bin/decolor @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('term-ansicolor', 'decolor') +load Gem.bin_path("term-ansicolor", "decolor") diff --git a/spec/dummy/bin/erubis b/spec/dummy/bin/erubis index 2c7348b8b3..7265ec892d 100755 --- a/spec/dummy/bin/erubis +++ b/spec/dummy/bin/erubis @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('erubis', 'erubis') +load Gem.bin_path("erubis", "erubis") diff --git a/spec/dummy/bin/htmldiff b/spec/dummy/bin/htmldiff index c70e238dc2..c1c188c484 100755 --- a/spec/dummy/bin/htmldiff +++ b/spec/dummy/bin/htmldiff @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('diff-lcs', 'htmldiff') +load Gem.bin_path("diff-lcs", "htmldiff") diff --git a/spec/dummy/bin/kill-pry-rescue b/spec/dummy/bin/kill-pry-rescue index 0a9c76c47c..f331658e2f 100755 --- a/spec/dummy/bin/kill-pry-rescue +++ b/spec/dummy/bin/kill-pry-rescue @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('pry-rescue', 'kill-pry-rescue') +load Gem.bin_path("pry-rescue", "kill-pry-rescue") diff --git a/spec/dummy/bin/launchy b/spec/dummy/bin/launchy index 92b254ad91..cb13b98cd0 100755 --- a/spec/dummy/bin/launchy +++ b/spec/dummy/bin/launchy @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('launchy', 'launchy') +load Gem.bin_path("launchy", "launchy") diff --git a/spec/dummy/bin/ldiff b/spec/dummy/bin/ldiff index 8e3524a92e..e48cdda664 100755 --- a/spec/dummy/bin/ldiff +++ b/spec/dummy/bin/ldiff @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('diff-lcs', 'ldiff') +load Gem.bin_path("diff-lcs", "ldiff") diff --git a/spec/dummy/bin/nokogiri b/spec/dummy/bin/nokogiri index d55f84b057..04da78e1c7 100755 --- a/spec/dummy/bin/nokogiri +++ b/spec/dummy/bin/nokogiri @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('nokogiri', 'nokogiri') +load Gem.bin_path("nokogiri", "nokogiri") diff --git a/spec/dummy/bin/pry b/spec/dummy/bin/pry index 54678a32c5..c2d7321f73 100755 --- a/spec/dummy/bin/pry +++ b/spec/dummy/bin/pry @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('pry', 'pry') +load Gem.bin_path("pry", "pry") diff --git a/spec/dummy/bin/rackup b/spec/dummy/bin/rackup index 8cc9953e5c..2cb77790b4 100755 --- a/spec/dummy/bin/rackup +++ b/spec/dummy/bin/rackup @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('rack', 'rackup') +load Gem.bin_path("rack", "rackup") diff --git a/spec/dummy/bin/rails b/spec/dummy/bin/rails index 5191e6927a..22f2d8deee 100755 --- a/spec/dummy/bin/rails +++ b/spec/dummy/bin/rails @@ -1,4 +1,6 @@ #!/usr/bin/env ruby -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' +# frozen_string_literal: true + +APP_PATH = File.expand_path("../config/application", __dir__) +require_relative "../config/boot" +require "rails/commands" diff --git a/spec/dummy/bin/rake b/spec/dummy/bin/rake index 17240489f6..e436ea54a1 100755 --- a/spec/dummy/bin/rake +++ b/spec/dummy/bin/rake @@ -1,4 +1,6 @@ #!/usr/bin/env ruby -require_relative '../config/boot' -require 'rake' +# frozen_string_literal: true + +require_relative "../config/boot" +require "rake" Rake.application.run diff --git a/spec/dummy/bin/rdoc b/spec/dummy/bin/rdoc index f57260f36e..78d3bf559b 100755 --- a/spec/dummy/bin/rdoc +++ b/spec/dummy/bin/rdoc @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('rdoc', 'rdoc') +load Gem.bin_path("rdoc", "rdoc") diff --git a/spec/dummy/bin/rescue b/spec/dummy/bin/rescue index 0ac42cc308..4f2e23ab16 100755 --- a/spec/dummy/bin/rescue +++ b/spec/dummy/bin/rescue @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('pry-rescue', 'rescue') +load Gem.bin_path("pry-rescue", "rescue") diff --git a/spec/dummy/bin/restclient b/spec/dummy/bin/restclient index 4d7bdcf92f..f00d6a3645 100755 --- a/spec/dummy/bin/restclient +++ b/spec/dummy/bin/restclient @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('rest-client', 'restclient') +load Gem.bin_path("rest-client", "restclient") diff --git a/spec/dummy/bin/ri b/spec/dummy/bin/ri index 90f2517da4..4b18851e17 100755 --- a/spec/dummy/bin/ri +++ b/spec/dummy/bin/ri @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('rdoc', 'ri') +load Gem.bin_path("rdoc", "ri") diff --git a/spec/dummy/bin/rspec b/spec/dummy/bin/rspec index 0c86b5c6fa..f62cd801dc 100755 --- a/spec/dummy/bin/rspec +++ b/spec/dummy/bin/rspec @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('rspec-core', 'rspec') +load Gem.bin_path("rspec-core", "rspec") diff --git a/spec/dummy/bin/rubocop b/spec/dummy/bin/rubocop index a8a38b7819..c290dcb67d 100755 --- a/spec/dummy/bin/rubocop +++ b/spec/dummy/bin/rubocop @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('rubocop', 'rubocop') +load Gem.bin_path("rubocop", "rubocop") diff --git a/spec/dummy/bin/ruby-lint b/spec/dummy/bin/ruby-lint deleted file mode 100755 index 62561ce051..0000000000 --- a/spec/dummy/bin/ruby-lint +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env ruby -# -# This file was generated by Bundler. -# -# The application 'ruby-lint' is installed as part of a gem, and -# this file is here to facilitate running it. -# - -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) - -require 'rubygems' -require 'bundler/setup' - -load Gem.bin_path('ruby-lint', 'ruby-lint') diff --git a/spec/dummy/bin/ruby-parse b/spec/dummy/bin/ruby-parse index 757c56c93e..1476953207 100755 --- a/spec/dummy/bin/ruby-parse +++ b/spec/dummy/bin/ruby-parse @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('parser', 'ruby-parse') +load Gem.bin_path("parser", "ruby-parse") diff --git a/spec/dummy/bin/ruby-rewrite b/spec/dummy/bin/ruby-rewrite index f686c65f17..0c3b9da603 100755 --- a/spec/dummy/bin/ruby-rewrite +++ b/spec/dummy/bin/ruby-rewrite @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('parser', 'ruby-rewrite') +load Gem.bin_path("parser", "ruby-rewrite") diff --git a/spec/dummy/bin/sass b/spec/dummy/bin/sass index d65bb10a3b..4cea8eab87 100755 --- a/spec/dummy/bin/sass +++ b/spec/dummy/bin/sass @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('sass', 'sass') +load Gem.bin_path("sass", "sass") diff --git a/spec/dummy/bin/sass-convert b/spec/dummy/bin/sass-convert index ddde743f33..ee32ccf628 100755 --- a/spec/dummy/bin/sass-convert +++ b/spec/dummy/bin/sass-convert @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('sass', 'sass-convert') +load Gem.bin_path("sass", "sass-convert") diff --git a/spec/dummy/bin/scss b/spec/dummy/bin/scss index 9f5e435d63..4dd2d6e9dd 100755 --- a/spec/dummy/bin/scss +++ b/spec/dummy/bin/scss @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('sass', 'scss') +load Gem.bin_path("sass", "scss") diff --git a/spec/dummy/bin/scss-lint b/spec/dummy/bin/scss-lint index 110639c4ba..33f78d5870 100755 --- a/spec/dummy/bin/scss-lint +++ b/spec/dummy/bin/scss-lint @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('scss_lint', 'scss-lint') +load Gem.bin_path("scss_lint", "scss-lint") diff --git a/spec/dummy/bin/sdoc b/spec/dummy/bin/sdoc index 9da297e687..c27eaa2a4f 100755 --- a/spec/dummy/bin/sdoc +++ b/spec/dummy/bin/sdoc @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('sdoc', 'sdoc') +load Gem.bin_path("sdoc", "sdoc") diff --git a/spec/dummy/bin/sdoc-merge b/spec/dummy/bin/sdoc-merge index e29a7d951b..138af657aa 100755 --- a/spec/dummy/bin/sdoc-merge +++ b/spec/dummy/bin/sdoc-merge @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('sdoc', 'sdoc-merge') +load Gem.bin_path("sdoc", "sdoc-merge") diff --git a/spec/dummy/bin/setup b/spec/dummy/bin/setup index acdb2c1389..71d8493925 100755 --- a/spec/dummy/bin/setup +++ b/spec/dummy/bin/setup @@ -1,8 +1,10 @@ #!/usr/bin/env ruby -require 'pathname' +# 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. diff --git a/spec/dummy/bin/spring b/spec/dummy/bin/spring index 38fee6fb93..561935c038 100755 --- a/spec/dummy/bin/spring +++ b/spec/dummy/bin/spring @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('spring', 'spring') +load Gem.bin_path("spring", "spring") diff --git a/spec/dummy/bin/sprockets b/spec/dummy/bin/sprockets index 09a1ad185a..c737b4228f 100755 --- a/spec/dummy/bin/sprockets +++ b/spec/dummy/bin/sprockets @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('sprockets', 'sprockets') +load Gem.bin_path("sprockets", "sprockets") diff --git a/spec/dummy/bin/term_display b/spec/dummy/bin/term_display index d65c316bae..f95f48882c 100755 --- a/spec/dummy/bin/term_display +++ b/spec/dummy/bin/term_display @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('term-ansicolor', 'term_display') +load Gem.bin_path("term-ansicolor", "term_display") diff --git a/spec/dummy/bin/term_mandel b/spec/dummy/bin/term_mandel index c7dd35e683..eef9545608 100755 --- a/spec/dummy/bin/term_mandel +++ b/spec/dummy/bin/term_mandel @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('term-ansicolor', 'term_mandel') +load Gem.bin_path("term-ansicolor", "term_mandel") diff --git a/spec/dummy/bin/thor b/spec/dummy/bin/thor index 8421e001ea..4dd6d33698 100755 --- a/spec/dummy/bin/thor +++ b/spec/dummy/bin/thor @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('thor', 'thor') +load Gem.bin_path("thor", "thor") diff --git a/spec/dummy/bin/tilt b/spec/dummy/bin/tilt index 09fe73eb3f..c3c12ab0bb 100755 --- a/spec/dummy/bin/tilt +++ b/spec/dummy/bin/tilt @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('tilt', 'tilt') +load Gem.bin_path("tilt", "tilt") diff --git a/spec/dummy/bin/webpack b/spec/dummy/bin/webpack index 0f1b9157ee..1d36bc6edd 100755 --- a/spec/dummy/bin/webpack +++ b/spec/dummy/bin/webpack @@ -1,11 +1,12 @@ #!/usr/bin/env ruby +# frozen_string_literal: true ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development" ENV["NODE_ENV"] ||= "development" require "pathname" ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) + Pathname.new(__FILE__).realpath) require "bundler/setup" diff --git a/spec/dummy/bin/webpack-dev-server b/spec/dummy/bin/webpack-dev-server index bfd6a9c9f1..967db5aa8f 100755 --- a/spec/dummy/bin/webpack-dev-server +++ b/spec/dummy/bin/webpack-dev-server @@ -1,10 +1,11 @@ #!/usr/bin/env ruby +# frozen_string_literal: true ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development" ENV["NODE_ENV"] ||= "development" require "pathname" ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) + Pathname.new(__FILE__).realpath) require "bundler/setup" diff --git a/spec/dummy/bin/yard b/spec/dummy/bin/yard index bd489a8295..b0f114d875 100755 --- a/spec/dummy/bin/yard +++ b/spec/dummy/bin/yard @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('yard', 'yard') +load Gem.bin_path("yard", "yard") diff --git a/spec/dummy/bin/yardoc b/spec/dummy/bin/yardoc index 43eff6b0a5..befb8b7c66 100755 --- a/spec/dummy/bin/yardoc +++ b/spec/dummy/bin/yardoc @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('yard', 'yardoc') +load Gem.bin_path("yard", "yardoc") diff --git a/spec/dummy/bin/yri b/spec/dummy/bin/yri index 05f2461171..d599e3d413 100755 --- a/spec/dummy/bin/yri +++ b/spec/dummy/bin/yri @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # # This file was generated by Bundler. # @@ -6,11 +8,11 @@ # this file is here to facilitate running it. # -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -require 'rubygems' -require 'bundler/setup' +require "rubygems" +require "bundler/setup" -load Gem.bin_path('yard', 'yri') +load Gem.bin_path("yard", "yri")