bulk_insert 1.6.0 → 1.9.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.
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bulk_insert
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamis Buck
8
+ - Mauro Berlanda
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2017-09-28 00:00:00.000000000 Z
12
+ date: 2021-03-10 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: activerecord
@@ -16,16 +17,16 @@ dependencies:
16
17
  requirements:
17
18
  - - ">="
18
19
  - !ruby/object:Gem::Version
19
- version: 4.1.0
20
+ version: 3.2.0
20
21
  type: :runtime
21
22
  prerelease: false
22
23
  version_requirements: !ruby/object:Gem::Requirement
23
24
  requirements:
24
25
  - - ">="
25
26
  - !ruby/object:Gem::Version
26
- version: 4.1.0
27
+ version: 3.2.0
27
28
  - !ruby/object:Gem::Dependency
28
- name: sqlite3
29
+ name: appraisal
29
30
  requirement: !ruby/object:Gem::Requirement
30
31
  requirements:
31
32
  - - ">="
@@ -38,23 +39,10 @@ dependencies:
38
39
  - - ">="
39
40
  - !ruby/object:Gem::Version
40
41
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: rails
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: 4.2.0
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: 4.2.0
55
42
  description: Faster inserts! Insert N records in a single statement.
56
43
  email:
57
44
  - jamis@jamisbuck.org
45
+ - mauro.berlanda@gmail.com
58
46
  executables: []
59
47
  extensions: []
60
48
  extra_rdoc_files: []
@@ -63,12 +51,20 @@ files:
63
51
  - README.md
64
52
  - Rakefile
65
53
  - lib/bulk_insert.rb
54
+ - lib/bulk_insert/statement_adapters.rb
55
+ - lib/bulk_insert/statement_adapters/base_adapter.rb
56
+ - lib/bulk_insert/statement_adapters/generic_adapter.rb
57
+ - lib/bulk_insert/statement_adapters/mysql_adapter.rb
58
+ - lib/bulk_insert/statement_adapters/postgresql_adapter.rb
59
+ - lib/bulk_insert/statement_adapters/sqlite_adapter.rb
66
60
  - lib/bulk_insert/version.rb
67
61
  - lib/bulk_insert/worker.rb
68
62
  - test/bulk_insert/worker_test.rb
69
63
  - test/bulk_insert_test.rb
64
+ - test/connection_mocks.rb
70
65
  - test/dummy/README.rdoc
71
66
  - test/dummy/Rakefile
67
+ - test/dummy/app/assets/config/manifest.js
72
68
  - test/dummy/app/assets/javascripts/application.js
73
69
  - test/dummy/app/assets/stylesheets/application.css
74
70
  - test/dummy/app/controllers/application_controller.rb
@@ -98,12 +94,10 @@ files:
98
94
  - test/dummy/config/locales/en.yml
99
95
  - test/dummy/config/routes.rb
100
96
  - test/dummy/config/secrets.yml
101
- - test/dummy/db/development.sqlite3
102
97
  - test/dummy/db/migrate/20151008181535_create_testings.rb
103
98
  - test/dummy/db/migrate/20151028194232_add_default_value.rb
104
99
  - test/dummy/db/schema.rb
105
100
  - test/dummy/db/test.sqlite3
106
- - test/dummy/log/development.log
107
101
  - test/dummy/log/test.log
108
102
  - test/dummy/public/404.html
109
103
  - test/dummy/public/422.html
@@ -129,54 +123,53 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
123
  - !ruby/object:Gem::Version
130
124
  version: '0'
131
125
  requirements: []
132
- rubyforge_project:
133
- rubygems_version: 2.4.5.1
126
+ rubygems_version: 3.0.3
134
127
  signing_key:
135
128
  specification_version: 4
136
129
  summary: An helper for doing batch (single-statement) inserts in ActiveRecord
137
130
  test_files:
138
- - test/bulk_insert/worker_test.rb
139
- - test/bulk_insert_test.rb
140
- - test/dummy/app/assets/javascripts/application.js
141
- - test/dummy/app/assets/stylesheets/application.css
142
- - test/dummy/app/controllers/application_controller.rb
143
- - test/dummy/app/helpers/application_helper.rb
144
- - test/dummy/app/models/testing.rb
145
- - test/dummy/app/views/layouts/application.html.erb
131
+ - test/connection_mocks.rb
132
+ - test/test_helper.rb
146
133
  - test/dummy/bin/bundle
