irbtools 2.1.0 → 2.2.0
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 +4 -4
- data/CHANGELOG.txt +3 -0
- data/README.md +1 -1
- data/lib/irbtools/libraries.rb +4 -16
- data/lib/irbtools/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae4053bb7e24c5bf843b2951b55916207fdf5f5b
|
4
|
+
data.tar.gz: e42978b180a65ed4b1a3f8523bb5494df5c54ec3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d75b0d6f1d18cc4635660ba2a1d2600fb309518f836956bd414d8e20ba620071dde3e329eaeb85675ca2b06e156b01e433ac628232609641b00a3362f8295db
|
7
|
+
data.tar.gz: b6ef7cf3c601f031b66fa9590c1b09c0f3a807e16b3a720c7b0f594826f83d897a7fc969cfce4edafe2c97d38fc562296b25a63bab9152907ba992827dccf540
|
data/CHANGELOG.txt
CHANGED
data/README.md
CHANGED
@@ -102,7 +102,7 @@ Method | Arguments | Description
|
|
102
102
|
`cat` | path | Read file contents.
|
103
103
|
`cd` | path = nil | Changes the directory. Can also be used in these forms: `~cd` (change to home directory), `-cd` (change to previous directory).
|
104
104
|
`clear` | | Clear the terminal.
|
105
|
-
`code` | object = self, method_name | Display the method source with syntax highlighting. Will also look up C methods if the **core_docs** gem is available.
|
105
|
+
`code` | object = self, method_name | Display the method source with syntax highlighting. Will also look up C methods if the **core_docs** gem (which is included in **irbtools-more**) is available.
|
106
106
|
`colorize` | string | Syntax highlight a Ruby string.
|
107
107
|
`copy` | string | Copy something to the clipboard.
|
108
108
|
`copy_input` | | Copy session history to the clipboard.
|
data/lib/irbtools/libraries.rb
CHANGED
@@ -81,25 +81,13 @@ Irbtools.add_library 'method_locator', thread: 60 do
|
|
81
81
|
end
|
82
82
|
end
|
83
83
|
|
84
|
+
Irbtools.add_library 'ruby_info', thread: :ri
|
85
|
+
Irbtools.add_library 'os', thread: :os
|
86
|
+
Irbtools.add_library 'ruby_engine', thread: :re
|
87
|
+
Irbtools.add_library 'ruby_version', thread: :rv
|
84
88
|
|
85
89
|
# # # load via autoload
|
86
90
|
|
87
|
-
Irbtools.add_library 'ruby_info', :autoload => :RubyInfo do
|
88
|
-
def info() RubyInfo end unless defined? info
|
89
|
-
end
|
90
|
-
|
91
|
-
Irbtools.add_library 'os', :autoload => :OS do
|
92
|
-
def os() OS end unless defined? os
|
93
|
-
end
|
94
|
-
|
95
|
-
Irbtools.add_library 'ruby_engine', :autoload => :RubyEngine do
|
96
|
-
def engine() RubyEngine end unless defined? engine
|
97
|
-
end
|
98
|
-
|
99
|
-
Irbtools.add_library 'ruby_version', :autoload => :RubyVersion do
|
100
|
-
def version() RubyVersion end unless defined? version
|
101
|
-
end
|
102
|
-
|
103
91
|
Irbtools.add_library 'code', :autoload => :Code do
|
104
92
|
def code(object = self, method_name)
|
105
93
|
Code.for(object, method_name)
|
data/lib/irbtools/version.rb
CHANGED
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.
|
4
|
+
version: 2.2.0
|
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
|
+
date: 2017-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -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.
|
376
|
+
rubygems_version: 2.6.13
|
377
377
|
signing_key:
|
378
378
|
specification_version: 4
|
379
379
|
summary: Irbtools happy IRB.
|