pry-inline 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 801ca1b4c4c34f2a16c4345bdd4f1072e1ff6a84
4
- data.tar.gz: 2e0692331010d3b7ed80971a88b0ec2b4e5c5701
3
+ metadata.gz: e8b182472b115690f3a175ab316ec7f2c8014ee0
4
+ data.tar.gz: 330c6c1eeabd0b5e6b4864f923f20301217080ce
5
5
  SHA512:
6
- metadata.gz: 953ecf17d7af081bd8283d3198ff116dfc0f33a62f9fd275077c8b24d333889a67ce7608dc04b622014465f991a53ce55e9b92afcc0967bf5ff92b91c0fe7734
7
- data.tar.gz: c2c684e1ebad4e913603d775c73985689ad762cfaa2b796d131e25fa314ffede177ee369f8250fbf37f41c0428b9cff55db9e3f121e1aecaa3c0b25e4c06c3db
6
+ metadata.gz: 69966459b44679d22e4f524e5c4ac339763499bd7da704f581efbfdf41a46a1bd238555f06fb24f3d3741ed4150ebac85d6b9ec06e2deab26a15020b94e79a64
7
+ data.tar.gz: 2e2e4b7a26a382ac13f644857e2d586117c7bb3cbef0d42c8072ac4aa569ed25fb578bcd0a0200fcd15259627bb7ffbfa8407b154c9578c277875f3bee9ca1bb
@@ -0,0 +1,9 @@
1
+ # Change log
2
+
3
+ ## master (unreleased)
4
+
5
+ ## 1.0.3 (2017-02-01)
6
+
7
+ ### Bug fixes
8
+
9
+ - [#6](https://github.com/seikichi/pry-inline/pull/6): Don't redefine `Parser#on_parser_error` to avoid method redefinition warning. ([@cschneid][])
@@ -10,7 +10,9 @@ Pry.config.hooks.add_hook(:when_started, :pry_inline) do
10
10
  end
11
11
 
12
12
  before_session_hooks = Pry.config.hooks.get_hooks(:before_session)
13
- Pry.config.hooks.delete_hooks(:before_session)
13
+ before_session_hooks.each_key do |name|
14
+ Pry.config.hooks.delete_hook(:before_session, name)
15
+ end
14
16
 
15
17
  begin
16
18
  Pry.config.hooks.add_hook(:before_session, :pry_inline) do |_, target, _|
@@ -10,6 +10,8 @@ module PryInline
10
10
  end
11
11
 
12
12
  Ripper::PARSER_EVENTS.each do |event|
13
+ next if event == :parse_error # A custom handler is provided below
14
+
13
15
  module_eval(<<-End, __FILE__, __LINE__ + 1)
14
16
  def on_#{event}(*args)
15
17
  args.unshift :#{event}
@@ -1,3 +1,3 @@
1
1
  module PryInline
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pry-inline
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seiichi KONDO
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-05 00:00:00.000000000 Z
11
+ date: 2017-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -147,6 +147,7 @@ files:
147
147
  - ".gitignore"
148
148
  - ".rubocop.yml"
149
149
  - ".travis.yml"
150
+ - CHANGELOG.md
150
151
  - CODE_OF_CONDUCT.md
151
152
  - Gemfile
152
153
  - LICENSE.txt