jsuchal-activerecord-fast-import 0.1.2 → 0.1.3
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.
- data/VERSION +1 -1
- data/activerecord-fast-import.gemspec +2 -2
- data/lib/activerecord-fast-import.rb +2 -2
- metadata +3 -4
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.3
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{activerecord-fast-import}
|
|
8
|
-
s.version = "0.1.
|
|
8
|
+
s.version = "0.1.3"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Jan Suchal"]
|
|
12
|
-
s.date = %q{2009-
|
|
12
|
+
s.date = %q{2009-09-02}
|
|
13
13
|
s.description = %q{Native MySQL additions to ActiveRecord, like LOAD DATA INFILE, ENABLE/DISABLE KEYS, TRUNCATE TABLE.}
|
|
14
14
|
s.email = %q{johno@jsmf.net}
|
|
15
15
|
s.extra_rdoc_files = [
|
|
@@ -24,9 +24,9 @@ module ActiveRecord #:nodoc:
|
|
|
24
24
|
# * +options+ (see <tt>load_data_infile</tt>)
|
|
25
25
|
def self.fast_import(files, options = {})
|
|
26
26
|
files = [files] unless files.is_a? Array
|
|
27
|
-
enable_keys
|
|
28
|
-
files.each {|file| load_data_infile(file, options)}
|
|
29
27
|
disable_keys
|
|
28
|
+
files.each {|file| load_data_infile(file, options)}
|
|
29
|
+
enable_keys
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
# Loads data from file using MySQL native LOAD DATA INFILE query
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jsuchal-activerecord-fast-import
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jan Suchal
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-
|
|
12
|
+
date: 2009-09-02 00:00:00 -07:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
@@ -56,7 +56,6 @@ files:
|
|
|
56
56
|
- spec/spec_helper.rb
|
|
57
57
|
has_rdoc: true
|
|
58
58
|
homepage: http://github.com/jsuchal/activerecord-fast-import
|
|
59
|
-
licenses:
|
|
60
59
|
post_install_message:
|
|
61
60
|
rdoc_options:
|
|
62
61
|
- --charset=UTF-8
|
|
@@ -77,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
77
76
|
requirements: []
|
|
78
77
|
|
|
79
78
|
rubyforge_project:
|
|
80
|
-
rubygems_version: 1.
|
|
79
|
+
rubygems_version: 1.2.0
|
|
81
80
|
signing_key:
|
|
82
81
|
specification_version: 2
|
|
83
82
|
summary: Fast MySQL import for ActiveRecord
|