dbf 4.1.3 → 4.1.4

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 +3 -0
  3. data/Gemfile +1 -0
  4. data/Gemfile.lock +63 -52
  5. data/LICENSE +1 -1
  6. data/README.md +109 -16
  7. data/docs/CNAME +1 -0
  8. data/docs/DBF.html +200 -0
  9. data/docs/DBF/Column.html +947 -0
  10. data/docs/DBF/Column/LengthError.html +124 -0
  11. data/docs/DBF/Column/NameError.html +124 -0
  12. data/docs/DBF/ColumnType.html +115 -0
  13. data/docs/DBF/ColumnType/Base.html +389 -0
  14. data/docs/DBF/ColumnType/Boolean.html +238 -0
  15. data/docs/DBF/ColumnType/Currency.html +238 -0
  16. data/docs/DBF/ColumnType/Date.html +242 -0
  17. data/docs/DBF/ColumnType/DateTime.html +246 -0
  18. data/docs/DBF/ColumnType/Double.html +238 -0
  19. data/docs/DBF/ColumnType/Float.html +238 -0
  20. data/docs/DBF/ColumnType/General.html +238 -0
  21. data/docs/DBF/ColumnType/Memo.html +246 -0
  22. data/docs/DBF/ColumnType/Nil.html +238 -0
  23. data/docs/DBF/ColumnType/Number.html +242 -0
  24. data/docs/DBF/ColumnType/SignedLong.html +238 -0
  25. data/docs/DBF/ColumnType/String.html +240 -0
  26. data/docs/DBF/Database.html +126 -0
  27. data/docs/DBF/Database/Foxpro.html +653 -0
  28. data/docs/DBF/Database/Table.html +346 -0
  29. data/docs/DBF/FileNotFoundError.html +124 -0
  30. data/docs/DBF/Header.html +723 -0
  31. data/docs/DBF/Memo.html +117 -0
  32. data/docs/DBF/Memo/Base.html +485 -0
  33. data/docs/DBF/Memo/Dbase3.html +242 -0
  34. data/docs/DBF/Memo/Dbase4.html +230 -0
  35. data/docs/DBF/Memo/Foxpro.html +268 -0
  36. data/docs/DBF/NoColumnsDefined.html +124 -0
  37. data/docs/DBF/Record.html +773 -0
  38. data/docs/DBF/Schema.html +980 -0
  39. data/docs/DBF/Table.html +1571 -0
  40. data/docs/_index.html +415 -0
  41. data/docs/class_list.html +51 -0
  42. data/docs/css/common.css +1 -0
  43. data/docs/css/full_list.css +58 -0
  44. data/docs/css/style.css +497 -0
  45. data/docs/file.README.html +359 -0
  46. data/docs/file_list.html +56 -0
  47. data/docs/frames.html +17 -0
  48. data/docs/index.html +359 -0
  49. data/docs/js/app.js +314 -0
  50. data/docs/js/full_list.js +216 -0
  51. data/docs/js/jquery.js +4 -0
  52. data/docs/method_list.html +675 -0
  53. data/docs/top-level-namespace.html +110 -0
  54. data/lib/dbf/column.rb +5 -4
  55. data/lib/dbf/column_type.rb +26 -0
  56. data/lib/dbf/database/foxpro.rb +7 -2
  57. data/lib/dbf/header.rb +11 -3
  58. data/lib/dbf/record.rb +5 -5
  59. data/lib/dbf/schema.rb +4 -3
  60. data/lib/dbf/table.rb +25 -11
  61. data/lib/dbf/version.rb +1 -1
  62. data/spec/dbf/file_formats_spec.rb +18 -0
  63. data/spec/fixtures/dbase_02.dbf +0 -0
  64. metadata +52 -6
  65. data/docs/supported_encodings.csv +0 -60
  66. data/docs/supported_types.markdown +0 -38
@@ -0,0 +1,242 @@
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>
@@ -0,0 +1,230 @@
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>