dev-ui 0.1.0 → 0.1.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.
@@ -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
@@ -4,6 +4,9 @@ require 'io/console'
4
4
  module Dev
5
5
  module UI
6
6
  module Terminal
7
+ # Returns the width of the terminal, if possible
8
+ # Otherwise will return 80
9
+ #
7
10
  def self.width
8
11
  if console = IO.console
9
12
  console.winsize[1]
@@ -1,5 +1,5 @@
1
1
  module Dev
2
2
  module UI
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
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.0
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-06-21 00:00:00.000000000 Z
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.10
111
+ rubygems_version: 2.6.14
110
112
  signing_key:
111
113
  specification_version: 4
112
114
  summary: Terminal UI framework