sample_data_dump_postgres_data_store 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +4 -0
- data/lib/sample_data_dump_postgres_data_store/gateway.rb +2 -2
- data/lib/sample_data_dump_postgres_data_store/version.rb +1 -1
- metadata +3 -5
- data/Gemfile.lock +0 -240
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1844af10911fbbfd7af52ea89361cb7af6f531caaef6af3b28d7bbb0ccc8ab65
|
4
|
+
data.tar.gz: 7be6b426365374b03b811f0f2d419c90a43440a842c6283e401a0dd834bc7d5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e29464e67099f97149db683d1a1636e76fbb7a4feb7b5bc7aff02f968bfacda029c744578d0e762e07f381ba4eef6e8e859fe15ecf27ee43c1f41cfe28dbb782
|
7
|
+
data.tar.gz: 6f74c8d15b54eb3f3561dd993fe99348a0eba20ec4e900f6b8757a2a642b60ccb8c47ee0b4ad57d61c7ac0ce8391931f8daef8cab2a3b648cd63371a608ad6dd
|
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.6.5
|
data/CHANGELOG.md
CHANGED
@@ -185,10 +185,10 @@ module SampleDataDumpPostgresDataStore
|
|
185
185
|
`echo "SELECT 'No rows to load'" >> #{sql_file_path}`
|
186
186
|
else
|
187
187
|
File.open(sql_file_path, 'w+') do |file|
|
188
|
-
table_name = table_configuration.qualified_table_name
|
189
|
-
file.puts "DELETE FROM #{table_name};"
|
190
188
|
insert_columns = table_columns(table_configuration)
|
189
|
+
table_name = table_configuration.qualified_table_name
|
191
190
|
columns_in_quotes = insert_columns.map { |col| "\"#{col}\"" }.join(', ')
|
191
|
+
|
192
192
|
file.puts "INSERT INTO #{table_name} (#{columns_in_quotes})"
|
193
193
|
file.puts 'VALUES'
|
194
194
|
results.each_with_index do |result, index|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sample_data_dump_postgres_data_store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bellroy Dev Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -192,7 +192,6 @@ files:
|
|
192
192
|
- ".ruby-version"
|
193
193
|
- CHANGELOG.md
|
194
194
|
- Gemfile
|
195
|
-
- Gemfile.lock
|
196
195
|
- Guardfile
|
197
196
|
- LICENSE.md
|
198
197
|
- README.md
|
@@ -220,8 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
220
219
|
- !ruby/object:Gem::Version
|
221
220
|
version: '0'
|
222
221
|
requirements: []
|
223
|
-
|
224
|
-
rubygems_version: 2.6.14.3
|
222
|
+
rubygems_version: 3.0.3
|
225
223
|
signing_key:
|
226
224
|
specification_version: 4
|
227
225
|
summary: Data storage for `sample_data_dump` gem - PostgreSQL
|
data/Gemfile.lock
DELETED
@@ -1,240 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
sample_data_dump_postgres_data_store (0.0.4)
|
5
|
-
activerecord
|
6
|
-
dry-matcher
|
7
|
-
dry-monads
|
8
|
-
dry-struct
|
9
|
-
dry-types
|
10
|
-
duckface-interfaces
|
11
|
-
pg
|
12
|
-
railties
|
13
|
-
sample_data_dump (>= 0.0.2)
|
14
|
-
|
15
|
-
GEM
|
16
|
-
remote: https://rubygems.org/
|
17
|
-
specs:
|
18
|
-
actionpack (5.2.2)
|
19
|
-
actionview (= 5.2.2)
|
20
|
-
activesupport (= 5.2.2)
|
21
|
-
rack (~> 2.0)
|
22
|
-
rack-test (>= 0.6.3)
|
23
|
-
rails-dom-testing (~> 2.0)
|
24
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
25
|
-
actionview (5.2.2)
|
26
|
-
activesupport (= 5.2.2)
|
27
|
-
builder (~> 3.1)
|
28
|
-
erubi (~> 1.4)
|
29
|
-
rails-dom-testing (~> 2.0)
|
30
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
31
|
-
activemodel (5.2.2)
|
32
|
-
activesupport (= 5.2.2)
|
33
|
-
activerecord (5.2.2)
|
34
|
-
activemodel (= 5.2.2)
|
35
|
-
activesupport (= 5.2.2)
|
36
|
-
arel (>= 9.0)
|
37
|
-
activesupport (5.2.2)
|
38
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
39
|
-
i18n (>= 0.7, < 2)
|
40
|
-
minitest (~> 5.1)
|
41
|
-
tzinfo (~> 1.1)
|
42
|
-
arel (9.0.0)
|
43
|
-
ast (2.4.0)
|
44
|
-
axiom-types (0.1.1)
|
45
|
-
descendants_tracker (~> 0.0.4)
|
46
|
-
ice_nine (~> 0.11.0)
|
47
|
-
thread_safe (~> 0.3, >= 0.3.1)
|
48
|
-
builder (3.2.3)
|
49
|
-
byebug (10.0.2)
|
50
|
-
codeclimate-engine-rb (0.4.1)
|
51
|
-
virtus (~> 1.0)
|
52
|
-
coderay (1.1.2)
|
53
|
-
coercible (1.0.0)
|
54
|
-
descendants_tracker (~> 0.0.1)
|
55
|
-
concurrent-ruby (1.1.3)
|
56
|
-
crass (1.0.4)
|
57
|
-
descendants_tracker (0.0.4)
|
58
|
-
thread_safe (~> 0.3, >= 0.3.1)
|
59
|
-
diff-lcs (1.3)
|
60
|
-
docile (1.3.1)
|
61
|
-
dry-configurable (0.7.0)
|
62
|
-
concurrent-ruby (~> 1.0)
|
63
|
-
dry-container (0.6.0)
|
64
|
-
concurrent-ruby (~> 1.0)
|
65
|
-
dry-configurable (~> 0.1, >= 0.1.3)
|
66
|
-
dry-core (0.4.7)
|
67
|
-
concurrent-ruby (~> 1.0)
|
68
|
-
dry-equalizer (0.2.1)
|
69
|
-
dry-inflector (0.1.2)
|
70
|
-
dry-logic (0.4.2)
|
71
|
-
dry-container (~> 0.2, >= 0.2.6)
|
72
|
-
dry-core (~> 0.2)
|
73
|
-
dry-equalizer (~> 0.2)
|
74
|
-
dry-matcher (0.7.0)
|
75
|
-
dry-monads (1.1.0)
|
76
|
-
concurrent-ruby (~> 1.0)
|
77
|
-
dry-core (~> 0.4, >= 0.4.4)
|
78
|
-
dry-equalizer
|
79
|
-
dry-struct (0.6.0)
|
80
|
-
dry-core (~> 0.4, >= 0.4.3)
|
81
|
-
dry-equalizer (~> 0.2)
|
82
|
-
dry-types (~> 0.13)
|
83
|
-
ice_nine (~> 0.11)
|
84
|
-
dry-types (0.13.3)
|
85
|
-
concurrent-ruby (~> 1.0)
|
86
|
-
dry-container (~> 0.3)
|
87
|
-
dry-core (~> 0.4, >= 0.4.4)
|
88
|
-
dry-equalizer (~> 0.2)
|
89
|
-
dry-inflector (~> 0.1, >= 0.1.2)
|
90
|
-
dry-logic (~> 0.4, >= 0.4.2)
|
91
|
-
duckface-interfaces (0.0.3)
|
92
|
-
equalizer (0.0.11)
|
93
|
-
erubi (1.7.1)
|
94
|
-
ffi (1.9.25)
|
95
|
-
formatador (0.2.5)
|
96
|
-
guard (2.15.0)
|
97
|
-
formatador (>= 0.2.4)
|
98
|
-
listen (>= 2.7, < 4.0)
|
99
|
-
lumberjack (>= 1.0.12, < 2.0)
|
100
|
-
nenv (~> 0.1)
|
101
|
-
notiffany (~> 0.0)
|
102
|
-
pry (>= 0.9.12)
|
103
|
-
shellany (~> 0.0)
|
104
|
-
thor (>= 0.18.1)
|
105
|
-
guard-compat (1.2.1)
|
106
|
-
guard-rspec (4.7.3)
|
107
|
-
guard (~> 2.1)
|
108
|
-
guard-compat (~> 1.1)
|
109
|
-
rspec (>= 2.99.0, < 4.0)
|
110
|
-
i18n (1.1.1)
|
111
|
-
concurrent-ruby (~> 1.0)
|
112
|
-
ice_nine (0.11.2)
|
113
|
-
jaro_winkler (1.5.1)
|
114
|
-
json (2.1.0)
|
115
|
-
kwalify (0.7.2)
|
116
|
-
listen (3.1.5)
|
117
|
-
rb-fsevent (~> 0.9, >= 0.9.4)
|
118
|
-
rb-inotify (~> 0.9, >= 0.9.7)
|
119
|
-
ruby_dep (~> 1.2)
|
120
|
-
loofah (2.2.3)
|
121
|
-
crass (~> 1.0.2)
|
122
|
-
nokogiri (>= 1.5.9)
|
123
|
-
lumberjack (1.0.13)
|
124
|
-
method_source (0.9.2)
|
125
|
-
mini_portile2 (2.3.0)
|
126
|
-
minitest (5.11.3)
|
127
|
-
nenv (0.3.0)
|
128
|
-
nokogiri (1.8.5)
|
129
|
-
mini_portile2 (~> 2.3.0)
|
130
|
-
notiffany (0.1.1)
|
131
|
-
nenv (~> 0.1)
|
132
|
-
shellany (~> 0.0)
|
133
|
-
parallel (1.12.1)
|
134
|
-
parser (2.5.3.0)
|
135
|
-
ast (~> 2.4.0)
|
136
|
-
pg (1.1.3)
|
137
|
-
powerpack (0.1.2)
|
138
|
-
pry (0.12.2)
|
139
|
-
coderay (~> 1.1.0)
|
140
|
-
method_source (~> 0.9.0)
|
141
|
-
pry-byebug (3.6.0)
|
142
|
-
byebug (~> 10.0)
|
143
|
-
pry (~> 0.10)
|
144
|
-
rack (2.0.6)
|
145
|
-
rack-test (1.1.0)
|
146
|
-
rack (>= 1.0, < 3)
|
147
|
-
rails-dom-testing (2.0.3)
|
148
|
-
activesupport (>= 4.2.0)
|
149
|
-
nokogiri (>= 1.6)
|
150
|
-
rails-html-sanitizer (1.0.4)
|
151
|
-
loofah (~> 2.2, >= 2.2.2)
|
152
|
-
railties (5.2.2)
|
153
|
-
actionpack (= 5.2.2)
|
154
|
-
activesupport (= 5.2.2)
|
155
|
-
method_source
|
156
|
-
rake (>= 0.8.7)
|
157
|
-
thor (>= 0.19.0, < 2.0)
|
158
|
-
rainbow (3.0.0)
|
159
|
-
rake (12.3.2)
|
160
|
-
rb-fsevent (0.10.3)
|
161
|
-
rb-inotify (0.9.10)
|
162
|
-
ffi (>= 0.5.0, < 2)
|
163
|
-
rb-readline (0.5.5)
|
164
|
-
reek (5.2.0)
|
165
|
-
codeclimate-engine-rb (~> 0.4.0)
|
166
|
-
kwalify (~> 0.7.0)
|
167
|
-
parser (>= 2.5.0.0, < 2.6, != 2.5.1.1)
|
168
|
-
rainbow (>= 2.0, < 4.0)
|
169
|
-
rspec (3.8.0)
|
170
|
-
rspec-core (~> 3.8.0)
|
171
|
-
rspec-expectations (~> 3.8.0)
|
172
|
-
rspec-mocks (~> 3.8.0)
|
173
|
-
rspec-core (3.8.0)
|
174
|
-
rspec-support (~> 3.8.0)
|
175
|
-
rspec-expectations (3.8.2)
|
176
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
177
|
-
rspec-support (~> 3.8.0)
|
178
|
-
rspec-mocks (3.8.0)
|
179
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
180
|
-
rspec-support (~> 3.8.0)
|
181
|
-
rspec-support (3.8.0)
|
182
|
-
rubocop (0.61.1)
|
183
|
-
jaro_winkler (~> 1.5.1)
|
184
|
-
parallel (~> 1.10)
|
185
|
-
parser (>= 2.5, != 2.5.1.1)
|
186
|
-
powerpack (~> 0.1)
|
187
|
-
rainbow (>= 2.2.2, < 4.0)
|
188
|
-
ruby-progressbar (~> 1.7)
|
189
|
-
unicode-display_width (~> 1.4.0)
|
190
|
-
rubocop-rspec (1.30.1)
|
191
|
-
rubocop (>= 0.60.0)
|
192
|
-
ruby-progressbar (1.10.0)
|
193
|
-
ruby_dep (1.5.0)
|
194
|
-
sample_data_dump (0.0.2)
|
195
|
-
dry-matcher
|
196
|
-
dry-monads
|
197
|
-
dry-struct
|
198
|
-
dry-types
|
199
|
-
duckface-interfaces
|
200
|
-
shellany (0.0.1)
|
201
|
-
simplecov (0.16.1)
|
202
|
-
docile (~> 1.1)
|
203
|
-
json (>= 1.8, < 3)
|
204
|
-
simplecov-html (~> 0.10.0)
|
205
|
-
simplecov-html (0.10.2)
|
206
|
-
stackprof (0.2.12)
|
207
|
-
thor (0.20.3)
|
208
|
-
thread_safe (0.3.6)
|
209
|
-
timecop (0.9.1)
|
210
|
-
tzinfo (1.2.5)
|
211
|
-
thread_safe (~> 0.1)
|
212
|
-
unicode-display_width (1.4.0)
|
213
|
-
virtus (1.0.5)
|
214
|
-
axiom-types (~> 0.1)
|
215
|
-
coercible (~> 1.0)
|
216
|
-
descendants_tracker (~> 0.0, >= 0.0.3)
|
217
|
-
equalizer (~> 0.0, >= 0.0.9)
|
218
|
-
|
219
|
-
PLATFORMS
|
220
|
-
ruby
|
221
|
-
|
222
|
-
DEPENDENCIES
|
223
|
-
bundler (>= 1.13)
|
224
|
-
guard-rspec
|
225
|
-
pry
|
226
|
-
pry-byebug
|
227
|
-
rake (>= 10.0)
|
228
|
-
rb-fsevent
|
229
|
-
rb-readline
|
230
|
-
reek
|
231
|
-
rspec
|
232
|
-
rubocop
|
233
|
-
rubocop-rspec
|
234
|
-
sample_data_dump_postgres_data_store!
|
235
|
-
simplecov
|
236
|
-
stackprof
|
237
|
-
timecop
|
238
|
-
|
239
|
-
BUNDLED WITH
|
240
|
-
1.17.1
|