simple_migrator 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -0
- data/Rakefile +8 -0
- data/lib/simple_migrator/migratable.rb +2 -2
- data/lib/simple_migrator/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1af28597af8a7d9a0068fc91c9e7eeb9b64e649f
|
4
|
+
data.tar.gz: b4a11ef877bf056967a39dc6bed5b5dc8b7dac98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d5b0d68efc106da8056d5325b08292a6ba3ece01c4d9b22d1ddcf3ec6a333527e82f1253ccaddbfc26784883e6b29406c6c5f4f4e0ca1a2f9486e199a710e4a
|
7
|
+
data.tar.gz: 73961d603025b408c1f7ed032718efb24cf2b471e05a7307300dd7cd4f76c1dc3377eaf07de5504b8614101ec98f4ec9879f71e803ac8cce2ad4b8e7523342e3
|
data/.travis.yml
ADDED
data/Rakefile
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
module SimpleMigrator
|
2
2
|
module Migratable
|
3
|
-
def migrate!(
|
3
|
+
def migrate!(_migrator = migrator)
|
4
4
|
self.class.migrations.each do |migration|
|
5
5
|
rebound_proc = rebind_proc(migration.proc)
|
6
6
|
name = prefixed_migration_name(migration.name)
|
7
|
-
|
7
|
+
_migrator.migrate(name, &rebound_proc)
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_migrator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jesper Josefsson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sequel
|
@@ -103,6 +103,7 @@ extra_rdoc_files: []
|
|
103
103
|
files:
|
104
104
|
- ".gitignore"
|
105
105
|
- ".rspec"
|
106
|
+
- ".travis.yml"
|
106
107
|
- Gemfile
|
107
108
|
- LICENSE.txt
|
108
109
|
- README.md
|