dbf 4.2.0 → 4.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +43 -40
  3. data/README.md +1 -1
  4. data/Rakefile +1 -1
  5. data/ci_A.dbf +0 -0
  6. data/lib/dbf/table.rb +2 -2
  7. data/lib/dbf/version.rb +1 -1
  8. data/nBOOKS.DBF +0 -0
  9. metadata +5 -51
  10. data/Gemfile.travis +0 -8
  11. data/docs/CNAME +0 -1
  12. data/docs/DBF/Column/LengthError.html +0 -124
  13. data/docs/DBF/Column/NameError.html +0 -124
  14. data/docs/DBF/Column.html +0 -947
  15. data/docs/DBF/ColumnType/Base.html +0 -389
  16. data/docs/DBF/ColumnType/Boolean.html +0 -238
  17. data/docs/DBF/ColumnType/Currency.html +0 -238
  18. data/docs/DBF/ColumnType/Date.html +0 -242
  19. data/docs/DBF/ColumnType/DateTime.html +0 -246
  20. data/docs/DBF/ColumnType/Double.html +0 -238
  21. data/docs/DBF/ColumnType/Float.html +0 -238
  22. data/docs/DBF/ColumnType/General.html +0 -238
  23. data/docs/DBF/ColumnType/Memo.html +0 -246
  24. data/docs/DBF/ColumnType/Nil.html +0 -238
  25. data/docs/DBF/ColumnType/Number.html +0 -242
  26. data/docs/DBF/ColumnType/SignedLong.html +0 -238
  27. data/docs/DBF/ColumnType/String.html +0 -240
  28. data/docs/DBF/ColumnType.html +0 -115
  29. data/docs/DBF/Database/Foxpro.html +0 -653
  30. data/docs/DBF/Database/Table.html +0 -346
  31. data/docs/DBF/Database.html +0 -126
  32. data/docs/DBF/FileNotFoundError.html +0 -124
  33. data/docs/DBF/Header.html +0 -723
  34. data/docs/DBF/Memo/Base.html +0 -485
  35. data/docs/DBF/Memo/Dbase3.html +0 -242
  36. data/docs/DBF/Memo/Dbase4.html +0 -230
  37. data/docs/DBF/Memo/Foxpro.html +0 -268
  38. data/docs/DBF/Memo.html +0 -117
  39. data/docs/DBF/NoColumnsDefined.html +0 -124
  40. data/docs/DBF/Record.html +0 -773
  41. data/docs/DBF/Schema.html +0 -980
  42. data/docs/DBF/Table.html +0 -1571
  43. data/docs/DBF.html +0 -200
  44. data/docs/_index.html +0 -415
  45. data/docs/class_list.html +0 -51
  46. data/docs/css/common.css +0 -1
  47. data/docs/css/full_list.css +0 -58
  48. data/docs/css/style.css +0 -497
  49. data/docs/file.README.html +0 -359
  50. data/docs/file_list.html +0 -56
  51. data/docs/frames.html +0 -17
  52. data/docs/index.html +0 -359
  53. data/docs/js/app.js +0 -314
  54. data/docs/js/full_list.js +0 -216
  55. data/docs/js/jquery.js +0 -4
  56. data/docs/method_list.html +0 -675
  57. data/docs/top-level-namespace.html +0 -110
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 825e580742ca7cb994908e488763e40ac36f4570b23d8fe75e6ba389ac9de769
4
- data.tar.gz: 461dae904d53d1c26558b671d4a0ea2101538e2673bf7b307e39d37470909ce7
3
+ metadata.gz: '018bddbea260f8bb7bbdb218a6601746377f9e07c68fb5785c2c03d39e9d1dfe'
4
+ data.tar.gz: 9c906f4f7d62016d88d13e56f3565a2b1dfb387c1dabd013cde2bfc6eeb30b5d
5
5
  SHA512:
