bogo-ui 0.1.28 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b36187eba0455ffe3bf0a0d89e3a2886b0837c31778c30a2f881d6560d7a1be
4
- data.tar.gz: 238586675f8ef079659a12395411ddb495142c77b7759790e9769081cc763da9
3
+ metadata.gz: dc213074f7a27c99208b4209604a97e1fd4fe2f360ad31199d0dd1e6ab4232fd
4
+ data.tar.gz: '09ceedd9b11e2af3fa43b18378a76f6969bac7f6a633897aede1777c55c0c495'
5
5
  SHA512:
6
- metadata.gz: 7280f5a2090faccaaaf2ba161b4dd3005836ed6be81a167b737d50465ce751220aa7bf7417bc015bbec2d39fb6e2420a5351a9abed2a76c82afe6dba6b710407
7
- data.tar.gz: 8f9352d41d18a509cdc8f2b6157010631b83e573dd9d110ce372ce88001508b56a4d83e88028c5cb97db5f4b9c7f02e432a3e54ff644b9015940777cbadd04c8
6
+ metadata.gz: 7a8a8671ee3fed019f9af565c61e71cb9c2a0884e5bc551aed5677d12607e6471cf3b765c0976b827fc715bda81d64afd1cdb7ace567472152f1d191e1e2510c
7
+ data.tar.gz: 751c252e6e8a81a235ba144e348e2611fcbf19b5f15d7bc742f6ec915937b55a2591840ea01b9447e6cac8d4b8686a4a828e954105a710a422746418d3fbd39f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # v0.4.0
2
+ * Update internal path layout
3
+
1
4
  # v0.1.28
2
5
  * Add custom exception type for declined confirmations
3
6
 
data/CONTRIBUTING.md CHANGED
@@ -1,22 +1,18 @@
1
1
  # Contributing
2
2
 
3
- ## Branches
3
+ ## Fixes
4
4
 
5
- ### `master` branch
5
+ Have a fix to some bug you want to submit? Well you're
6
+ awesome. Please just include a description of the bug
7
+ (or link to originating issue) and test coverage on the
8
+ modifications.
6
9
 
7
- The master branch is the current stable released version.
10
+ ## New Features
8
11
 
9
- ### `develop` branch
10
-
11
- The develop branch is the current edge of development.
12
-
13
- ## Pull requests
14
-
15
- * https://github.com/spox/bogo-ui/pulls
16
-
17
- Please base all pull requests of the `develop` branch. Merges to
18
- `master` only occur through the `develop` branch. Pull requests
19
- based on `master` will likely be cherry picked.
12
+ Have a new feature you want to add? Well you're awesome
13
+ too! It may be a good idea to submit an issue first to
14
+ describe the desired feature and get any feedback. Please
15
+ be sure to include tests.
20
16
 
21
17
  ## Issues
22
18
 
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2014 Chris Roberts
1
+ Copyright 2022 Chris Roberts
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.
@@ -10,4 +10,4 @@
10
10
  distributed under the License is distributed on an "AS IS" BASIS,
11
11
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
  See the License for the specific language governing permissions and
13
- limitations under the License.
13
+ limitations under the License.
data/README.md CHANGED
@@ -7,10 +7,10 @@ Simple CLI output helpers.
7
7
  Output formatted information to the CLI.
8
8
 
9
9
  ```ruby
10
- require 'bogo-ui'
10
+ require 'bogo/ui'
11
11
 
12
12
  ui = Bogo::Ui.new(
13
- :app_name => 'TestApp'
13
+ app_name: 'TestApp'
14
14
  )
15
15
 
16
16
  ui.info 'This is information'
@@ -29,9 +29,9 @@ This is a table helper. Under the hood it uses the Command Line Reporter
29
29
  with a few modifications. Direct usage:
30
30
 
31
31
  ```ruby
32
- require 'bogo-ui'
32
+ require 'bogo/ui'
33
33
 
34
- ui = Bogo::Ui.new(:app_name => 'TestApp')
34
+ ui = Bogo::Ui.new(app_name: 'TestApp')
35
35
  Bogo::Ui::Table.new(ui) do
36
36
  table do
37
37
  row do
@@ -51,9 +51,9 @@ for when polling for updates and wanting to keep the existing table
51
51
  structure:
52
52
 
