postgres-copy 1.7.2 → 1.7.3

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: b9a0299b4c5c2908e7e8ca8afbff1f96e8f23b3a1a372d05f7a7d3e1fb5c9637
4
- data.tar.gz: bbae02425d70ca159946895e8e61f6195ebb4fa23e8610ff0c2f8c1776089805
3
+ metadata.gz: 8768ec6a5c8f0974ce44e8a26c8c25da03ddea7640c9f767a22ec70b3d3b7234
4
+ data.tar.gz: 46f5b188f857960f44af3f2dc862fa68718e711bb386d588478979000a113016
5
5
  SHA512:
6
- metadata.gz: e3833502e3ba06cdc914b081ef7e43d2a27521d2d11f5c4b04f7fdbb7126fb13ea4371861ddc9c9ba218248bb3f829099a6aff70e590d7c5615520f64762ab41
7
- data.tar.gz: a7838c9d7625ec29bb8d5437ebf13c8a0dee92bc322430e80294041026e3ee1a445d22cc8d89356fa47e7b84e82cb6d0bf38628a747a03fea830c6efc9b0e0da
6
+ metadata.gz: fb1b3f93029dfc2ac35aedc900ed8ecd39fd1d2a6a9ad3999aedb16c7a2b6ce1f1c620e6031d3ebc1b18e2b8c1048f68df0ed8c5374995bb5be0fccd5e6d4ca1
7
+ data.tar.gz: 3524ad499dcded6edc357053978344950bc23b8abde30427046464b9dc04a67dd9e743960e58fddc270bb44266efd0c7ac0aa7d194fef8825e2339814ce52bef
@@ -36,7 +36,7 @@ jobs:
36
36
  name: test (ruby v${{ matrix.ruby }})
37
37
  strategy:
38
38
  matrix:
39
- ruby: ["2.7", "3.0", "3.1"]
39
+ ruby: ["3.2", "3.3", "3.4", "4.0"]
40
40
 
41
41
  steps:
42
42
  - uses: actions/checkout@v2
data/Gemfile.lock CHANGED
@@ -9,23 +9,25 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activemodel (7.2.1)
13
- activesupport (= 7.2.1)
14
- activerecord (7.2.1)
15
- activemodel (= 7.2.1)
16
- activesupport (= 7.2.1)
12
+ activemodel (8.1.3.1)
13
+ activesupport (= 8.1.3.1)
14
+ activerecord (8.1.3.1)
15
+ activemodel (= 8.1.3.1)
16
+ activesupport (= 8.1.3.1)
17
17
  timeout (>= 0.4.0)
18
- activesupport (7.2.1)
18
+ activesupport (8.1.3.1)
19
19
  base64
20
20
  bigdecimal
21
21
  concurrent-ruby (~> 1.0, >= 1.3.1)
22
22
  connection_pool (>= 2.2.5)
23
23
  drb
24
24
  i18n (>= 1.6, < 2)
25
+ json
25
26
  logger (>= 1.4.2)
26
27
  minitest (>= 5.1)
27
28
  securerandom (>= 0.3)
28
29
  tzinfo (~> 2.0, >= 2.0.5)
30
+ uri (>= 0.13.1)
29
31
  base64 (0.2.0)
30
32
  bigdecimal (3.1.8)
31
33
  concurrent-ruby (1.3.4)
@@ -33,14 +35,18 @@ GEM
33
35
  csv (3.3.0)
34
36
  diff-lcs (1.5.1)
35
37
  drb (2.2.1)
36
- i18n (1.14.5)
38
+ i18n (1.15.2)
37
39
  concurrent-ruby (~> 1.0)
40
+ json (2.21.2)
38
41
  logger (1.6.1)
39
- minitest (5.25.1)
42
+ minitest (6.0.6)
43
+ drb (~> 2.0)
44
+ prism (~> 1.5)
40
45
  pg (1.5.7)
46
+ prism (1.9.0)
41
47
  psych (5.1.2)
42
48
  stringio
43
- rake (12.3.3)
49
+ rake (13.4.2)
44
50
  rdoc (6.7.0)
45
51
  psych (>= 4.0.0)
46
52
  rspec (3.13.0)
@@ -57,10 +63,11 @@ GEM
57
63
  rspec-support (~> 3.13.0)
58
64
  rspec-support (3.13.1)
59
65
  securerandom (0.3.1)
60
- stringio (3.1.1)
66
+ stringio (3.2.0)
61
67
  timeout (0.4.1)
62
68
  tzinfo (2.0.6)
63
69
  concurrent-ruby (~> 1.0)
70
+ uri (1.1.1)
64
71
 
65
72
  PLATFORMS
66
73
  ruby
@@ -68,9 +75,9 @@ PLATFORMS
68
75
  DEPENDENCIES
69
76
  bundler
70
77
  postgres-copy!
71
- rake (~> 12.3.3)
78
+ rake (>= 12.3.3)
72
79
  rdoc
73
80
  rspec (~> 3.0)
74
81
 
75
82
  BUNDLED WITH
76
- 2.2.22
83
+ 4.0.10
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'csv'
2
4
 
3
5
  def get_file_mode mode, encoding = nil
@@ -67,7 +69,7 @@ module PostgresCopy
67
69
 
68
70
  # Copy all data to a single string
69
71
  def copy_to_string options = {}
70
- data = ''
72
+ data = +''
71
73
  self.copy_to(nil, options){|l| data << l }
72
74
  if options[:format] == :binary
73
75
  data.force_encoding("ASCII-8BIT")
@@ -5,7 +5,7 @@ $:.unshift lib unless $:.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "postgres-copy"
8
- s.version = "1.7.2"
8
+ s.version = "1.7.3"
9
9
  s.platform = Gem::Platform::RUBY
10
10
  s.required_ruby_version = ">= 1.9.3"
11
11
  s.authors = ["Diogo Biazus"]
@@ -26,6 +26,6 @@ Gem::Specification.new do |s|
26
26
  s.add_development_dependency "bundler"
27
27
  s.add_development_dependency "rdoc"
28
28
  s.add_development_dependency "rspec", "~> 3.0"
29
- s.add_development_dependency "rake", "~> 12.3.3"
29
+ s.add_development_dependency "rake", ">= 12.3.3"
30
30
  end
31
31
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postgres-copy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.2
4
+ version: 1.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diogo Biazus
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-02 00:00:00.000000000 Z
11
+ date: 2026-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg
@@ -98,14 +98,14 @@ dependencies:
98
98
  name: rake
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: 12.3.3
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: 12.3.3
111
111
  description: Now you can use the super fast COPY for import/export data directly from
@@ -168,7 +168,7 @@ files:
168
168
  homepage: http://github.com/diogob/postgres-copy
169
169
  licenses: []
170
170
  metadata: {}
171
- post_install_message:
171
+ post_install_message:
172
172
  rdoc_options: []
173
173
  require_paths:
174
174
  - lib
@@ -183,8 +183,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  - !ruby/object:Gem::Version
184
184
  version: '0'
185
185
  requirements: []
186
- rubygems_version: 3.5.9
187
- signing_key:
186
+ rubygems_version: 3.5.22
187
+ signing_key:
188
188
  specification_version: 4
189
189
  summary: Put COPY command functionality in ActiveRecord's model class
190
190
  test_files: []