smarter_csv 1.9.2 → 1.10.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.
data/lib/smarter_csv.rb CHANGED
@@ -1,19 +1,32 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "core_ext/hash"
4
-
5
3
  require "smarter_csv/version"
4
+ require "smarter_csv/file_io"
6
5
  require "smarter_csv/options_processing"
6
+ require "smarter_csv/auto_detection"
7
+ require "smarter_csv/variables"
8
+ require 'smarter_csv/header_transformations'
9
+ require 'smarter_csv/header_validations'
10
+ require "smarter_csv/headers"
11
+ require "smarter_csv/hash_transformations"
12
+ require "smarter_csv/parse"
7
13
 
14
+ # load the C-extension:
8
15
  case RUBY_ENGINE
9
16
  when 'ruby'
10
17
  begin
11
18
  if `uname -s`.chomp == 'Darwin'
19
+ #
20
+ # Please report if you see cases where the rake-compiler is building x86_64 code on arm64 cpus:
21
+ # https://github.com/rake-compiler/rake-compiler/issues/231
22
+ #
12
23
  require 'smarter_csv/smarter_csv.bundle'
13
24
  else
25
+ # :nocov:
14
26
  require_relative "smarter_csv/smarter_csv"
27
+ # :nocov:
15
28
  end
16
- rescue Exception
29
+ rescue Exception # rubocop:disable Lint/RescueException
17
30
  # require_relative 'smarter_csv/smarter_csv'
18
31
  end
19
32
  # :nocov:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smarter_csv
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.2
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tilo Sloboda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-12 00:00:00.000000000 Z
11
+ date: 2023-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print
@@ -115,10 +115,17 @@ files:
115
115
  - TO_DO_v2.md
116
116
  - ext/smarter_csv/extconf.rb
117
117
  - ext/smarter_csv/smarter_csv.c
118
- - lib/core_ext/hash.rb
119
118
  - lib/smarter_csv.rb
119
+ - lib/smarter_csv/auto_detection.rb
120
+ - lib/smarter_csv/file_io.rb
121
+ - lib/smarter_csv/hash_transformations.rb
122
+ - lib/smarter_csv/header_transformations.rb
123
+ - lib/smarter_csv/header_validations.rb
124
+ - lib/smarter_csv/headers.rb
120
125
  - lib/smarter_csv/options_processing.rb
126
+ - lib/smarter_csv/parse.rb
121
127
  - lib/smarter_csv/smarter_csv.rb
128
+ - lib/smarter_csv/variables.rb
122
129
  - lib/smarter_csv/version.rb
123
130
  - smarter_csv.gemspec
124
131
  homepage: https://github.com/tilo/smarter_csv
@@ -144,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
151
  - !ruby/object:Gem::Version
145
152
  version: '0'
146
153
  requirements: []
147
- rubygems_version: 3.2.3
154
+ rubygems_version: 3.5.3
148
155
  signing_key:
149
156
  specification_version: 4
150
157
  summary: Ruby Gem for smarter importing of CSV Files (and CSV-like files), with lots
data/lib/core_ext/hash.rb DELETED
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # the following extension for class Hash is needed (from Facets of Ruby library):
4
-
5
- class Hash
6
- def self.zip(keys, values) # from Facets of Ruby library
7
- keys.zip(values).to_h
8
- end
9
- end