forked from vitalsource/table_migrator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtable_migrator.gemspec
More file actions
33 lines (27 loc) · 1.31 KB
/
Copy pathtable_migrator.gemspec
File metadata and controls
33 lines (27 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = "table_migrator"
s.version = '0.1.3'
s.platform = Gem::Platform::RUBY
s.authors = ["Matt Freels", "Rohith Ravi", "Rick Olson",]
s.email = ["matt@freels.name"]
s.homepage = "http://github.com/freels/table_migrator"
s.summary = "Zero-downtime table migration in MySQL"
s.description = <<-EOF
TableMigrator is a method for altering large MySQL tables while incurring
as little downtime as possible. First, we create a new table like the
original one, and then apply one or more ALTER TABLE statements to the
unused, empty table. Second we copy all rows from the original table into
the new one. All this time, reads and writes are going to the original
table, so the two tables are not consistent. Finally, we acquire a write
lock on the original table before copying over all new/changed rows, and
swapping in the new table.
EOF
s.add_dependency "activerecord", ">= 3.2.0"
s.add_development_dependency "rake", "~>0.9.2.2"
s.add_development_dependency "shoulda"
# WARNING : Compiling native extensions for gem requires installing C headers for MySQL
s.add_development_dependency "mysql", '~>2.8.1'
s.files = Dir.glob("lib/**/*") +%w[README.md]
s.require_path = 'lib'
end