147
134
  - test/dummy/bin/rails
148
135
  - test/dummy/bin/rake
149
136
  - test/dummy/bin/setup
150
- - test/dummy/config/application.rb
151
- - test/dummy/config/boot.rb
152
- - test/dummy/config/database.yml
153
- - test/dummy/config/environment.rb
154
- - test/dummy/config/environments/development.rb
155
- - test/dummy/config/environments/production.rb
156
- - test/dummy/config/environments/test.rb
137
+ - test/dummy/app/views/layouts/application.html.erb
138
+ - test/dummy/app/models/testing.rb
139
+ - test/dummy/app/helpers/application_helper.rb
140
+ - test/dummy/app/controllers/application_controller.rb
141
+ - test/dummy/app/assets/config/manifest.js
142
+ - test/dummy/app/assets/stylesheets/application.css
143
+ - test/dummy/app/assets/javascripts/application.js
144
+ - test/dummy/log/test.log
145
+ - test/dummy/config/initializers/mime_types.rb
146
+ - test/dummy/config/initializers/inflections.rb
147
+ - test/dummy/config/initializers/filter_parameter_logging.rb
157
148
  - test/dummy/config/initializers/assets.rb
158
- - test/dummy/config/initializers/backtrace_silencers.rb
159
149
  - test/dummy/config/initializers/cookies_serializer.rb
160
- - test/dummy/config/initializers/filter_parameter_logging.rb
161
- - test/dummy/config/initializers/inflections.rb
162
- - test/dummy/config/initializers/mime_types.rb
163
- - test/dummy/config/initializers/session_store.rb
164
150
  - test/dummy/config/initializers/wrap_parameters.rb
165
- - test/dummy/config/locales/en.yml
151
+ - test/dummy/config/initializers/session_store.rb
152
+ - test/dummy/config/initializers/backtrace_silencers.rb
166
153
  - test/dummy/config/routes.rb
154
+ - test/dummy/config/environment.rb
155
+ - test/dummy/config/locales/en.yml
156
+ - test/dummy/config/application.rb
157
+ - test/dummy/config/environments/test.rb
158
+ - test/dummy/config/environments/development.rb
159
+ - test/dummy/config/environments/production.rb
160
+ - test/dummy/config/database.yml
161
+ - test/dummy/config/boot.rb
167
162
  - test/dummy/config/secrets.yml
168
- - test/dummy/config.ru
169
- - test/dummy/db/development.sqlite3
170
- - test/dummy/db/migrate/20151008181535_create_testings.rb
171
- - test/dummy/db/migrate/20151028194232_add_default_value.rb
172
- - test/dummy/db/schema.rb
173
- - test/dummy/db/test.sqlite3
174
- - test/dummy/log/development.log
175
- - test/dummy/log/test.log
176
- - test/dummy/public/404.html
163
+ - test/dummy/Rakefile
177
164
  - test/dummy/public/422.html
178
165
  - test/dummy/public/500.html
166
+ - test/dummy/public/404.html
179
167
  - test/dummy/public/favicon.ico
180
- - test/dummy/Rakefile
168
+ - test/dummy/db/test.sqlite3
169
+ - test/dummy/db/schema.rb
170
+ - test/dummy/db/migrate/20151008181535_create_testings.rb
171
+ - test/dummy/db/migrate/20151028194232_add_default_value.rb
172
+ - test/dummy/config.ru
181
173
  - test/dummy/README.rdoc
182
- - test/test_helper.rb
174
+ - test/bulk_insert/worker_test.rb
175
+ - test/bulk_insert_test.rb
Binary file
@@ -1,17 +0,0 @@
1
-  (2.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2
-  (0.1ms) select sqlite_version(*)
3
-  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
- Migrating to CreateTestings (20151008181535)
6
-  (0.1ms) begin transaction
7
-  (0.4ms) CREATE TABLE "testings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "greeting" varchar, "age" integer, "happy" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
8
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151008181535"]]
9
-  (0.8ms) commit transaction
10
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
11
- ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
12
- Migrating to AddDefaultValue (20151028194232)
13
-  (0.1ms) begin transaction
14
-  (0.4ms) ALTER TABLE "testings" ADD "color" varchar DEFAULT 'chartreuse'
15
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028194232"]]
16
-  (2.1ms) commit transaction
17
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"