mass_insert 0.2.7 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: adf5bcdb2352d8394fac3f419157734416b263459335c2e9cdd7afab2fe7cc9b
4
- data.tar.gz: 479d49e5399895513170ffa9b2fd42179b301b9ef2f0188a9e32b5cd53d005cd
3
+ metadata.gz: f65ad414fc126fa727b99d1db03ae9186b2e80ef4b388f934fdcbf2c38aa1216
4
+ data.tar.gz: 8626e06f1c40528398a497c998226e48a78c6bd6dc2d31120a7378b8caf04d7e
5
5
  SHA512:
6
- metadata.gz: 66fdcf8e7ecdf52d42ac898f0a19cf8d562ac274737356a589c72d65c832fa2f11dc75d5a73edf939ec3919061edac3b83f09fd6121696147a41241b4a57b7cd
7
- data.tar.gz: 3dcdc0616c06c3c5e9d1feedf541ed34395154426548f7e1e77a7674e8535d1f5bab7282a6f24f8a6e3540008ee4eee7e4eeac979cab0d0e43527e6a0bc4042f
6
+ metadata.gz: 1b0b628fa791a0bb9325a07be05730bb25f7422860a12c38e15488b22a98ea932a45e241c16c9aa633ea1e9361813950b5a4531817eba8c56d0b06f5f0636e6d
7
+ data.tar.gz: 4e41b61ad2a0e20289612623beb4e5d78e43dafb5e980dcb538f24eb998159b9ac7ffe390340dfc43f1a2c725ca4c9a24fbdfc6258e528c983e8ecf52ead127b
data/.travis.yml CHANGED
@@ -7,8 +7,9 @@ services:
7
7
  - postgresql
8
8
 
9
9
  rvm:
10
- - 2.5.5
11
- - 2.6.3
10
+ - 2.6.6
11
+ - 2.7.2
12
+ - 3.0.0
12
13
 
13
14
  before_script:
14
15
  - cp test/database.yml.example test/database.yml
@@ -21,3 +22,9 @@ before_install:
21
22
  gemfile:
22
23
  - gemfiles/rails_5.2.gemfile
23
24
  - gemfiles/rails_6.0.gemfile
25
+ - gemfiles/rails_6.1.gemfile
26
+
27
+ matrix:
28
+ allow_failures:
29
+ - gemfile: gemfiles/rails_5.2.gemfile
30
+ rvm: 3.0.0
data/Appraisals CHANGED
@@ -1,7 +1,11 @@
1
1
  appraise 'rails-5.2' do
2
- gem 'rails', '~> 5.2'
2
+ gem 'rails', '~> 5.2.0'
3
3
  end
4
4
 
5
5
  appraise 'rails-6.0' do
6
- gem 'rails', '~> 6.0'
6
+ gem 'rails', '~> 6.0.0'
7
+ end
8
+
9
+ appraise 'rails-6.1' do
10
+ gem 'rails', '~> 6.1.0'
7
11
  end
data/README.md CHANGED
@@ -87,7 +87,7 @@ INSERT INTO table (a,b,c) VALUES (1,2,3)
87
87
 
88
88
  ## Advantages
89
89
 
90
- Faster. It's depending of the computer but these are some results...
90
+ Faster. It depends on the computer and the data but these are some results...
91
91
  * PostgreSQL - Saving 10,000 records in 0.49s
92
92
 
93
93
  ## Attention
@@ -0,0 +1,2 @@
1
+ ---
2
+ BUNDLE_RETRY: "1"
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "~> 5.2"
5
+ gem "rails", "~> 5.2.0"
6
6
 
7
7
  gemspec path: "../"
