Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frozen string literal support #409

Merged
merged 1 commit into from Jan 3, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions .rubocop.yml
Expand Up @@ -28,6 +28,10 @@ Metrics/PerceivedComplexity:
TrivialAccessors:
ExactNameMatch: true

# Until we bump TargetRubyVersion to 2.3
Style/FrozenStringLiteralComment:
EnforcedStyle: always

Style/ModuleFunction:
EnforcedStyle: extend_self

Expand Down
2 changes: 2 additions & 0 deletions Gemfile
@@ -1,3 +1,5 @@
# frozen_string_literal: true

source "https://rubygems.org"

gemspec
Expand Down
2 changes: 2 additions & 0 deletions Rakefile
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "bundler/gem_tasks"
require "chandler/tasks"
require "rake/extensiontask"
Expand Down
1 change: 1 addition & 0 deletions bin/byebug
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

$LOAD_PATH.unshift(File.expand_path(File.join("..", "lib"), __dir__))

Expand Down
2 changes: 2 additions & 0 deletions byebug.gemspec
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require File.join(__dir__, "lib", "byebug", "version")

Gem::Specification.new do |s|
Expand Down
2 changes: 2 additions & 0 deletions ext/byebug/extconf.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "mkmf"

makefile_config = RbConfig::MAKEFILE_CONFIG
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug.rb
@@ -1 +1,3 @@
# frozen_string_literal: true

require "byebug/attacher"
2 changes: 2 additions & 0 deletions lib/byebug/attacher.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

#
# Main Container for all of Byebug's code
#
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/breakpoint.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Byebug
#
# Implements breakpoints
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/command.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "forwardable"
require "byebug/helpers/string"

Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/command_list.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/errors"

module Byebug
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/commands/break"
require "byebug/commands/catch"
require "byebug/commands/condition"
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/break.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/command"
require "byebug/helpers/eval"
require "byebug/helpers/file"
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/catch.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/command"
require "byebug/helpers/eval"

Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/condition.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/command"
require "byebug/helpers/parse"

Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/continue.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/command"
require "byebug/helpers/parse"

Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/debug.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/command"
require "byebug/helpers/eval"

Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/delete.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/command"
require "byebug/helpers/parse"

Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/disable.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/subcommands"

require "byebug/commands/disable/breakpoints"
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/disable/breakpoints.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/helpers/toggle"

module Byebug
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/disable/display.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/helpers/toggle"

module Byebug
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/display.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/command"
require "byebug/helpers/eval"

Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/down.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "pathname"
require "byebug/command"
require "byebug/helpers/frame"
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/edit.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/command"

module Byebug
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/enable.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/subcommands"

require "byebug/commands/enable/breakpoints"
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/enable/breakpoints.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/helpers/toggle"

module Byebug
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/enable/display.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/helpers/toggle"

module Byebug
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/finish.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/command"
require "byebug/helpers/parse"

Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/frame.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "pathname"
require "byebug/command"
require "byebug/helpers/frame"
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/help.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/command"
require "byebug/errors"

Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/history.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/command"
require "byebug/helpers/parse"

Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/info.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/subcommands"

require "byebug/commands/info/breakpoints"
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/info/breakpoints.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Byebug
#
# Reopens the +info+ command to define the +breakpoints+ subcommand
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/info/display.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Byebug
#
# Reopens the +info+ command to define the +display+ subcommand
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/info/file.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/helpers/file"

module Byebug
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/info/line.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Byebug
#
# Reopens the +info+ command to define the +line+ subcommand
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/info/program.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Byebug
#
# Reopens the +info+ command to define the +args+ subcommand
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/interrupt.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/command"

module Byebug
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/irb.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/command"
require "irb"
require "English"
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/kill.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/command"

module Byebug
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/list.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/command"
require "byebug/source_file_formatter"
require "byebug/helpers/file"
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/method.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/command"
require "byebug/helpers/eval"

Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/next.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/command"
require "byebug/helpers/parse"

Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/pry.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/command"
require "byebug/helpers/eval"

Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/quit.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/command"

module Byebug
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/restart.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/command"
require "byebug/helpers/bin"
require "byebug/helpers/path"
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/save.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/command"

module Byebug
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/set.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/command"
require "byebug/helpers/parse"

Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/show.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/command"

module Byebug
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/source.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/command"

module Byebug
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/step.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/command"
require "byebug/helpers/parse"

Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/thread.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/subcommands"

require "byebug/commands/thread/current"
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/thread/current.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/helpers/thread"

module Byebug
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/thread/list.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/helpers/thread"

module Byebug
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/thread/resume.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/helpers/thread"

module Byebug
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/thread/stop.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/helpers/thread"

module Byebug
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/thread/switch.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/helpers/thread"

module Byebug
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/tracevar.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/command"

module Byebug
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/undisplay.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/command"
require "byebug/helpers/parse"

Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/untracevar.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/command"

module Byebug
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/up.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "pathname"
require "byebug/command"
require "byebug/helpers/frame"
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/var.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/subcommands"

require "byebug/commands/var/all"
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/var/all.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/helpers/var"

module Byebug
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/var/args.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/helpers/var"

module Byebug
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/var/const.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "byebug/helpers/eval"

module Byebug
Expand Down
2 changes: 2 additions & 0 deletions lib/byebug/commands/var/global.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Byebug
#
# Reopens the +var+ command to define the +global+ subcommand
Expand Down