irbtools 4.0.2 → 4.0.4

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: e43af13a1324468569b97b7a10069ea5ef58efd66b18a9618c24a94545805267
4
- data.tar.gz: 3d8cf7e0bdd0c9c5e462ebdb5ad3a2c3fb233b331e89bfe46d537801de885b78
3
+ metadata.gz: 66c2341395164a2d9b9c5a5c993f030a312ca31077dbab2c8be988813dbe02b2
4
+ data.tar.gz: 58eede57cd459d871c4bc9e6a2744af778d887d48289ff75dcff156d60960281
5
5
  SHA512:
6
- metadata.gz: 55d524aff7bad42508112c2592e377e1fcf26bf80f71bd86adedccf033e8f5967f6f638f54e588d18f8b259f6b26214054f4f736cc4a7b59ca4dd60db1cca5b3
7
- data.tar.gz: eeb4857e9af97321bf35b9a8833edc9454d10b574c8c7f8ba8f1225f7fe7de28b210b370ba29dd403f319aa157c0ad84caf6f753e94f12f852d6aa3e77d5fd34
6
+ metadata.gz: 96c9152836e6cfd2657f0127983045afa17f153b6fd53a63888e3efe3d4ef156833773d2ed7320344306996b0aab0d68ccfdcfe64958133d575944461fc91e0a
7
+ data.tar.gz: 4da5e9715c8c50d648a5f16cd49606f54d58a1492d96ca95584172e47340fdad077204f2547bbcc7124d0f493d6dea4a2a8ee2edd1d97c96c3701d01a0e8bc41
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Irbtools Changelog
2
2
 
3
+ ## 4.0.4
4
+
5
+ * Loosen IRB dependency
6
+
7
+ ## 4.0.3
8
+
9
+ * code / howtocall commands: Support question mark / exclamation mark methods
10
+
3
11
  ## 4.0.2
4
12
 
5
13
  * Bump interactive_editor gem (Ruby 3.2 compatibility)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- irbtools (4.0.0)
4
+ irbtools (4.0.4)
5
5
  clipboard (~> 1.3)
6
6
  code (>= 0.9.4, < 2.0)
7
7
  coderay (~> 1.1)
@@ -10,14 +10,14 @@ PATH
10
10
  every_day_irb (~> 2.2)
11
11
  fancy_irb (~> 1.2, >= 1.2.1)
12
12
  hirb (~> 0.7, >= 0.7.3)
13
- interactive_editor (~> 0.0, >= 0.0.10)
14
- irb (~> 1.6.2)
13
+ interactive_editor (~> 0.0, >= 0.0.12)
14
+ irb (~> 1.6, >= 1.6.2)
15
15
  looksee (~> 5.0)
16
16
  methodfinder (~> 2.2, >= 2.2.5)
17
17
  object_shadow (~> 1.1)
18
18
  os (~> 1.1, >= 1.1.4)
19
19
  paint (>= 0.9, < 3.0)
20
- ruby_engine (~> 1.0)
20
+ ruby_engine (~> 2.0)
21
21
  ruby_version (~> 1.0)
22
22
  wirb (~> 2.0, >= 2.2.1)
23
23
 
@@ -42,8 +42,8 @@ GEM
42
42
  unicode-display_width (>= 1.1)
43
43
  ffi (1.15.5)
44
44
  hirb (0.7.3)
45
- interactive_editor (0.0.11)
46
- spoon (>= 0.0.1)
45
+ interactive_editor (0.0.12)
46
+ spoon (~> 0.0.6)
47
47
  io-console (0.6.0)
48
48
  irb (1.6.2)
49
49
  reline (>= 0.3.0)
@@ -69,7 +69,7 @@ GEM
69
69
  diff-lcs (>= 1.2.0, < 2.0)
70
70
  rspec-support (~> 3.12.0)
71
71
  rspec-support (3.12.0)
72
- ruby_engine (1.0.1)
72
+ ruby_engine (2.0.0)
73
73
  ruby_version (1.0.2)
74
74
  spoon (0.0.6)
75
75
  ffi
@@ -90,4 +90,4 @@ DEPENDENCIES
90
90
  rspec
91
91
 
92
92
  BUNDLED WITH
93
- 2.4.1
93
+ 2.4.4
data/MIT-LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2022 Jan Lelis
1
+ Copyright (c) 2010-2023 Jan Lelis
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -315,5 +315,5 @@ Irbtools.start
315
315
  ```
316
316
  ## J-_-L
317
317
 
318
- Copyright (c) 2010-2022 Jan Lelis <https://janlelis.com> released under the MIT
318
+ Copyright (c) 2010-2023 Jan Lelis <https://janlelis.com> released under the MIT
319
319
  license.
data/irbtools.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  # Dependencies
21
21
 
22
22
  # Core Functionality
23
- s.add_dependency %q<irb>, "~> 1.6.2"
23
+ s.add_dependency %q<irb>, "~> 1.6", ">= 1.6.2"
24
24
  s.add_dependency %q<every_day_irb>, "~> 2.2"
25
25
  s.add_dependency %q<fancy_irb>, "~> 1.2", ">= 1.2.1"
26
26
  s.add_dependency %q<wirb>, "~> 2.0", ">= 2.2.1"
@@ -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.4"
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,20 +1,23 @@
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.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Lelis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-02 00:00:00.000000000 Z
11
+ date: 2023-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: irb
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.6'
20
+ - - ">="
18
21
  - !ruby/object:Gem::Version
19
22
  version: 1.6.2
20
23
  type: :runtime
@@ -22,6 +25,9 @@ dependencies:
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '1.6'
30
+ - - ">="
25
31
  - !ruby/object:Gem::Version
26
32
  version: 1.6.2
27
33
  - !ruby/object:Gem::Dependency
@@ -369,7 +375,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
369
375
  - !ruby/object:Gem::Version
370
376
  version: '0'
371
377
  requirements: []
372
- rubygems_version: 3.3.7
378
+ rubygems_version: 3.4.4
373
379
  signing_key:
374
380
  specification_version: 4
375
381
  summary: Irbtools happy IRB.