dbf 4.2.3 → 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: 9e9ef85b87158f44b02c2601acac039988b6941860ff4fec733f902be7e72024
4
- data.tar.gz: 5755262f4f71fa0e9218f50a7d5e7f746cfbb14ad6560d9644ec41e6f1ae6da8
3
+ metadata.gz: b15db465fcb977bf3684285e38b07c4748bc9b8713274a80cc09a27fdefda8ca
4
+ data.tar.gz: f3009c19a0c6fd3f7291486a72a32a97a1a9f29fe4f24cd34f4d6a8e171b9879
5
5
  SHA512:
6
- metadata.gz: b3965e03f8fe93fff93f8f64567374c07fc3dec6d9fb89bbb112b77305810f7e7202aadba49fe74702d9eb49af679c97dae03ee0b97562e27fc170232045f09c
7
- data.tar.gz: e0972971a67325fdfb43f07865ac91d7ef01028fee8e6a959773e6539219fefc7d7f83ad953ebdac3ee181c167cb37e50f56a89a89eb54788afea1bfbc8b18e4
6
+ metadata.gz: d99ab54892f6a2454a1c46191eea92c56d3efe4319e592cf767b53376b9c11c650d339aa6e0a88d4b959997a4f5beddcfd20f1dd9080ef60cef4ebf76bcd2214
7
+ data.tar.gz: da0a365801ac686861e92c5f22bf6b5fe9b383c14b7f65db6a2dcb95d3ec00be680a2b44b959b040296ccf833b778d64dd6677c6717ae08450ec7e312bde2b02
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
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
+
8
+ ## 4.2.4
9
+
10
+ - Exclude unnecessary files from the gem file list
11
+
3
12
  ## 4.2.3
4
13
 
5
14
  - Require MFA to publish gem
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
@@ -15,9 +15,10 @@ Gem::Specification.new do |s|
15
15
  s.executables = ['dbf']
16
16
  s.rdoc_options = ['--charset=UTF-8']
17
17
  s.extra_rdoc_files = ['README.md', 'CHANGELOG.md', 'LICENSE']
18
- s.files = Dir['[A-Z]*', '{bin,docs,lib,spec}/**/*', 'dbf.gemspec']
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.3'.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.3
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-18 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
@@ -22,12 +36,8 @@ extra_rdoc_files:
22
36
  - LICENSE
23
37
  files:
24
38
  - CHANGELOG.md
25
- - Gemfile
26
- - Gemfile.lock
27
- - Guardfile
28
39
  - LICENSE
29
40
  - README.md
30
- - Rakefile
31
41
  - bin/dbf
32
42
  - dbf.gemspec
33
43
  - lib/dbf.rb
@@ -108,14 +118,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
118
  requirements:
109
119
  - - ">="
110
120
  - !ruby/object:Gem::Version
111
- version: 2.4.0
121
+ version: 3.0.0
112
122
  required_rubygems_version: !ruby/object:Gem::Requirement
113
123
  requirements:
114
124
  - - ">="
115
125
  - !ruby/object:Gem::Version
116
126
  version: 1.3.0
117
127
  requirements: []
118
- rubygems_version: 3.4.13
128
+ rubygems_version: 3.5.3
119
129
  signing_key:
120
130
  specification_version: 4
121
131
  summary: Read xBase files
