csv_fast_importer 1.0.0 → 1.1.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.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +8 -2
- data/Gemfile.lock +23 -22
- data/README.md +10 -1
- data/csv_fast_importer.gemspec +3 -3
- data/lib/csv_fast_importer/version.rb +1 -1
- data/rakelib/changelog.rb +28 -0
- data/rakelib/release.rake +33 -0
- data/rakelib/release.rb +60 -0
- data/rakelib/repository.rb +10 -0
- data/sample-app/Gemfile +1 -1
- data/sample-app/Gemfile.lock +55 -55
- metadata +16 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 661106069e79d58511f235c56abbcc02b8f0ab2c
|
4
|
+
data.tar.gz: e9629ddc3232b012efa9fcdc0b08156d82bdc025
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c26e5b2cf9e6bc3ea76d4c644db3d2b6a1a6a578542c625d6e54c467d6b1825de069b90fb515c1e5e70b3b8a1db73c84838126374ee26a655e20d2b361febf8
|
7
|
+
data.tar.gz: 3daa1f10583abbb7344d8a238d1862b175a81ff87052c0483e4efdc595e141f9eb271f3636fc9547be7774df730b91465ebb448452ab46424c196591f8ccef60
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.3.0
|
data/.travis.yml
CHANGED
@@ -1,15 +1,21 @@
|
|
1
1
|
language: ruby
|
2
|
+
before_install:
|
3
|
+
- gem install bundler
|
2
4
|
script:
|
3
5
|
- bundle exec rake test:db:create
|
4
6
|
- bundle exec rspec spec
|
5
7
|
- if [ "$RUN_BENCHMARK" = "true" ]; then DATASET_SIZE=100 bundle exec rake benchmark; fi
|
6
8
|
rvm:
|
7
|
-
2.
|
8
|
-
|
9
|
+
2.3.0
|
10
|
+
jobs:
|
9
11
|
include:
|
10
12
|
- env:
|
11
13
|
- DB_TYPE=mysql
|
12
14
|
- DB_USERNAME=travis
|
15
|
+
services:
|
16
|
+
- mysql
|
13
17
|
- env:
|
14
18
|
- DB_TYPE=postgres
|
15
19
|
- RUN_BENCHMARK=true
|
20
|
+
services:
|
21
|
+
- postgresql
|
data/Gemfile.lock
CHANGED
@@ -1,35 +1,34 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
csv_fast_importer (1.
|
5
|
-
activerecord (
|
4
|
+
csv_fast_importer (1.1.0)
|
5
|
+
activerecord (~> 4.2)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
10
|
active_importer (0.2.6)
|
11
11
|
roo
|
12
|
-
activemodel (4.2.
|
13
|
-
activesupport (= 4.2.
|
12
|
+
activemodel (4.2.10)
|
13
|
+
activesupport (= 4.2.10)
|
14
14
|
builder (~> 3.1)
|
15
|
-
activerecord (4.2.
|
16
|
-
activemodel (= 4.2.
|
17
|
-
activesupport (= 4.2.
|
15
|
+
activerecord (4.2.10)
|
16
|
+
activemodel (= 4.2.10)
|
17
|
+
activesupport (= 4.2.10)
|
18
18
|
arel (~> 6.0)
|
19
19
|
activerecord-import (0.10.0)
|
20
20
|
activerecord (>= 3.0)
|
21
|
-
activesupport (4.2.
|
21
|
+
activesupport (4.2.10)
|
22
22
|
i18n (~> 0.7)
|
23
|
-
json (~> 1.7, >= 1.7.7)
|
24
23
|
minitest (~> 5.1)
|
25
24
|
thread_safe (~> 0.3, >= 0.3.4)
|
26
25
|
tzinfo (~> 1.1)
|
27
|
-
arel (6.0.
|
26
|
+
arel (6.0.4)
|
28
27
|
axiom-types (0.1.1)
|
29
28
|
descendants_tracker (~> 0.0.4)
|
30
29
|
ice_nine (~> 0.11.0)
|
31
30
|
thread_safe (~> 0.3, >= 0.3.1)
|
32
|
-
builder (3.2.
|
31
|
+
builder (3.2.3)
|
33
32
|
bulk_insert (1.5.0)
|
34
33
|
activerecord (>= 4.1.0)
|
35
34
|
codacy-coverage (0.2.3)
|
@@ -37,6 +36,7 @@ GEM
|
|
37
36
|
simplecov (~> 0.10.0)
|
38
37
|
coercible (1.0.0)
|
39
38
|
descendants_tracker (~> 0.0.1)
|
39
|
+
concurrent-ruby (1.0.5)
|
40
40
|
csv-importer (0.3.2)
|
41
41
|
virtus
|
42
42
|
descendants_tracker (0.0.4)
|
@@ -52,16 +52,17 @@ GEM
|
|
52
52
|
highline (1.6.21)
|
53
53
|
http-cookie (1.0.2)
|
54
54
|
domain_name (~> 0.5)
|
55
|
-
i18n (0.
|
55
|
+
i18n (0.9.3)
|
56
|
+
concurrent-ruby (~> 1.0)
|
56
57
|
ice_nine (0.11.2)
|
57
|
-
json (1.8.
|
58
|
+
json (1.8.6)
|
58
59
|
mime-types (2.99.1)
|
59
|
-
mini_portile2 (2.
|
60
|
-
minitest (5.
|
61
|
-
mysql2 (0.
|
60
|
+
mini_portile2 (2.3.0)
|
61
|
+
minitest (5.11.2)
|
62
|
+
mysql2 (0.4.10)
|
62
63
|
netrc (0.11.0)
|
63
|
-
nokogiri (1.8.
|
64
|
-
mini_portile2 (~> 2.
|
64
|
+
nokogiri (1.8.2)
|
65
|
+
mini_portile2 (~> 2.3.0)
|
65
66
|
pg (0.18.4)
|
66
67
|
progressbar (0.21.0)
|
67
68
|
rake (10.4.2)
|
@@ -92,8 +93,8 @@ GEM
|
|
92
93
|
simplecov-html (~> 0.10.0)
|
93
94
|
simplecov-html (0.10.0)
|
94
95
|
smarter_csv (1.1.4)
|
95
|
-
thread_safe (0.3.
|
96
|
-
tzinfo (1.2.
|
96
|
+
thread_safe (0.3.6)
|
97
|
+
tzinfo (1.2.4)
|
97
98
|
thread_safe (~> 0.1)
|
98
99
|
unf (0.1.4)
|
99
100
|
unf_ext
|
@@ -117,7 +118,7 @@ DEPENDENCIES
|
|
117
118
|
csv-importer
|
118
119
|
csv_fast_importer!
|
119
120
|
ferry
|
120
|
-
mysql2 (>= 0.
|
121
|
+
mysql2 (>= 0.4.0)
|
121
122
|
pg (>= 0.18.4)
|
122
123
|
rake (~> 10.0)
|
123
124
|
rspec
|
@@ -125,4 +126,4 @@ DEPENDENCIES
|
|
125
126
|
upsert
|
126
127
|
|
127
128
|
BUNDLED WITH
|
128
|
-
1.
|
129
|
+
1.17.3
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
[](https://travis-ci.org/sogilis/csv_fast_importer) [](https://www.codacy.com/app/Jibidus/csv_fast_importer?utm_source=github.com&utm_medium=referral&utm_content=sogilis/csv_fast_importer&utm_campaign=Badge_Grade)
|
1
|
+
[](https://badge.fury.io/rb/csv_fast_importer) [](https://travis-ci.org/sogilis/csv_fast_importer) [](https://www.codacy.com/app/Jibidus/csv_fast_importer?utm_source=github.com&utm_medium=referral&utm_content=sogilis/csv_fast_importer&utm_campaign=Badge_Grade)
|
2
2
|
|
3
3
|
# CSV Fast Importer
|
4
4
|
|
@@ -184,3 +184,12 @@ In few words:
|
|
184
184
|
- [ ] Refactor tests (with should-> must / should -> expect / subject...)
|
185
185
|
- [ ] Reduce technical debt on db connection (test & benchmark)
|
186
186
|
- [ ] SQLite support
|
187
|
+
|
188
|
+
## How to release new version?
|
189
|
+
|
190
|
+
Make sure your are in `master` branch. Then, run:
|
191
|
+
```bash
|
192
|
+
bundle exec rake release:make[major|minor|patch|x.y.z]
|
193
|
+
```
|
194
|
+
|
195
|
+
Example: `bundle exec rake release:make[minor]`
|
data/csv_fast_importer.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["sogilis@sogilis.com"]
|
11
11
|
|
12
12
|
spec.summary = "Fast CSV Importer"
|
13
|
-
spec.description = "
|
13
|
+
spec.description = "A gem to import CSV files' content into a PostgreSQL or MySQL database. It is respectively based on PostgreSQL COPY and MySQL LOAD DATA INFILE which are designed to be as fast as possible."
|
14
14
|
spec.homepage = "https://github.com/sogilis/csv_fast_importer"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.add_development_dependency "bundler", "~> 1.10"
|
26
26
|
spec.add_development_dependency "rake", "~> 10.0"
|
27
27
|
spec.add_development_dependency "pg", ">= 0.18.4"
|
28
|
-
spec.add_development_dependency "mysql2", ">= 0.
|
28
|
+
spec.add_development_dependency "mysql2", ">= 0.4.0"
|
29
29
|
spec.add_development_dependency "codacy-coverage"
|
30
30
|
spec.add_development_dependency "rspec"
|
31
31
|
|
@@ -38,5 +38,5 @@ Gem::Specification.new do |spec|
|
|
38
38
|
spec.add_development_dependency "active_importer"
|
39
39
|
spec.add_development_dependency "ferry"
|
40
40
|
|
41
|
-
spec.add_runtime_dependency "activerecord", ["
|
41
|
+
spec.add_runtime_dependency "activerecord", ["~> 4.2"]
|
42
42
|
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
class Changelog
|
2
|
+
attr_reader :changelog
|
3
|
+
|
4
|
+
def initialize(changelog)
|
5
|
+
@changelog = changelog
|
6
|
+
end
|
7
|
+
|
8
|
+
def self.parse(git_log)
|
9
|
+
changelog = {}
|
10
|
+
git_log.sort.uniq.each do |commit_message|
|
11
|
+
type, message = commit_message.split('/', 2).map(&:strip)
|
12
|
+
next if type == 'Chore'
|
13
|
+
if message.nil?
|
14
|
+
message = type
|
15
|
+
type = 'Other'
|
16
|
+
end
|
17
|
+
changelog[type] = [] unless changelog.has_key?(type)
|
18
|
+
changelog[type] << message
|
19
|
+
end
|
20
|
+
Changelog.new changelog
|
21
|
+
end
|
22
|
+
|
23
|
+
def to_s
|
24
|
+
@changelog.map do |type, messages|
|
25
|
+
"# #{type}\n" + messages.map { |message| "- #{message}\n" }.join + "\n"
|
26
|
+
end.join
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require './rakelib/repository'
|
2
|
+
require './rakelib/release'
|
3
|
+
|
4
|
+
namespace :release do
|
5
|
+
|
6
|
+
desc "Build new release.\n\t- bump_type (mandatory): [major|minor|patch|x.y.z]\n\t- dry_run (optional): skip commit, tag and publishing"
|
7
|
+
task :make, [:bump_type, :dry_run] do |_, args|
|
8
|
+
release = Release.new args[:bump_type]
|
9
|
+
#raise "You can only release new version from master branch" unless Repository.current_branch == 'master'
|
10
|
+
|
11
|
+
puts "Bump version from #{release.last_version} to #{release.version}"
|
12
|
+
release.apply!
|
13
|
+
|
14
|
+
puts
|
15
|
+
puts "Changelog from #{release.last_version} to #{release.version}:"
|
16
|
+
puts release.changelog
|
17
|
+
puts "(Chores ignored)"
|
18
|
+
|
19
|
+
next if args[:dry_run]
|
20
|
+
|
21
|
+
release.git_commit
|
22
|
+
|
23
|
+
puts
|
24
|
+
puts "Release built."
|
25
|
+
puts
|
26
|
+
puts "Run following commands to publish version #{release.version}:"
|
27
|
+
puts "$ git push && git push --tags"
|
28
|
+
puts "$ Rake::Task['release'].invoke"
|
29
|
+
puts
|
30
|
+
puts "After that, do not forget to report changelog in Github Release."
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
data/rakelib/release.rb
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
require './rakelib/repository'
|
2
|
+
require './rakelib/changelog'
|
3
|
+
|
4
|
+
class Release
|
5
|
+
|
6
|
+
GEM_NAME = 'csv_fast_importer'
|
7
|
+
VERSION_FILE = 'lib/csv_fast_importer/version.rb'
|
8
|
+
GEMFILE_LOCK = 'Gemfile.lock'
|
9
|
+
|
10
|
+
def initialize(type)
|
11
|
+
@type = type
|
12
|
+
end
|
13
|
+
|
14
|
+
def last_version
|
15
|
+
CSVFastImporter::VERSION
|
16
|
+
end
|
17
|
+
|
18
|
+
def version
|
19
|
+
@version ||= bump(last_version, @type)
|
20
|
+
end
|
21
|
+
|
22
|
+
def apply!
|
23
|
+
sub_file_content VERSION_FILE, last_version, version
|
24
|
+
sub_file_content GEMFILE_LOCK, "#{GEM_NAME} (#{last_version})", "#{GEM_NAME} (#{version})"
|
25
|
+
end
|
26
|
+
|
27
|
+
def changelog
|
28
|
+
@changelog ||= Changelog.parse(Repository.log_from("v#{last_version}"))
|
29
|
+
end
|
30
|
+
|
31
|
+
def git_commit
|
32
|
+
`git add #{VERSION_FILE} #{GEMFILE_LOCK}`
|
33
|
+
`git commit -m 'Chore / Change version to #{version}'`
|
34
|
+
end
|
35
|
+
|
36
|
+
private
|
37
|
+
|
38
|
+
def bump(version, bump_type)
|
39
|
+
major, minor, patch = version.split(".").map(&:to_i)
|
40
|
+
if bump_type == 'major'
|
41
|
+
major += 1
|
42
|
+
minor = 0
|
43
|
+
patch = 0
|
44
|
+
elsif bump_type == 'minor'
|
45
|
+
minor += 1
|
46
|
+
patch = 0
|
47
|
+
else
|
48
|
+
patch += 1
|
49
|
+
end
|
50
|
+
[major, minor, patch].join(".")
|
51
|
+
end
|
52
|
+
|
53
|
+
def sub_file_content(file_path, from, to)
|
54
|
+
current_content = File.read(file_path)
|
55
|
+
modified_content = current_content.sub(from, to)
|
56
|
+
raise "Cannot find regexp #{from} in file #{file_path}" if modified_content == current_content
|
57
|
+
File.open(file_path, "w") { |file| file << modified_content }
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
data/sample-app/Gemfile
CHANGED
data/sample-app/Gemfile.lock
CHANGED
@@ -1,38 +1,37 @@
|
|
1
1
|
GEM
|
2
2
|
remote: https://rubygems.org/
|
3
3
|
specs:
|
4
|
-
actionmailer (4.2.
|
5
|
-
actionpack (= 4.2.
|
6
|
-
actionview (= 4.2.
|
7
|
-
activejob (= 4.2.
|
4
|
+
actionmailer (4.2.11)
|
5
|
+
actionpack (= 4.2.11)
|
6
|
+
actionview (= 4.2.11)
|
7
|
+
activejob (= 4.2.11)
|
8
8
|
mail (~> 2.5, >= 2.5.4)
|
9
9
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
10
|
-
actionpack (4.2.
|
11
|
-
actionview (= 4.2.
|
12
|
-
activesupport (= 4.2.
|
10
|
+
actionpack (4.2.11)
|
11
|
+
actionview (= 4.2.11)
|
12
|
+
activesupport (= 4.2.11)
|
13
13
|
rack (~> 1.6)
|
14
14
|
rack-test (~> 0.6.2)
|
15
15
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
16
16
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
17
|
-
actionview (4.2.
|
18
|
-
activesupport (= 4.2.
|
17
|
+
actionview (4.2.11)
|
18
|
+
activesupport (= 4.2.11)
|
19
19
|
builder (~> 3.1)
|
20
20
|
erubis (~> 2.7.0)
|
21
21
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
22
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.
|
23
|
-
activejob (4.2.
|
24
|
-
activesupport (= 4.2.
|
22
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
23
|
+
activejob (4.2.11)
|
24
|
+
activesupport (= 4.2.11)
|
25
25
|
globalid (>= 0.3.0)
|
26
|
-
activemodel (4.2.
|
27
|
-
activesupport (= 4.2.
|
26
|
+
activemodel (4.2.11)
|
27
|
+
activesupport (= 4.2.11)
|
28
28
|
builder (~> 3.1)
|
29
|
-
activerecord (4.2.
|
30
|
-
activemodel (= 4.2.
|
31
|
-
activesupport (= 4.2.
|
29
|
+
activerecord (4.2.11)
|
30
|
+
activemodel (= 4.2.11)
|
31
|
+
activesupport (= 4.2.11)
|
32
32
|
arel (~> 6.0)
|
33
|
-
activesupport (4.2.
|
33
|
+
activesupport (4.2.11)
|
34
34
|
i18n (~> 0.7)
|
35
|
-
json (~> 1.7, >= 1.7.7)
|
36
35
|
minitest (~> 5.1)
|
37
36
|
thread_safe (~> 0.3, >= 0.3.4)
|
38
37
|
tzinfo (~> 1.1)
|
@@ -48,16 +47,18 @@ GEM
|
|
48
47
|
coffee-script-source
|
49
48
|
execjs
|
50
49
|
coffee-script-source (1.12.2)
|
51
|
-
concurrent-ruby (1.
|
50
|
+
concurrent-ruby (1.1.4)
|
51
|
+
crass (1.0.4)
|
52
52
|
csv_fast_importer (1.0.0)
|
53
53
|
activerecord (>= 3.0)
|
54
54
|
debug_inspector (0.0.3)
|
55
55
|
erubis (2.7.0)
|
56
56
|
execjs (2.7.0)
|
57
57
|
ffi (1.9.18)
|
58
|
-
globalid (0.4.
|
58
|
+
globalid (0.4.1)
|
59
59
|
activesupport (>= 4.2.0)
|
60
|
-
i18n (0.
|
60
|
+
i18n (0.9.5)
|
61
|
+
concurrent-ruby (~> 1.0)
|
61
62
|
jbuilder (2.7.0)
|
62
63
|
activesupport (>= 4.2.0)
|
63
64
|
multi_json (>= 1.2)
|
@@ -66,47 +67,46 @@ GEM
|
|
66
67
|
railties (>= 4.2.0)
|
67
68
|
thor (>= 0.14, < 2.0)
|
68
69
|
json (1.8.6)
|
69
|
-
loofah (2.
|
70
|
+
loofah (2.2.3)
|
71
|
+
crass (~> 1.0.2)
|
70
72
|
nokogiri (>= 1.5.9)
|
71
|
-
mail (2.
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
mini_portile2 (2.2.0)
|
77
|
-
minitest (5.10.3)
|
73
|
+
mail (2.7.1)
|
74
|
+
mini_mime (>= 0.1.1)
|
75
|
+
mini_mime (1.0.1)
|
76
|
+
mini_portile2 (2.4.0)
|
77
|
+
minitest (5.11.3)
|
78
78
|
multi_json (1.12.1)
|
79
|
-
nokogiri (1.
|
80
|
-
mini_portile2 (~> 2.
|
79
|
+
nokogiri (1.9.1)
|
80
|
+
mini_portile2 (~> 2.4.0)
|
81
81
|
pg (0.19.0)
|
82
|
-
rack (1.6.
|
82
|
+
rack (1.6.11)
|
83
83
|
rack-test (0.6.3)
|
84
84
|
rack (>= 1.0)
|
85
|
-
rails (4.2.
|
86
|
-
actionmailer (= 4.2.
|
87
|
-
actionpack (= 4.2.
|
88
|
-
actionview (= 4.2.
|
89
|
-
activejob (= 4.2.
|
90
|
-
activemodel (= 4.2.
|
91
|
-
activerecord (= 4.2.
|
92
|
-
activesupport (= 4.2.
|
85
|
+
rails (4.2.11)
|
86
|
+
actionmailer (= 4.2.11)
|
87
|
+
actionpack (= 4.2.11)
|
88
|
+
actionview (= 4.2.11)
|
89
|
+
activejob (= 4.2.11)
|
90
|
+
activemodel (= 4.2.11)
|
91
|
+
activerecord (= 4.2.11)
|
92
|
+
activesupport (= 4.2.11)
|
93
93
|
bundler (>= 1.3.0, < 2.0)
|
94
|
-
railties (= 4.2.
|
94
|
+
railties (= 4.2.11)
|
95
95
|
sprockets-rails
|
96
96
|
rails-deprecated_sanitizer (1.0.3)
|
97
97
|
activesupport (>= 4.2.0.alpha)
|
98
|
-
rails-dom-testing (1.0.
|
99
|
-
activesupport (>= 4.2.0
|
98
|
+
rails-dom-testing (1.0.9)
|
99
|
+
activesupport (>= 4.2.0, < 5.0)
|
100
100
|
nokogiri (~> 1.6)
|
101
101
|
rails-deprecated_sanitizer (>= 1.0.1)
|
102
|
-
rails-html-sanitizer (1.0.
|
103
|
-
loofah (~> 2.
|
104
|
-
railties (4.2.
|
105
|
-
actionpack (= 4.2.
|
106
|
-
activesupport (= 4.2.
|
102
|
+
rails-html-sanitizer (1.0.4)
|
103
|
+
loofah (~> 2.2, >= 2.2.2)
|
104
|
+
railties (4.2.11)
|
105
|
+
actionpack (= 4.2.11)
|
106
|
+
activesupport (= 4.2.11)
|
107
107
|
rake (>= 0.8.7)
|
108
108
|
thor (>= 0.18.1, < 2.0)
|
109
|
-
rake (12.
|
109
|
+
rake (12.3.2)
|
110
110
|
rb-fsevent (0.10.2)
|
111
111
|
rb-inotify (0.9.10)
|
112
112
|
ffi (>= 0.5.0, < 2)
|
@@ -127,20 +127,20 @@ GEM
|
|
127
127
|
rdoc (~> 4.0)
|
128
128
|
spring (2.0.2)
|
129
129
|
activesupport (>= 4.2)
|
130
|
-
sprockets (3.7.
|
130
|
+
sprockets (3.7.2)
|
131
131
|
concurrent-ruby (~> 1.0)
|
132
132
|
rack (> 1, < 3)
|
133
|
-
sprockets-rails (3.2.
|
133
|
+
sprockets-rails (3.2.1)
|
134
134
|
actionpack (>= 4.0)
|
135
135
|
activesupport (>= 4.0)
|
136
136
|
sprockets (>= 3.0.0)
|
137
|
-
thor (0.20.
|
137
|
+
thor (0.20.3)
|
138
138
|
thread_safe (0.3.6)
|
139
139
|
tilt (2.0.8)
|
140
140
|
turbolinks (5.0.1)
|
141
141
|
turbolinks-source (~> 5)
|
142
142
|
turbolinks-source (5.0.3)
|
143
|
-
tzinfo (1.2.
|
143
|
+
tzinfo (1.2.5)
|
144
144
|
thread_safe (~> 0.1)
|
145
145
|
uglifier (3.2.0)
|
146
146
|
execjs (>= 0.3.0, < 3)
|
@@ -160,7 +160,7 @@ DEPENDENCIES
|
|
160
160
|
jbuilder (~> 2.0)
|
161
161
|
jquery-rails
|
162
162
|
pg
|
163
|
-
rails (
|
163
|
+
rails (~> 4.2)
|
164
164
|
sass-rails (~> 5.0)
|
165
165
|
sdoc (~> 0.4.0)
|
166
166
|
spring
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: csv_fast_importer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sogilis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.4.0
|
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: 0.
|
68
|
+
version: 0.4.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: codacy-coverage
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -196,18 +196,19 @@ dependencies:
|
|
196
196
|
name: activerecord
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
|
-
- - "
|
199
|
+
- - "~>"
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version: '
|
201
|
+
version: '4.2'
|
202
202
|
type: :runtime
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
|
-
- - "
|
206
|
+
- - "~>"
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
version: '
|
209
|
-
description:
|
210
|
-
|
208
|
+
version: '4.2'
|
209
|
+
description: A gem to import CSV files' content into a PostgreSQL or MySQL database.
|
210
|
+
It is respectively based on PostgreSQL COPY and MySQL LOAD DATA INFILE which are
|
211
|
+
designed to be as fast as possible.
|
211
212
|
email:
|
212
213
|
- sogilis@sogilis.com
|
213
214
|
executables: []
|
@@ -240,6 +241,10 @@ files:
|
|
240
241
|
- lib/csv_fast_importer/database_factory.rb
|
241
242
|
- lib/csv_fast_importer/import.rb
|
242
243
|
- lib/csv_fast_importer/version.rb
|
244
|
+
- rakelib/changelog.rb
|
245
|
+
- rakelib/release.rake
|
246
|
+
- rakelib/release.rb
|
247
|
+
- rakelib/repository.rb
|
243
248
|
- sample-app/.gitignore
|
244
249
|
- sample-app/Gemfile
|
245
250
|
- sample-app/Gemfile.lock
|
@@ -323,9 +328,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
323
328
|
version: '0'
|
324
329
|
requirements: []
|
325
330
|
rubyforge_project:
|
326
|
-
rubygems_version: 2.
|
331
|
+
rubygems_version: 2.5.1
|
327
332
|
signing_key:
|
328
333
|
specification_version: 4
|
329
334
|
summary: Fast CSV Importer
|
330
335
|
test_files: []
|
331
|
-
has_rdoc:
|