irbtools 4.0.2 → 4.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
  SHA256:
3
- metadata.gz: e43af13a1324468569b97b7a10069ea5ef58efd66b18a9618c24a94545805267
4
- data.tar.gz: 3d8cf7e0bdd0c9c5e462ebdb5ad3a2c3fb233b331e89bfe46d537801de885b78
3
+ metadata.gz: b58358f1aa92361e878698ca2c56a563077bec5239f97d2d78face3329cbf0a0
4
+ data.tar.gz: 30df1ace8241677ce0e55dba4bf2d0940950e1c4db0a9d0072af68ec6784d812
5
5
  SHA512:
6
- metadata.gz: 55d524aff7bad42508112c2592e377e1fcf26bf80f71bd86adedccf033e8f5967f6f638f54e588d18f8b259f6b26214054f4f736cc4a7b59ca4dd60db1cca5b3
7
- data.tar.gz: eeb4857e9af97321bf35b9a8833edc9454d10b574c8c7f8ba8f1225f7fe7de28b210b370ba29dd403f319aa157c0ad84caf6f753e94f12f852d6aa3e77d5fd34
6
+ metadata.gz: 22d390298fac5b5d21be5e912fbaa06659a9c755c88f9e4ade491513e46c45041ef1eee3cc8bd4b0da1f20ee52d03e24046a32becc9276552f8a98cab5c810a6
7
+ data.tar.gz: 6972f2ea4d8701f0b9be7c61c28e84c3a8cb8490a3963da5ba807b76225ce7403aa3e5f6713dde1e357b1e306e8e52445320ebd0b8f5dd635e5853a29095d2e5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Irbtools Changelog
2
2
 
3
+ ## 4.0.3
4
+
5
+ * code / howtocall commands: Support question mark / exclamation mark methods
6
+
3
7
  ## 4.0.2
4
8
 
5
9
  * Bump interactive_editor gem (Ruby 3.2 compatibility)
@@ -8,7 +8,7 @@ module IRB
8
8
 
9
9
  class << self
10
10
  def transform_args(args)
11
- if args.strip =~ /\A(?:([\w:]+)([#.]))?(\w+)\z/
11
+ if args.strip =~ /\A(?:([\w:]+)([#.]))?(\w+[?!]?)\z/
12
12
  if $1
13
13
  if $2 == "#"
14
14
  "#{$1}, #{$1}.instance_method(:#{$3})"
@@ -8,7 +8,7 @@ module IRB
8
8
 
9
9
  class << self
10
10
  def transform_args(args)
11
- if args.strip =~ /\A(?:([\w:]+)([#.]))?(\w+)\z/
11
+ if args.strip =~ /\A(?:([\w:]+)([#.]))?(\w+[?!]?)\z/
12
12
  if $1
13
13
  if $2 == "#"
14
14
  "#{$1}, #{$1}.instance_method(:#{$3})"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Irbtools
4
- VERSION = "4.0.2"
4
+ VERSION = "4.0.3"
5
5
  end
@@ -12,6 +12,12 @@ describe "irbtools commands" do
12
12
  IRB::ExtendCommand::Code.transform_args("String#gsub")
13
13
  ).to eq "String, String.instance_method(:gsub)"
14
14
  end
15
+
16
+ it "supports question-mark methods" do
17
+ expect(
18
+ IRB::ExtendCommand::Howtocall.transform_args("String#ascii_only?")
19
+ ).to eq "String, String.instance_method(:ascii_only?)"
20
+ end
15
21
  end
16
22
  end
17
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: irbtools
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.2
4
+ version: 4.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Lelis