dbf 4.1.6 → 4.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +172 -108
  3. data/Gemfile.lock +41 -40
  4. data/README.md +1 -1
  5. data/Rakefile +1 -1
  6. data/ci_A.dbf +0 -0
  7. data/lib/dbf/column.rb +3 -3
  8. data/lib/dbf/column_type.rb +9 -12
  9. data/lib/dbf/record.rb +4 -4
  10. data/lib/dbf/table.rb +16 -8
  11. data/lib/dbf/version.rb +1 -1
  12. data/nBOOKS.DBF +0 -0
  13. data/spec/dbf/column_spec.rb +3 -3
  14. data/spec/dbf/file_formats_spec.rb +18 -0
  15. data/spec/fixtures/dbase_02_summary.txt +23 -0
  16. data/spec/fixtures/dbase_32_summary.txt +11 -0
  17. data/spec/fixtures/dbase_8c.dbf +0 -0
  18. metadata +8 -51
  19. data/Gemfile.travis +0 -8
  20. data/docs/CNAME +0 -1
  21. data/docs/DBF/Column/LengthError.html +0 -124
  22. data/docs/DBF/Column/NameError.html +0 -124
  23. data/docs/DBF/Column.html +0 -947
  24. data/docs/DBF/ColumnType/Base.html +0 -389
  25. data/docs/DBF/ColumnType/Boolean.html +0 -238
  26. data/docs/DBF/ColumnType/Currency.html +0 -238
  27. data/docs/DBF/ColumnType/Date.html +0 -242
  28. data/docs/DBF/ColumnType/DateTime.html +0 -246
  29. data/docs/DBF/ColumnType/Double.html +0 -238
  30. data/docs/DBF/ColumnType/Float.html +0 -238
  31. data/docs/DBF/ColumnType/General.html +0 -238
  32. data/docs/DBF/ColumnType/Memo.html +0 -246
  33. data/docs/DBF/ColumnType/Nil.html +0 -238
  34. data/docs/DBF/ColumnType/Number.html +0 -242
  35. data/docs/DBF/ColumnType/SignedLong.html +0 -238
  36. data/docs/DBF/ColumnType/String.html +0 -240
  37. data/docs/DBF/ColumnType.html +0 -115
  38. data/docs/DBF/Database/Foxpro.html +0 -653
  39. data/docs/DBF/Database/Table.html +0 -346
  40. data/docs/DBF/Database.html +0 -126
  41. data/docs/DBF/FileNotFoundError.html +0 -124
  42. data/docs/DBF/Header.html +0 -723
  43. data/docs/DBF/Memo/Base.html +0 -485
  44. data/docs/DBF/Memo/Dbase3.html +0 -242
  45. data/docs/DBF/Memo/Dbase4.html +0 -230
  46. data/docs/DBF/Memo/Foxpro.html +0 -268
  47. data/docs/DBF/Memo.html +0 -117
  48. data/docs/DBF/NoColumnsDefined.html +0 -124
  49. data/docs/DBF/Record.html +0 -773
  50. data/docs/DBF/Schema.html +0 -980
  51. data/docs/DBF/Table.html +0 -1571
  52. data/docs/DBF.html +0 -200
  53. data/docs/_index.html +0 -415
  54. data/docs/class_list.html +0 -51
  55. data/docs/css/common.css +0 -1
  56. data/docs/css/full_list.css +0 -58
  57. data/docs/css/style.css +0 -497
  58. data/docs/file.README.html +0 -359
  59. data/docs/file_list.html +0 -56
  60. data/docs/frames.html +0 -17
  61. data/docs/index.html +0 -359
  62. data/docs/js/app.js +0 -314
  63. data/docs/js/full_list.js +0 -216
  64. data/docs/js/jquery.js +0 -4
  65. data/docs/method_list.html +0 -675
  66. data/docs/top-level-namespace.html +0 -110
