pry 0.13.0-java → 0.13.1-java

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
  SHA256:
3
- metadata.gz: e3ae4ffd60475fd7653d02b380752ac8e84cd673cc6e76f232cda1e01ee303ad
4
- data.tar.gz: 1b2c1619fce5542ab11e326c5ac3810237c872b1b6de26b469f61605c9c174af
3
+ metadata.gz: 77e977625b7bbc880b724d5b9360d0da2f08133cfd4960edd04b30279d3dcbc5
4
+ data.tar.gz: 363c3c38dea1cba4b0b0b0b0b617b36a91a3d0761c349687deeff54711210886
5
5
  SHA512:
6
- metadata.gz: 1166e629ed40ab748089bef8665337c65b8922b05046a9b9b16c2ffab152cde437810309c8d7251c09960a916045e586d9c3783ec0e311b1d0dab43c00072af6
7
- data.tar.gz: 7cc163e3363378ebaa2e28a8c1843b0c1bcbb0d7dd7fadbc5ac314df084ce47218525b807b1db827df9ae32bf794d6e301bf8c8140633b212d9af67dd2b1a7c7
6
+ metadata.gz: 659d9eb55238d88d832afa2033fbf0cae91ac23746e74dc483f23d02f4f170a83e0e65f4be7cb553f53e2845beffae85c09b1b413aa633f45de666093de2a05f
7
+ data.tar.gz: bbdeb8c6e1f41f107d49ffd9c042121011870516c0228662e98b905bd41c5714748aa9dd09763a9d8c88a030daa3a317e8121d2882cc97ff72554c09fcee685e
@@ -1,5 +1,18 @@
1
1
  ### master
2
2
 
3
+ ### [v0.13.1][v0.13.1] (April 12, 2020)
4
+
5
+ #### Bug fixes
6
+
7
+ * Fixed bug where on invalid input only the last syntax error is displayed
8
+ (instead of all of them) ([#2117](https://github.com/pry/pry/pull/2117))
9
+ * Fixed `Pry::Config` raising `NoMethodError` on undefined option instead of
10
+ returning `nil` (usually invoked via `Pry.config.foo_option` calls)
11
+ ([#2126](https://github.com/pry/pry/pull/2126))
12
+ * Fixed `help` command not displaying regexp aliases properly
13
+ ([#2120](https://github.com/pry/pry/pull/2120))
14
+ * Fixed `pry-backtrace` not working ([#2122](https://github.com/pry/pry/pull/2122))
15
+
3
16
  ### [v0.13.0][v0.13.0] (March 21, 2020)
4
17
 
5
18
  #### Features
@@ -1060,3 +1073,4 @@ complete CHANGELOG:
1060
1073
  [v0.12.1]: https://github.com/pry/pry/releases/tag/v0.12.1
1061
1074
  [v0.12.2]: https://github.com/pry/pry/releases/tag/v0.12.2
1062
1075
  [v0.13.0]: https://github.com/pry/pry/releases/tag/v0.13.0
1076
+ [v0.13.1]: https://github.com/pry/pry/releases/tag/v0.13.1
@@ -193,7 +193,7 @@ class Pry
193
193
 
194
194
  options = original_options.merge!(
195
195
  desc: "Alias for `#{action}`",
196
- listing: match
196
+ listing: match.is_a?(String) ? match : match.inspect
197
197
  ).merge!(options)
198
198
 
199
199
  # ensure default description is used if desc is nil
@@ -6,7 +6,7 @@ class Pry
6
6
  match(/^\s*!\s*$/)
7
7
  group 'Editing'
8
8
  description 'Clear the input buffer.'
9
- command_options use_prefix: false
9
+ command_options use_prefix: false, listing: '!'
10
10
 
11
11
  banner <<-'BANNER'
12
12
  Clear the input buffer. Useful if the parsing process goes wrong and you get
@@ -20,9 +20,7 @@ class Pry
20
20
  BANNER
21
21
 
22
22
  def process
23
- text = bold('Backtrace:')
24
- text << "\n--\n"
25
- text << pry_instance.backtrace.join("\n")
23
+ text = "#{bold('Backtrace:')}\n--\n#{pry_instance.backtrace.join("\n")}"
26
24
  pry_instance.pager.page(text)
27
25
  end
28
26
  end
@@ -239,17 +239,17 @@ class Pry
239
239
  @custom_attrs[attr.to_s].call
240
240
  end
241
241
 
242
- def method_missing(method_name, *args, &block)
242
+ # rubocop:disable Style/MethodMissingSuper
243
+ def method_missing(method_name, *args, &_block)
243
244
  name = method_name.to_s
244
245
 
245
246
  if name.end_with?('=')
246
247
  self[name[0..-2]] = args.first
247
248
  elsif @custom_attrs.key?(name)
248
249
  self[name]
249
- else
250
- super
251
250
  end
252
251
  end
252
+ # rubocop:enable Style/MethodMissingSuper
253
253
 
254
254
  def respond_to_missing?(method_name, include_all = false)
255
255
  @custom_attrs.key?(method_name.to_s.tr('=', '')) || super
@@ -627,7 +627,7 @@ class Pry
627
627
  begin
628
628
  complete_expr = Pry::Code.complete_expression?(@eval_string)
629
629
  rescue SyntaxError => e
630
- output.puts "SyntaxError: #{e.message.sub(/.*syntax error, */m, '')}"
630
+ output.puts e.message.gsub(/^.*syntax error, */, "SyntaxError: ")
631
631
  reset_eval_string
632
632
  end
633
633
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Pry
4
- VERSION = '0.13.0'.freeze
4
+ VERSION = '0.13.1'.freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.1
5
5
  platform: java
6
6
  authors:
7
7
  - John Mair (banisterfiend)
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2020-03-21 00:00:00.000000000 Z
14
+ date: 2020-04-12 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: coderay