thor_repl 0.1.1 → 0.1.2
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/example/Gemfile +0 -4
- data/example/Gemfile.lock +0 -6
- data/lib/thor_repl/looper.rb +3 -1
- data/lib/thor_repl/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ac94b059c6746d52c7cb0df6f376eb93aa96342ba8d8aa9a7f0c59c9ba14d8a5
|
|
4
|
+
data.tar.gz: 10c5cebf2da33007f2e2efe42448df25dbcf9fd6e06daa9cc72fd2d165d1331b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c264aa253414a59ffe792be35a1030786567e8a571f6c389615b1e0fc57049a12c95e4de8478cba1e0320af55612774648f8316aa6f1f04f31b24836a7d0b4b1
|
|
7
|
+
data.tar.gz: 34243f4d79c768cc05edfb58343dd0ebf82aef561b55a2d7a15b6e0f7b5b1f255ac7e3b315ec3d798ddb0a1e2caa8de24effdb4b0ee703da12fe63ea639d2665
|
data/example/Gemfile
CHANGED
data/example/Gemfile.lock
CHANGED
|
@@ -6,18 +6,12 @@ PATH
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: http://rubygems.org/
|
|
8
8
|
specs:
|
|
9
|
-
coderay (1.1.2)
|
|
10
|
-
method_source (0.9.2)
|
|
11
|
-
pry (0.12.2)
|
|
12
|
-
coderay (~> 1.1.0)
|
|
13
|
-
method_source (~> 0.9.0)
|
|
14
9
|
thor (0.20.3)
|
|
15
10
|
|
|
16
11
|
PLATFORMS
|
|
17
12
|
ruby
|
|
18
13
|
|
|
19
14
|
DEPENDENCIES
|
|
20
|
-
pry
|
|
21
15
|
thor
|
|
22
16
|
thor_repl!
|
|
23
17
|
|
data/lib/thor_repl/looper.rb
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
require 'csv'
|
|
2
|
+
|
|
1
3
|
module ThorRepl
|
|
2
4
|
class Looper
|
|
3
5
|
def initialize(thor_commands_class:, readline_class: Readline, welcome_message: true, prompt: ">")
|
|
@@ -11,7 +13,7 @@ module ThorRepl
|
|
|
11
13
|
puts "Welcome to interactive mode. Use 'help' to list available commands" if @welcome_message
|
|
12
14
|
|
|
13
15
|
repl(-> () { @readline_class.readline(@prompt, true) }) do |input|
|
|
14
|
-
args =
|
|
16
|
+
args = CSV.parse_line(input, col_sep: "\s")
|
|
15
17
|
@thor_commands_class.start(args)
|
|
16
18
|
end
|
|
17
19
|
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.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mik Freedman
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-03-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|