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.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fat_table
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.9
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel E. Doherty
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-19 00:00:00.000000000 Z
10
+ date: 2025-12-28 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: csv
@@ -116,6 +116,7 @@ extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
118
  - ".envrc"
119
+ - ".github/workflows/ruby-with-dbs.yml"
119
120
  - ".gitignore"
120
121
  - ".rspec"
121
122
  - ".rubocop.yml"
@@ -123,25 +124,22 @@ files:
123
124
  - ".solargraph.yml"
124
125
  - ".travis.yml"
125
126
  - ".yardopts"
127
+ - CHANGELOG.md
128
+ - CHANGELOG.org
126
129
  - Gemfile
127
130
  - LICENSE.txt
131
+ - README.md
128
132
  - README.org
129
133
  - README.rdoc
130
134
  - Rakefile
131
135
  - TODO.org
132
136
  - bin/ft_console
133
137
  - bin/setup
134
- - examples/create_trans.sql
135
- - examples/quick.pdf
136
- - examples/quick.png
137
- - examples/quick.ppm
138
- - examples/quick.tex
139
- - examples/quick_small.png
140
- - examples/quicktable.tex
141
- - examples/trades.db
142
- - examples/trans.csv
138
+ - data/xcolors.txt
143
139
  - fat_table.gemspec
144
- - lib/ext/array.rb
140
+ - lib/core_ext.rb
141
+ - lib/core_ext/array.rb
142
+ - lib/core_ext/numeric_string.rb
145
143
  - lib/fat_table.rb
146
144
  - lib/fat_table/column.rb
147
145
  - lib/fat_table/convert.rb
@@ -157,7 +155,6 @@ files:
157
155
  - lib/fat_table/formatters/org_formatter.rb
158
156
  - lib/fat_table/formatters/term_formatter.rb
159
157
  - lib/fat_table/formatters/text_formatter.rb
160
- - lib/fat_table/formatters/xcolors.txt
161
158
  - lib/fat_table/patches.rb
162
159
  - lib/fat_table/table.rb
163
160
  - lib/fat_table/version.rb
@@ -181,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
178
  - !ruby/object:Gem::Version
182
179
  version: '0'
183
180
  requirements: []
184
- rubygems_version: 3.6.3
181
+ rubygems_version: 3.6.2
185
182
  specification_version: 4
186
183
  summary: Provides tools for working with tables as a data type.
187
184
  test_files: []
