dbf 4.2.4 → 4.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 458e14a93544a7b6ade6746332bcf39731780bd9af34aebee260e6abcca9543c
4
- data.tar.gz: b0d645e6728a885db8d7a98c45f7be8aa9383561bae0b088f9b5b2dc6f1e6284
3
+ metadata.gz: b15db465fcb977bf3684285e38b07c4748bc9b8713274a80cc09a27fdefda8ca
4
+ data.tar.gz: f3009c19a0c6fd3f7291486a72a32a97a1a9f29fe4f24cd34f4d6a8e171b9879
5
5
  SHA512:
6
- metadata.gz: 3c8541239362433b39e376576b46469af9359982b1b8679dd7661e622510cd8be953bfbe0529b9b14b1f8695c172c5376e4f03b38fa4448dde1ea01ab90c2cff
7
- data.tar.gz: 71da6ab478a3c8aa66dc5297df731906bbb34970360639dd9b5ae7fa4bb98c93ff3d043a1e2d70f2e01059178f6e8e3d99f6299cf8a9fe2109bf8e9dec52b332
6
+ metadata.gz: d99ab54892f6a2454a1c46191eea92c56d3efe4319e592cf767b53376b9c11c650d339aa6e0a88d4b959997a4f5beddcfd20f1dd9080ef60cef4ebf76bcd2214
7
+ data.tar.gz: da0a365801ac686861e92c5f22bf6b5fe9b383c14b7f65db6a2dcb95d3ec00be680a2b44b959b040296ccf833b778d64dd6677c6717ae08450ec7e312bde2b02
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.3.0
4
+
5
+ - Drop support for Ruby versions older than 3.0
6
+ - Require CSV gem
7
+
3
8
  ## 4.2.4
4
9
 
5
10
  - Exclude unnecessary files from the gem file list
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2006-2023 Keith Morrison <keithm@infused.org>
1
+ Copyright (c) 2006-2024 Keith Morrison <keithm@infused.org>
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -10,12 +10,14 @@
10
10
  DBF is a small, fast Ruby library for reading dBase, xBase, Clipper, and FoxPro database files.
11
11
 
12
12
  * Project page: <https://github.com/infused/dbf>
13
- * API Documentation: <https://dbf.infused.org>
13
+ * API Documentation: <https://rubydoc.info/github/infused/dbf>
14
14
  * Report bugs: <https://github.com/infused/dbf/issues>
15
15
  * Questions: Email <mailto:keithm@infused.org> and put DBF somewhere in the
16
16
  subject line
17
17
  * Change log: <https://github.com/infused/dbf/blob/master/CHANGELOG.md>
18
18
 
19
+ NOTE:
20
+
19
21
  NOTE: Beginning with version 4, we have dropped support for Ruby 2.0, 2.1, 2.2, and 2.3. If you need support for these older Rubies,
20
22
  please use 3.0.x (<https://github.com/infused.org/dbf/tree/3_stable>)
21
23
 
@@ -26,7 +28,7 @@ please use 2.0.x (<https://github.com/infused/dbf/tree/2_stable>)
26
28
 
27
29
  DBF is tested to work with the following versions of Ruby:
28
30
 
29
- * Ruby 2.4.x, 2.5.x, 2.6.x, 2.7.x, 3.0.x, 3.1.x, and 3.2.x
31
+ * Ruby 3.0.x, 3.1.x, 3.2.x, 3.3.x
30
32
 
31
33
  ## Installation
32
34
 
@@ -362,7 +364,7 @@ Data type descriptions
362
364
 
363
365
  ## License
364
366
 
365
- Copyright (c) 2006-2023 Keith Morrison <<keithm@infused.org>>
367
+ Copyright (c) 2006-2024 Keith Morrison <<keithm@infused.org>>
366
368
 
367
369
  Permission is hereby granted, free of charge, to any person
368
370
  obtaining a copy of this software and associated documentation
data/dbf.gemspec CHANGED
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.files = Dir['README.md', 'CHANGELOG.md', 'LICENSE', '{bin,lib,spec}/**/*', 'dbf.gemspec']
19
19
  s.require_paths = ['lib']
20
20
  s.required_rubygems_version = Gem::Requirement.new('>= 1.3.0')
21
- s.required_ruby_version = Gem::Requirement.new('>= 2.4.0')
21
+ s.required_ruby_version = Gem::Requirement.new('>= 3.0.0')
22
22
  s.metadata['rubygems_mfa_required'] = 'true'
23
+ s.add_runtime_dependency 'csv'
23
24
  end
data/lib/dbf/column.rb CHANGED
@@ -69,11 +69,7 @@ module DBF
69
69
  # @return [String]
70
70
  def underscored_name
71
71
  @underscored_name ||= begin
72
- name.gsub(/::/, '/')
73
- .gsub(/([A-Z]+)([A-Z][a-z])/, '\1_\2')
74
- .gsub(/([a-z\d])([A-Z])/, '\1_\2')
75
- .tr('-', '_')
76
- .downcase
72
+ name.gsub(/([a-z\d])([A-Z])/, '\1_\2').tr('-', '_').downcase
77
73
  end
78
74
  end
79
75
 
data/lib/dbf/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module DBF
2
- VERSION = '4.2.4'.freeze
2
+ VERSION = '4.3.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dbf
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.4
4
+ version: 4.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keith Morrison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-30 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2023-12-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: csv
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  description: A small fast library for reading dBase, xBase, Clipper and FoxPro database
14
28
  files.
15
29
  email: keithm@infused.org
@@ -104,14 +118,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
118
  requirements:
105
119
  - - ">="
106
120
  - !ruby/object:Gem::Version
107
- version: 2.4.0
121
+ version: 3.0.0
108
122
  required_rubygems_version: !ruby/object:Gem::Requirement
109
123
  requirements:
110
124
  - - ">="
111
125
  - !ruby/object:Gem::Version
112
126
  version: 1.3.0
113
127
  requirements: []
114
- rubygems_version: 3.4.13
128
+ rubygems_version: 3.5.3
115
129
  signing_key:
116
130
  specification_version: 4
117
131
  summary: Read xBase files