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

8 commits

Author SHA1 Message Date
r-obert
b5538b8501
Remove unnecessary classes / modules used by config (#1897)
* Remove` Pry::Config::Default`

* Remove `Pry::Config::Memoization`

* Remove confusing use of `instance_eval`

* Add `Pry::Config.defaults`
  Returns an instance of `Pry::Config`, initialized with Pry defaults.
  Replaces the previous role of `Pry::Config::Default`.
2018-12-01 08:51:52 +01:00
Kyrylo Silin
e61354693f Add .rspec and require 'helper' from there
Just discovered this nice feature of RSpec where it can load all files for
us. Works with `bundle exec rake` and `bundle exec rspec spec/file_spec.rb`,
which covers all use cases.
2018-11-18 14:04:44 +08:00
Kyrylo Silin
04d4f424e3 rubocop: fix offences regarding spaces
Fixes offences of the following cops:

* Layout/SpaceAroundEqualsInParameterDefault
* Layout/SpaceAroundOperators
* Layout/SpaceBeforeBlockBraces
* Layout/SpaceInsideBlockBraces
2018-11-04 17:34:24 +08:00
r-obert
72a17c5b24 last_default might not be a Pry::Config::Memoized 2017-06-23 17:42:04 +01:00
r-obert
505cccf691 rename Pry::Config::Lazy to Pry::Config::Memoization (ref #1503) 2017-06-23 06:18:19 +01:00
strcmp
c584d173a1 fix 'at least one lazy method has to be called before #lazy_keys could ..' 2015-12-31 16:02:34 -08:00
strcmp
6531140f06 add tests 2015-12-31 15:46:31 -08:00
strcmp
398a62bf79 add lazy_spec.rb 2015-12-31 03:59:53 +00:00