@@ -1,242 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Class: DBF::Memo::Dbase3
8
-
9
- &mdash; Documentation by YARD 0.9.26
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../../css/style.css" type="text/css" />
14
-
15
- <link rel="stylesheet" href="../../css/common.css" type="text/css" />
16
-
17
- <script type="text/javascript">
18
- pathId = "DBF::Memo::Dbase3";
19
- relpath = '../../';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="../../class_list.html?1"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="../../_index.html">Index (D)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../../DBF.html" title="DBF (module)">DBF</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Memo.html" title="DBF::Memo (module)">Memo</a></span></span>
41
- &raquo;
42
- <span class="title">Dbase3</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="../../class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <div id="content"><h1>Class: DBF::Memo::Dbase3
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName"><span class='object_link'><a href="Base.html" title="DBF::Memo::Base (class)">Base</a></span></span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next"><span class='object_link'><a href="Base.html" title="DBF::Memo::Base (class)">Base</a></span></li>
78
-
79
- <li class="next">DBF::Memo::Dbase3</li>
80
-
81
- </ul>
82
- <a href="#" class="inheritanceTree">show all</a>
83
-
84
- </dd>
85
- </dl>
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
- <dl>
98
- <dt>Defined in:</dt>
99
- <dd>lib/dbf/memo/dbase3.rb</dd>
100
- </dl>
101
-
102
- </div>
103
-
104
-
105
-
106
-
107
- <h2>Constant Summary</h2>
108
-
109
- <h3 class="inherited">Constants inherited
110
- from <span class='object_link'><a href="Base.html" title="DBF::Memo::Base (class)">Base</a></span></h3>
111
- <p class="inherited"><span class='object_link'><a href="Base.html#BLOCK_HEADER_SIZE-constant" title="DBF::Memo::Base::BLOCK_HEADER_SIZE (constant)">Base::BLOCK_HEADER_SIZE</a></span>, <span class='object_link'><a href="Base.html#BLOCK_SIZE-constant" title="DBF::Memo::Base::BLOCK_SIZE (constant)">Base::BLOCK_SIZE</a></span></p>
112
-
113
-
114
-
115
-
116
-
117
-
118
- <h2>
119
- Instance Method Summary
120
- <small><a href="#" class="summary_toggle">collapse</a></small>
121
- </h2>
122
-
123
- <ul class="summary">
124
-
125
- <li class="public ">
126
- <span class="summary_signature">
127
-
128
- <a href="#build_memo-instance_method" title="#build_memo (instance method)">#<strong>build_memo</strong>(start_block) &#x21d2; Object </a>
129
-
130
-
131
-
132
- </span>
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
- <span class="summary_desc"><div class='inline'>
143
- <p>:nodoc:.</p>
144
- </div></span>
145
-
146
- </li>
147
-
148
-
149
- </ul>
150
-
151
-
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Base.html" title="DBF::Memo::Base (class)">Base</a></span></h3>
162
- <p class="inherited"><span class='object_link'><a href="Base.html#close-instance_method" title="DBF::Memo::Base#close (method)">#close</a></span>, <span class='object_link'><a href="Base.html#closed%3F-instance_method" title="DBF::Memo::Base#closed? (method)">#closed?</a></span>, <span class='object_link'><a href="Base.html#get-instance_method" title="DBF::Memo::Base#get (method)">#get</a></span>, <span class='object_link'><a href="Base.html#initialize-instance_method" title="DBF::Memo::Base#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Base.html#open-class_method" title="DBF::Memo::Base.open (method)">open</a></span></p>
163
- <div id="constructor_details" class="method_details_list">
164
- <h2>Constructor Details</h2>
165
-
166
- <p class="notice">This class inherits a constructor from <span class='object_link'><a href="Base.html#initialize-instance_method" title="DBF::Memo::Base#initialize (method)">DBF::Memo::Base</a></span></p>
167
-
168
- </div>
169
-
170
-
171
- <div id="instance_method_details" class="method_details_list">
172
- <h2>Instance Method Details</h2>
173
-
174
-
175
- <div class="method_details first">
176
- <h3 class="signature first" id="build_memo-instance_method">
177
-
178
- #<strong>build_memo</strong>(start_block) &#x21d2; <tt>Object</tt>
179
-
180
-
181
-
182
-
183
-
184
- </h3><div class="docstring">
185
- <div class="discussion">
186
-
187
- <p>:nodoc:</p>
188
-
189
-
190
- </div>
191
- </div>
192
- <div class="tags">
193
-
194
-
195
- </div><table class="source_code">
196
- <tr>
197
- <td>
198
- <pre class="lines">
199
-
200
-
201
- 4
202
- 5
203
- 6
204
- 7
205
- 8
206
- 9
207
- 10
208
- 11
209
- 12
210
- 13</pre>
211
- </td>
212
- <td>
213
- <pre class="code"><span class="info file"># File 'lib/dbf/memo/dbase3.rb', line 4</span>
214
-
215
- <span class='kw'>def</span> <span class='id identifier rubyid_build_memo'>build_memo</span><span class='lparen'>(</span><span class='id identifier rubyid_start_block'>start_block</span><span class='rparen'>)</span> <span class='comment'># :nodoc:
216
- </span> <span class='ivar'>@data</span><span class='period'>.</span><span class='id identifier rubyid_seek'>seek</span> <span class='id identifier rubyid_offset'>offset</span><span class='lparen'>(</span><span class='id identifier rubyid_start_block'>start_block</span><span class='rparen'>)</span>
217
- <span class='id identifier rubyid_memo_string'>memo_string</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span>
218
- <span class='id identifier rubyid_loop'>loop</span> <span class='kw'>do</span>
219
- <span class='id identifier rubyid_block'>block</span> <span class='op'>=</span> <span class='ivar'>@data</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="Base.html#BLOCK_SIZE-constant" title="DBF::Memo::Base::BLOCK_SIZE (constant)">BLOCK_SIZE</a></span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>(\000|\032)</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
220
- <span class='id identifier rubyid_memo_string'>memo_string</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_block'>block</span>
221
- <span class='kw'>break</span> <span class='kw'>if</span> <span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span> <span class='op'>&lt;</span> <span class='const'><span class='object_link'><a href="Base.html#BLOCK_SIZE-constant" title="DBF::Memo::Base::BLOCK_SIZE (constant)">BLOCK_SIZE</a></span></span>
222
- <span class='kw'>end</span>
223
- <span class='id identifier rubyid_memo_string'>memo_string</span>
224
- <span class='kw'>end</span></pre>
225
- </td>
226
- </tr>
227
- </table>
228
- </div>
229
-
230
- </div>
231
-
232
- </div>
233
-
234
- <div id="footer">
235
- Generated on Sun Aug 8 16:19:08 2021 by
236
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
237
- 0.9.26 (ruby-3.0.1).
238
- </div>
239
-
240
- </div>
241
- </body>
242
- </html>
@@ -1,230 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Class: DBF::Memo::Dbase4
8
-
9
- &mdash; Documentation by YARD 0.9.26
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../../css/style.css" type="text/css" />
14
-
15
- <link rel="stylesheet" href="../../css/common.css" type="text/css" />
16
-
17
- <script type="text/javascript">
18
- pathId = "DBF::Memo::Dbase4";
19
- relpath = '../../';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="../../class_list.html?1"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="../../_index.html">Index (D)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../../DBF.html" title="DBF (module)">DBF</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Memo.html" title="DBF::Memo (module)">Memo</a></span></span>
41
- &raquo;
42
- <span class="title">Dbase4</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="../../class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <div id="content"><h1>Class: DBF::Memo::Dbase4
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName"><span class='object_link'><a href="Base.html" title="DBF::Memo::Base (class)">Base</a></span></span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next"><span class='object_link'><a href="Base.html" title="DBF::Memo::Base (class)">Base</a></span></li>
78
-
79
- <li class="next">DBF::Memo::Dbase4</li>
80
-
81
- </ul>
82
- <a href="#" class="inheritanceTree">show all</a>
83
-
84
- </dd>
85
- </dl>
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
- <dl>
98
- <dt>Defined in:</dt>
99
- <dd>lib/dbf/memo/dbase4.rb</dd>
100
- </dl>
101
-
102
- </div>
103
-
104
-
105
-
106
-
107
- <h2>Constant Summary</h2>
108
-
109
- <h3 class="inherited">Constants inherited
110
- from <span class='object_link'><a href="Base.html" title="DBF::Memo::Base (class)">Base</a></span></h3>
111
- <p class="inherited"><span class='object_link'><a href="Base.html#BLOCK_HEADER_SIZE-constant" title="DBF::Memo::Base::BLOCK_HEADER_SIZE (constant)">Base::BLOCK_HEADER_SIZE</a></span>, <span class='object_link'><a href="Base.html#BLOCK_SIZE-constant" title="DBF::Memo::Base::BLOCK_SIZE (constant)">Base::BLOCK_SIZE</a></span></p>
112
-
113
-
114
-
115
-
116
-
117
-
118
- <h2>
119
- Instance Method Summary
120
- <small><a href="#" class="summary_toggle">collapse</a></small>
121
- </h2>
122
-
123
- <ul class="summary">
124
-
125
- <li class="public ">
126
- <span class="summary_signature">
127
-
128
- <a href="#build_memo-instance_method" title="#build_memo (instance method)">#<strong>build_memo</strong>(start_block) &#x21d2; Object </a>
129
-
130
-
131
-
132
- </span>
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
- <span class="summary_desc"><div class='inline'>
143
- <p>:nodoc:.</p>
144
- </div></span>
145
-
146
- </li>
147
-
148
-
149
- </ul>
150
-
151
-
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Base.html" title="DBF::Memo::Base (class)">Base</a></span></h3>
162
- <p class="inherited"><span class='object_link'><a href="Base.html#close-instance_method" title="DBF::Memo::Base#close (method)">#close</a></span>, <span class='object_link'><a href="Base.html#closed%3F-instance_method" title="DBF::Memo::Base#closed? (method)">#closed?</a></span>, <span class='object_link'><a href="Base.html#get-instance_method" title="DBF::Memo::Base#get (method)">#get</a></span>, <span class='object_link'><a href="Base.html#initialize-instance_method" title="DBF::Memo::Base#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Base.html#open-class_method" title="DBF::Memo::Base.open (method)">open</a></span></p>
163
- <div id="constructor_details" class="method_details_list">
164
- <h2>Constructor Details</h2>
165
-
166
- <p class="notice">This class inherits a constructor from <span class='object_link'><a href="Base.html#initialize-instance_method" title="DBF::Memo::Base#initialize (method)">DBF::Memo::Base</a></span></p>
167
-
168
- </div>
169
-
170
-
171
- <div id="instance_method_details" class="method_details_list">
172
- <h2>Instance Method Details</h2>
173
-
174
-
175
- <div class="method_details first">
176
- <h3 class="signature first" id="build_memo-instance_method">
177
-
178
- #<strong>build_memo</strong>(start_block) &#x21d2; <tt>Object</tt>
179
-
180
-
181
-
182
-
183
-
184
- </h3><div class="docstring">
185
- <div class="discussion">
186
-
187
- <p>:nodoc:</p>
188
-
189
-
190
- </div>
191
- </div>
192
- <div class="tags">
193
-
194
-
195
- </div><table class="source_code">
196
- <tr>
197
- <td>
198
- <pre class="lines">
199
-
200
-
201
- 4
202
- 5
203
- 6
204
- 7</pre>
205
- </td>
206
- <td>
207
- <pre class="code"><span class="info file"># File 'lib/dbf/memo/dbase4.rb', line 4</span>
208
-
209
- <span class='kw'>def</span> <span class='id identifier rubyid_build_memo'>build_memo</span><span class='lparen'>(</span><span class='id identifier rubyid_start_block'>start_block</span><span class='rparen'>)</span> <span class='comment'># :nodoc:
210
- </span> <span class='ivar'>@data</span><span class='period'>.</span><span class='id identifier rubyid_seek'>seek</span> <span class='id identifier rubyid_offset'>offset</span><span class='lparen'>(</span><span class='id identifier rubyid_start_block'>start_block</span><span class='rparen'>)</span>
211
- <span class='ivar'>@data</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='ivar'>@data</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="Base.html#BLOCK_HEADER_SIZE-constant" title="DBF::Memo::Base::BLOCK_HEADER_SIZE (constant)">BLOCK_HEADER_SIZE</a></span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_unpack1'>unpack1</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>x4L</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
212
- <span class='kw'>end</span></pre>
213
- </td>
214
- </tr>
215
- </table>
216
- </div>
217
-
218
- </div>
219
-
220
- </div>
221
-
222
- <div id="footer">
223
- Generated on Sun Aug 8 16:19:08 2021 by
224
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
225
- 0.9.26 (ruby-3.0.1).
226
- </div>
227
-
228
- </div>
229
- </body>
230
- </html>