fancy_irb 1.2.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/MIT-LICENSE.txt +1 -1
- data/README.md +3 -7
- data/fancy_irb.gemspec +4 -4
- data/lib/fancy_irb/terminal_info.rb +7 -0
- data/lib/fancy_irb/version.rb +1 -1
- metadata +9 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 739bfe501631f6fd5f4a78e6f92dda52bb41a8ac989d769a70cbdac26f6b547c
|
4
|
+
data.tar.gz: eb804f9241bd2c9e7c63e1e71b4e0aa518b0498b8d090d86977870e8502136c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3f99a944370418ab561de7ca337fde9cf1384cd7b7041a7f6342175c1b732934e09f46ebe5d0bc43984b0f3909d7e0c6f9cabbf83abe5c7228af8758d4f5ce2
|
7
|
+
data.tar.gz: d60a4522e55035980b9f50fc6d0bdd36d66fc7177ad23051803a69e9f7cf38a2e4000c12f733722c2b706a699e3297e6e18f56e6efc93c0ab8800f85446c81b3
|
data/CHANGELOG.md
CHANGED
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,9 +1,8 @@
|
|
1
|
-
# FancyIrb [![version](https://badge.fury.io/rb/fancy_irb.svg)](
|
1
|
+
# FancyIrb [![version](https://badge.fury.io/rb/fancy_irb.svg)](https://badge.fury.io/rb/fancy_irb) [![[ci]](https://github.com/janlelis/fancy_irb/workflows/Test/badge.svg)](https://github.com/janlelis/fancy_irb/actions?query=workflow%3ATest)
|
2
2
|
|
3
3
|
* Colorizes IRB prompts, errors, `$stderr` and `$stdout`
|
4
4
|
* Uses "Hash Rockets" (# =>) to display IRB results
|
5
5
|
|
6
|
-
|
7
6
|
## Usage
|
8
7
|
|
9
8
|
require 'fancy_irb'
|
@@ -32,9 +31,7 @@ Rocket mode means: Output result as comment if there is enough space left on
|
|
32
31
|
the terminal line and `stdout` does not output more than the current terminal
|
33
32
|
height.
|
34
33
|
|
35
|
-
For more information on which colors can be used, see the [paint
|
36
|
-
documentation](https://github.com/janlelis/paint).
|
37
|
-
|
34
|
+
For more information on which colors can be used, see the [paint documentation](https://github.com/janlelis/paint).
|
38
35
|
|
39
36
|
## Troubleshooting
|
40
37
|
### Windows Support
|
@@ -49,9 +46,8 @@ lookup of every character. You can deactivate this check by setting
|
|
49
46
|
Not all stdin methods are patched properly to work with the rocket: The gems
|
50
47
|
focuses on the often used ones
|
51
48
|
|
52
|
-
|
53
49
|
## J-_-L
|
54
50
|
Inspired by the irb_rocket gem by genki.
|
55
51
|
|
56
|
-
Copyright (c) 2010-2012, 2015-
|
52
|
+
Copyright (c) 2010-2012, 2015-2020 Jan Lelis <https://janlelis.com> released under
|
57
53
|
the MIT license.
|
data/fancy_irb.gemspec
CHANGED
@@ -6,10 +6,10 @@ Gem::Specification.new do |s|
|
|
6
6
|
s.name = "fancy_irb"
|
7
7
|
s.version = FancyIrb::VERSION
|
8
8
|
s.authors = ["Jan Lelis"]
|
9
|
-
s.email = "
|
10
|
-
s.homepage = "
|
11
|
-
s.summary = "FancyIrb makes IRB friendly."
|
12
|
-
s.description = "
|
9
|
+
s.email = ["hi@ruby.consulting"]
|
10
|
+
s.homepage = "https://github.com/janlelis/fancy_irb"
|
11
|
+
s.summary = "FancyIrb makes IRB # => friendly."
|
12
|
+
s.description = "A fancy IRB has a colorful input prompt and profiles rocket-style #=> return values"
|
13
13
|
s.required_ruby_version = '>= 1.9.3'
|
14
14
|
s.license = 'MIT'
|
15
15
|
s.requirements = ['Windows: ansicon <https://github.com/adoxa/ansicon>']
|
@@ -17,6 +17,13 @@ module FancyIrb
|
|
17
17
|
:cuu1 => "\e[1A",
|
18
18
|
:cuf1 => "\e[1C",
|
19
19
|
}
|
20
|
+
elsif RbConfig::CONFIG['host_os'] =~ /linux/
|
21
|
+
TPUT = {
|
22
|
+
:sc => `script -q -e -t /dev/null -c 'tput sc'`,
|
23
|
+
:rc => `script -q -e -t /dev/null -c 'tput rc'`,
|
24
|
+
:cuu1 => `script -q -e -t /dev/null -c 'tput cuu1'`,
|
25
|
+
:cuf1 => `script -q -e -t /dev/null -c 'tput cuf1'`,
|
26
|
+
}
|
20
27
|
else
|
21
28
|
TPUT = {
|
22
29
|
:sc => `tput sc`,
|
data/lib/fancy_irb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fancy_irb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.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:
|
11
|
+
date: 2020-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: paint
|
@@ -72,8 +72,10 @@ dependencies:
|
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '10.4'
|
75
|
-
description: '
|
76
|
-
|
75
|
+
description: 'A fancy IRB has a colorful input prompt and profiles rocket-style #=>
|
76
|
+
return values'
|
77
|
+
email:
|
78
|
+
- hi@ruby.consulting
|
77
79
|
executables: []
|
78
80
|
extensions: []
|
79
81
|
extra_rdoc_files: []
|
@@ -95,7 +97,7 @@ files:
|
|
95
97
|
- lib/fancy_irb/version.rb
|
96
98
|
- spec/fixtures.rb
|
97
99
|
- spec/size_detector_spec.rb
|
98
|
-
homepage:
|
100
|
+
homepage: https://github.com/janlelis/fancy_irb
|
99
101
|
licenses:
|
100
102
|
- MIT
|
101
103
|
metadata: {}
|
@@ -115,8 +117,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
117
|
version: '0'
|
116
118
|
requirements:
|
117
119
|
- 'Windows: ansicon <https://github.com/adoxa/ansicon>'
|
118
|
-
rubygems_version: 3.
|
120
|
+
rubygems_version: 3.1.2
|
119
121
|
signing_key:
|
120
122
|
specification_version: 4
|
121
|
-
summary: FancyIrb makes IRB friendly.
|
123
|
+
summary: 'FancyIrb makes IRB # => friendly.'
|
122
124
|
test_files: []
|