irbtools 2.0.0 → 2.0.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 +4 -4
- data/CHANGELOG.txt +3 -0
- data/README.md +14 -13
- data/irbtools.gemspec +2 -3
- data/lib/irbtools/libraries.rb +0 -2
- data/lib/irbtools/version.rb +1 -1
- metadata +2 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41e41d44165a1f5138c75024b3f526ea8fb574b7
|
4
|
+
data.tar.gz: 09d8581b7f2a2e4017ec98ef7eac5d06cafc1245
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 443b7235b85c1610675efa4bcb04693c1648fb97a3dd6d95119caf24c242792af62c605368eb8cdf6eabbcf3e1513670138d2021949d1a74f75f90979b3493c4
|
7
|
+
data.tar.gz: 00470adffec80d3c68dbfdc93a4b7439199cf6da71513c80a7310aa3078c8dca7a6cf8ca9e89ab95421fa7f653664ee6f36eb4728c4cf099c6271030332fc039
|
data/CHANGELOG.txt
CHANGED
data/README.md
CHANGED
@@ -61,9 +61,8 @@ and edit your Gemfile to
|
|
61
61
|
#### Utils
|
62
62
|
|
63
63
|
* Useful IRB commands (see below):
|
64
|
-
[every_day_irb](https://github.com/janlelis/irbtools/tree/master/lib/
|
65
|
-
|
66
|
-
[debugging](https:/github.com/janlelis/debugging)
|
64
|
+
[every_day_irb](https://github.com/janlelis/irbtools/tree/master/lib/every_day_irb.rb)
|
65
|
+
[debugging](https://github.com/janlelis/debugging)
|
67
66
|
[fileutils](http://ruby-doc.org/stdlib-2.2.1/libdoc/fileutils/rdoc/FileUtils.html)
|
68
67
|
* Clipboard Access:
|
69
68
|
[clipboard](https://github.com/janlelis/clipboard)
|
@@ -76,7 +75,7 @@ and edit your Gemfile to
|
|
76
75
|
|
77
76
|
* Displays a method's source:
|
78
77
|
[code](https://github.com/janlelis/code)
|
79
|
-
* Access to
|
78
|
+
* Access to *ri* docs:
|
80
79
|
[ori](https://github.com/dadooda/ori)
|
81
80
|
* Manipulate instance variables with ease:
|
82
81
|
[instance](https://github.com/rubyworks/instance/)
|
@@ -89,7 +88,7 @@ and edit your Gemfile to
|
|
89
88
|
[method_locator](https://github.com/ryanlecompte/method_locator)
|
90
89
|
* Finds methods that turn one value into another value:
|
91
90
|
[methodfinder](https://github.com/citizen428/methodfinder)
|
92
|
-
* **irbtools-more** Awesome lookup path inspection:
|
91
|
+
* **(irbtools-more)** Awesome lookup path inspection:
|
93
92
|
[looksee](https://github.com/oggy/looksee)
|
94
93
|
|
95
94
|
|
@@ -110,12 +109,11 @@ Method | Arguments | Description
|
|
110
109
|
`copy_output` | | Copy session output history to the clipboard.
|
111
110
|
`ed` / `emacs` / `mate` / `mvim` / `nano` / `vi` / `vim` | filename = nil | Start an editor in the session context.
|
112
111
|
`engine` | | Show the Ruby engine.
|
113
|
-
`g` | *args | Like `Kernel#p`, but using terminal-notifier or growl.
|
114
112
|
`howtocall` | object = self, method_or_proc | Displays parameter names and types for a proc or method.
|
115
113
|
`info` | | List general information about the Ruby environment.
|
116
114
|
`ld` | file | Shortcut for `load lib.to_s + '.rb'`.
|
117
115
|
`ls` | path = "." | List directory content.
|
118
|
-
`mf` | object1, object2 | Find methods that turn one value into another value
|
116
|
+
`mf` | object1, object2 | Find methods that turn one value into another value.
|
119
117
|
`mof` | object, depth = 0, grep = // | Print a method list, ordered by modules.
|
120
118
|
`os` | | Query operating system information.
|
121
119
|
`pa` | string, color | Print a string in the specified color.
|
@@ -126,12 +124,13 @@ Method | Arguments | Description
|
|
126
124
|
`re` | string, regexg, groups = nil | Assists you when matching regexes againts strings.
|
127
125
|
`reset!` | | Restart the current IRB session.
|
128
126
|
`rq` | lib | Shortcut for `require lib.to_s`. Use it like this: `rq:prime`.
|
127
|
+
`rr` | lib | Shortcut for `require_relative lib.to_s`.
|
129
128
|
`rrq` / `rerequire` | lib | Hack to remove a library from `$LOADED_FEATURES` and `require` it again.
|
130
129
|
`session_history` | number_of_lines = nil | Return a string of all commands issued in the current session.
|
131
130
|
`version` | | Show the Ruby version.
|
132
131
|
`wp` | inspect_string | Syntax-highlight a Ruby object.
|
133
132
|
`Object#instance` | | Proxy object to read and manipulate instance variables / run eval.
|
134
|
-
`Object#lp` | | **irbtools-more** Supercharged method introspection in IRB
|
133
|
+
`Object#lp` | | **(irbtools-more)** Supercharged method introspection in IRB.
|
135
134
|
`Object#mlp` / `Object#method_lookup_path` | | Traverse an object's method lookup path to find all places where a method may be defined.
|
136
135
|
`Object#ri` | *args | Show ri documentation for this object or method.
|
137
136
|
|
@@ -156,12 +155,14 @@ install xclip`
|
|
156
155
|
|
157
156
|
### Troubleshooting: Unicode causes wrong display widths
|
158
157
|
|
159
|
-
If you use double-width unicode
|
160
|
-
following snippet to your
|
158
|
+
If you use double-width unicode characters, you will need to paste the
|
159
|
+
following snippet to your `~/.irbrc` file.
|
161
160
|
|
162
|
-
|
163
|
-
|
164
|
-
|
161
|
+
```ruby
|
162
|
+
Irbtools.replace_library_callback :fancy_irb do
|
163
|
+
FancyIrb.start east_asian_width: true
|
164
|
+
end
|
165
|
+
```
|
165
166
|
|
166
167
|
This setting is deactivated by default, because of performance issues.
|
167
168
|
|
data/irbtools.gemspec
CHANGED
@@ -32,8 +32,8 @@ Gem::Specification.new do |s|
|
|
32
32
|
s.license = 'MIT'
|
33
33
|
|
34
34
|
s.required_ruby_version = '~> 2.0'
|
35
|
-
s.
|
36
|
-
s.
|
35
|
+
s.add_development_dependency 'rspec', '~> 3.2'
|
36
|
+
s.add_development_dependency 'rake', '~> 10.4'
|
37
37
|
|
38
38
|
# # #
|
39
39
|
# Dependencies
|
@@ -51,7 +51,6 @@ Gem::Specification.new do |s|
|
|
51
51
|
s.add_dependency %q<interactive_editor>, "~> 0.0", ">= 0.0.10"
|
52
52
|
s.add_dependency %q<coderay>, "~> 1.1"
|
53
53
|
s.add_dependency %q<debugging>, "~> 1.1"
|
54
|
-
s.add_dependency %q<g>, "~> 1.7", ">= 1.7.2"
|
55
54
|
|
56
55
|
# introspection / docs
|
57
56
|
s.add_dependency %q<code>, "~> 0.9"
|
data/lib/irbtools/libraries.rb
CHANGED
@@ -41,8 +41,6 @@ require_relative 'hirb'
|
|
41
41
|
|
42
42
|
Irbtools.add_library 'instance', thread: 30
|
43
43
|
|
44
|
-
Irbtools.add_library 'g', thread: 40 if RbConfig::CONFIG['host_os'] =~ /mac|darwin/
|
45
|
-
|
46
44
|
Irbtools.add_library 'ori', thread: 50 do
|
47
45
|
class Object
|
48
46
|
# patch ori to also allow shell-like "Array#slice" syntax
|
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.0.
|
4
|
+
version: 2.0.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: 2015-
|
11
|
+
date: 2015-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -202,26 +202,6 @@ dependencies:
|
|
202
202
|
- - "~>"
|
203
203
|
- !ruby/object:Gem::Version
|
204
204
|
version: '1.1'
|
205
|
-
- !ruby/object:Gem::Dependency
|
206
|
-
name: g
|
207
|
-
requirement: !ruby/object:Gem::Requirement
|
208
|
-
requirements:
|
209
|
-
- - "~>"
|
210
|
-
- !ruby/object:Gem::Version
|
211
|
-
version: '1.7'
|
212
|
-
- - ">="
|
213
|
-
- !ruby/object:Gem::Version
|
214
|
-
version: 1.7.2
|
215
|
-
type: :runtime
|
216
|
-
prerelease: false
|
217
|
-
version_requirements: !ruby/object:Gem::Requirement
|
218
|
-
requirements:
|
219
|
-
- - "~>"
|
220
|
-
- !ruby/object:Gem::Version
|
221
|
-
version: '1.7'
|
222
|
-
- - ">="
|
223
|
-
- !ruby/object:Gem::Version
|
224
|
-
version: 1.7.2
|
225
205
|
- !ruby/object:Gem::Dependency
|
226
206
|
name: code
|
227
207
|
requirement: !ruby/object:Gem::Requirement
|