mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
rubocop: fix offences of the Layout/EmptyLines cop
This commit is contained in:
parent
e18d2c8176
commit
22f0d664e0
15 changed files with 0 additions and 24 deletions
|
@ -174,11 +174,6 @@ Layout/EmptyLineAfterMagicComment:
|
|||
- 'lib/pry/terminal.rb'
|
||||
- 'pry.gemspec'
|
||||
|
||||
# Offense count: 24
|
||||
# Cop supports --auto-correct.
|
||||
Layout/EmptyLines:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 16
|
||||
# Cop supports --auto-correct.
|
||||
Layout/EmptyLinesAroundAccessModifier:
|
||||
|
|
1
Rakefile
1
Rakefile
|
@ -59,7 +59,6 @@ namespace :jruby do
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
['mswin32', 'mingw32'].each do |platform|
|
||||
namespace platform do
|
||||
spec = modify_base_gemspec do |s|
|
||||
|
|
|
@ -120,7 +120,6 @@ class Pry
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
# Bring in options defined by plugins
|
||||
Pry::Slop.new do
|
||||
on "no-plugins" do
|
||||
|
|
|
@ -22,7 +22,6 @@ class Pry
|
|||
ceiling: [Object, Module, Class]
|
||||
}
|
||||
|
||||
|
||||
match 'ls'
|
||||
group 'Context'
|
||||
description 'Show the list of vars and methods in the current scope.'
|
||||
|
@ -48,7 +47,6 @@ class Pry
|
|||
Also check out `find-method` command (run `help find-method`).
|
||||
BANNER
|
||||
|
||||
|
||||
def options(opt)
|
||||
opt.on :m, :methods, "Show public methods defined on the Object"
|
||||
opt.on :M, "instance-methods", "Show public methods defined in a Module or Class"
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
require_relative 'helper'
|
||||
|
||||
|
||||
describe "commands" do
|
||||
before do
|
||||
@str_output = StringIO.new
|
||||
|
|
|
@ -349,7 +349,6 @@ describe Pry::CommandSet do
|
|||
expect { @set.run_command(@ctx, 'help') }.to_not raise_error
|
||||
end
|
||||
|
||||
|
||||
describe "renaming a command" do
|
||||
it 'should be able to rename and run a command' do
|
||||
run = false
|
||||
|
|
|
@ -722,7 +722,6 @@ describe "edit" do
|
|||
$x = :bebe
|
||||
pry_eval 'edit -p X#c'
|
||||
|
||||
|
||||
expect(Pry::Method.from_str("X#c").alias?).to eq true
|
||||
|
||||
expect(X.new.b).to eq :kinda
|
||||
|
|
|
@ -18,7 +18,6 @@ describe "play" do
|
|||
# # require 'fixtures/play_helper'
|
||||
# end
|
||||
|
||||
|
||||
# describe "integer" do
|
||||
# it "should process one line from _pry_.last_file" do
|
||||
# @t.process_command 'play --lines 1', @eval_str
|
||||
|
@ -51,7 +50,6 @@ describe "play" do
|
|||
STR
|
||||
end
|
||||
|
||||
|
||||
it 'should output file contents with print option' do
|
||||
@t.process_command 'play --print spec/fixtures/whereami_helper.rb'
|
||||
expect(@t.last_output).to eq unindent(<<-STR)
|
||||
|
|
|
@ -20,7 +20,6 @@ describe "save-file" do
|
|||
|
||||
@t.eval("save-file '#{path}' --to '#{@path}'")
|
||||
|
||||
|
||||
expect(File.read(@path)).to eq(File.read(path))
|
||||
end
|
||||
end
|
||||
|
|
|
@ -77,7 +77,6 @@ describe "show-source" do
|
|||
expect(mock_pry(binding, "show-source _c#wrongmethod")).to eq(error_message)
|
||||
end
|
||||
|
||||
|
||||
it "should find instance_methods if the class overrides instance_method" do
|
||||
_c = Class.new{
|
||||
def method;
|
||||
|
|
|
@ -8,7 +8,6 @@ def completer_test(bind, pry=nil, assert_flag=true)
|
|||
return proc {|*symbols| symbols.each(&test) }
|
||||
end
|
||||
|
||||
|
||||
describe Pry::InputCompleter do
|
||||
before do
|
||||
# The AMQP gem has some classes like this:
|
||||
|
@ -62,7 +61,6 @@ describe Pry::InputCompleter do
|
|||
|
||||
end
|
||||
|
||||
|
||||
it 'should complete for stdlib symbols' do
|
||||
|
||||
o = Object.new
|
||||
|
|
|
@ -74,7 +74,6 @@ describe Pry::Config do
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
describe "#respond_to_missing?" do
|
||||
before do
|
||||
@config = Pry::Config.new(nil)
|
||||
|
|
|
@ -434,7 +434,6 @@ describe Pry::Method do
|
|||
class Bottom < Lower; extend O; end
|
||||
end
|
||||
|
||||
|
||||
def eigen_class(obj); class << obj; self; end; end
|
||||
|
||||
it "should look at a class and then its superclass" do
|
||||
|
|
|
@ -149,7 +149,6 @@ describe "test Pry defaults" do
|
|||
expect(pry.prompt).to eq Pry.prompt
|
||||
expect(get_prompts(pry)).to eq ["test prompt> ", "test prompt> "]
|
||||
|
||||
|
||||
pry = Pry.new(prompt: new_prompt)
|
||||
expect(pry.prompt).to eq new_prompt
|
||||
expect(get_prompts(pry)).to eq ["A", "A"]
|
||||
|
@ -167,7 +166,6 @@ describe "test Pry defaults" do
|
|||
expect(pry.prompt).to eq Pry.prompt
|
||||
expect(get_prompts(pry)).to eq ["test prompt> ", "test prompt* "]
|
||||
|
||||
|
||||
pry = Pry.new(prompt: new_prompt)
|
||||
expect(pry.prompt).to eq new_prompt
|
||||
expect(get_prompts(pry)).to eq ["A", "B"]
|
||||
|
@ -314,7 +312,6 @@ describe "test Pry defaults" do
|
|||
it "returns a string of the #<class name:object idish> format" do
|
||||
c, m = Class.new, Module.new
|
||||
|
||||
|
||||
def c.name; "a" * (MAX_LENGTH + 1); end
|
||||
|
||||
def m.name; "a" * (MAX_LENGTH + 1); end
|
||||
|
|
|
@ -123,7 +123,6 @@ describe "Sticky locals (_file_ and friends)" do
|
|||
expect(o.instance_variable_get(:@value2)).to eq :carl
|
||||
end
|
||||
|
||||
|
||||
it 'should define a new sticky local for the session (as Proc)' do
|
||||
o = Object.new
|
||||
redirect_pry_io(InputTester.new("@value = test_local",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue