1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
Commit graph

25 commits

Author SHA1 Message Date
Kyrylo Silin
39fa8a9fc6 rubocop: fix offences of the Style/IfUnlessModifier cop 2019-03-02 11:03:54 +02:00
Kyrylo Silin
3d45a6e562 Bump rubocop to v0.65.0 and generate config 2019-02-24 19:58:59 +02:00
yui-knk
3ee35f3abd Update rspec to 3.8.0 2018-12-12 18:48:39 +09:00
Kyrylo Silin
f76688eb6d Gemfile: delete gems that were needed for Guard
`rb-inotify` has a dependency on `ffi`, which fails to compile on Ruby 1.9.3
while running on CircleCI. I don't think anyone who develops Pry (seems to be
just me so far) uses Guard in their worfklow. Our repo is missing an obligatory
Guardfile, too, which makes me think it's a very safe change to make (rather
than wasting time with`ffi` and CircleCI).
2018-10-16 03:57:06 +08:00
Kyrylo Silin
f33d82779a rubocop: fix offences of the Style/HashSyntax cop 2018-10-13 03:09:29 +08:00
Kyrylo Silin
4cc13f9a40 rubocop: fix offences of the Layout/ExtraSpacing cop 2018-10-13 00:54:00 +08:00
Kyrylo Silin
743b905c81 Drop support for Rubinius
Fixes #1775 (Drop support for Rubinius)

I am amazed how many hacks we've had just to support Rubinius. It feels good to
be able to remove them and reduce the complexity of the codebase.
2018-10-07 00:58:53 +08:00
Kyrylo Silin
9ffa460548 Gemfile: add rubocop 0.59.2 and lock it
Rubocop is a really nice tool when configured properly. A lot of default rules
are very opinionated but the good thing is that it's very easy to disable them.
With help of Rubocop I'd like to improve the quality of Pry's code.
2018-10-06 20:07:25 +08:00
Fernando Seror Garcia
3bd43b9db4 Update RSpec version to 3.7 (#1712) 2017-11-17 22:03:55 +01:00
robert
fdccded0ef fix failing specs.
revert to rspec ~> 3.4.0, and simplecov ~> 0.8.0.
rspec 3.5.0 causes random test failures in the test suite.
simplecov 0.12.0 cannot be installed on ruby 1.9 or earlier.
2016-07-09 02:57:28 +01:00
Josh Cheek
144d32e1d6 Switch test suite to RSpec
Removes Bacon and Mocha

Reasoning explained in this comment: https://github.com/pry/pry/issues/277#issuecomment-51708712

Mostly this went smoothly. There were a few errors that I fixed along
the way, e.g. tests that were failing but for various reasons still
passed. Should have documented them, but didn't think about it until
very near the end. But generaly, I remember 2 reasons this would happen:
`lambda { raise "omg" }.should.raise(RuntimeError, /not-omg/)` will pass
because the second argument is ignored by Bacon. And `1.should == 2`
will return false instead of raising an error when it is not in an it
block (e.g. if stuck in a describe block, that would just return false)

The only one that I felt unsure about was spec/helpers/table_spec.rb
`Pry::Helpers.tablify_or_one_line('head', %w(ing)).should == 'head: ing'`
This is wrong, but was not failing because it was in a describe block
instead of an it block.  In reality, it returns `"head: ing\n"`,
I updated the test to reflect this, though I don't know for sure
this is the right thing to do

This will fail on master until https://github.com/pry/pry/pull/1281 is merged.
This makes https://github.com/pry/pry/pull/1278 unnecessary.
2014-08-10 17:37:21 -06:00
Conrad Irwin
f27e718cfe Move back to 'gist' gem 2014-04-27 22:24:20 -07:00
robert
a550491fca unbreak pry builds on < ruby 2.1.1 2014-04-27 14:13:24 -07:00
Robert Gleeson
89666001da support deprecated method for HEAD support with pry-doc.
closes #1152.
related to #1136 but `? File.exists?` is still not showing me documentation.
thanks to @yui-knk for finding the bug & providing a solution.
2014-03-23 14:16:08 +01:00
Robert Gleeson
1c6a145ba7 remove attempt at bond support from pry and move to pry-bond project.
https://github.com/johnny5-/pry-bond project adds the enable-bond! and disable-bond! commands,
as well as other features, that enhance the pry&bond experience and make it easier to use and
setup without a manual effort.

see #1165
closes #1160
2014-03-17 09:37:23 +01:00
Robert Gleeson
f27802fec4 add yard to Gemfile 2014-03-16 11:17:33 +01:00
Robert Gleeson
7e3933e848 use false literal in place of string 2014-03-15 01:57:30 +01:00
Robert Gleeson
45cbc55c9f move development dependencies to Gemfile, & use Bundler.require(). 2014-03-15 01:50:21 +01:00
Robert Gleeson
7d0a8e3513 use 'platform' on rubinius (over RbConfig) in Gemfile. 2014-01-26 21:33:03 +01:00
Ryan Fitzgerald
3e31d01d0b Add rubysl-prettyprint to Gemfile for rbx 2013-11-23 18:23:34 -08:00
Ryan Fitzgerald
eb150b71d7 Fix specs on rbx-2.1.0 2013-11-23 18:11:29 -08:00
☈king
552b7e18e5 Avoid warning with warny rubygems 2013-02-26 07:27:51 -06:00
☈king
9e6269c1da Dev dep on 'jist' + better Guard deps 2012-12-06 22:45:07 -06:00
Ryan Fitzgerald
981f12ddc2 Add simple Guardfile 2012-09-08 20:27:41 -07:00
Shawn Anderson
f87c54bd79 added bundler gemfile 2011-09-13 11:39:04 -04:00