postgres-copy 1.7.1 → 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 +4 -4
- data/.github/workflows/ruby.yml +1 -1
- data/Gemfile.lock +55 -32
- data/lib/postgres-copy/acts_as_copy_target.rb +3 -1
- data/postgres-copy.gemspec +3 -2
- metadata +22 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8768ec6a5c8f0974ce44e8a26c8c25da03ddea7640c9f767a22ec70b3d3b7234
|
|
4
|
+
data.tar.gz: 46f5b188f857960f44af3f2dc862fa68718e711bb386d588478979000a113016
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fb1b3f93029dfc2ac35aedc900ed8ecd39fd1d2a6a9ad3999aedb16c7a2b6ce1f1c620e6031d3ebc1b18e2b8c1048f68df0ed8c5374995bb5be0fccd5e6d4ca1
|
|
7
|
+
data.tar.gz: 3524ad499dcded6edc357053978344950bc23b8abde30427046464b9dc04a67dd9e743960e58fddc270bb44266efd0c7ac0aa7d194fef8825e2339814ce52bef
|
data/.github/workflows/ruby.yml
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,50 +1,73 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
postgres-copy (1.7.
|
|
4
|
+
postgres-copy (1.7.2)
|
|
5
5
|
activerecord (>= 5.1)
|
|
6
|
+
csv
|
|
6
7
|
pg (>= 0.17)
|
|
7
8
|
|
|
8
9
|
GEM
|
|
9
10
|
remote: https://rubygems.org/
|
|
10
11
|
specs:
|
|
11
|
-
activemodel (
|
|
12
|
-
activesupport (=
|
|
13
|
-
activerecord (
|
|
14
|
-
activemodel (=
|
|
15
|
-
activesupport (=
|
|
16
|
-
|
|
17
|
-
|
|
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
|
+
timeout (>= 0.4.0)
|
|
18
|
+
activesupport (8.1.3.1)
|
|
19
|
+
base64
|
|
20
|
+
bigdecimal
|
|
21
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
22
|
+
connection_pool (>= 2.2.5)
|
|
23
|
+
drb
|
|
18
24
|
i18n (>= 1.6, < 2)
|
|
25
|
+
json
|
|
26
|
+
logger (>= 1.4.2)
|
|
19
27
|
minitest (>= 5.1)
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
28
|
+
securerandom (>= 0.3)
|
|
29
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
30
|
+
uri (>= 0.13.1)
|
|
31
|
+
base64 (0.2.0)
|
|
32
|
+
bigdecimal (3.1.8)
|
|
33
|
+
concurrent-ruby (1.3.4)
|
|
34
|
+
connection_pool (2.4.1)
|
|
35
|
+
csv (3.3.0)
|
|
36
|
+
diff-lcs (1.5.1)
|
|
37
|
+
drb (2.2.1)
|
|
38
|
+
i18n (1.15.2)
|
|
24
39
|
concurrent-ruby (~> 1.0)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
40
|
+
json (2.21.2)
|
|
41
|
+
logger (1.6.1)
|
|
42
|
+
minitest (6.0.6)
|
|
43
|
+
drb (~> 2.0)
|
|
44
|
+
prism (~> 1.5)
|
|
45
|
+
pg (1.5.7)
|
|
46
|
+
prism (1.9.0)
|
|
47
|
+
psych (5.1.2)
|
|
28
48
|
stringio
|
|
29
|
-
rake (
|
|
30
|
-
rdoc (6.
|
|
49
|
+
rake (13.4.2)
|
|
50
|
+
rdoc (6.7.0)
|
|
31
51
|
psych (>= 4.0.0)
|
|
32
|
-
rspec (3.
|
|
33
|
-
rspec-core (~> 3.
|
|
34
|
-
rspec-expectations (~> 3.
|
|
35
|
-
rspec-mocks (~> 3.
|
|
36
|
-
rspec-core (3.
|
|
37
|
-
rspec-support (~> 3.
|
|
38
|
-
rspec-expectations (3.
|
|
52
|
+
rspec (3.13.0)
|
|
53
|
+
rspec-core (~> 3.13.0)
|
|
54
|
+
rspec-expectations (~> 3.13.0)
|
|
55
|
+
rspec-mocks (~> 3.13.0)
|
|
56
|
+
rspec-core (3.13.0)
|
|
57
|
+
rspec-support (~> 3.13.0)
|
|
58
|
+
rspec-expectations (3.13.2)
|
|
39
59
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
40
|
-
rspec-support (~> 3.
|
|
41
|
-
rspec-mocks (3.
|
|
60
|
+
rspec-support (~> 3.13.0)
|
|
61
|
+
rspec-mocks (3.13.1)
|
|
42
62
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
43
|
-
rspec-support (~> 3.
|
|
44
|
-
rspec-support (3.
|
|
45
|
-
|
|
46
|
-
|
|
63
|
+
rspec-support (~> 3.13.0)
|
|
64
|
+
rspec-support (3.13.1)
|
|
65
|
+
securerandom (0.3.1)
|
|
66
|
+
stringio (3.2.0)
|
|
67
|
+
timeout (0.4.1)
|
|
68
|
+
tzinfo (2.0.6)
|
|
47
69
|
concurrent-ruby (~> 1.0)
|
|
70
|
+
uri (1.1.1)
|
|
48
71
|
|
|
49
72
|
PLATFORMS
|
|
50
73
|
ruby
|
|
@@ -52,9 +75,9 @@ PLATFORMS
|
|
|
52
75
|
DEPENDENCIES
|
|
53
76
|
bundler
|
|
54
77
|
postgres-copy!
|
|
55
|
-
rake (
|
|
78
|
+
rake (>= 12.3.3)
|
|
56
79
|
rdoc
|
|
57
80
|
rspec (~> 3.0)
|
|
58
81
|
|
|
59
82
|
BUNDLED WITH
|
|
60
|
-
|
|
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")
|
data/postgres-copy.gemspec
CHANGED
|
@@ -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.
|
|
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"]
|
|
@@ -22,9 +22,10 @@ Gem::Specification.new do |s|
|
|
|
22
22
|
|
|
23
23
|
s.add_dependency "pg", ">= 0.17"
|
|
24
24
|
s.add_dependency "activerecord", '>= 5.1'
|
|
25
|
+
s.add_dependency "csv"
|
|
25
26
|
s.add_development_dependency "bundler"
|
|
26
27
|
s.add_development_dependency "rdoc"
|
|
27
28
|
s.add_development_dependency "rspec", "~> 3.0"
|
|
28
|
-
s.add_development_dependency "rake", "
|
|
29
|
+
s.add_development_dependency "rake", ">= 12.3.3"
|
|
29
30
|
end
|
|
30
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.
|
|
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:
|
|
11
|
+
date: 2026-09-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pg
|
|
@@ -38,6 +38,20 @@ dependencies:
|
|
|
38
38
|
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '5.1'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: csv
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - ">="
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0'
|
|
48
|
+
type: :runtime
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - ">="
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
41
55
|
- !ruby/object:Gem::Dependency
|
|
42
56
|
name: bundler
|
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -84,14 +98,14 @@ dependencies:
|
|
|
84
98
|
name: rake
|
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
|
86
100
|
requirements:
|
|
87
|
-
- - "
|
|
101
|
+
- - ">="
|
|
88
102
|
- !ruby/object:Gem::Version
|
|
89
103
|
version: 12.3.3
|
|
90
104
|
type: :development
|
|
91
105
|
prerelease: false
|
|
92
106
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
107
|
requirements:
|
|
94
|
-
- - "
|
|
108
|
+
- - ">="
|
|
95
109
|
- !ruby/object:Gem::Version
|
|
96
110
|
version: 12.3.3
|
|
97
111
|
description: Now you can use the super fast COPY for import/export data directly from
|
|
@@ -154,7 +168,7 @@ files:
|
|
|
154
168
|
homepage: http://github.com/diogob/postgres-copy
|
|
155
169
|
licenses: []
|
|
156
170
|
metadata: {}
|
|
157
|
-
post_install_message:
|
|
171
|
+
post_install_message:
|
|
158
172
|
rdoc_options: []
|
|
159
173
|
require_paths:
|
|
160
174
|
- lib
|
|
@@ -169,8 +183,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
169
183
|
- !ruby/object:Gem::Version
|
|
170
184
|
version: '0'
|
|
171
185
|
requirements: []
|
|
172
|
-
rubygems_version: 3.
|
|
173
|
-
signing_key:
|
|
186
|
+
rubygems_version: 3.5.22
|
|
187
|
+
signing_key:
|
|
174
188
|
specification_version: 4
|
|
175
189
|
summary: Put COPY command functionality in ActiveRecord's model class
|
|
176
190
|
test_files: []
|