formatador 0.2.5 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/Gemfile +1 -1
- data/LICENSE.md +1 -1
- data/{README.rdoc → README.md} +95 -67
- data/Rakefile +2 -8
- data/changelog.txt +30 -0
- data/formatador.gemspec +7 -10
- data/lib/formatador/table.rb +15 -8
- data/lib/formatador.rb +13 -4
- data/tests/table_tests.rb +50 -1
- data/tests/tests_helper.rb +12 -0
- metadata +32 -19
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
MGRkYmM5ZGM0OTliYjI4NjEwY2M3NDZmYWI2NWYwOTZjM2ZkOWExMw==
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c7691580892da9215dfc4bbe6523203fef95cd0c57a25652af464d208e1a7a64
|
4
|
+
data.tar.gz: 8e99624363cc7a8b76d2cc699664618d184ffdffe16ca4d4b3ce73927aa3e5d0
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
MmU0ZjEwZTVhOTdlZWU3ZGYyOTE5YTc3YTA4Y2MxNDM3MDQyYmY0ZjMzNmY3
|
11
|
-
YTIxNDY1MDMwM2ZiOGI1MzQ3ODJiYWRlZmNiMzIyOWFmNzBiZDY=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
YzcyNzFhYTk2ODI2YjUzZTlhZTAxNWI0MTYzZmJlNGY2MjU2Y2M5MTAxY2Fl
|
14
|
-
OTViZGRlMWVlODgwMWNmOWExNTZlYWY5YzFhNjc4Yzg3Y2IxZDQ5YjJjN2Iw
|
15
|
-
OWUyYjI5ZjAyNDg3Mzk0YmVlMDA5MmU0ZDU3ZmMxOTUyYzRjNjI=
|
6
|
+
metadata.gz: 240f470bb912d51efd07d5916ba31ca06694db82058146ad1d5403959966bc8c4c7c409b5d53958ac6232a87d46ff299e9640a7b5b4333bbff527fdf0055f604
|
7
|
+
data.tar.gz: 10800e56b00b910904da64dc8a8b64d01e717ffcc91ec19d4ac4e3c4e94ce903921722707ca16cc675c082bff888e170b1324da5426f7f8e7c1668de64448b37
|
data/Gemfile
CHANGED
data/LICENSE.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c) 2009-
|
3
|
+
Copyright (c) 2009-2022 [CONTRIBUTORS.md](https://github.com/geemus/formatador/blob/master/CONTRIBUTORS.md)
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
6
|
this software and associated documentation files (the "Software"), to deal in
|
data/{README.rdoc → README.md}
RENAMED
@@ -1,101 +1,129 @@
|
|
1
|
-
|
1
|
+
# formatador
|
2
2
|
|
3
3
|
STDOUT text formatting
|
4
4
|
|
5
|
-
|
5
|
+
[![Build Status](https://github.com/geemus/formatador/actions/workflows/ruby.yml/badge.svg)](https://github.com/geemus/formatador/actions/workflows/ruby.yml)
|
6
|
+
|
7
|
+
## Quick and dirty
|
6
8
|
|
7
9
|
You can call class methods to print out single lines like this:
|
8
10
|
|
9
|
-
|
11
|
+
```ruby
|
12
|
+
Formatador.display_line('Hello World')
|
13
|
+
```
|
10
14
|
|
11
15
|
You use tags, similar to html, to set formatting options:
|
12
16
|
|
13
|
-
|
17
|
+
```ruby
|
18
|
+
Formatador.display_line('[green]Hello World[/]')
|
19
|
+
```
|
14
20
|
|
15
|
-
|
21
|
+
`[/]` resets everything to normal, colors are supported and `[_color_]` sets the background color.
|
16
22
|
|
17
|
-
|
23
|
+
## Standard options
|
18
24
|
|
19
25
|
* format - and adds color codes if STDOUT.tty? is true
|
20
26
|
* display - calls format on the input and prints it
|
21
27
|
* display_line - calls display, but adds on a newline (\n)
|
22
28
|
* redisplay - Displays text, prepended with \r which will overwrite the last existing line
|
23
29
|
|
24
|
-
|
30
|
+
## Extensions
|
25
31
|
|
26
32
|
* display_table: takes an array of hashes. Each hash is a row, with the keys being the headers and values being the data. An optional second argument can specify which headers/columns to include and in what order they should appear.
|
27
33
|
* display_compact_table: Same as display_table, execpt that split lines are not drawn by default in the body of the table. If you need a split line, put a :split constant in the body array.
|
28
34
|
* redisplay_progressbar: takes the current and total values as its first two arguments and redisplays a progressbar (until current = total and then it display_lines). An optional third argument represents the start time and will add an elapsed time counter.
|
29
35
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
36
|
+
### Progress Bar examples
|
37
|
+
|
38
|
+
```ruby
|
39
|
+
total = 1000
|
40
|
+
progress = Formatador::ProgressBar.new(total)
|
41
|
+
|
42
|
+
1000.times do
|
43
|
+
progress.increment
|
44
|
+
end
|
45
|
+
|
46
|
+
#=> 978/1000 |************************************************* |
|
47
|
+
|
48
|
+
# Change the color of the bar
|
49
|
+
total = 1000
|
50
|
+
progress = Formatador::ProgressBar.new(total, :color => "light_blue")
|
51
|
+
|
52
|
+
1000.times do
|
53
|
+
progress.increment
|
54
|
+
end
|
55
|
+
|
56
|
+
# Change the color of a completed progress bar
|
57
|
+
total = 1000
|
58
|
+
progress = Formatador::ProgressBar.new(total) { |b| b.opts[:color] = "green" }
|
59
|
+
|
60
|
+
1000.times do
|
61
|
+
progress.increment
|
62
|
+
end
|
63
|
+
```
|
64
|
+
|
65
|
+
### Table examples
|
66
|
+
|
67
|
+
```ruby
|
68
|
+
table_data = [
|
69
|
+
{ :name => "Joe", :food => "Burger" },
|
70
|
+
{ :name => "Bill", :food => "French fries" }
|
71
|
+
]
|
72
|
+
Formatador.display_table(table_data)
|
73
|
+
|
74
|
+
#=> +------+--------------+
|
75
|
+
# | name | food |
|
76
|
+
# +------+--------------+
|
77
|
+
# | Joe | Burger |
|
78
|
+
# +------+--------------+
|
79
|
+
# | Bill | French fries |
|
80
|
+
# +------+--------------+
|
81
|
+
|
82
|
+
table_data = [
|
83
|
+
{
|
84
|
+
:name => "Joe",
|
85
|
+
:meal => {
|
86
|
+
:main_dish => "Burger",
|
87
|
+
:drink => "water"
|
88
|
+
}
|
89
|
+
},
|
90
|
+
{
|
91
|
+
:name => "Bill",
|
92
|
+
:meal => {
|
93
|
+
:main_dish => "Chicken",
|
94
|
+
:drink => "soda"
|
95
|
+
}
|
96
|
+
}
|
97
|
+
]
|
98
|
+
Formatador.display_table(table_data, [:name, :"meal.drink"])
|
74
99
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
100
|
+
#=> +------+------------+
|
101
|
+
# | name | meal.drink |
|
102
|
+
# +------+------------+
|
103
|
+
# | Joe | water |
|
104
|
+
# +------+------------+
|
105
|
+
# | Bill | soda |
|
106
|
+
# +------+------------+
|
107
|
+
```
|
82
108
|
|
83
|
-
|
109
|
+
## Indentation
|
84
110
|
|
85
111
|
By initializing a formatador object you can keep track of indentation:
|
86
112
|
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
113
|
+
```ruby
|
114
|
+
formatador = Formatador.new
|
115
|
+
formatador.display_line('one level of indentation')
|
116
|
+
formatador.indent {
|
117
|
+
formatador.display_line('two levels of indentation')
|
118
|
+
}
|
119
|
+
formatador.display_line('one level of indentation')
|
120
|
+
```
|
93
121
|
|
94
|
-
|
122
|
+
## Copyright
|
95
123
|
|
96
124
|
(The MIT License)
|
97
125
|
|
98
|
-
Copyright (c)
|
126
|
+
Copyright (c) 2022 [geemus (Wesley Beary)](http://github.com/geemus)
|
99
127
|
|
100
128
|
Permission is hereby granted, free of charge, to any person obtaining
|
101
129
|
a copy of this software and associated documentation files (the
|
data/Rakefile
CHANGED
@@ -21,10 +21,6 @@ def date
|
|
21
21
|
Date.today.to_s
|
22
22
|
end
|
23
23
|
|
24
|
-
def rubyforge_project
|
25
|
-
name
|
26
|
-
end
|
27
|
-
|
28
24
|
def gemspec_file
|
29
25
|
"#{name}.gemspec"
|
30
26
|
end
|
@@ -56,7 +52,7 @@ task :coverage do
|
|
56
52
|
sh "open coverage/index.html"
|
57
53
|
end
|
58
54
|
|
59
|
-
require '
|
55
|
+
require 'rdoc/task'
|
60
56
|
Rake::RDocTask.new do |rdoc|
|
61
57
|
rdoc.rdoc_dir = 'rdoc'
|
62
58
|
rdoc.title = "#{name} #{version}"
|
@@ -88,7 +84,7 @@ task :release => :build do
|
|
88
84
|
puts "You must be on the master branch to release!"
|
89
85
|
exit!
|
90
86
|
end
|
91
|
-
sh "
|
87
|
+
sh "gem install pkg/#{name}-#{version}.gem"
|
92
88
|
sh "git commit --allow-empty -a -m 'Release #{version}'"
|
93
89
|
sh "git tag v#{version}"
|
94
90
|
sh "git push origin master"
|
@@ -111,8 +107,6 @@ task :gemspec => :validate do
|
|
111
107
|
replace_header(head, :name)
|
112
108
|
replace_header(head, :version)
|
113
109
|
replace_header(head, :date)
|
114
|
-
#comment this out if your rubyforge_project has a different name
|
115
|
-
replace_header(head, :rubyforge_project)
|
116
110
|
|
117
111
|
# determine file list from git ls-files
|
118
112
|
files = `git ls-files`.
|
data/changelog.txt
CHANGED
@@ -1,3 +1,33 @@
|
|
1
|
+
v1.0.0 01/20/21
|
2
|
+
===============
|
3
|
+
|
4
|
+
release v1, it's been stable for ages
|
5
|
+
|
6
|
+
v0.3.0 06/17/21
|
7
|
+
===============
|
8
|
+
|
9
|
+
add travis badge to readme
|
10
|
+
change readme to md
|
11
|
+
fix markdown readme
|
12
|
+
fix travis badge
|
13
|
+
monkey-patch StringIO to try and fix jruby build
|
14
|
+
override tty? for jruby build
|
15
|
+
fix copyright statement
|
16
|
+
use unicode.width instead of string.length
|
17
|
+
remove unicode from requirements, use only if loaded
|
18
|
+
display datum who's value is a FalseClass
|
19
|
+
more colors with syntax-specific code/length limitations
|
20
|
+
better code visualization in readme
|
21
|
+
update readme
|
22
|
+
remove broken rubinius build from CI
|
23
|
+
fix length method to detect multibyte char width
|
24
|
+
fix test for table with multi byte chars
|
25
|
+
support multibyte characters
|
26
|
+
update CI to 2.2.7, 2.3.4, and 2.4.1
|
27
|
+
drop rubyforge_project from gemspec and rakefile
|
28
|
+
change github reference to https
|
29
|
+
change readme.rdoc to readme.md in gemspec
|
30
|
+
|
1
31
|
v0.2.5 05/23/14
|
2
32
|
===============
|
3
33
|
|
data/formatador.gemspec
CHANGED
@@ -13,9 +13,8 @@ Gem::Specification.new do |s|
|
|
13
13
|
## If your rubyforge_project name is different, then edit it and comment out
|
14
14
|
## the sub! line in the Rakefile
|
15
15
|
s.name = 'formatador'
|
16
|
-
s.version = '
|
17
|
-
s.date = '
|
18
|
-
s.rubyforge_project = 'formatador'
|
16
|
+
s.version = '1.1.0'
|
17
|
+
s.date = '2022-01-24'
|
19
18
|
|
20
19
|
## Make sure your summary is short. The description may be as long
|
21
20
|
## as you like.
|
@@ -27,7 +26,8 @@ Gem::Specification.new do |s|
|
|
27
26
|
## a custom homepage, consider using your GitHub URL or the like.
|
28
27
|
s.authors = ["geemus (Wesley Beary)"]
|
29
28
|
s.email = 'geemus@gmail.com'
|
30
|
-
s.homepage = "
|
29
|
+
s.homepage = "https://github.com/geemus/#{s.name}"
|
30
|
+
s.license = 'MIT'
|
31
31
|
|
32
32
|
## This gets added to the $LOAD_PATH so that 'lib/NAME.rb' can be required as
|
33
33
|
## require 'NAME.rb' or'/lib/NAME/file.rb' can be as require 'NAME/file.rb'
|
@@ -44,7 +44,7 @@ Gem::Specification.new do |s|
|
|
44
44
|
## Specify any RDoc options here. You'll want to add your README and
|
45
45
|
## LICENSE files to the extra_rdoc_files list.
|
46
46
|
s.rdoc_options = ["--charset=UTF-8"]
|
47
|
-
s.extra_rdoc_files = %w[README.
|
47
|
+
s.extra_rdoc_files = %w[README.md]
|
48
48
|
|
49
49
|
## List your runtime dependencies here. Runtime dependencies are those
|
50
50
|
## that are needed for an end user to actually USE your code.
|
@@ -53,6 +53,7 @@ Gem::Specification.new do |s|
|
|
53
53
|
## List your development dependencies here. Development dependencies are
|
54
54
|
## those that are only needed during development
|
55
55
|
s.add_development_dependency('rake')
|
56
|
+
s.add_development_dependency('rdoc')
|
56
57
|
s.add_development_dependency('shindo')
|
57
58
|
|
58
59
|
## Leave this section as-is. It will be automatically generated from the
|
@@ -64,7 +65,7 @@ Gem::Specification.new do |s|
|
|
64
65
|
CONTRIBUTORS.md
|
65
66
|
Gemfile
|
66
67
|
LICENSE.md
|
67
|
-
README.
|
68
|
+
README.md
|
68
69
|
Rakefile
|
69
70
|
changelog.txt
|
70
71
|
formatador.gemspec
|
@@ -76,8 +77,4 @@ Gem::Specification.new do |s|
|
|
76
77
|
tests/tests_helper.rb
|
77
78
|
]
|
78
79
|
# = MANIFEST =
|
79
|
-
|
80
|
-
## Test files will be grabbed from the file list. Make sure the path glob
|
81
|
-
## matches what you actually use.
|
82
|
-
s.test_files = s.files.select { |path| path =~ /^[spec|tests]\/.*_[spec|tests]\.rb/ }
|
83
80
|
end
|
data/lib/formatador/table.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
class Formatador
|
2
|
-
def display_table(hashes, keys = nil, &block)
|
2
|
+
def display_table(hashes, keys = nil, **options, &block)
|
3
3
|
new_hashes = hashes.inject([]) do |accum,item|
|
4
4
|
accum << :split unless accum.empty?
|
5
5
|
accum << item
|
6
6
|
end
|
7
|
-
display_compact_table(new_hashes, keys, &block)
|
7
|
+
display_compact_table(new_hashes, keys, **options, &block)
|
8
8
|
end
|
9
9
|
|
10
|
-
def display_compact_table(hashes, keys = nil, &block)
|
10
|
+
def display_compact_table(hashes, keys = nil, **options, &block)
|
11
11
|
headers = keys || []
|
12
12
|
widths = {}
|
13
13
|
|
@@ -59,12 +59,12 @@ class Formatador
|
|
59
59
|
|
60
60
|
hashes.each do |hash|
|
61
61
|
if hash.respond_to? :keys
|
62
|
-
columns =
|
63
|
-
headers.each do |header|
|
62
|
+
columns = headers.map do |header|
|
64
63
|
datum = calculate_datum(header, hash)
|
65
64
|
width = widths[header] - length(datum)
|
66
65
|
width = width < 0 ? 0 : width
|
67
|
-
|
66
|
+
|
67
|
+
datum.is_a?(Numeric) && options[:numeric_rjust] ? "#{' ' * width}#{datum}" : "#{datum}#{' ' * width}"
|
68
68
|
end
|
69
69
|
display_line("| #{columns.join(' | ')} |")
|
70
70
|
else
|
@@ -80,7 +80,14 @@ class Formatador
|
|
80
80
|
private
|
81
81
|
|
82
82
|
def length(value)
|
83
|
-
|
83
|
+
if Module.const_defined?(:Unicode)
|
84
|
+
Unicode.width(value.to_s.gsub(PARSE_REGEX, ''))
|
85
|
+
else
|
86
|
+
value.to_s.gsub(PARSE_REGEX, '').chars.reduce(0) { |sum, char| sum += char.bytesize > 1 ? 2 : 1 }
|
87
|
+
end
|
88
|
+
|
89
|
+
rescue NotImplementedError
|
90
|
+
value.to_s.gsub(PARSE_REGEX, '').chars.reduce(0) { |sum, char| sum += char.bytesize > 1 ? 2 : 1 }
|
84
91
|
end
|
85
92
|
|
86
93
|
def calculate_datum(header, hash)
|
@@ -91,7 +98,7 @@ class Formatador
|
|
91
98
|
datum = d[split] || d[split.to_sym] || ''
|
92
99
|
end
|
93
100
|
else
|
94
|
-
datum = hash
|
101
|
+
datum = hash.fetch(header, '')
|
95
102
|
end
|
96
103
|
datum
|
97
104
|
end
|
data/lib/formatador.rb
CHANGED
@@ -3,7 +3,7 @@ require File.join(File.dirname(__FILE__), 'formatador', 'progressbar')
|
|
3
3
|
|
4
4
|
class Formatador
|
5
5
|
|
6
|
-
VERSION = '
|
6
|
+
VERSION = '1.1.0'
|
7
7
|
|
8
8
|
STYLES = {
|
9
9
|
:"\/" => "0",
|
@@ -62,7 +62,7 @@ class Formatador
|
|
62
62
|
|
63
63
|
def display(string = '')
|
64
64
|
print(parse("[indent]#{string}"))
|
65
|
-
|
65
|
+
$stdout.flush
|
66
66
|
nil
|
67
67
|
end
|
68
68
|
|
@@ -80,7 +80,7 @@ class Formatador
|
|
80
80
|
end
|
81
81
|
|
82
82
|
def parse(string)
|
83
|
-
if
|
83
|
+
if $stdout.tty?
|
84
84
|
string.gsub(PARSE_REGEX) { "\e[#{STYLES[$1.to_sym]}m" }.gsub(INDENT_REGEX) { indentation }
|
85
85
|
else
|
86
86
|
strip(string)
|
@@ -119,7 +119,7 @@ class Formatador
|
|
119
119
|
string.gsub(PARSE_REGEX, '').gsub(INDENT_REGEX) { indentation }
|
120
120
|
end
|
121
121
|
|
122
|
-
%w{display display_line display_lines
|
122
|
+
%w{display display_line display_lines indent parse redisplay redisplay_line new_line redisplay_progressbar}.each do |method|
|
123
123
|
eval <<-DEF
|
124
124
|
def self.#{method}(*args, &block)
|
125
125
|
Thread.current[:formatador] ||= new
|
@@ -128,4 +128,13 @@ class Formatador
|
|
128
128
|
DEF
|
129
129
|
end
|
130
130
|
|
131
|
+
%w{display_table display_compact_table}.each do |method|
|
132
|
+
eval <<-DEF
|
133
|
+
def self.#{method}(*args, **kwargs, &block)
|
134
|
+
Thread.current[:formatador] ||= new
|
135
|
+
Thread.current[:formatador].#{method}(*args, **kwargs, &block)
|
136
|
+
end
|
137
|
+
DEF
|
138
|
+
end
|
139
|
+
|
131
140
|
end
|
data/tests/table_tests.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# coding: utf-8
|
1
2
|
Shindo.tests("Formatador: tables") do
|
2
3
|
|
3
4
|
output = <<-OUTPUT
|
@@ -93,4 +94,52 @@ output = Formatador.parse(output)
|
|
93
94
|
end
|
94
95
|
end
|
95
96
|
|
96
|
-
|
97
|
+
output = <<-OUTPUT
|
98
|
+
+-------------------------+----------------+
|
99
|
+
| [bold]right-justify a numeric[/] | [bold]standard value[/] |
|
100
|
+
+-------------------------+----------------+
|
101
|
+
| 12345 | value |
|
102
|
+
+-------------------------+----------------+
|
103
|
+
OUTPUT
|
104
|
+
output = Formatador.parse(output)
|
105
|
+
|
106
|
+
tests("#display_table([{'right-justify a numeric' => 12345, 'standard value' => 'standard value'}], numeric_rjust: true)").returns(output) do
|
107
|
+
capture_stdout do
|
108
|
+
Formatador.display_table([{'right-justify a numeric' => 12345, 'standard value' => 'value'}], numeric_rjust: true)
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
output = <<-OUTPUT
|
113
|
+
+--------+------------+
|
114
|
+
| [bold]header[/] | [bold]nested.key[/] |
|
115
|
+
+--------+------------+
|
116
|
+
| 12345 | value |
|
117
|
+
+--------+------------+
|
118
|
+
OUTPUT
|
119
|
+
output = Formatador.parse(output)
|
120
|
+
|
121
|
+
tests("#display_table([{:header => 12345, :nested => {:key => value}}], [:header, :'nested.key'], numeric_rjust: true)").returns(output) do
|
122
|
+
capture_stdout do
|
123
|
+
Formatador.display_table([{:header => 12345, :nested => {:key => 'value'}}], [:header, :'nested.key'], numeric_rjust: true)
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
|
128
|
+
output = <<-OUTPUT
|
129
|
+
+------+
|
130
|
+
| [bold]a[/] |
|
131
|
+
+------+
|
132
|
+
| 1 |
|
133
|
+
+------+
|
134
|
+
| 震度 |
|
135
|
+
+------+
|
136
|
+
OUTPUT
|
137
|
+
output = Formatador.parse(output)
|
138
|
+
|
139
|
+
tests("#display_table([{:a => 1}, {:a => '震度'}])").returns(output) do
|
140
|
+
capture_stdout do
|
141
|
+
Formatador.display_table([{:a => 1}, {:a => "震度"}])
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
end
|
data/tests/tests_helper.rb
CHANGED
metadata
CHANGED
@@ -1,41 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: formatador
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- geemus (Wesley Beary)
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rdoc
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
25
39
|
- !ruby/object:Gem::Version
|
26
40
|
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: shindo
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
|
-
- -
|
45
|
+
- - ">="
|
32
46
|
- !ruby/object:Gem::Version
|
33
47
|
version: '0'
|
34
48
|
type: :development
|
35
49
|
prerelease: false
|
36
50
|
version_requirements: !ruby/object:Gem::Requirement
|
37
51
|
requirements:
|
38
|
-
- -
|
52
|
+
- - ">="
|
39
53
|
- !ruby/object:Gem::Version
|
40
54
|
version: '0'
|
41
55
|
description: STDOUT text formatting
|
@@ -43,13 +57,13 @@ email: geemus@gmail.com
|
|
43
57
|
executables: []
|
44
58
|
extensions: []
|
45
59
|
extra_rdoc_files:
|
46
|
-
- README.
|
60
|
+
- README.md
|
47
61
|
files:
|
48
62
|
- CONTRIBUTING.md
|
49
63
|
- CONTRIBUTORS.md
|
50
64
|
- Gemfile
|
51
65
|
- LICENSE.md
|
52
|
-
- README.
|
66
|
+
- README.md
|
53
67
|
- Rakefile
|
54
68
|
- changelog.txt
|
55
69
|
- formatador.gemspec
|
@@ -59,29 +73,28 @@ files:
|
|
59
73
|
- tests/basic_tests.rb
|
60
74
|
- tests/table_tests.rb
|
61
75
|
- tests/tests_helper.rb
|
62
|
-
homepage:
|
63
|
-
licenses:
|
76
|
+
homepage: https://github.com/geemus/formatador
|
77
|
+
licenses:
|
78
|
+
- MIT
|
64
79
|
metadata: {}
|
65
|
-
post_install_message:
|
80
|
+
post_install_message:
|
66
81
|
rdoc_options:
|
67
|
-
- --charset=UTF-8
|
82
|
+
- "--charset=UTF-8"
|
68
83
|
require_paths:
|
69
84
|
- lib
|
70
85
|
required_ruby_version: !ruby/object:Gem::Requirement
|
71
86
|
requirements:
|
72
|
-
- -
|
87
|
+
- - ">="
|
73
88
|
- !ruby/object:Gem::Version
|
74
89
|
version: '0'
|
75
90
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
91
|
requirements:
|
77
|
-
- -
|
92
|
+
- - ">="
|
78
93
|
- !ruby/object:Gem::Version
|
79
94
|
version: '0'
|
80
95
|
requirements: []
|
81
|
-
|
82
|
-
|
83
|
-
signing_key:
|
96
|
+
rubygems_version: 3.3.5
|
97
|
+
signing_key:
|
84
98
|
specification_version: 2
|
85
99
|
summary: Ruby STDOUT text formatting
|
86
100
|
test_files: []
|
87
|
-
has_rdoc:
|