fat_table 0.9.9 → 1.0.0
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/.github/workflows/ruby-with-dbs.yml +180 -0
- data/.gitignore +4 -1
- data/.rubocop.yml +9 -2
- data/.simplecov +2 -0
- data/.yardopts +4 -5
- data/CHANGELOG.md +303 -0
- data/CHANGELOG.org +145 -0
- data/Gemfile +5 -7
- data/README.md +2961 -0
- data/README.org +1234 -914
- data/Rakefile +5 -0
- data/bin/ft_console +1 -0
- data/fat_table.gemspec +2 -0
- data/lib/{ext → core_ext}/array.rb +2 -0
- data/lib/core_ext/numeric_string.rb +196 -0
- data/lib/core_ext.rb +4 -0
- data/lib/fat_table/column.rb +5 -1
- data/lib/fat_table/convert.rb +2 -0
- data/lib/fat_table/footer.rb +1 -1
- data/lib/fat_table/formatters/formatter.rb +26 -52
- data/lib/fat_table/formatters/latex_formatter.rb +2 -2
- data/lib/fat_table/table.rb +8 -8
- data/lib/fat_table/version.rb +1 -1
- data/lib/fat_table.rb +51 -26
- metadata +11 -14
- data/examples/create_trans.sql +0 -14
- data/examples/quick.pdf +0 -0
- data/examples/quick.png +0 -0
- data/examples/quick.ppm +0 -0
- data/examples/quick.tex +0 -8
- data/examples/quick_small.png +0 -0
- data/examples/quicktable.tex +0 -123
- data/examples/trades.db +0 -0
- data/examples/trans.csv +0 -13
- /data/{lib/fat_table/formatters → data}/xcolors.txt +0 -0
data/CHANGELOG.org
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
* COMMENT CHANGELOG tips:
|
|
2
|
+
1. Don't dump your git change logs into this file, write them yourself.
|
|
3
|
+
2. Keep entries short and user-focused,
|
|
4
|
+
3. Use non-technical language, but do speak in the vocabulary of your gem.
|
|
5
|
+
4. Don't document changes only of interest to the programmers, just those the
|
|
6
|
+
user would find useful.
|
|
7
|
+
5. Give each heading a version number and an inactive date (C-c ! is useful here).
|
|
8
|
+
|
|
9
|
+
* Version 1.0.0 [2025-12-28 Sun]
|
|
10
|
+
- Bug fixes.
|
|
11
|
+
- Numeric default post-digits changed from 0 to 4 so BigDecimal can be
|
|
12
|
+
distinguished from Integers.
|
|
13
|
+
- README more readable with above fix.
|
|
14
|
+
- Documentation improvements.
|
|
15
|
+
- CHANGELOG added.
|
|
16
|
+
|
|
17
|
+
* Version 0.9.9 [2025-03-19 Wed]
|
|
18
|
+
- bug fixes
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
- No notable changes.
|
|
22
|
+
|
|
23
|
+
* Version 0.9.8 [2024-12-31 Tue]
|
|
24
|
+
- bug fixes
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
- No notable changes.
|
|
28
|
+
|
|
29
|
+
* Version 0.9.7 [2024-12-26 Thu]
|
|
30
|
+
- bug fixes
|
|
31
|
+
|
|
32
|
+
- No notable changes
|
|
33
|
+
|
|
34
|
+
* Version 0.9.5 [2023-11-07 Tue]
|
|
35
|
+
- Raise FatTable::NoTable exception when no table can be formed from the
|
|
36
|
+
input.
|
|
37
|
+
- Ingore org rows with the wrong number of columns.
|
|
38
|
+
|
|
39
|
+
* Version 0.9.3 [2023-05-24 Wed]
|
|
40
|
+
- Bug fixes
|
|
41
|
+
|
|
42
|
+
* Version 0.9.2 [2023-05-22 Mon]
|
|
43
|
+
- Bug fixes
|
|
44
|
+
|
|
45
|
+
* Version 0.9.1 [2023-05-22 Mon]
|
|
46
|
+
- Bug fixes
|
|
47
|
+
|
|
48
|
+
* Version 0.9.0 [2023-05-22 Mon]
|
|
49
|
+
- Bug fixes
|
|
50
|
+
|
|
51
|
+
* Version 0.8.0 [2023-04-20 Thu]
|
|
52
|
+
- Changed the API to allow explicit column typing and tolerance designation
|
|
53
|
+
with keyword args such as =head1: 'num~'= to make =head1= column be typed as
|
|
54
|
+
numeric (the =num= part) but tolerant (the =~=)
|
|
55
|
+
|
|
56
|
+
* Version 0.7.0 [2023-04-02 Sun]
|
|
57
|
+
- Bug fixes
|
|
58
|
+
|
|
59
|
+
* Version 0.6.6 [2023-01-09 Mon]
|
|
60
|
+
- Changed the default number of post-decimal digits to 0 for Numeric,
|
|
61
|
+
|
|
62
|
+
* Version 0.6.3 [2022-06-04 Sat]
|
|
63
|
+
- Allow select to set new column to a constant,
|
|
64
|
+
- Allow select string expression to signal literal string with a leading
|
|
65
|
+
colon, since string constants are now allowed; otherwise eval the string.
|
|
66
|
+
- Added day-of-week to org-formatted dates just like =org-mode=
|
|
67
|
+
|
|
68
|
+
* Version 0.6.2 [2022-05-24 Tue]
|
|
69
|
+
- Bug fixes
|
|
70
|
+
|
|
71
|
+
* Version 0.6.1 [2022-03-26 Sat]
|
|
72
|
+
- Fixed bug in dynamic labels in footers,
|
|
73
|
+
|
|
74
|
+
* Version 0.6.0 [2022-03-26 Sat]
|
|
75
|
+
- Added dynamic labels in footers,
|
|
76
|
+
|
|
77
|
+
* Version 0.5.5 [2022-03-25 Fri]
|
|
78
|
+
- Better handling of aggregates for all-nil columns
|
|
79
|
+
|
|
80
|
+
* Version 0.5.4 [2022-01-27 Thu]
|
|
81
|
+
- Aggregate function filter out all type-incompatible elements, not just nils,
|
|
82
|
+
since tolerant columns may have such elements,
|
|
83
|
+
- Make header-based formatting a higher priority than type-based formatting,
|
|
84
|
+
|
|
85
|
+
* Version 0.5.3 [2022-01-24 Mon]
|
|
86
|
+
- Added support for "tolerant" column types that allow non-coercable strings
|
|
87
|
+
in non-String columns,
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
* Version 0.5.2 [2022-01-22 Sat]
|
|
91
|
+
- documentation only
|
|
92
|
+
|
|
93
|
+
* Version 0.5.1 [2022-01-21 Fri]
|
|
94
|
+
- changed =rng= column aggregate to =range= and return =Range(min, max)=
|
|
95
|
+
- Added new methods for forming table footers based on aggregates,
|
|
96
|
+
- Allow lambdas as group aggregate functions,
|
|
97
|
+
- Improved handling of nils in aggregate and =order_by=,
|
|
98
|
+
- Added an =order_with= method for ordering by expression,
|
|
99
|
+
- Bug fixes and performance improvements,
|
|
100
|
+
- Added special symbol =:omni= in =select= as short-hand for all columns,
|
|
101
|
+
|
|
102
|
+
* Version 0.4.2 [2022-01-06 Thu]
|
|
103
|
+
- bug fixes only
|
|
104
|
+
|
|
105
|
+
* Version 0.4.0 [2022-01-02 Sun]
|
|
106
|
+
- bug fixes only
|
|
107
|
+
|
|
108
|
+
* Version 0.3.4 [2022-01-01 Sat]
|
|
109
|
+
- minor bug fix only
|
|
110
|
+
|
|
111
|
+
* Version 0.3.3 [2022-01-01 Sat]
|
|
112
|
+
- Added date format 'Tue, 01 Nov 2016' to be parsed as a Date.
|
|
113
|
+
|
|
114
|
+
* Version 0.3.1 [2020-12-13 Sun]
|
|
115
|
+
- documentation only
|
|
116
|
+
|
|
117
|
+
* Version 0.3.0 [2020-06-10 Wed]
|
|
118
|
+
- gem dependency changes only
|
|
119
|
+
|
|
120
|
+
* Version 0.2.11 [2019-12-29 Sun]
|
|
121
|
+
- bug fixes only
|
|
122
|
+
|
|
123
|
+
* Version 0.2.9 [2019-04-04 Thu]
|
|
124
|
+
- documentation fixes only
|
|
125
|
+
|
|
126
|
+
* Version 0.2.8 [2018-08-28 Tue]
|
|
127
|
+
- No notable changes
|
|
128
|
+
|
|
129
|
+
* Version 0.2.7 [2017-12-29 Fri]
|
|
130
|
+
- Minor bug fixes and performance improvements
|
|
131
|
+
|
|
132
|
+
* Version 0.2.6 [2017-10-27 Fri]
|
|
133
|
+
- Added recognition of American-style dates
|
|
134
|
+
- Allows + or negative signs before numbers
|
|
135
|
+
- Added =ivars= that can be set in =before_hook= and =after_hook=
|
|
136
|
+
- Allowed American-order date 'mm-dd-yyyy' to be parsed
|
|
137
|
+
|
|
138
|
+
* Version 0.2.4 [2017-05-23 Tue]
|
|
139
|
+
- Added instance variables to ft_console
|
|
140
|
+
|
|
141
|
+
* Version 0.2.3 [2017-05-08 Mon]
|
|
142
|
+
- No notable changes
|
|
143
|
+
|
|
144
|
+
* Version 0.2.2 [2017-05-08 Mon]
|
|
145
|
+
- Initial release
|
data/Gemfile
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
source 'https://rubygems.org'
|
|
4
4
|
|
|
5
|
-
# Specify your gem's dependencies in fat_table.gemspec
|
|
6
5
|
gemspec
|
|
7
6
|
|
|
8
7
|
gem 'bundler'
|
|
@@ -14,8 +13,7 @@ gem 'redcarpet'
|
|
|
14
13
|
gem 'pg'
|
|
15
14
|
gem 'sqlite3'
|
|
16
15
|
gem 'rspec', '~> 3.0'
|
|
17
|
-
gem 'rubocop'
|
|
18
|
-
gem 'rubocop-
|
|
19
|
-
gem 'rubocop-rake'
|
|
20
|
-
gem 'rubocop-performance'
|
|
16
|
+
gem 'rubocop', require: false
|
|
17
|
+
gem 'rubocop-ddoherty', git: 'https://github.com/ddoherty03/rubocop-ddoherty.git', branch: 'master', require: false
|
|
21
18
|
gem 'simplecov'
|
|
19
|
+
gem "gem_docs", '>=0.3.1'
|