6
- metadata.gz: 4f4c2824d0eb7a5f822515b8093f51a3e7f8892b0e4987f3b537ce007667e6232e80b4af8f87c449a4be061d39607772a5082e09ea67c73f1a1156dd86889e40
7
- data.tar.gz: 711155242a0c16f765b327005157e4097489a348a2653bfbbf5f017304c0534f30abb8282075e2e4c6b63c236a94fb8b426e3303917c8882971a9c0f9068a73e
6
+ metadata.gz: 912b2de5a0c39ba4b5ddbfdc815a13e0c59f252d1f4f4ec821246ead6a72da764bd3b2ee29a7c77feda5db6c6e5f2a7e9431c24abdee920691e04822c061541d
7
+ data.tar.gz: 625a7f42e67cc0c52a40610ca5d65d397e93bd232fd6a08ac1d07773e915720720658e21279b085aed63a3d83adaa7dea55baf8be8985305bcc3b7de93abfd00
data/Gemfile.lock CHANGED
@@ -1,19 +1,20 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dbf (4.1.6)
4
+ dbf (4.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  ast (2.4.2)
10
10
  awesome_print (1.9.2)
11
+ benchmark (0.2.0)
11
12
  byebug (11.1.3)
12
13
  coderay (1.1.3)
13
- diff-lcs (1.4.4)
14
+ diff-lcs (1.5.0)
14
15
  e2mmap (0.1.0)
15
- ffi (1.15.3)
16
- formatador (0.3.0)
16
+ ffi (1.15.5)
17
+ formatador (1.1.0)
17
18
  guard (2.18.0)
18
19
  formatador (>= 0.2.4)
19
20
  listen (>= 2.7, < 4.0)
@@ -28,10 +29,10 @@ GEM
28
29
  guard (~> 2.1)
29
30
  guard-compat (~> 1.1)
30
31
  rspec (>= 2.99.0, < 4.0)
31
- io-console (0.5.9)
32
- irb (1.3.6)
33
- reline (>= 0.2.5)
34
- listen (3.6.0)
32
+ io-console (0.5.11)
33
+ irb (1.4.1)
34
+ reline (>= 0.3.0)
35
+ listen (3.7.1)
35
36
  rb-fsevent (~> 0.10, >= 0.10.3)
36
37
  rb-inotify (~> 0.9, >= 0.9.10)
37
38
  lumberjack (1.2.8)
@@ -40,62 +41,64 @@ GEM
40
41
  notiffany (0.1.3)
41
42
  nenv (~> 0.1)
42
43
  shellany (~> 0.0)
43
- parallel (1.20.1)
44
- parser (3.0.2.0)
44
+ parallel (1.22.1)
45
+ parser (3.1.2.0)
45
46
  ast (~> 2.4.1)
46
47
  pry (0.14.1)
47
48
  coderay (~> 1.1)
48
49
  method_source (~> 1.0)
49
- rainbow (3.0.0)
50
+ rainbow (3.1.1)
50
51
  rake (13.0.6)
51
- rb-fsevent (0.11.0)
52
+ rb-fsevent (0.11.1)
52
53
  rb-inotify (0.10.1)
53
54
  ffi (~> 1.0)
54
- regexp_parser (2.1.1)
55
- reline (0.2.6)
55
+ regexp_parser (2.5.0)
56
+ reline (0.3.1)
56
57
  io-console (~> 0.5)
57
58
  rexml (3.2.5)
58
- rspec (3.10.0)
59
- rspec-core (~> 3.10.0)
60
- rspec-expectations (~> 3.10.0)
61
- rspec-mocks (~> 3.10.0)
62
- rspec-core (3.10.1)
63
- rspec-support (~> 3.10.0)
64
- rspec-expectations (3.10.1)
59
+ rspec (3.11.0)
60
+ rspec-core (~> 3.11.0)
61
+ rspec-expectations (~> 3.11.0)
62
+ rspec-mocks (~> 3.11.0)
63
+ rspec-core (3.11.0)
64
+ rspec-support (~> 3.11.0)
65
+ rspec-expectations (3.11.0)
65
66
  diff-lcs (>= 1.2.0, < 2.0)
66
- rspec-support (~> 3.10.0)
67
- rspec-mocks (3.10.2)
67
+ rspec-support (~> 3.11.0)
68
+ rspec-mocks (3.11.1)
68
69
  diff-lcs (>= 1.2.0, < 2.0)
69
- rspec-support (~> 3.10.0)
70
- rspec-support (3.10.2)
71
- rubocop (1.18.4)
70
+ rspec-support (~> 3.11.0)
71
+ rspec-support (3.11.0)
72
+ rubocop (1.30.1)
72
73
  parallel (~> 1.10)
73
- parser (>= 3.0.0.0)
74
+ parser (>= 3.1.0.0)
74
75
  rainbow (>= 2.2.2, < 4.0)
75
76
  regexp_parser (>= 1.8, < 3.0)
76
- rexml
77
- rubocop-ast (>= 1.8.0, < 2.0)
77
+ rexml (>= 3.2.5, < 4.0)
78
+ rubocop-ast (>= 1.18.0, < 2.0)
78
79
  ruby-progressbar (~> 1.7)
79
80
  unicode-display_width (>= 1.4.0, < 3.0)
80
- rubocop-ast (1.9.0)
81
- parser (>= 3.0.1.1)
82
- rubocop-performance (1.11.4)
81
+ rubocop-ast (1.18.0)
82
+ parser (>= 3.1.1.0)
83
+ rubocop-performance (1.14.2)
83
84
  rubocop (>= 1.7.0, < 2.0)
84
85
  rubocop-ast (>= 0.4.0)
85
- rubocop-rspec (2.4.0)
86
- rubocop (~> 1.0)
87
- rubocop-ast (>= 1.1.0)
86
+ rubocop-rspec (2.11.1)
87
+ rubocop (~> 1.19)
88
88
  ruby-progressbar (1.11.0)
89
89
  shellany (0.0.1)
90
- thor (1.1.0)
91
- unicode-display_width (2.0.0)
92
- yard (0.9.26)
90
+ thor (1.2.1)
91
+ unicode-display_width (2.1.0)
92
+ webrick (1.7.0)
93
+ yard (0.9.28)
94
+ webrick (~> 1.7.0)
93
95
 
94
96
  PLATFORMS
95
- ruby
97
+ arm64-darwin-21
96
98
 
97
99
  DEPENDENCIES
98
100
  awesome_print
101
+ benchmark
99
102
  byebug
100
103
  dbf!
101
104
  e2mmap
@@ -110,4 +113,4 @@ DEPENDENCIES
110
113
  yard
111
114
 
112
115
  BUNDLED WITH
113
- 2.2.15
116
+ 2.3.16
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # DBF
2
2
  [![Version](https://img.shields.io/gem/v/dbf.svg?style=flat)](https://rubygems.org/gems/dbf)
3
- [![Build Status](https://img.shields.io/travis/infused/dbf/master.svg?style=flat)](https://travis-ci.com/infused/dbf)
3
+ [![Build Status](https://github.com/infused/dbf/actions/workflows/build.yml/badge.svg)](https://github.com/infused/dbf/actions/workflows/build.yml)
4
4
  [![Code Quality](https://img.shields.io/codeclimate/maintainability/infused/dbf.svg?style=flat)](https://codeclimate.com/github/infused/dbf)
5
5
  [![Code Coverage](https://img.shields.io/codeclimate/c/infused/dbf.svg?style=flat)](https://codeclimate.com/github/infused/dbf)
6
6
  [![Total Downloads](https://img.shields.io/gem/dt/dbf.svg)](https://rubygems.org/gems/dbf/)
data/Rakefile CHANGED
@@ -14,5 +14,5 @@ task default: :spec
14
14
 
15
15
  desc 'Open an irb session preloaded with this library'
16
16
  task :console do
17
- sh 'irb -rubygems -I lib -r dbf.rb'
17
+ sh 'irb -r rubygems -I lib -r dbf.rb'
18
18
  end
data/ci_A.dbf ADDED
Binary file
data/lib/dbf/table.rb CHANGED
@@ -221,7 +221,7 @@ module DBF
221
221
  args = case version
222
222
  when '02'
223
223
  [self, *@data.read(header_size * 2).unpack('A11 a C'), 0]
224
- when '8c'
224
+ when '04', '8c'
225
225
  [self, *@data.read(48).unpack('A32 a C C x13')]
226
226
  else
227
227
  [self, *@data.read(header_size).unpack('A11 a x4 C2')]
@@ -237,7 +237,7 @@ module DBF
237
237
  case version
238
238
  when '02'
239
239
  DBASE2_HEADER_SIZE
240
- when '8c'
240
+ when '04', '8c'
241
241
  DBASE7_HEADER_SIZE
242
242
  else
243
243
  DBASE3_HEADER_SIZE
data/lib/dbf/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module DBF
2
- VERSION = '4.2.0'.freeze
2
+ VERSION = '4.2.1'.freeze
3
3
  end
data/nBOOKS.DBF ADDED
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dbf
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0
4
+ version: 4.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keith Morrison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-20 00:00:00.000000000 Z
11
+ date: 2022-07-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A small fast library for reading dBase, xBase, Clipper and FoxPro database
14
14
  files.
@@ -24,60 +24,13 @@ files:
24
24
  - CHANGELOG.md
25
25
  - Gemfile
26
26
  - Gemfile.lock
27
- - Gemfile.travis
28
27
  - Guardfile
29
28
  - LICENSE
30
29
  - README.md
31
30
  - Rakefile
32
31
  - bin/dbf
32
+ - ci_A.dbf
33
33
  - dbf.gemspec
34
- - docs/CNAME
35
- - docs/DBF.html
36
- - docs/DBF/Column.html
37
- - docs/DBF/Column/LengthError.html
38
- - docs/DBF/Column/NameError.html
39
- - docs/DBF/ColumnType.html
40
- - docs/DBF/ColumnType/Base.html
41
- - docs/DBF/ColumnType/Boolean.html
42
- - docs/DBF/ColumnType/Currency.html
43
- - docs/DBF/ColumnType/Date.html
44
- - docs/DBF/ColumnType/DateTime.html
45
- - docs/DBF/ColumnType/Double.html
46
- - docs/DBF/ColumnType/Float.html
47
- - docs/DBF/ColumnType/General.html
48
- - docs/DBF/ColumnType/Memo.html
49
- - docs/DBF/ColumnType/Nil.html
50
- - docs/DBF/ColumnType/Number.html
51
- - docs/DBF/ColumnType/SignedLong.html
52
- - docs/DBF/ColumnType/String.html
53
- - docs/DBF/Database.html
54
- - docs/DBF/Database/Foxpro.html
55
- - docs/DBF/Database/Table.html
56
- - docs/DBF/FileNotFoundError.html
57
- - docs/DBF/Header.html
58
- - docs/DBF/Memo.html
59
- - docs/DBF/Memo/Base.html
60
- - docs/DBF/Memo/Dbase3.html
61
- - docs/DBF/Memo/Dbase4.html
62
- - docs/DBF/Memo/Foxpro.html
63
- - docs/DBF/NoColumnsDefined.html
64
- - docs/DBF/Record.html
65
- - docs/DBF/Schema.html
66
- - docs/DBF/Table.html
67
- - docs/_index.html
68
- - docs/class_list.html
69
- - docs/css/common.css
70
- - docs/css/full_list.css
71
- - docs/css/style.css
72
- - docs/file.README.html
73
- - docs/file_list.html
74
- - docs/frames.html
75
- - docs/index.html
76
- - docs/js/app.js
77
- - docs/js/full_list.js
78
- - docs/js/jquery.js
79
- - docs/method_list.html
80
- - docs/top-level-namespace.html
81
34
  - lib/dbf.rb
82
35
  - lib/dbf/column.rb
83
36
  - lib/dbf/column_type.rb
@@ -92,6 +45,7 @@ files:
92
45
  - lib/dbf/schema.rb
93
46
  - lib/dbf/table.rb
94
47
  - lib/dbf/version.rb
48
+ - nBOOKS.DBF
95
49
  - spec/dbf/column_spec.rb
96
50
  - spec/dbf/database/foxpro_spec.rb
97
51
  - spec/dbf/file_formats_spec.rb
@@ -162,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
116
  - !ruby/object:Gem::Version
163
117
  version: 1.3.0
164
118
  requirements: []
165
- rubygems_version: 3.2.15
119
+ rubygems_version: 3.3.7
166
120
  signing_key:
167
121
  specification_version: 4
168
122
  summary: Read xBase files
data/Gemfile.travis DELETED
@@ -1,8 +0,0 @@
1
- gemspec
2
- source 'https://rubygems.org'
3
-
4
- group :test do
5
- gem 'rspec'
6
- gem 'simplecov', platform: :ruby
7
- gem 'codeclimate-test-reporter'
8
- end
data/docs/CNAME DELETED
@@ -1 +0,0 @@
1
- dbf.infused.org
@@ -1,124 +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
- Exception: DBF::Column::LengthError
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::Column::LengthError";
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 (L)</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="../Column.html" title="DBF::Column (class)">Column</a></span></span>
41
- &raquo;
42
- <span class="title">LengthError</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>Exception: DBF::Column::LengthError
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName">StandardError</span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next">StandardError</li>
78
-
79
- <li class="next">DBF::Column::LengthError</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/column.rb</dd>
100
- </dl>
101
-
102
- </div>
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
- </div>
115
-
116
- <div id="footer">
117
- Generated on Sun Aug 8 16:19:08 2021 by
118
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119
- 0.9.26 (ruby-3.0.1).
120
- </div>
121
-
122
- </div>
123
- </body>
124
- </html>
@@ -1,124 +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
- Exception: DBF::Column::NameError
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::Column::NameError";
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 (N)</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="../Column.html" title="DBF::Column (class)">Column</a></span></span>
41
- &raquo;
42
- <span class="title">NameError</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>Exception: DBF::Column::NameError
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName">StandardError</span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next">StandardError</li>
78
-
79
- <li class="next">DBF::Column::NameError</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/column.rb</dd>
100
- </dl>
101
-
102
- </div>
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
- </div>
115
-
116
- <div id="footer">
117
- Generated on Sun Aug 8 16:19:08 2021 by
118
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119
- 0.9.26 (ruby-3.0.1).
120
- </div>
121
-
122
- </div>
123
- </body>
124
- </html>