data/Gemfile DELETED
@@ -1,18 +0,0 @@
1
- gemspec
2
- source 'https://rubygems.org'
3
-
4
- group :development, :test do
5
- gem 'awesome_print'
6
- gem 'byebug'
7
- gem 'e2mmap'
8
- gem 'guard'
9
- gem 'guard-rspec'
10
- gem 'irb'
11
- gem 'rake'
12
- gem 'rspec'
13
- gem 'rubocop'
14
- gem 'rubocop-performance'
15
- gem 'rubocop-rspec'
16
- gem 'ruby-lsp'
17
- gem 'yard'
18
- end
data/Gemfile.lock DELETED
@@ -1,118 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- dbf (4.2.2)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- ast (2.4.2)
10
- awesome_print (1.9.2)
11
- byebug (11.1.3)
12
- coderay (1.1.3)
13
- diff-lcs (1.5.0)
14
- e2mmap (0.1.0)
15
- ffi (1.15.5)
16
- formatador (1.1.0)
17
- guard (2.18.0)
18
- formatador (>= 0.2.4)
19
- listen (>= 2.7, < 4.0)
20
- lumberjack (>= 1.0.12, < 2.0)
21
- nenv (~> 0.1)
22
- notiffany (~> 0.0)
23
- pry (>= 0.13.0)
24
- shellany (~> 0.0)
25
- thor (>= 0.18.1)
26
- guard-compat (1.2.1)
27
- guard-rspec (4.7.3)
28
- guard (~> 2.1)
29
- guard-compat (~> 1.1)
30
- rspec (>= 2.99.0, < 4.0)
31
- irb (1.1.1)
32
- language_server-protocol (3.15.0.1)
33
- listen (3.8.0)
34
- rb-fsevent (~> 0.10, >= 0.10.3)
35
- rb-inotify (~> 0.9, >= 0.9.10)
36
- lumberjack (1.2.8)
37
- method_source (1.0.0)
38
- nenv (0.3.0)
39
- notiffany (0.1.3)
40
- nenv (~> 0.1)
41
- shellany (~> 0.0)
42
- parallel (1.20.1)
43
- parser (3.2.2.1)
44
- ast (~> 2.4.1)
45
- pry (0.14.2)
46
- coderay (~> 1.1)
47
- method_source (~> 1.0)
48
- rainbow (3.1.1)
49
- rake (13.0.6)
50
- rb-fsevent (0.11.2)
51
- rb-inotify (0.10.1)
52
- ffi (~> 1.0)
53
- regexp_parser (2.8.0)
54
- rexml (3.2.5)
55
- rspec (3.12.0)
56
- rspec-core (~> 3.12.0)
57
- rspec-expectations (~> 3.12.0)
58
- rspec-mocks (~> 3.12.0)
59
- rspec-core (3.12.2)
60
- rspec-support (~> 3.12.0)
61
- rspec-expectations (3.12.3)
62
- diff-lcs (>= 1.2.0, < 2.0)
63
- rspec-support (~> 3.12.0)
64
- rspec-mocks (3.12.5)
65
- diff-lcs (>= 1.2.0, < 2.0)
66
- rspec-support (~> 3.12.0)
67
- rspec-support (3.12.0)
68
- rubocop (1.12.1)
69
- parallel (~> 1.10)
70
- parser (>= 3.0.0.0)
71
- rainbow (>= 2.2.2, < 4.0)
72
- regexp_parser (>= 1.8, < 3.0)
73
- rexml
74
- rubocop-ast (>= 1.2.0, < 2.0)
75
- ruby-progressbar (~> 1.7)
76
- unicode-display_width (>= 1.4.0, < 3.0)
77
- rubocop-ast (1.4.1)
78
- parser (>= 2.7.1.5)
79
- rubocop-performance (1.10.2)
80
- rubocop (>= 0.90.0, < 2.0)
81
- rubocop-ast (>= 0.4.0)
82
- rubocop-rspec (2.2.0)
83
- rubocop (~> 1.0)
84
- rubocop-ast (>= 1.1.0)
85
- ruby-lsp (0.0.4)
86
- language_server-protocol
87
- rubocop (>= 1.0)
88
- sorbet-runtime
89
- syntax_tree (>= 2.3)
90
- ruby-progressbar (1.13.0)
91
- shellany (0.0.1)
92
- sorbet-runtime (0.5.10461)
93
- syntax_tree (2.3.1)
94
- thor (1.2.2)
95
- unicode-display_width (2.4.2)
96
- yard (0.9.34)
97
-
98
- PLATFORMS
99
- ruby
100
-
101
- DEPENDENCIES
102
- awesome_print
103
- byebug
104
- dbf!
105
- e2mmap
106
- guard
107
- guard-rspec
108
- irb
109
- rake
110
- rspec
111
- rubocop
112
- rubocop-performance
113
- rubocop-rspec
114
- ruby-lsp
115
- yard
116
-
117
- BUNDLED WITH
118
- 2.1.0
data/Guardfile DELETED
@@ -1,11 +0,0 @@
1
- # A sample Guardfile
2
- # More info at https://github.com/guard/guard#readme
3
-
4
- guard :rspec, cmd: 'bundle exec rspec' do
5
- watch(%r{^spec/.+_spec\.rb$})
6
- # watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
7
- watch(%r{^lib/(.+)\.rb$}) { 'spec' }
8
- watch('spec/spec_helper.rb') { 'spec' }
9
- watch(%r{spec/fixtures/(.+)}) { 'spec' }
10
- watch('Guardfile') { 'spec' }
11
- end
data/Rakefile DELETED
@@ -1,18 +0,0 @@
1
- require 'bundler/setup'
2
- Bundler.setup(:default, :development)
3
-
4
- require 'rspec/core/rake_task'
5
- RSpec::Core::RakeTask.new :spec do |t|
6
- t.rspec_opts = %w[--color]
7
- end
8
-
9
- RSpec::Core::RakeTask.new :specdoc do |t|
10
- t.rspec_opts = %w[-fdocumentation]
11
- end
12
-
13
- task default: :spec
14
-
15
- desc 'Open an irb session preloaded with this library'
16
- task :console do
17
- sh 'irb -r rubygems -I lib -r dbf.rb'
18
- end