mass_insert 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +10 -20
- data/.travis.yml +17 -10
- data/Appraisals +4 -8
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +0 -6
- data/LICENSE.txt +17 -18
- data/README.md +39 -27
- data/Rakefile +3 -3
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/gemfiles/rails_5.2.gemfile +0 -3
- data/gemfiles/rails_5.2.gemfile.lock +82 -89
- data/gemfiles/{rails_4.gemfile → rails_6.0.gemfile} +1 -4
- data/gemfiles/rails_6.0.gemfile.lock +171 -0
- data/lib/mass_insert/version.rb +1 -1
- data/mass_insert.gemspec +19 -12
- metadata +61 -57
- data/.rspec +0 -1
- data/gemfiles/rails_4.gemfile.lock +0 -147
- data/gemfiles/rails_5.gemfile +0 -10
- data/gemfiles/rails_5.gemfile.lock +0 -162
- data/test/adapters/mysql2/example_test.rb +0 -29
- data/test/adapters/postgresql/example_test.rb +0 -3
- data/test/adapters/sqlite3/example_test.rb +0 -3
- data/test/database.yml.example +0 -20
- data/test/models/kind.rb +0 -2
- data/test/models/post.rb +0 -2
- data/test/models/user.rb +0 -2
- data/test/schema.rb +0 -20
- data/test/support/adapters/mysql2.rb +0 -1
- data/test/support/adapters/postgresql.rb +0 -1
- data/test/support/adapters/sqlite3.rb +0 -1
- data/test/support/shared_examples.rb +0 -90
- data/test/test_helper.rb +0 -36
@@ -0,0 +1,171 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
mass_insert (0.2.7)
|
5
|
+
activerecord (>= 4.2)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
actioncable (6.0.0)
|
11
|
+
actionpack (= 6.0.0)
|
12
|
+
nio4r (~> 2.0)
|
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)
|
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)
|
25
|
+
mail (~> 2.5, >= 2.5.4)
|
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)
|
31
|
+
rack-test (>= 0.6.3)
|
32
|
+
rails-dom-testing (~> 2.0)
|
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)
|
39
|
+
nokogiri (>= 1.8.5)
|
40
|
+
actionview (6.0.0)
|
41
|
+
activesupport (= 6.0.0)
|
42
|
+
builder (~> 3.1)
|
43
|
+
erubi (~> 1.4)
|
44
|
+
rails-dom-testing (~> 2.0)
|
45
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
46
|
+
activejob (6.0.0)
|
47
|
+
activesupport (= 6.0.0)
|
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)
|
60
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
61
|
+
i18n (>= 0.7, < 2)
|
62
|
+
minitest (~> 5.1)
|
63
|
+
tzinfo (~> 1.1)
|
64
|
+
zeitwerk (~> 2.1, >= 2.1.8)
|
65
|
+
appraisal (2.2.0)
|
66
|
+
bundler
|
67
|
+
rake
|
68
|
+
thor (>= 0.14.0)
|
69
|
+
builder (3.2.3)
|
70
|
+
concurrent-ruby (1.1.5)
|
71
|
+
coveralls (0.8.23)
|
72
|
+
json (>= 1.8, < 3)
|
73
|
+
simplecov (~> 0.16.1)
|
74
|
+
term-ansicolor (~> 1.3)
|
75
|
+
thor (>= 0.19.4, < 2.0)
|
76
|
+
tins (~> 1.6)
|
77
|
+
crass (1.0.4)
|
78
|
+
docile (1.3.2)
|
79
|
+
erubi (1.8.0)
|
80
|
+
globalid (0.4.2)
|
81
|
+
activesupport (>= 4.2.0)
|
82
|
+
i18n (1.6.0)
|
83
|
+
concurrent-ruby (~> 1.0)
|
84
|
+
json (2.2.0)
|
85
|
+
loofah (2.2.3)
|
86
|
+
crass (~> 1.0.2)
|
87
|
+
nokogiri (>= 1.5.9)
|
88
|
+
mail (2.7.1)
|
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)
|
103
|
+
rack-test (1.1.0)
|
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)
|
117
|
+
bundler (>= 1.3.0)
|
118
|
+
railties (= 6.0.0)
|
119
|
+
sprockets-rails (>= 2.0.0)
|
120
|
+
rails-dom-testing (2.0.3)
|
121
|
+
activesupport (>= 4.2.0)
|
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)
|
128
|
+
method_source
|
129
|
+
rake (>= 0.8.7)
|
130
|
+
thor (>= 0.20.3, < 2.0)
|
131
|
+
rake (12.3.3)
|
132
|
+
simplecov (0.16.1)
|
133
|
+
docile (~> 1.1)
|
134
|
+
json (>= 1.8, < 3)
|
135
|
+
simplecov-html (~> 0.10.0)
|
136
|
+
simplecov-html (0.10.2)
|
137
|
+
sprockets (3.7.2)
|
138
|
+
concurrent-ruby (~> 1.0)
|
139
|
+
rack (> 1, < 3)
|
140
|
+
sprockets-rails (3.2.1)
|
141
|
+
actionpack (>= 4.0)
|
142
|
+
activesupport (>= 4.0)
|
143
|
+
sprockets (>= 3.0.0)
|
144
|
+
sqlite3 (1.4.1)
|
145
|
+
term-ansicolor (1.7.1)
|
146
|
+
tins (~> 1.0)
|
147
|
+
thor (0.20.3)
|
148
|
+
thread_safe (0.3.6)
|
149
|
+
tins (1.21.1)
|
150
|
+
tzinfo (1.2.5)
|
151
|
+
thread_safe (~> 0.1)
|
152
|
+
websocket-driver (0.7.1)
|
153
|
+
websocket-extensions (>= 0.1.0)
|
154
|
+
websocket-extensions (0.1.4)
|
155
|
+
zeitwerk (2.1.9)
|
156
|
+
|
157
|
+
PLATFORMS
|
158
|
+
ruby
|
159
|
+
|
160
|
+
DEPENDENCIES
|
161
|
+
appraisal (~> 2.2)
|
162
|
+
coveralls (~> 0.8)
|
163
|
+
mass_insert!
|
164
|
+
mysql2 (~> 0.5)
|
165
|
+
pg (~> 1.1)
|
166
|
+
rails (~> 6.0)
|
167
|
+
rake (~> 12.0)
|
168
|
+
sqlite3 (~> 1.4)
|
169
|
+
|
170
|
+
BUNDLED WITH
|
171
|
+
2.0.2
|
data/lib/mass_insert/version.rb
CHANGED
data/mass_insert.gemspec
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
3
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
3
|
require 'mass_insert/version'
|
5
4
|
|
@@ -13,17 +12,25 @@ Gem::Specification.new do |spec|
|
|
13
12
|
spec.homepage = 'https://github.com/alejandrodevs/mass_insert'
|
14
13
|
spec.license = 'MIT'
|
15
14
|
|
16
|
-
spec.
|
17
|
-
spec.
|
18
|
-
spec.
|
19
|
-
spec.require_paths = ['lib']
|
15
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
16
|
+
spec.metadata['source_code_uri'] = spec.homepage
|
17
|
+
spec.metadata['changelog_uri'] = "#{spec.homepage}/blob/master/LICENSE.txt"
|
20
18
|
|
21
|
-
|
19
|
+
# Specify which files should be added to the gem when it is released.
|
20
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
21
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
22
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
23
|
+
end
|
24
|
+
spec.bindir = 'exe'
|
25
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
26
|
+
spec.require_paths = ['lib']
|
22
27
|
|
23
|
-
spec.
|
28
|
+
spec.add_development_dependency 'pg', '~> 1.1'
|
29
|
+
spec.add_development_dependency 'rake', '~> 12.0'
|
30
|
+
spec.add_development_dependency 'mysql2', '~> 0.5'
|
31
|
+
spec.add_development_dependency 'sqlite3', '~> 1.4'
|
32
|
+
spec.add_development_dependency 'appraisal', '~> 2.2'
|
33
|
+
spec.add_development_dependency 'coveralls', '~> 0.8'
|
24
34
|
|
25
|
-
spec.
|
26
|
-
spec.add_development_dependency 'rake', '~> 11.1'
|
27
|
-
spec.add_development_dependency 'mysql2', '~> 0.4'
|
28
|
-
spec.add_development_dependency 'sqlite3', '~> 1.3'
|
35
|
+
spec.add_dependency 'activerecord', '>= 4.2'
|
29
36
|
end
|
metadata
CHANGED
@@ -1,85 +1,113 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mass_insert
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alejandro Gutiérrez
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: pg
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
20
|
-
type: :
|
19
|
+
version: '1.1'
|
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: '
|
26
|
+
version: '1.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0
|
33
|
+
version: '12.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: '0
|
40
|
+
version: '12.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: mysql2
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0.5'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0.5'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: sqlite3
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '1.4'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '1.4'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: appraisal
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '2.2'
|
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: '
|
82
|
+
version: '2.2'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: coveralls
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.8'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.8'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: activerecord
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '4.2'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '4.2'
|
83
111
|
description: This gem aims to provide an easy and faster way to do single database
|
84
112
|
insertions in Rails.
|
85
113
|
email:
|
@@ -89,19 +117,19 @@ extensions: []
|
|
89
117
|
extra_rdoc_files: []
|
90
118
|
files:
|
91
119
|
- ".gitignore"
|
92
|
-
- ".rspec"
|
93
120
|
- ".travis.yml"
|
94
121
|
- Appraisals
|
122
|
+
- CODE_OF_CONDUCT.md
|
95
123
|
- Gemfile
|
96
124
|
- LICENSE.txt
|
97
125
|
- README.md
|
98
126
|
- Rakefile
|
99
|
-
-
|
100
|
-
-
|
127
|
+
- bin/console
|
128
|
+
- bin/setup
|
101
129
|
- gemfiles/rails_5.2.gemfile
|
102
130
|
- gemfiles/rails_5.2.gemfile.lock
|
103
|
-
- gemfiles/
|
104
|
-
- gemfiles/
|
131
|
+
- gemfiles/rails_6.0.gemfile
|
132
|
+
- gemfiles/rails_6.0.gemfile.lock
|
105
133
|
- lib/mass_insert.rb
|
106
134
|
- lib/mass_insert/adapters/abstract_adapter.rb
|
107
135
|
- lib/mass_insert/adapters/mysql2_adapter.rb
|
@@ -114,23 +142,13 @@ files:
|
|
114
142
|
- lib/mass_insert/utilities.rb
|
115
143
|
- lib/mass_insert/version.rb
|
116
144
|
- mass_insert.gemspec
|
117
|
-
- test/adapters/mysql2/example_test.rb
|
118
|
-
- test/adapters/postgresql/example_test.rb
|
119
|
-
- test/adapters/sqlite3/example_test.rb
|
120
|
-
- test/database.yml.example
|
121
|
-
- test/models/kind.rb
|
122
|
-
- test/models/post.rb
|
123
|
-
- test/models/user.rb
|
124
|
-
- test/schema.rb
|
125
|
-
- test/support/adapters/mysql2.rb
|
126
|
-
- test/support/adapters/postgresql.rb
|
127
|
-
- test/support/adapters/sqlite3.rb
|
128
|
-
- test/support/shared_examples.rb
|
129
|
-
- test/test_helper.rb
|
130
145
|
homepage: https://github.com/alejandrodevs/mass_insert
|
131
146
|
licenses:
|
132
147
|
- MIT
|
133
|
-
metadata:
|
148
|
+
metadata:
|
149
|
+
homepage_uri: https://github.com/alejandrodevs/mass_insert
|
150
|
+
source_code_uri: https://github.com/alejandrodevs/mass_insert
|
151
|
+
changelog_uri: https://github.com/alejandrodevs/mass_insert/blob/master/LICENSE.txt
|
134
152
|
post_install_message:
|
135
153
|
rdoc_options: []
|
136
154
|
require_paths:
|
@@ -139,29 +157,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
139
157
|
requirements:
|
140
158
|
- - ">="
|
141
159
|
- !ruby/object:Gem::Version
|
142
|
-
version:
|
160
|
+
version: '0'
|
143
161
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
162
|
requirements:
|
145
163
|
- - ">="
|
146
164
|
- !ruby/object:Gem::Version
|
147
165
|
version: '0'
|
148
166
|
requirements: []
|
149
|
-
|
150
|
-
rubygems_version: 2.7.3
|
167
|
+
rubygems_version: 3.0.3
|
151
168
|
signing_key:
|
152
169
|
specification_version: 4
|
153
170
|
summary: Mass database insertion in Rails
|
154
|
-
test_files:
|
155
|
-
- test/adapters/mysql2/example_test.rb
|
156
|
-
- test/adapters/postgresql/example_test.rb
|
157
|
-
- test/adapters/sqlite3/example_test.rb
|
158
|
-
- test/database.yml.example
|
159
|
-
- test/models/kind.rb
|
160
|
-
- test/models/post.rb
|
161
|
-
- test/models/user.rb
|
162
|
-
- test/schema.rb
|
163
|
-
- test/support/adapters/mysql2.rb
|
164
|
-
- test/support/adapters/postgresql.rb
|
165
|
-
- test/support/adapters/sqlite3.rb
|
166
|
-
- test/support/shared_examples.rb
|
167
|
-
- test/test_helper.rb
|
171
|
+
test_files: []
|