53
53
  ```ruby
54
- require 'bogo-ui'
54
+ require 'bogo/ui'
55
55
 
56
- ui = Bogo::Ui.new(:app_name => 'TestApp')
56
+ ui = Bogo::Ui.new(app_name: 'TestApp')
57
57
  tbl = Bogo::Ui::Table.new(ui) do
58
58
  table do
59
59
  row do
@@ -81,4 +81,4 @@ tbl.display
81
81
 
82
82
  ## Info
83
83
  * Repository: https://github.com/spox/bogo-ui
84
- * Command Line Reporter: https://github.com/wbailey/command_line_reporter
84
+ * Command Line Reporter: https://github.com/wbailey/command_line_reporter
data/bogo-ui.gemspec CHANGED
@@ -1,5 +1,5 @@
1
1
  $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__)) + '/lib/'
2
- require 'bogo-ui/version'
2
+ require 'bogo/ui/version'
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'bogo-ui'
5
5
  s.version = Bogo::Ui::VERSION.version
@@ -10,8 +10,10 @@ Gem::Specification.new do |s|
10
10
  s.description = 'UI Helper libraries'
11
11
  s.require_path = 'lib'
12
12
  s.license = 'Apache 2.0'
13
- s.add_dependency 'bogo'
14
- s.add_dependency 'command_line_reporter'
15
- s.add_dependency 'paint'
13
+ s.add_runtime_dependency 'bogo', '~> 0.2'
14
+ s.add_runtime_dependency 'command_line_reporter', '~> 4.0'
15
+ s.add_runtime_dependency 'paint', '~> 2.2'
16
+ s.add_development_dependency 'rake', '~> 13.0'
17
+ s.add_development_dependency 'minitest', '~> 5.5'
16
18
  s.files = Dir['lib/**/*'] + %w(bogo-ui.gemspec README.md CHANGELOG.md CONTRIBUTING.md LICENSE)
17
19
  end
@@ -1,4 +1,3 @@
1
- require 'bogo-ui'
2
1
  require 'command_line_reporter'
3
2
 
4
3
  module Bogo
@@ -47,6 +46,7 @@ module Bogo
47
46
  self
48
47
  end
49
48
 
49
+ undef_method :table # Remove imported table method before defining
50
50
  # Override to provide buffered support
51
51
  #
52
52
  # @param options [Hash]
@@ -1,6 +1,6 @@
1
1
  module Bogo
2
2
  class Ui
3
3
  # Current library version
4
- VERSION = Gem::Version.new('0.1.28')
4
+ VERSION = Gem::Version.new('0.4.0')
5
5
  end
6
6
  end
@@ -1,17 +1,17 @@
1
- require 'bogo-ui'
1
+ require 'bogo'
2
2
  require 'paint'
3
3
  require 'io/console'
4
4
 
5
5
  module Bogo
6
6
  # CLI UI helper
7
7
  class Ui
8
+ autoload :Table, 'bogo/ui/table'
9
+ autoload :VERSION, 'bogo/ui/version'
8
10
 
9
11
  # Custom exception type when confirmation is
10
12
  # declined by the user
11
13
  class ConfirmationDeclined < StandardError; end
12
14
 
13
- autoload :Table, 'bogo-ui/table'
14
-
15
15
  # @return [Truthy, Falsey]
16
16
  attr_accessor :colorize
17
17
  # @return [String]
@@ -199,6 +199,5 @@ module Bogo
199
199
  def table(inst=nil, &block)
200
200
  Table.new(self, inst, &block)
201
201
  end
202
-
203
202
  end
204
203
  end
metadata CHANGED
@@ -1,57 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bogo-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.28
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-26 00:00:00.000000000 Z
11
+ date: 2022-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bogo
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '0.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '0.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: command_line_reporter
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '4.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '4.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: paint
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '2.2'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '2.2'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '13.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '13.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '5.5'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '5.5'
55
83
  description: UI Helper libraries
56
84
  email: code@chrisroberts.org
57
85
  executables: []
@@ -63,10 +91,9 @@ files:
63
91
  - LICENSE
64
92
  - README.md
65
93
  - bogo-ui.gemspec
66
- - lib/bogo-ui.rb
67
- - lib/bogo-ui/table.rb
68
- - lib/bogo-ui/ui.rb
69
- - lib/bogo-ui/version.rb
94
+ - lib/bogo/ui.rb
95
+ - lib/bogo/ui/table.rb
96
+ - lib/bogo/ui/version.rb
70
97
  homepage: https://github.com/spox/bogo-ui
71
98
  licenses:
72
99
  - Apache 2.0
@@ -86,8 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
113
  - !ruby/object:Gem::Version
87
114
  version: '0'
88
115
  requirements: []
89
- rubyforge_project:
90
- rubygems_version: 2.7.6
116
+ rubygems_version: 3.4.0.dev
91
117
  signing_key:
92
118
  specification_version: 4
93
119
  summary: UI Helper libraries
data/lib/bogo-ui.rb DELETED
@@ -1,3 +0,0 @@
1
- require 'bogo'
2
- require 'bogo-ui/ui'
3
- require 'bogo-ui/version'