@@ -1,14 +0,0 @@
1
- drop table trans;
2
- create table trans(date text, code text, raw, shares, price, info text, ok text);
3
- insert into trans values('2013-05-29', 'S', 15700.00, 6601.85, 24.7790, 'ENTITY3', 'F');
4
- insert into trans values('2013-05-02', 'P', 118186.40, 118186.4, 11.8500, 'ENTITY1', 'T');
5
- insert into trans values('2013-05-20', 'S', 12000.00, 5046.00, 28.2804, 'ENTITY3', 'F');
6
- insert into trans values('2013-05-23', 'S', 8000.00, 3364.00, 27.1083, 'ENTITY3', 'T');
7
- insert into trans values('2013-05-23', 'S', 39906.00, 16780.47, 25.1749, 'ENTITY3', 'T');
8
- insert into trans values('2013-05-20', 'S', 85000.00, 35742.50, 28.3224, 'ENTITY3', 'T');
9
- insert into trans values('2013-05-02', 'P', 795546.20, 795546.2, 1.1850, 'ENTITY1', 'T');
10
- insert into trans values('2013-05-29', 'S', 13459.00, 5659.51, 24.7464, 'ENTITY3', 'T');
11
- insert into trans values('2013-05-20', 'S', 33302.00, 14003.49, 28.6383, 'ENTITY3', 'T');
12
- insert into trans values('2013-05-29', 'S', 15900.00, 6685.95, 24.5802, 'ENTITY3', 'T');
13
- insert into trans values('2013-05-30', 'S', 6679.00, 2808.52, 25.0471, 'ENTITY3', 'T');
14
- insert into trans values('2013-05-23', 'S', 23054.00, 9694.21, 26.8015, 'ENTITY3', 'F');
data/examples/quick.pdf DELETED
Binary file
data/examples/quick.png DELETED
Binary file
data/examples/quick.ppm DELETED
Binary file
data/examples/quick.tex DELETED
@@ -1,8 +0,0 @@
1
- \documentclass{article}
2
-
3
- \usepackage{longtable}
4
- \usepackage[pdftex,table,x11names]{xcolor}
5
-
6
- \begin{document}
7
- \include{quicktable.tex}
8
- \end{document}
Binary file
@@ -1,123 +0,0 @@
1
- \begin{longtable}{clcrrc}
2
- \bfseries{Ref}&
3
- \multicolumn{1}{c}{\bfseries{Date}}&
4
- \bfseries{Code}&
5
- \multicolumn{1}{c}{\bfseries{Shares}}&
6
- \multicolumn{1}{c}{\bfseries{Price}}&
7
- \bfseries{Ok}\\
8
- \endhead
9
- \bfseries{1}&
10
- 2013-05-02&
11
- P&
12
- \cellcolor{lightgray}{\textcolor{blue}{118,186.4}}&
13
- \$11.8500&
14
- Y\\
15
- \bfseries{2}&
16
- 2013-05-02&
17
- P&
18
- \cellcolor{lightgray}{\textcolor{blue}{795,546.2}}&
19
- 1.1850&
20
- Y\\
21
- \bfseries{Avg}&
22
- &
23
- \multicolumn{1}{l}{}&
24
- \bfseries{456,866.3}&
25
- \bfseries{6.5175}&
26
- \\
27
- \bfseries{3}&
28
- 2013-05-20&
29
- S&
30
- \cellcolor{lightgray}{\textcolor{blue}{5,046.0}}&
31
- 28.2804&
32
- N\\
33
- \bfseries{4}&
34
- 2013-05-20&
35
- S&
36
- \cellcolor{lightgray}{\textcolor{blue}{35,742.5}}&
37
- 28.3224&
38
- Y\\
39
- \bfseries{5}&
40
- 2013-05-20&
41
- S&
42
- \cellcolor{lightgray}{\textcolor{blue}{14,003.5}}&
43
- 28.6383&
44
- Y\\
45
- \bfseries{Avg}&
46
- &
47
- \multicolumn{1}{l}{}&
48
- \bfseries{18,264.0}&
49
- \bfseries{28.4137}&
50
- \\
51
- \bfseries{6}&
52
- 2013-05-23&
53
- S&
54
- \cellcolor{lightgray}{\textcolor{blue}{3,364.0}}&
55
- 27.1083&
56
- Y\\
57
- \bfseries{7}&
58
- 2013-05-23&
59
- S&
60
- \cellcolor{lightgray}{\textcolor{blue}{16,780.5}}&
61
- 25.1749&
62
- Y\\
63
- \bfseries{8}&
64
- 2013-05-23&
65
- S&
66
- \cellcolor{lightgray}{\textcolor{blue}{9,694.2}}&
67
- 26.8015&
68
- N\\
69
- \bfseries{Avg}&
70
- &
71
- \multicolumn{1}{l}{}&
72
- \bfseries{9,946.2}&
73
- \bfseries{26.3616}&
74
- \\
75
- \bfseries{9}&
76
- 2013-05-29&
77
- S&
78
- \cellcolor{lightgray}{\textcolor{blue}{6,601.9}}&
79
- 24.7790&
80
- N\\
81
- \bfseries{10}&
82
- 2013-05-29&
83
- S&
84
- \cellcolor{lightgray}{\textcolor{blue}{5,659.5}}&
85
- 24.7464&
86
- Y\\
87
- \bfseries{11}&
88
- 2013-05-29&
89
- S&
90
- \cellcolor{lightgray}{\textcolor{blue}{6,686.0}}&
91
- 24.5802&
92
- Y\\
93
- \bfseries{Avg}&
94
- &
95
- \multicolumn{1}{l}{}&
96
- \bfseries{6,315.8}&
97
- \bfseries{24.7019}&
98
- \\
99
- \bfseries{12}&
100
- 2013-05-30&
101
- S&
102
- \cellcolor{lightgray}{\textcolor{blue}{2,808.5}}&
103
- 25.0471&
104
- Y\\
105
- \bfseries{Avg}&
106
- &
107
- \multicolumn{1}{l}{}&
108
- \bfseries{2,808.5}&
109
- \bfseries{25.0471}&
110
- \\
111
- \bfseries{Average}&
112
- &
113
- \multicolumn{1}{l}{}&
114
- \bfseries{85,009.9}&
115
- \bfseries{23.0428}&
116
- \\
117
- \bfseries{Total}&
118
- &
119
- \multicolumn{1}{l}{}&
120
- \bfseries{1,020,119.1}&
121
- \bfseries{}&
122
- \\
123
- \end{longtable}
data/examples/trades.db DELETED
Binary file
data/examples/trans.csv DELETED
@@ -1,13 +0,0 @@
1
- 'Date', 'Code', 'Raw', 'Shares', 'Price', 'Info', 'Ok',
2
- '2013-05-29', 'S', 15700.00, 6601.85, 24.7790, 'ENTITY3', FALSE,
3
- '2013-05-02', 'P', 118186.40, 118186.4, 11.8500, 'ENTITY1', TRUE,
4
- '2013-05-20', 'S', 12000.00, 5046.00, 28.2804, 'ENTITY3', FALSE,
5
- '2013-05-23', 'S', 8000.00, 3364.00, 27.1083, 'ENTITY3', TRUE,
6
- '2013-05-23', 'S', 39906.00, 16780.47, 25.1749, 'ENTITY3', TRUE,
7
- '2013-05-20', 'S', 85000.00, 35742.50, 28.3224, 'ENTITY3', TRUE,
8
- '2013-05-02', 'P', 795546.20, 795546.2, 1.1850, 'ENTITY1', TRUE,
9
- '2013-05-29', 'S', 13459.00, 5659.51, 24.7464, 'ENTITY3', TRUE,
10
- '2013-05-20', 'S', 33302.00, 14003.49, 28.6383, 'ENTITY3', TRUE,
11
- '2013-05-29', 'S', 15900.00, 6685.95, 24.5802, 'ENTITY3', TRUE,
12
- '2013-05-30', 'S', 6679.00, 2808.52, 25.0471, 'ENTITY3', TRUE,
13
- '2013-05-23', 'S', 23054.00, 9694.21, 26.8015, 'ENTITY3', FALSE
File without changes