pry 0.13.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b865c24d66f239abbf5016520572f80d1074c66a3032243a3c607c3728689646
4
- data.tar.gz: 1b2c1619fce5542ab11e326c5ac3810237c872b1b6de26b469f61605c9c174af
3
+ metadata.gz: 9a8834347bff9e94179a35d225768c377a94b33750c989983f42c6cd90b9f0a5
4
+ data.tar.gz: 363c3c38dea1cba4b0b0b0b0b617b36a91a3d0761c349687deeff54711210886
5
5
  SHA512:
6
- metadata.gz: abc950c4f27b952c15cd54d1274006b2aa1e4021e024506455371df3b3439e3f7962966b777e27ae3fd66ed86035baeb836590b10653c3366f29cb71aeee8776
7
- data.tar.gz: 7cc163e3363378ebaa2e28a8c1843b0c1bcbb0d7dd7fadbc5ac314df084ce47218525b807b1db827df9ae32bf794d6e301bf8c8140633b212d9af67dd2b1a7c7
6
+ metadata.gz: deda71757450c541d7e0e9981058244817c1ea8ccf9f8ffec81c1d1919bf8bc45493cd392f8ef44baaac4e70e69c4170dd893e3cb5204770494124b033668507
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: ruby
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