@@ -1,155 +1,157 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- mass_insert (0.2.7)
5
- activerecord (>= 4.2)
4
+ mass_insert (1.0.0)
5
+ activerecord (>= 5.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actioncable (5.2.3)
11
- actionpack (= 5.2.3)
10
+ actioncable (5.2.5)
11
+ actionpack (= 5.2.5)
12
12
  nio4r (~> 2.0)
13
13
  websocket-driver (>= 0.6.1)
14
- actionmailer (5.2.3)
15
- actionpack (= 5.2.3)
16
- actionview (= 5.2.3)
17
- activejob (= 5.2.3)
14
+ actionmailer (5.2.5)
15
+ actionpack (= 5.2.5)
16
+ actionview (= 5.2.5)
17
+ activejob (= 5.2.5)
18
18
  mail (~> 2.5, >= 2.5.4)
19
19
  rails-dom-testing (~> 2.0)
20
- actionpack (5.2.3)
21
- actionview (= 5.2.3)
22
- activesupport (= 5.2.3)
23
- rack (~> 2.0)
20
+ actionpack (5.2.5)
21
+ actionview (= 5.2.5)
22
+ activesupport (= 5.2.5)
23
+ rack (~> 2.0, >= 2.0.8)
24
24
  rack-test (>= 0.6.3)
25
25
  rails-dom-testing (~> 2.0)
26
26
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
27
- actionview (5.2.3)
28
- activesupport (= 5.2.3)
27
+ actionview (5.2.5)
28
+ activesupport (= 5.2.5)
29
29
  builder (~> 3.1)
30
30
  erubi (~> 1.4)
31
31
  rails-dom-testing (~> 2.0)
32
32
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
33
- activejob (5.2.3)
34
- activesupport (= 5.2.3)
33
+ activejob (5.2.5)
34
+ activesupport (= 5.2.5)
35
35
  globalid (>= 0.3.6)
36
- activemodel (5.2.3)
37
- activesupport (= 5.2.3)
38
- activerecord (5.2.3)
39
- activemodel (= 5.2.3)
40
- activesupport (= 5.2.3)
36
+ activemodel (5.2.5)
37
+ activesupport (= 5.2.5)
38
+ activerecord (5.2.5)
39
+ activemodel (= 5.2.5)
40
+ activesupport (= 5.2.5)
41
41
  arel (>= 9.0)
42
- activestorage (5.2.3)
43
- actionpack (= 5.2.3)
44
- activerecord (= 5.2.3)
45
- marcel (~> 0.3.1)
46
- activesupport (5.2.3)
42
+ activestorage (5.2.5)
43
+ actionpack (= 5.2.5)
44
+ activerecord (= 5.2.5)
45
+ marcel (~> 1.0.0)
46
+ activesupport (5.2.5)
47
47
  concurrent-ruby (~> 1.0, >= 1.0.2)
48
48
  i18n (>= 0.7, < 2)
49
49
  minitest (~> 5.1)
50
50
  tzinfo (~> 1.1)
51
- appraisal (2.2.0)
51
+ appraisal (2.4.0)
52
52
  bundler
53
53
  rake
54
54
  thor (>= 0.14.0)
55
55
  arel (9.0.0)
56
- builder (3.2.3)
57
- concurrent-ruby (1.1.5)
56
+ builder (3.2.4)
57
+ concurrent-ruby (1.1.8)
58
58
  coveralls (0.8.23)
59
59
  json (>= 1.8, < 3)
60
60
  simplecov (~> 0.16.1)
61
61
  term-ansicolor (~> 1.3)
62
62
  thor (>= 0.19.4, < 2.0)
63
63
  tins (~> 1.6)
64
- crass (1.0.4)
65
- docile (1.3.2)
66
- erubi (1.8.0)
64
+ crass (1.0.6)
65
+ docile (1.3.5)
66
+ erubi (1.10.0)
67
67
  globalid (0.4.2)
68
68
  activesupport (>= 4.2.0)
69
- i18n (1.6.0)
69
+ i18n (1.8.10)
70
70
  concurrent-ruby (~> 1.0)
71
- json (2.2.0)
72
- loofah (2.2.3)
71
+ json (2.5.1)
72
+ loofah (2.9.0)
73
73
  crass (~> 1.0.2)
74
74
  nokogiri (>= 1.5.9)
75
75
  mail (2.7.1)
76
76
  mini_mime (>= 0.1.1)
77
- marcel (0.3.3)
78
- mimemagic (~> 0.3.2)
79
- method_source (0.9.2)
80
- mimemagic (0.3.3)
81
- mini_mime (1.0.2)
82
- mini_portile2 (2.4.0)
83
- minitest (5.11.3)
84
- mysql2 (0.5.2)
85
- nio4r (2.4.0)
86
- nokogiri (1.10.4)
87
- mini_portile2 (~> 2.4.0)
88
- pg (1.1.4)
89
- rack (2.0.7)
77
+ marcel (1.0.1)
78
+ method_source (1.0.0)
79
+ mini_mime (1.1.0)
80
+ mini_portile2 (2.5.0)
81
+ minitest (5.14.4)
82
+ mysql2 (0.5.3)
83
+ nio4r (2.5.7)
84
+ nokogiri (1.11.2)
85
+ mini_portile2 (~> 2.5.0)
86
+ racc (~> 1.4)
87
+ pg (1.2.3)
88
+ racc (1.5.2)
89
+ rack (2.2.3)
90
90
  rack-test (1.1.0)
91
91
  rack (>= 1.0, < 3)
92
- rails (5.2.3)
93
- actioncable (= 5.2.3)
94
- actionmailer (= 5.2.3)
95
- actionpack (= 5.2.3)
96
- actionview (= 5.2.3)
97
- activejob (= 5.2.3)
98
- activemodel (= 5.2.3)
99
- activerecord (= 5.2.3)
100
- activestorage (= 5.2.3)
101
- activesupport (= 5.2.3)
92
+ rails (5.2.5)
93
+ actioncable (= 5.2.5)
94
+ actionmailer (= 5.2.5)
95
+ actionpack (= 5.2.5)
96
+ actionview (= 5.2.5)
97
+ activejob (= 5.2.5)
98
+ activemodel (= 5.2.5)
99
+ activerecord (= 5.2.5)
100
+ activestorage (= 5.2.5)
101
+ activesupport (= 5.2.5)
102
102
  bundler (>= 1.3.0)
103
- railties (= 5.2.3)
103
+ railties (= 5.2.5)
104
104
  sprockets-rails (>= 2.0.0)
105
105
  rails-dom-testing (2.0.3)
106
106
  activesupport (>= 4.2.0)
107
107
  nokogiri (>= 1.6)
108
- rails-html-sanitizer (1.2.0)
109
- loofah (~> 2.2, >= 2.2.2)
110
- railties (5.2.3)
111
- actionpack (= 5.2.3)
112
- activesupport (= 5.2.3)
108
+ rails-html-sanitizer (1.3.0)
109
+ loofah (~> 2.3)
110
+ railties (5.2.5)
111
+ actionpack (= 5.2.5)
112
+ activesupport (= 5.2.5)
113
113
  method_source
114
114
  rake (>= 0.8.7)
115
115
  thor (>= 0.19.0, < 2.0)
116
- rake (12.3.3)
116
+ rake (13.0.3)
117
117
  simplecov (0.16.1)
118
118
  docile (~> 1.1)
119
119
  json (>= 1.8, < 3)
120
120
  simplecov-html (~> 0.10.0)
121
121
  simplecov-html (0.10.2)
122
- sprockets (3.7.2)
122
+ sprockets (4.0.2)
123
123
  concurrent-ruby (~> 1.0)
124
124
  rack (> 1, < 3)
125
- sprockets-rails (3.2.1)
125
+ sprockets-rails (3.2.2)
126
126
  actionpack (>= 4.0)
127
127
  activesupport (>= 4.0)
128
128
  sprockets (>= 3.0.0)
129
- sqlite3 (1.4.1)
129
+ sqlite3 (1.4.2)
130
+ sync (0.5.0)
130
131
  term-ansicolor (1.7.1)
131
132
  tins (~> 1.0)
132
- thor (0.20.3)
133
+ thor (1.1.0)
133
134
  thread_safe (0.3.6)
134
- tins (1.21.1)
135
- tzinfo (1.2.5)
135
+ tins (1.28.0)
136
+ sync
137
+ tzinfo (1.2.9)
136
138
  thread_safe (~> 0.1)
137
- websocket-driver (0.7.1)
139
+ websocket-driver (0.7.3)
138
140
  websocket-extensions (>= 0.1.0)
139
- websocket-extensions (0.1.4)
141
+ websocket-extensions (0.1.5)
140
142
 
141
143
  PLATFORMS
142
144
  ruby
143
145
 
144
146
  DEPENDENCIES
145
- appraisal (~> 2.2)
147
+ appraisal (~> 2.4)
146
148
  coveralls (~> 0.8)
147
149
  mass_insert!
148
150
  mysql2 (~> 0.5)
149
- pg (~> 1.1)
150
- rails (~> 5.2)
151
- rake (~> 12.0)
151
+ pg (~> 1.2)
152
+ rails (~> 5.2.0)
153
+ rake (~> 13.0)
152
154
  sqlite3 (~> 1.4)
153
155
 
154
156
  BUNDLED WITH
155
- 2.0.2
157
+ 2.2.3
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "~> 6.0"
5
+ gem "rails", "~> 6.0.0"
6
6
 
7
7
  gemspec path: "../"
@@ -1,171 +1,173 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- mass_insert (0.2.7)
5
- activerecord (>= 4.2)
4
+ mass_insert (1.0.0)
5
+ activerecord (>= 5.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actioncable (6.0.0)
11
- actionpack (= 6.0.0)
10
+ actioncable (6.0.3.6)
11
+ actionpack (= 6.0.3.6)
12
12
  nio4r (~> 2.0)
13
13
  websocket-driver (>= 0.6.1)
14
- actionmailbox (6.0.0)
15
- actionpack (= 6.0.0)
16
- activejob (= 6.0.0)
17
- activerecord (= 6.0.0)
18
- activestorage (= 6.0.0)
19
- activesupport (= 6.0.0)
14
+ actionmailbox (6.0.3.6)
15
+ actionpack (= 6.0.3.6)
16
+ activejob (= 6.0.3.6)
17
+ activerecord (= 6.0.3.6)
18
+ activestorage (= 6.0.3.6)
19
+ activesupport (= 6.0.3.6)
20
20
  mail (>= 2.7.1)
21
- actionmailer (6.0.0)
22
- actionpack (= 6.0.0)
23
- actionview (= 6.0.0)
24
- activejob (= 6.0.0)
21
+ actionmailer (6.0.3.6)
22
+ actionpack (= 6.0.3.6)
23
+ actionview (= 6.0.3.6)
24
+ activejob (= 6.0.3.6)
25
25
  mail (~> 2.5, >= 2.5.4)
26
26
  rails-dom-testing (~> 2.0)
27
- actionpack (6.0.0)
28
- actionview (= 6.0.0)
29
- activesupport (= 6.0.0)
30
- rack (~> 2.0)
27
+ actionpack (6.0.3.6)
28
+ actionview (= 6.0.3.6)
29
+ activesupport (= 6.0.3.6)
30
+ rack (~> 2.0, >= 2.0.8)
31
31
  rack-test (>= 0.6.3)
32
32
  rails-dom-testing (~> 2.0)
33
33
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
34
- actiontext (6.0.0)
35
- actionpack (= 6.0.0)
36
- activerecord (= 6.0.0)
37
- activestorage (= 6.0.0)
38
- activesupport (= 6.0.0)
34
+ actiontext (6.0.3.6)
35
+ actionpack (= 6.0.3.6)
36
+ activerecord (= 6.0.3.6)
37
+ activestorage (= 6.0.3.6)
38
+ activesupport (= 6.0.3.6)
39
39
  nokogiri (>= 1.8.5)
40
- actionview (6.0.0)
41
- activesupport (= 6.0.0)
40
+ actionview (6.0.3.6)
41
+ activesupport (= 6.0.3.6)
42
42
  builder (~> 3.1)
43
43
  erubi (~> 1.4)
44
44
  rails-dom-testing (~> 2.0)
45
45
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
46
- activejob (6.0.0)
47
- activesupport (= 6.0.0)
46
+ activejob (6.0.3.6)
47
+ activesupport (= 6.0.3.6)
48
48
  globalid (>= 0.3.6)
49
- activemodel (6.0.0)
50
- activesupport (= 6.0.0)
51
- activerecord (6.0.0)
52
- activemodel (= 6.0.0)
53
- activesupport (= 6.0.0)
54
- activestorage (6.0.0)
55
- actionpack (= 6.0.0)
56
- activejob (= 6.0.0)
57
- activerecord (= 6.0.0)
58
- marcel (~> 0.3.1)
59
- activesupport (6.0.0)
49
+ activemodel (6.0.3.6)
50
+ activesupport (= 6.0.3.6)
51
+ activerecord (6.0.3.6)
52
+ activemodel (= 6.0.3.6)
53
+ activesupport (= 6.0.3.6)
54
+ activestorage (6.0.3.6)
55
+ actionpack (= 6.0.3.6)
56
+ activejob (= 6.0.3.6)
57
+ activerecord (= 6.0.3.6)
58
+ marcel (~> 1.0.0)
59
+ activesupport (6.0.3.6)
60
60
  concurrent-ruby (~> 1.0, >= 1.0.2)
61
61
  i18n (>= 0.7, < 2)
62
62
  minitest (~> 5.1)
63
63
  tzinfo (~> 1.1)
64
- zeitwerk (~> 2.1, >= 2.1.8)
65
- appraisal (2.2.0)
64
+ zeitwerk (~> 2.2, >= 2.2.2)
65
+ appraisal (2.4.0)
66
66
  bundler
67
67
  rake
68
68
  thor (>= 0.14.0)
69
- builder (3.2.3)
70
- concurrent-ruby (1.1.5)
69
+ builder (3.2.4)
70
+ concurrent-ruby (1.1.8)
71
71
  coveralls (0.8.23)
72
72
  json (>= 1.8, < 3)
73
73
  simplecov (~> 0.16.1)
74
74
  term-ansicolor (~> 1.3)
75
75
  thor (>= 0.19.4, < 2.0)
76
76
  tins (~> 1.6)
77
- crass (1.0.4)
78
- docile (1.3.2)
79
- erubi (1.8.0)
77
+ crass (1.0.6)
78
+ docile (1.3.5)
79
+ erubi (1.10.0)
80
80
  globalid (0.4.2)
81
81
  activesupport (>= 4.2.0)
82
- i18n (1.6.0)
82
+ i18n (1.8.10)
83
83
  concurrent-ruby (~> 1.0)
84
- json (2.2.0)
85
- loofah (2.2.3)
84
+ json (2.5.1)
85
+ loofah (2.9.0)
86
86
  crass (~> 1.0.2)
87
87
  nokogiri (>= 1.5.9)
88
88
  mail (2.7.1)
89
89
  mini_mime (>= 0.1.1)
90
- marcel (0.3.3)
91
- mimemagic (~> 0.3.2)
92
- method_source (0.9.2)
93
- mimemagic (0.3.3)
94
- mini_mime (1.0.2)
95
- mini_portile2 (2.4.0)
96
- minitest (5.11.3)
97
- mysql2 (0.5.2)
98
- nio4r (2.4.0)
99
- nokogiri (1.10.4)
100
- mini_portile2 (~> 2.4.0)
101
- pg (1.1.4)
102
- rack (2.0.7)
90
+ marcel (1.0.1)
91
+ method_source (1.0.0)
92
+ mini_mime (1.1.0)
93
+ mini_portile2 (2.5.0)
94
+ minitest (5.14.4)
95
+ mysql2 (0.5.3)
96
+ nio4r (2.5.7)
97
+ nokogiri (1.11.2)
98
+ mini_portile2 (~> 2.5.0)
99
+ racc (~> 1.4)
100
+ pg (1.2.3)
101
+ racc (1.5.2)
102
+ rack (2.2.3)
103
103
  rack-test (1.1.0)
104
104
  rack (>= 1.0, < 3)
105
- rails (6.0.0)
106
- actioncable (= 6.0.0)
107
- actionmailbox (= 6.0.0)
108
- actionmailer (= 6.0.0)
109
- actionpack (= 6.0.0)
110
- actiontext (= 6.0.0)
111
- actionview (= 6.0.0)
112
- activejob (= 6.0.0)
113
- activemodel (= 6.0.0)
114
- activerecord (= 6.0.0)
115
- activestorage (= 6.0.0)
116
- activesupport (= 6.0.0)
105
+ rails (6.0.3.6)
106
+ actioncable (= 6.0.3.6)
107
+ actionmailbox (= 6.0.3.6)
108
+ actionmailer (= 6.0.3.6)
109
+ actionpack (= 6.0.3.6)
110
+ actiontext (= 6.0.3.6)
111
+ actionview (= 6.0.3.6)
112
+ activejob (= 6.0.3.6)
113
+ activemodel (= 6.0.3.6)
114
+ activerecord (= 6.0.3.6)
115
+ activestorage (= 6.0.3.6)
116
+ activesupport (= 6.0.3.6)
117
117
  bundler (>= 1.3.0)
118
- railties (= 6.0.0)
118
+ railties (= 6.0.3.6)
119
119
  sprockets-rails (>= 2.0.0)
120
120
  rails-dom-testing (2.0.3)
121
121
  activesupport (>= 4.2.0)
122
122
  nokogiri (>= 1.6)
123
- rails-html-sanitizer (1.2.0)
124
- loofah (~> 2.2, >= 2.2.2)
125
- railties (6.0.0)
126
- actionpack (= 6.0.0)
127
- activesupport (= 6.0.0)
123
+ rails-html-sanitizer (1.3.0)
124
+ loofah (~> 2.3)
125
+ railties (6.0.3.6)
126
+ actionpack (= 6.0.3.6)
127
+ activesupport (= 6.0.3.6)
128
128
  method_source
129
129
  rake (>= 0.8.7)
130
130
  thor (>= 0.20.3, < 2.0)
131
- rake (12.3.3)
131
+ rake (13.0.3)
132
132
  simplecov (0.16.1)
133
133
  docile (~> 1.1)
134
134
  json (>= 1.8, < 3)
135
135
  simplecov-html (~> 0.10.0)
136
136
  simplecov-html (0.10.2)
137
- sprockets (3.7.2)
137
+ sprockets (4.0.2)
138
138
  concurrent-ruby (~> 1.0)
139
139
  rack (> 1, < 3)
140
- sprockets-rails (3.2.1)
140
+ sprockets-rails (3.2.2)
141
141
  actionpack (>= 4.0)
142
142
  activesupport (>= 4.0)
143
143
  sprockets (>= 3.0.0)
144
- sqlite3 (1.4.1)
144
+ sqlite3 (1.4.2)
145
+ sync (0.5.0)
145
146
  term-ansicolor (1.7.1)
146
147
  tins (~> 1.0)
147
- thor (0.20.3)
148
+ thor (1.1.0)
148
149
  thread_safe (0.3.6)
149
- tins (1.21.1)
150
- tzinfo (1.2.5)
150
+ tins (1.28.0)
151
+ sync
152
+ tzinfo (1.2.9)
151
153
  thread_safe (~> 0.1)
152
- websocket-driver (0.7.1)
154
+ websocket-driver (0.7.3)
153
155
  websocket-extensions (>= 0.1.0)
154
- websocket-extensions (0.1.4)
155
- zeitwerk (2.1.9)
156
+ websocket-extensions (0.1.5)
157
+ zeitwerk (2.4.2)
156
158
 
157
159
  PLATFORMS
158
160
  ruby
159
161
 
160
162
  DEPENDENCIES
161
- appraisal (~> 2.2)
163
+ appraisal (~> 2.4)
162
164
  coveralls (~> 0.8)
163
165
  mass_insert!
164
166
  mysql2 (~> 0.5)
165
- pg (~> 1.1)
166
- rails (~> 6.0)
167
- rake (~> 12.0)
167
+ pg (~> 1.2)
168
+ rails (~> 6.0.0)
169
+ rake (~> 13.0)
168
170
  sqlite3 (~> 1.4)
169
171
 
170
172
  BUNDLED WITH
171
- 2.0.2
173
+ 2.1.4
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 6.1.0"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,176 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ mass_insert (1.0.0)
5
+ activerecord (>= 5.2)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actioncable (6.1.3.1)
11
+ actionpack (= 6.1.3.1)
12
+ activesupport (= 6.1.3.1)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (>= 0.6.1)
15
+ actionmailbox (6.1.3.1)
16
+ actionpack (= 6.1.3.1)
17
+ activejob (= 6.1.3.1)
18
+ activerecord (= 6.1.3.1)
19
+ activestorage (= 6.1.3.1)
20
+ activesupport (= 6.1.3.1)
21
+ mail (>= 2.7.1)
22
+ actionmailer (6.1.3.1)
23
+ actionpack (= 6.1.3.1)
24
+ actionview (= 6.1.3.1)
25
+ activejob (= 6.1.3.1)
26
+ activesupport (= 6.1.3.1)
27
+ mail (~> 2.5, >= 2.5.4)
28
+ rails-dom-testing (~> 2.0)
29
+ actionpack (6.1.3.1)
30
+ actionview (= 6.1.3.1)
31
+ activesupport (= 6.1.3.1)
32
+ rack (~> 2.0, >= 2.0.9)
33
+ rack-test (>= 0.6.3)
34
+ rails-dom-testing (~> 2.0)
35
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
36
+ actiontext (6.1.3.1)
37
+ actionpack (= 6.1.3.1)
38
+ activerecord (= 6.1.3.1)
39
+ activestorage (= 6.1.3.1)
40
+ activesupport (= 6.1.3.1)
41
+ nokogiri (>= 1.8.5)
42
+ actionview (6.1.3.1)
43
+ activesupport (= 6.1.3.1)
44
+ builder (~> 3.1)
45
+ erubi (~> 1.4)
46
+ rails-dom-testing (~> 2.0)
47
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
48
+ activejob (6.1.3.1)
49
+ activesupport (= 6.1.3.1)
50
+ globalid (>= 0.3.6)
51
+ activemodel (6.1.3.1)
52
+ activesupport (= 6.1.3.1)
53
+ activerecord (6.1.3.1)
54
+ activemodel (= 6.1.3.1)
55
+ activesupport (= 6.1.3.1)
56
+ activestorage (6.1.3.1)
57
+ actionpack (= 6.1.3.1)
58
+ activejob (= 6.1.3.1)
59
+ activerecord (= 6.1.3.1)
60
+ activesupport (= 6.1.3.1)
61
+ marcel (~> 1.0.0)
62
+ mini_mime (~> 1.0.2)
63
+ activesupport (6.1.3.1)
64
+ concurrent-ruby (~> 1.0, >= 1.0.2)
65
+ i18n (>= 1.6, < 2)
66
+ minitest (>= 5.1)
67
+ tzinfo (~> 2.0)
68
+ zeitwerk (~> 2.3)
69
+ appraisal (2.4.0)
70
+ bundler
71
+ rake
72
+ thor (>= 0.14.0)
73
+ builder (3.2.4)
74
+ concurrent-ruby (1.1.8)
75
+ coveralls (0.8.23)
76
+ json (>= 1.8, < 3)
77
+ simplecov (~> 0.16.1)
78
+ term-ansicolor (~> 1.3)
79
+ thor (>= 0.19.4, < 2.0)
80
+ tins (~> 1.6)
81
+ crass (1.0.6)
82
+ docile (1.3.5)
83
+ erubi (1.10.0)
84
+ globalid (0.4.2)
85
+ activesupport (>= 4.2.0)
86
+ i18n (1.8.10)
87
+ concurrent-ruby (~> 1.0)
88
+ json (2.5.1)
89
+ loofah (2.9.0)
90
+ crass (~> 1.0.2)
91
+ nokogiri (>= 1.5.9)
92
+ mail (2.7.1)
93
+ mini_mime (>= 0.1.1)
94
+ marcel (1.0.1)
95
+ method_source (1.0.0)
96
+ mini_mime (1.0.3)
97
+ mini_portile2 (2.5.0)
98
+ minitest (5.14.4)
99
+ mysql2 (0.5.3)
100
+ nio4r (2.5.7)
101
+ nokogiri (1.11.2)
102
+ mini_portile2 (~> 2.5.0)
103
+ racc (~> 1.4)
104
+ pg (1.2.3)
105
+ racc (1.5.2)
106
+ rack (2.2.3)
107
+ rack-test (1.1.0)
108
+ rack (>= 1.0, < 3)
109
+ rails (6.1.3.1)
110
+ actioncable (= 6.1.3.1)
111
+ actionmailbox (= 6.1.3.1)
112
+ actionmailer (= 6.1.3.1)
113
+ actionpack (= 6.1.3.1)
114
+ actiontext (= 6.1.3.1)
115
+ actionview (= 6.1.3.1)
116
+ activejob (= 6.1.3.1)
117
+ activemodel (= 6.1.3.1)
118
+ activerecord (= 6.1.3.1)
119
+ activestorage (= 6.1.3.1)
120
+ activesupport (= 6.1.3.1)
121
+ bundler (>= 1.15.0)
122
+ railties (= 6.1.3.1)
123
+ sprockets-rails (>= 2.0.0)
124
+ rails-dom-testing (2.0.3)
125
+ activesupport (>= 4.2.0)
126
+ nokogiri (>= 1.6)
127
+ rails-html-sanitizer (1.3.0)
128
+ loofah (~> 2.3)
129
+ railties (6.1.3.1)
130
+ actionpack (= 6.1.3.1)
131
+ activesupport (= 6.1.3.1)
132
+ method_source
133
+ rake (>= 0.8.7)
134
+ thor (~> 1.0)
135
+ rake (13.0.3)
136
+ simplecov (0.16.1)
137
+ docile (~> 1.1)
138
+ json (>= 1.8, < 3)
139
+ simplecov-html (~> 0.10.0)
140
+ simplecov-html (0.10.2)
141
+ sprockets (4.0.2)
142
+ concurrent-ruby (~> 1.0)
143
+ rack (> 1, < 3)
144
+ sprockets-rails (3.2.2)
145
+ actionpack (>= 4.0)
146
+ activesupport (>= 4.0)
147
+ sprockets (>= 3.0.0)
148
+ sqlite3 (1.4.2)
149
+ sync (0.5.0)
150
+ term-ansicolor (1.7.1)
151
+ tins (~> 1.0)
152
+ thor (1.1.0)
153
+ tins (1.28.0)
154
+ sync
155
+ tzinfo (2.0.4)
156
+ concurrent-ruby (~> 1.0)
157
+ websocket-driver (0.7.3)
158
+ websocket-extensions (>= 0.1.0)
159
+ websocket-extensions (0.1.5)
160
+ zeitwerk (2.4.2)
161
+
162
+ PLATFORMS
163
+ ruby
164
+
165
+ DEPENDENCIES
166
+ appraisal (~> 2.4)
167
+ coveralls (~> 0.8)
168
+ mass_insert!
169
+ mysql2 (~> 0.5)
170
+ pg (~> 1.2)
171
+ rails (~> 6.1.0)
172
+ rake (~> 13.0)
173
+ sqlite3 (~> 1.4)
174
+
175
+ BUNDLED WITH
176
+ 2.1.4
@@ -17,7 +17,7 @@ module MassInsert
17
17
 
18
18
  def columns
19
19
  @columns ||= begin
20
- columns = column_names
20
+ columns = column_names.dup
21
21
  columns.delete(primary_key) unless options[:primary_key]
22
22
  columns.map(&:to_sym)
23
23
  end
@@ -1,3 +1,3 @@
1
1
  module MassInsert
2
- VERSION = '0.2.7'
2
+ VERSION = '1.0.0'
3
3
  end
data/mass_insert.gemspec CHANGED
@@ -25,12 +25,12 @@ Gem::Specification.new do |spec|
25
25
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
26
  spec.require_paths = ['lib']
27
27
 
28
- spec.add_development_dependency 'pg', '~> 1.1'
29
- spec.add_development_dependency 'rake', '~> 12.0'
28
+ spec.add_development_dependency 'pg', '~> 1.2'
29
+ spec.add_development_dependency 'rake', '~> 13.0'
30
30
  spec.add_development_dependency 'mysql2', '~> 0.5'
31
31
  spec.add_development_dependency 'sqlite3', '~> 1.4'
32
- spec.add_development_dependency 'appraisal', '~> 2.2'
32
+ spec.add_development_dependency 'appraisal', '~> 2.4'
33
33
  spec.add_development_dependency 'coveralls', '~> 0.8'
34
34
 
35
- spec.add_dependency 'activerecord', '>= 4.2'
35
+ spec.add_dependency 'activerecord', '>= 5.2'
36
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mass_insert
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alejandro Gutiérrez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-20 00:00:00.000000000 Z
11
+ date: 2021-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.1'
19
+ version: '1.2'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.1'
26
+ version: '1.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '12.0'
33
+ version: '13.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '12.0'
40
+ version: '13.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: mysql2
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '2.2'
75
+ version: '2.4'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '2.2'
82
+ version: '2.4'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: coveralls
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: '4.2'
103
+ version: '5.2'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: '4.2'
110
+ version: '5.2'
111
111
  description: This gem aims to provide an easy and faster way to do single database
112
112
  insertions in Rails.
113
113
  email:
@@ -126,10 +126,13 @@ files:
126
126
  - Rakefile
127
127
  - bin/console
128
128
  - bin/setup
129
+ - gemfiles/.bundle/config
129
130
  - gemfiles/rails_5.2.gemfile
130
131
  - gemfiles/rails_5.2.gemfile.lock
131
132
  - gemfiles/rails_6.0.gemfile
132
133
  - gemfiles/rails_6.0.gemfile.lock
134
+ - gemfiles/rails_6.1.gemfile
135
+ - gemfiles/rails_6.1.gemfile.lock
133
136
  - lib/mass_insert.rb
134
137
  - lib/mass_insert/adapters/abstract_adapter.rb
135
138
  - lib/mass_insert/adapters/mysql2_adapter.rb
@@ -164,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
167
  - !ruby/object:Gem::Version
165
168
  version: '0'
166
169
  requirements: []
167
- rubygems_version: 3.0.3
170
+ rubygems_version: 3.1.4
168
171
  signing_key:
169
172
  specification_version: 4
170
173
  summary: Mass database insertion in Rails