dev-ui 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/Gemfile.lock +10 -2
- data/README.md +132 -2
- data/dev.yml +0 -1
- data/lib/dev/ui.rb +82 -4
- data/lib/dev/ui/ansi.rb +67 -6
- data/lib/dev/ui/color.rb +21 -0
- data/lib/dev/ui/formatter.rb +23 -2
- data/lib/dev/ui/frame.rb +128 -10
- data/lib/dev/ui/glyph.rb +43 -18
- data/lib/dev/ui/interactive_prompt.rb +81 -38
- data/lib/dev/ui/progress.rb +42 -17
- data/lib/dev/ui/prompt.rb +54 -1
- data/lib/dev/ui/spinner.rb +28 -148
- data/lib/dev/ui/spinner/async.rb +40 -0
- data/lib/dev/ui/spinner/spin_group.rb +223 -0
- data/lib/dev/ui/stdout_router.rb +3 -2
- data/lib/dev/ui/terminal.rb +3 -0
- data/lib/dev/ui/version.rb +1 -1
- metadata +5 -3
data/lib/dev/ui/stdout_router.rb
CHANGED
@@ -83,8 +83,9 @@ module Dev
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
-
def initialize(with_frame_inset: true, &block)
|
86
|
+
def initialize(*block_args, with_frame_inset: true, &block)
|
87
87
|
@with_frame_inset = with_frame_inset
|
88
|
+
@block_args = block_args
|
88
89
|
@block = block
|
89
90
|
end
|
90
91
|
|
@@ -113,7 +114,7 @@ module Dev
|
|
113
114
|
end
|
114
115
|
|
115
116
|
begin
|
116
|
-
@block.call
|
117
|
+
@block.call(*@block_args)
|
117
118
|
ensure
|
118
119
|
@stdout = out.string
|
119
120
|
@stderr = err.string
|
data/lib/dev/ui/terminal.rb
CHANGED
data/lib/dev/ui/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dev-ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Burke Libbey
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-12-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -83,6 +83,8 @@ files:
|
|
83
83
|
- lib/dev/ui/progress.rb
|
84
84
|
- lib/dev/ui/prompt.rb
|
85
85
|
- lib/dev/ui/spinner.rb
|
86
|
+
- lib/dev/ui/spinner/async.rb
|
87
|
+
- lib/dev/ui/spinner/spin_group.rb
|
86
88
|
- lib/dev/ui/stdout_router.rb
|
87
89
|
- lib/dev/ui/terminal.rb
|
88
90
|
- lib/dev/ui/version.rb
|
@@ -106,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
108
|
version: '0'
|
107
109
|
requirements: []
|
108
110
|
rubyforge_project:
|
109
|
-
rubygems_version: 2.6.
|
111
|
+
rubygems_version: 2.6.14
|
110
112
|
signing_key:
|
111
113
|
specification_version: 4
|
112
114
|
summary: Terminal UI framework
|