irbtools 2.2.0 → 2.2.1

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
- SHA1:
3
- metadata.gz: ae4053bb7e24c5bf843b2951b55916207fdf5f5b
4
- data.tar.gz: e42978b180a65ed4b1a3f8523bb5494df5c54ec3
2
+ SHA256:
3
+ metadata.gz: c8fc1ab015558e576f9119637b136959b47f3f85fdfd1d34fa96deb9bef1e154
4
+ data.tar.gz: 2de6b93e3e6968ceaa21e8573fe8cf6d0b9a7e46e7abb487f4c0f81a6c5b2898
5
5
  SHA512:
6
- metadata.gz: 6d75b0d6f1d18cc4635660ba2a1d2600fb309518f836956bd414d8e20ba620071dde3e329eaeb85675ca2b06e156b01e433ac628232609641b00a3362f8295db
7
- data.tar.gz: b6ef7cf3c601f031b66fa9590c1b09c0f3a807e16b3a720c7b0f594826f83d897a7fc969cfce4edafe2c97d38fc562296b25a63bab9152907ba992827dccf540
6
+ metadata.gz: 53dc385f9a525cad98e1fbb4c3f868756761fe22d3f998544805d3cf9611a2353fe300fcb1d43b9cce9bd23a03126b793f6b0c19decca37e934885c85c48f062
7
+ data.tar.gz: 70d33881d5ac22ec3a5e376210e76d31f4f6eb0c77c7a4456657b181e93a33bd1932d9a626059f5199e28776cbc6c6ba77076dd0acd47f2bbd112a0f0322f851
@@ -1,3 +1,7 @@
1
+ 2.2.1
2
+ * Allow os gem to be below 1.0
3
+ * Do not use binding.repl gem if Ruby version is at least 2.5
4
+
1
5
  2.2.0
2
6
  * Remove info, version, engine, and os methods. Use RubyInfo, RubyVersion, RubyEngine, and OS instead (fixes #40)
3
7
 
data/README.md CHANGED
@@ -96,7 +96,7 @@ and edit your Gemfile to
96
96
 
97
97
  Besides improving IRB itself, you will get the following methods:
98
98
 
99
- Method | Arguments | Description
99
+ Method / Constant | Arguments | Description
100
100
  ------ | ---------- | -----------
101
101
  `beep` | | Ring terminal bell.
102
102
  `cat` | path | Read file contents.
@@ -108,14 +108,14 @@ Method | Arguments | Description
108
108
  `copy_input` | | Copy session history to the clipboard.
109
109
  `copy_output` | | Copy session output history to the clipboard.
110
110
  `ed` / `emacs` / `mate` / `mvim` / `nano` / `vi` / `vim` | filename = nil | Start an editor in the session context.
111
- `engine` | | Show the Ruby engine.
111
+ `RubyEngine` | | Show the Ruby engine.
112
112
  `howtocall` | object = self, method_or_proc | Displays parameter names and types for a proc or method.
113
- `info` | | List general information about the Ruby environment.
113
+ `RubyInfo` | | List general information about the Ruby environment.
114
114
  `ld` | file | Shortcut for `load lib.to_s + '.rb'`.
115
115
  `ls` | path = "." | List directory content.
116
116
  `mf` | object1, object2 | Find methods that turn one value into another value.
117
117
  `mof` | object, depth = 0, grep = // | Print a method list, ordered by modules.
118
- `os` | | Query operating system information.
118
+ `OS` | | Query operating system information.
119
119
  `pa` | string, color | Print a string in the specified color.
120
120
  `page` | what, options = {} | Page long content.
121
121
  `paste` | | Paste clipboard content.
@@ -127,7 +127,7 @@ Method | Arguments | Description
127
127
  `rr` | lib | Shortcut for `require_relative lib.to_s`.
128
128
  `rrq` / `rerequire` | lib | Hack to remove a library from `$LOADED_FEATURES` and `require` it again.
129
129
  `session_history` | number_of_lines = nil | Return a string of all commands issued in the current session.
130
- `version` | | Show the Ruby version.
130
+ `RubyVersion` | | Show the Ruby version.
131
131
  `wp` | inspect_string | Syntax-highlight a Ruby object.
132
132
  `Object#instance` | | Proxy object to read and manipulate instance variables / run eval (not loaded in Rails context).
133
133
  `Object#lp` | | **(irbtools-more)** Supercharged method introspection in IRB.
@@ -60,6 +60,6 @@ Gem::Specification.new do |s|
60
60
  s.add_dependency %q<ruby_version>, "~> 1.0"
61
61
  s.add_dependency %q<ruby_engine>, "~> 1.0"
62
62
  s.add_dependency %q<ruby_info>, "~> 1.0"
63
- s.add_dependency %q<os>, "~> 1.0"
63
+ s.add_dependency %q<os>
64
64
  s.add_dependency %q<instance>, "~> 0.2"
65
65
  end
@@ -1,19 +1,29 @@
1
- require 'binding.repl'
2
- BindingRepl.auto = %w[irb ripl ir rib pry]
3
-
4
- class Binding
5
- alias irb repl!
6
- end
7
-
8
1
  begin
9
2
  require 'binding_of_caller'
10
3
  rescue LoadError
11
4
  end
12
5
 
13
- if defined? BindingOfCaller
14
- require 'debugging/repl'
6
+ if RUBY_VERSION >= "2.5.0"
7
+ if defined? BindingOfCaller
8
+ module Kernel
9
+ private def irb
10
+ binding.of_caller(1).irb
11
+ end
12
+ end
13
+ end
14
+ else
15
+ require 'binding.repl'
16
+ BindingRepl.auto = %w[irb ripl ir rib pry]
17
+
18
+ class Binding
19
+ alias irb repl!
20
+ end
21
+
22
+ if defined? BindingOfCaller
23
+ require 'debugging/repl'
15
24
 
16
- module Debugging
17
- alias irb repl
25
+ module Debugging
26
+ alias irb repl
27
+ end
18
28
  end
19
29
  end
@@ -1,3 +1,3 @@
1
1
  module Irbtools
2
- VERSION = "2.2.0".freeze
2
+ VERSION = "2.2.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: irbtools
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Lelis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-16 00:00:00.000000000 Z
11
+ date: 2018-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -304,16 +304,16 @@ dependencies:
304
304
  name: os
305
305
  requirement: !ruby/object:Gem::Requirement
306
306
  requirements:
307
- - - "~>"
307
+ - - ">="
308
308
  - !ruby/object:Gem::Version
309
- version: '1.0'
309
+ version: '0'
310
310
  type: :runtime
311
311
  prerelease: false
312
312
  version_requirements: !ruby/object:Gem::Requirement
313
313
  requirements:
314
- - - "~>"
314
+ - - ">="
315
315
  - !ruby/object:Gem::Version
316
- version: '1.0'
316
+ version: '0'
317
317
  - !ruby/object:Gem::Dependency
318
318
  name: instance
319
319
  requirement: !ruby/object:Gem::Requirement
@@ -373,7 +373,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
373
373
  version: '0'
374
374
  requirements: []
375
375
  rubyforge_project:
376
- rubygems_version: 2.6.13
376
+ rubygems_version: 2.7.6
377
377
  signing_key:
378
378
  specification_version: 4
379
379
  summary: Irbtools happy IRB.