mass_insert 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/.rspec +1 -0
- data/.rvmrc +53 -0
- data/.travis.yml +4 -0
- data/Gemfile +13 -0
- data/LICENSE.txt +22 -0
- data/README.md +58 -0
- data/Rakefile +45 -0
- data/lib/mass_insert.rb +13 -0
- data/lib/mass_insert/adapters.rb +12 -0
- data/lib/mass_insert/adapters/abstract_query.rb +47 -0
- data/lib/mass_insert/adapters/adapter.rb +56 -0
- data/lib/mass_insert/adapters/column_value.rb +107 -0
- data/lib/mass_insert/adapters/helpers.rb +8 -0
- data/lib/mass_insert/adapters/helpers/sanitizer.rb +17 -0
- data/lib/mass_insert/adapters/helpers/timestamp.rb +38 -0
- data/lib/mass_insert/adapters/mysql2_adapter.rb +21 -0
- data/lib/mass_insert/adapters/postgresql_adapter.rb +15 -0
- data/lib/mass_insert/adapters/sqlite3_adapter.rb +37 -0
- data/lib/mass_insert/adapters/sqlserver_adapter.rb +23 -0
- data/lib/mass_insert/base.rb +43 -0
- data/lib/mass_insert/process_control.rb +24 -0
- data/lib/mass_insert/query_builder.rb +42 -0
- data/lib/mass_insert/query_execution.rb +29 -0
- data/lib/mass_insert/version.rb +3 -0
- data/mass_insert.gemspec +22 -0
- data/spec/active_record_dummy/.gitignore +15 -0
- data/spec/active_record_dummy/Gemfile +40 -0
- data/spec/active_record_dummy/README.rdoc +261 -0
- data/spec/active_record_dummy/Rakefile +7 -0
- data/spec/active_record_dummy/app/assets/images/rails.png +0 -0
- data/spec/active_record_dummy/app/assets/javascripts/application.js +15 -0
- data/spec/active_record_dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/active_record_dummy/app/controllers/application_controller.rb +3 -0
- data/spec/active_record_dummy/app/helpers/application_helper.rb +2 -0
- data/spec/active_record_dummy/app/mailers/.gitkeep +0 -0
- data/spec/active_record_dummy/app/models/.gitkeep +0 -0
- data/spec/active_record_dummy/app/models/user.rb +3 -0
- data/spec/active_record_dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/active_record_dummy/config.ru +4 -0
- data/spec/active_record_dummy/config/application.rb +68 -0
- data/spec/active_record_dummy/config/boot.rb +6 -0
- data/spec/active_record_dummy/config/database.yml +54 -0
- data/spec/active_record_dummy/config/environment.rb +5 -0
- data/spec/active_record_dummy/config/environments/development.rb +37 -0
- data/spec/active_record_dummy/config/environments/mysql2.rb +37 -0
- data/spec/active_record_dummy/config/environments/postgresql.rb +37 -0
- data/spec/active_record_dummy/config/environments/production.rb +67 -0
- data/spec/active_record_dummy/config/environments/sqlite3.rb +37 -0
- data/spec/active_record_dummy/config/environments/test.rb +37 -0
- data/spec/active_record_dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/active_record_dummy/config/initializers/inflections.rb +15 -0
- data/spec/active_record_dummy/config/initializers/mime_types.rb +5 -0
- data/spec/active_record_dummy/config/initializers/secret_token.rb +7 -0
- data/spec/active_record_dummy/config/initializers/session_store.rb +8 -0
- data/spec/active_record_dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/active_record_dummy/config/locales/en.yml +5 -0
- data/spec/active_record_dummy/config/routes.rb +58 -0
- data/spec/active_record_dummy/db/migrate/20130412154541_create_users.rb +14 -0
- data/spec/active_record_dummy/db/schema.rb +27 -0
- data/spec/active_record_dummy/db/seeds.rb +7 -0
- data/spec/active_record_dummy/lib/assets/.gitkeep +0 -0
- data/spec/active_record_dummy/lib/tasks/.gitkeep +0 -0
- data/spec/active_record_dummy/log/.gitkeep +0 -0
- data/spec/active_record_dummy/public/404.html +26 -0
- data/spec/active_record_dummy/public/422.html +26 -0
- data/spec/active_record_dummy/public/500.html +25 -0
- data/spec/active_record_dummy/public/favicon.ico +0 -0
- data/spec/active_record_dummy/public/index.html +241 -0
- data/spec/active_record_dummy/public/robots.txt +5 -0
- data/spec/active_record_dummy/script/rails +6 -0
- data/spec/active_record_dummy/vendor/assets/javascripts/.gitkeep +0 -0
- data/spec/active_record_dummy/vendor/assets/stylesheets/.gitkeep +0 -0
- data/spec/active_record_dummy/vendor/plugins/.gitkeep +0 -0
- data/spec/active_record_models/column_types/binary_spec.rb +60 -0
- data/spec/active_record_models/column_types/boolean_spec.rb +52 -0
- data/spec/active_record_models/column_types/decimal_spec.rb +49 -0
- data/spec/active_record_models/column_types/integer_spec.rb +49 -0
- data/spec/active_record_models/column_types/string_spec.rb +50 -0
- data/spec/active_record_models/model_spec.rb +50 -0
- data/spec/dummy_models/test.rb +5 -0
- data/spec/mass_insert/adapters/abstract_query_spec.rb +109 -0
- data/spec/mass_insert/adapters/adapter_spec.rb +117 -0
- data/spec/mass_insert/adapters/column_value_spec.rb +292 -0
- data/spec/mass_insert/adapters/helpers/sanitizer_spec.rb +39 -0
- data/spec/mass_insert/adapters/helpers/timestamp_spec.rb +79 -0
- data/spec/mass_insert/adapters/helpers_spec.rb +16 -0
- data/spec/mass_insert/adapters/mysql_adapter_spec.rb +39 -0
- data/spec/mass_insert/adapters/postgresql_adapter_spec.rb +29 -0
- data/spec/mass_insert/adapters/sqlite3_adapter_spec.rb +90 -0
- data/spec/mass_insert/adapters/sqlserver_adapter_spec.rb +56 -0
- data/spec/mass_insert/adapters_spec.rb +40 -0
- data/spec/mass_insert/base_spec.rb +98 -0
- data/spec/mass_insert/process_control_spec.rb +56 -0
- data/spec/mass_insert/query_builder_spec.rb +88 -0
- data/spec/mass_insert/query_execution_spec.rb +53 -0
- data/spec/mass_insert_spec.rb +28 -0
- data/spec/spec_helper.rb +6 -0
- metadata +254 -0
@@ -0,0 +1,56 @@
|
|
1
|
+
require './spec/spec_helper'
|
2
|
+
require "./lib/mass_insert"
|
3
|
+
|
4
|
+
describe MassInsert::ProcessControl do
|
5
|
+
|
6
|
+
before :each do
|
7
|
+
@process = MassInsert::ProcessControl.new([], {})
|
8
|
+
end
|
9
|
+
|
10
|
+
subject{ @process }
|
11
|
+
|
12
|
+
describe "instance methods" do
|
13
|
+
describe "#initialize" do
|
14
|
+
|
15
|
+
before :each do
|
16
|
+
@values = [{:name => "name"}]
|
17
|
+
@options = {:option_one => 10}
|
18
|
+
@process = MassInsert::ProcessControl.new(@values, @options)
|
19
|
+
end
|
20
|
+
|
21
|
+
it "should initialize the values" do
|
22
|
+
@process.values.should eq(@values)
|
23
|
+
end
|
24
|
+
|
25
|
+
it "should initialize the options" do
|
26
|
+
@process.options.should eq(@options)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe "#execute" do
|
31
|
+
it "should respond to execute method" do
|
32
|
+
subject.respond_to?(:execute).should be_true
|
33
|
+
end
|
34
|
+
|
35
|
+
it "should instance and call QueryExecution class" do
|
36
|
+
subject.stub(:query).and_return("query")
|
37
|
+
execution = MassInsert::QueryExecution.any_instance
|
38
|
+
execution.stub(:execute).and_return("executed")
|
39
|
+
execution.should_receive(:execute).exactly(1).times
|
40
|
+
subject.execute
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
describe "#query" do
|
45
|
+
it "should respond to query method" do
|
46
|
+
subject.respond_to?(:query).should be_true
|
47
|
+
end
|
48
|
+
|
49
|
+
it "should instance and call QueryBuilder class" do
|
50
|
+
builder = MassInsert::QueryBuilder.any_instance
|
51
|
+
builder.stub(:build).and_return("query")
|
52
|
+
subject.query.should eq("query")
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,88 @@
|
|
1
|
+
require './spec/spec_helper'
|
2
|
+
require "./lib/mass_insert"
|
3
|
+
|
4
|
+
describe MassInsert::QueryBuilder do
|
5
|
+
before :each do
|
6
|
+
@builder = MassInsert::QueryBuilder.new([], {})
|
7
|
+
end
|
8
|
+
|
9
|
+
subject{ @builder }
|
10
|
+
|
11
|
+
describe "instance methods" do
|
12
|
+
describe "#initialize" do
|
13
|
+
before :each do
|
14
|
+
@builder = MassInsert::QueryBuilder.new("values", "options")
|
15
|
+
end
|
16
|
+
|
17
|
+
it "should initialize the values attribute" do
|
18
|
+
@builder.values.should eq("values")
|
19
|
+
end
|
20
|
+
|
21
|
+
it "should initialize the options attribute" do
|
22
|
+
@builder.options.should eq("options")
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
describe "#build" do
|
27
|
+
it "should respond to build method" do
|
28
|
+
subject.respond_to?(:build).should be_true
|
29
|
+
end
|
30
|
+
|
31
|
+
it "should return the query string" do
|
32
|
+
subject.stub(:adapter_instance_class).and_return("adapter_instance")
|
33
|
+
subject.adapter_instance_class.stub(:execute).and_return("query_string")
|
34
|
+
subject.build.should eq("query_string")
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
describe "#adapter" do
|
39
|
+
it "should respond to adapter method" do
|
40
|
+
subject.respond_to?(:adapter).should be_true
|
41
|
+
end
|
42
|
+
|
43
|
+
it "should return the adapter type" do
|
44
|
+
config = {"config" => {:adapter => "sql"}}
|
45
|
+
ActiveRecord::Base.connection.stub(:instance_values).and_return(config)
|
46
|
+
subject.adapter.should eq("sql")
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
describe "#adapter_instance_class" do
|
51
|
+
it "should respond to adapter_instance_class method" do
|
52
|
+
subject.respond_to?(:adapter_instance_class).should be_true
|
53
|
+
end
|
54
|
+
|
55
|
+
context "when adapter is mysql2" do
|
56
|
+
it "should return a Mysql2Adapter instance" do
|
57
|
+
subject.stub(:adapter).and_return("mysql2")
|
58
|
+
instance_class = MassInsert::Adapters::Mysql2Adapter
|
59
|
+
subject.adapter_instance_class.class.should be(instance_class)
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
context "when adapter is postgresql" do
|
64
|
+
it "should return a PostgreSQLAdapter instance" do
|
65
|
+
subject.stub(:adapter).and_return("postgresql")
|
66
|
+
instance_class = MassInsert::Adapters::PostgreSQLAdapter
|
67
|
+
subject.adapter_instance_class.class.should be(instance_class)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
context "when adapter is sqlite3" do
|
72
|
+
it "should return a SQLite3Adapter instance" do
|
73
|
+
subject.stub(:adapter).and_return("sqlite3")
|
74
|
+
instance_class = MassInsert::Adapters::SQLite3Adapter
|
75
|
+
subject.adapter_instance_class.class.should be(instance_class)
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
context "when adapter is sqlserver" do
|
80
|
+
it "should return a SQLServerAdapter instance" do
|
81
|
+
subject.stub(:adapter).and_return("sqlserver")
|
82
|
+
instance_class = MassInsert::Adapters::SQLServerAdapter
|
83
|
+
subject.adapter_instance_class.class.should be(instance_class)
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
require './spec/spec_helper'
|
2
|
+
require "./lib/mass_insert"
|
3
|
+
|
4
|
+
describe MassInsert::QueryExecution do
|
5
|
+
|
6
|
+
before :each do
|
7
|
+
@execution = MassInsert::QueryExecution.new("query string")
|
8
|
+
end
|
9
|
+
|
10
|
+
subject{ @execution }
|
11
|
+
|
12
|
+
describe "instance methods" do
|
13
|
+
describe "#initialize" do
|
14
|
+
context "when params passed is a string" do
|
15
|
+
it "query_container should be an array with the param" do
|
16
|
+
execution = MassInsert::QueryExecution.new("option")
|
17
|
+
execution.query_container.should eq(["option"])
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
context "when params passed is an array" do
|
22
|
+
it "query_container should be the array passed by param" do
|
23
|
+
params = ["option_one", "option_two"]
|
24
|
+
execution = MassInsert::QueryExecution.new(params)
|
25
|
+
execution.query_container.should eq(params)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe "#execute" do
|
31
|
+
it "should respond to execute method" do
|
32
|
+
subject.respond_to?(:execute).should be_true
|
33
|
+
end
|
34
|
+
|
35
|
+
context "when query container has one query" do
|
36
|
+
it "should call ActiveRecord execute one time" do
|
37
|
+
ActiveRecord::Base.connection.stub(:execute)
|
38
|
+
ActiveRecord::Base.connection.should_receive(:execute).exactly(1).times
|
39
|
+
subject.execute
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
context "when query container is an array with two queries" do
|
44
|
+
it "should call ActiveRecord execute one time" do
|
45
|
+
subject.query_container = ["query1", "query2"]
|
46
|
+
ActiveRecord::Base.connection.stub(:execute)
|
47
|
+
ActiveRecord::Base.connection.should_receive(:execute).exactly(2).times
|
48
|
+
subject.execute
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require './spec/spec_helper'
|
2
|
+
require "./lib/mass_insert"
|
3
|
+
|
4
|
+
describe MassInsert do
|
5
|
+
it 'should be defined' do
|
6
|
+
should be
|
7
|
+
end
|
8
|
+
|
9
|
+
it 'should define Adapters module' do
|
10
|
+
MassInsert::Adapters.should be
|
11
|
+
end
|
12
|
+
|
13
|
+
it 'should define Base' do
|
14
|
+
MassInsert::Base.should be
|
15
|
+
end
|
16
|
+
|
17
|
+
it 'should define ProcessControl' do
|
18
|
+
MassInsert::ProcessControl.should be
|
19
|
+
end
|
20
|
+
|
21
|
+
it 'should define QueryBuilder' do
|
22
|
+
MassInsert::QueryBuilder.should be
|
23
|
+
end
|
24
|
+
|
25
|
+
it 'should define QueryExecution' do
|
26
|
+
MassInsert::QueryExecution.should be
|
27
|
+
end
|
28
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,254 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mass_insert
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Alejandro Gutiérrez
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-04-19 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: bundler
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.3'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.3'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rake
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
description: Mass database insertion in Rails
|
47
|
+
email:
|
48
|
+
- alejandrodevs@gmail.com
|
49
|
+
executables: []
|
50
|
+
extensions: []
|
51
|
+
extra_rdoc_files: []
|
52
|
+
files:
|
53
|
+
- .gitignore
|
54
|
+
- .rspec
|
55
|
+
- .rvmrc
|
56
|
+
- .travis.yml
|
57
|
+
- Gemfile
|
58
|
+
- LICENSE.txt
|
59
|
+
- README.md
|
60
|
+
- Rakefile
|
61
|
+
- lib/mass_insert.rb
|
62
|
+
- lib/mass_insert/adapters.rb
|
63
|
+
- lib/mass_insert/adapters/abstract_query.rb
|
64
|
+
- lib/mass_insert/adapters/adapter.rb
|
65
|
+
- lib/mass_insert/adapters/column_value.rb
|
66
|
+
- lib/mass_insert/adapters/helpers.rb
|
67
|
+
- lib/mass_insert/adapters/helpers/sanitizer.rb
|
68
|
+
- lib/mass_insert/adapters/helpers/timestamp.rb
|
69
|
+
- lib/mass_insert/adapters/mysql2_adapter.rb
|
70
|
+
- lib/mass_insert/adapters/postgresql_adapter.rb
|
71
|
+
- lib/mass_insert/adapters/sqlite3_adapter.rb
|
72
|
+
- lib/mass_insert/adapters/sqlserver_adapter.rb
|
73
|
+
- lib/mass_insert/base.rb
|
74
|
+
- lib/mass_insert/process_control.rb
|
75
|
+
- lib/mass_insert/query_builder.rb
|
76
|
+
- lib/mass_insert/query_execution.rb
|
77
|
+
- lib/mass_insert/version.rb
|
78
|
+
- mass_insert.gemspec
|
79
|
+
- spec/active_record_dummy/.gitignore
|
80
|
+
- spec/active_record_dummy/Gemfile
|
81
|
+
- spec/active_record_dummy/README.rdoc
|
82
|
+
- spec/active_record_dummy/Rakefile
|
83
|
+
- spec/active_record_dummy/app/assets/images/rails.png
|
84
|
+
- spec/active_record_dummy/app/assets/javascripts/application.js
|
85
|
+
- spec/active_record_dummy/app/assets/stylesheets/application.css
|
86
|
+
- spec/active_record_dummy/app/controllers/application_controller.rb
|
87
|
+
- spec/active_record_dummy/app/helpers/application_helper.rb
|
88
|
+
- spec/active_record_dummy/app/mailers/.gitkeep
|
89
|
+
- spec/active_record_dummy/app/models/.gitkeep
|
90
|
+
- spec/active_record_dummy/app/models/user.rb
|
91
|
+
- spec/active_record_dummy/app/views/layouts/application.html.erb
|
92
|
+
- spec/active_record_dummy/config.ru
|
93
|
+
- spec/active_record_dummy/config/application.rb
|
94
|
+
- spec/active_record_dummy/config/boot.rb
|
95
|
+
- spec/active_record_dummy/config/database.yml
|
96
|
+
- spec/active_record_dummy/config/environment.rb
|
97
|
+
- spec/active_record_dummy/config/environments/development.rb
|
98
|
+
- spec/active_record_dummy/config/environments/mysql2.rb
|
99
|
+
- spec/active_record_dummy/config/environments/postgresql.rb
|
100
|
+
- spec/active_record_dummy/config/environments/production.rb
|
101
|
+
- spec/active_record_dummy/config/environments/sqlite3.rb
|
102
|
+
- spec/active_record_dummy/config/environments/test.rb
|
103
|
+
- spec/active_record_dummy/config/initializers/backtrace_silencers.rb
|
104
|
+
- spec/active_record_dummy/config/initializers/inflections.rb
|
105
|
+
- spec/active_record_dummy/config/initializers/mime_types.rb
|
106
|
+
- spec/active_record_dummy/config/initializers/secret_token.rb
|
107
|
+
- spec/active_record_dummy/config/initializers/session_store.rb
|
108
|
+
- spec/active_record_dummy/config/initializers/wrap_parameters.rb
|
109
|
+
- spec/active_record_dummy/config/locales/en.yml
|
110
|
+
- spec/active_record_dummy/config/routes.rb
|
111
|
+
- spec/active_record_dummy/db/migrate/20130412154541_create_users.rb
|
112
|
+
- spec/active_record_dummy/db/schema.rb
|
113
|
+
- spec/active_record_dummy/db/seeds.rb
|
114
|
+
- spec/active_record_dummy/lib/assets/.gitkeep
|
115
|
+
- spec/active_record_dummy/lib/tasks/.gitkeep
|
116
|
+
- spec/active_record_dummy/log/.gitkeep
|
117
|
+
- spec/active_record_dummy/public/404.html
|
118
|
+
- spec/active_record_dummy/public/422.html
|
119
|
+
- spec/active_record_dummy/public/500.html
|
120
|
+
- spec/active_record_dummy/public/favicon.ico
|
121
|
+
- spec/active_record_dummy/public/index.html
|
122
|
+
- spec/active_record_dummy/public/robots.txt
|
123
|
+
- spec/active_record_dummy/script/rails
|
124
|
+
- spec/active_record_dummy/vendor/assets/javascripts/.gitkeep
|
125
|
+
- spec/active_record_dummy/vendor/assets/stylesheets/.gitkeep
|
126
|
+
- spec/active_record_dummy/vendor/plugins/.gitkeep
|
127
|
+
- spec/active_record_models/column_types/binary_spec.rb
|
128
|
+
- spec/active_record_models/column_types/boolean_spec.rb
|
129
|
+
- spec/active_record_models/column_types/decimal_spec.rb
|
130
|
+
- spec/active_record_models/column_types/integer_spec.rb
|
131
|
+
- spec/active_record_models/column_types/string_spec.rb
|
132
|
+
- spec/active_record_models/model_spec.rb
|
133
|
+
- spec/dummy_models/test.rb
|
134
|
+
- spec/mass_insert/adapters/abstract_query_spec.rb
|
135
|
+
- spec/mass_insert/adapters/adapter_spec.rb
|
136
|
+
- spec/mass_insert/adapters/column_value_spec.rb
|
137
|
+
- spec/mass_insert/adapters/helpers/sanitizer_spec.rb
|
138
|
+
- spec/mass_insert/adapters/helpers/timestamp_spec.rb
|
139
|
+
- spec/mass_insert/adapters/helpers_spec.rb
|
140
|
+
- spec/mass_insert/adapters/mysql_adapter_spec.rb
|
141
|
+
- spec/mass_insert/adapters/postgresql_adapter_spec.rb
|
142
|
+
- spec/mass_insert/adapters/sqlite3_adapter_spec.rb
|
143
|
+
- spec/mass_insert/adapters/sqlserver_adapter_spec.rb
|
144
|
+
- spec/mass_insert/adapters_spec.rb
|
145
|
+
- spec/mass_insert/base_spec.rb
|
146
|
+
- spec/mass_insert/process_control_spec.rb
|
147
|
+
- spec/mass_insert/query_builder_spec.rb
|
148
|
+
- spec/mass_insert/query_execution_spec.rb
|
149
|
+
- spec/mass_insert_spec.rb
|
150
|
+
- spec/spec_helper.rb
|
151
|
+
homepage: https://github.com/alejandrogutierrez/mass_insert
|
152
|
+
licenses: []
|
153
|
+
post_install_message:
|
154
|
+
rdoc_options: []
|
155
|
+
require_paths:
|
156
|
+
- lib
|
157
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
158
|
+
none: false
|
159
|
+
requirements:
|
160
|
+
- - ! '>='
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: '0'
|
163
|
+
segments:
|
164
|
+
- 0
|
165
|
+
hash: -4363220921701306027
|
166
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
167
|
+
none: false
|
168
|
+
requirements:
|
169
|
+
- - ! '>='
|
170
|
+
- !ruby/object:Gem::Version
|
171
|
+
version: '0'
|
172
|
+
segments:
|
173
|
+
- 0
|
174
|
+
hash: -4363220921701306027
|
175
|
+
requirements: []
|
176
|
+
rubyforge_project:
|
177
|
+
rubygems_version: 1.8.25
|
178
|
+
signing_key:
|
179
|
+
specification_version: 3
|
180
|
+
summary: This gem aims to provide an easy and faster way to do single database insertions
|
181
|
+
in Rails.
|
182
|
+
test_files:
|
183
|
+
- spec/active_record_dummy/.gitignore
|
184
|
+
- spec/active_record_dummy/Gemfile
|
185
|
+
- spec/active_record_dummy/README.rdoc
|
186
|
+
- spec/active_record_dummy/Rakefile
|
187
|
+
- spec/active_record_dummy/app/assets/images/rails.png
|
188
|
+
- spec/active_record_dummy/app/assets/javascripts/application.js
|
189
|
+
- spec/active_record_dummy/app/assets/stylesheets/application.css
|
190
|
+
- spec/active_record_dummy/app/controllers/application_controller.rb
|
191
|
+
- spec/active_record_dummy/app/helpers/application_helper.rb
|
192
|
+
- spec/active_record_dummy/app/mailers/.gitkeep
|
193
|
+
- spec/active_record_dummy/app/models/.gitkeep
|
194
|
+
- spec/active_record_dummy/app/models/user.rb
|
195
|
+
- spec/active_record_dummy/app/views/layouts/application.html.erb
|
196
|
+
- spec/active_record_dummy/config.ru
|
197
|
+
- spec/active_record_dummy/config/application.rb
|
198
|
+
- spec/active_record_dummy/config/boot.rb
|
199
|
+
- spec/active_record_dummy/config/database.yml
|
200
|
+
- spec/active_record_dummy/config/environment.rb
|
201
|
+
- spec/active_record_dummy/config/environments/development.rb
|
202
|
+
- spec/active_record_dummy/config/environments/mysql2.rb
|
203
|
+
- spec/active_record_dummy/config/environments/postgresql.rb
|
204
|
+
- spec/active_record_dummy/config/environments/production.rb
|
205
|
+
- spec/active_record_dummy/config/environments/sqlite3.rb
|
206
|
+
- spec/active_record_dummy/config/environments/test.rb
|
207
|
+
- spec/active_record_dummy/config/initializers/backtrace_silencers.rb
|
208
|
+
- spec/active_record_dummy/config/initializers/inflections.rb
|
209
|
+
- spec/active_record_dummy/config/initializers/mime_types.rb
|
210
|
+
- spec/active_record_dummy/config/initializers/secret_token.rb
|
211
|
+
- spec/active_record_dummy/config/initializers/session_store.rb
|
212
|
+
- spec/active_record_dummy/config/initializers/wrap_parameters.rb
|
213
|
+
- spec/active_record_dummy/config/locales/en.yml
|
214
|
+
- spec/active_record_dummy/config/routes.rb
|
215
|
+
- spec/active_record_dummy/db/migrate/20130412154541_create_users.rb
|
216
|
+
- spec/active_record_dummy/db/schema.rb
|
217
|
+
- spec/active_record_dummy/db/seeds.rb
|
218
|
+
- spec/active_record_dummy/lib/assets/.gitkeep
|
219
|
+
- spec/active_record_dummy/lib/tasks/.gitkeep
|
220
|
+
- spec/active_record_dummy/log/.gitkeep
|
221
|
+
- spec/active_record_dummy/public/404.html
|
222
|
+
- spec/active_record_dummy/public/422.html
|
223
|
+
- spec/active_record_dummy/public/500.html
|
224
|
+
- spec/active_record_dummy/public/favicon.ico
|
225
|
+
- spec/active_record_dummy/public/index.html
|
226
|
+
- spec/active_record_dummy/public/robots.txt
|
227
|
+
- spec/active_record_dummy/script/rails
|
228
|
+
- spec/active_record_dummy/vendor/assets/javascripts/.gitkeep
|
229
|
+
- spec/active_record_dummy/vendor/assets/stylesheets/.gitkeep
|
230
|
+
- spec/active_record_dummy/vendor/plugins/.gitkeep
|
231
|
+
- spec/active_record_models/column_types/binary_spec.rb
|
232
|
+
- spec/active_record_models/column_types/boolean_spec.rb
|
233
|
+
- spec/active_record_models/column_types/decimal_spec.rb
|
234
|
+
- spec/active_record_models/column_types/integer_spec.rb
|
235
|
+
- spec/active_record_models/column_types/string_spec.rb
|
236
|
+
- spec/active_record_models/model_spec.rb
|
237
|
+
- spec/dummy_models/test.rb
|
238
|
+
- spec/mass_insert/adapters/abstract_query_spec.rb
|
239
|
+
- spec/mass_insert/adapters/adapter_spec.rb
|
240
|
+
- spec/mass_insert/adapters/column_value_spec.rb
|
241
|
+
- spec/mass_insert/adapters/helpers/sanitizer_spec.rb
|
242
|
+
- spec/mass_insert/adapters/helpers/timestamp_spec.rb
|
243
|
+
- spec/mass_insert/adapters/helpers_spec.rb
|
244
|
+
- spec/mass_insert/adapters/mysql_adapter_spec.rb
|
245
|
+
- spec/mass_insert/adapters/postgresql_adapter_spec.rb
|
246
|
+
- spec/mass_insert/adapters/sqlite3_adapter_spec.rb
|
247
|
+
- spec/mass_insert/adapters/sqlserver_adapter_spec.rb
|
248
|
+
- spec/mass_insert/adapters_spec.rb
|
249
|
+
- spec/mass_insert/base_spec.rb
|
250
|
+
- spec/mass_insert/process_control_spec.rb
|
251
|
+
- spec/mass_insert/query_builder_spec.rb
|
252
|
+
- spec/mass_insert/query_execution_spec.rb
|
253
|
+
- spec/mass_insert_spec.rb
|
254
|
+
- spec/spec_helper.rb
|