thor_repl 0.1.3 → 0.1.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 +4 -4
- data/lib/thor_repl.rb +7 -9
- data/lib/thor_repl/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '09ece02f371bf94882989aa49523c8cbf27359f53faaf1822a8a469230ab5f1c'
|
|
4
|
+
data.tar.gz: 9849d1ce742d081533e6677fefa734724a281285f5c06b5e037727487af097b8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ff2a275752742b3a212c1b18148e6c2179693d1f5b233caa5593125c9baabb5bc1f97b20f72f41626f46b2783d5db78f27350813edde15317d3b2f84f4b74293
|
|
7
|
+
data.tar.gz: 651e2c1e7f83bc1fa940b9279fa748e0802417942bc803c7e2519e4a6ee1e4a9d785146a38736e9e1938055db4598a14c4290b70754460b6bdf1cfe47dc2e5d7
|
data/lib/thor_repl.rb
CHANGED
|
@@ -20,14 +20,12 @@ module ThorRepl
|
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
def self.load_readline
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
" * Use the rb-readline gem, which is a pure-Ruby port of Readline \n" \
|
|
31
|
-
end
|
|
23
|
+
require 'readline'
|
|
24
|
+
::Readline
|
|
25
|
+
rescue LoadError
|
|
26
|
+
raise "Sorry, you can't use Thor REPL without Readline or a compatible library. \n" \
|
|
27
|
+
"Possible solutions: \n" \
|
|
28
|
+
" * Rebuild Ruby with Readline support using `--with-readline` \n" \
|
|
29
|
+
" * Use the rb-readline gem, which is a pure-Ruby port of Readline \n" \
|
|
32
30
|
end
|
|
33
31
|
end
|
data/lib/thor_repl/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: thor_repl
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mik Freedman
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-04-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -111,8 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
111
111
|
- !ruby/object:Gem::Version
|
|
112
112
|
version: '0'
|
|
113
113
|
requirements: []
|
|
114
|
-
|
|
115
|
-
rubygems_version: 2.7.6
|
|
114
|
+
rubygems_version: 3.0.3
|
|
116
115
|
signing_key:
|
|
117
116
|
specification_version: 4
|
|
118
117
|
summary: Create a REPL for any Thor CLI
|