migration_tools 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/Gemfile.lock +4 -4
- data/VERSION +1 -1
- data/lib/migration_tools/tasks.rb +1 -2
- data/migration_tools.gemspec +6 -7
- data/test/test_migration_tools.rb +2 -2
- metadata +22 -22
data/Gemfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
source "http://rubygems.org"
|
2
2
|
# Add dependencies required to use your gem here.
|
3
3
|
# Example:
|
4
|
-
gem "activerecord", "
|
4
|
+
gem "activerecord", "~> 2.3.11"
|
5
5
|
|
6
6
|
# Add dependencies to develop your gem here.
|
7
7
|
# Include everything needed to run rake, tests, features, etc.
|
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
activerecord (2.3.
|
5
|
-
activesupport (= 2.3.
|
6
|
-
activesupport (2.3.
|
4
|
+
activerecord (2.3.14)
|
5
|
+
activesupport (= 2.3.14)
|
6
|
+
activesupport (2.3.14)
|
7
7
|
git (1.2.5)
|
8
8
|
jeweler (1.5.1)
|
9
9
|
bundler (~> 1.0.0)
|
@@ -17,7 +17,7 @@ PLATFORMS
|
|
17
17
|
ruby
|
18
18
|
|
19
19
|
DEPENDENCIES
|
20
|
-
activerecord (
|
20
|
+
activerecord (~> 2.3.11)
|
21
21
|
bundler (~> 1.0.0)
|
22
22
|
jeweler (~> 1.5.1)
|
23
23
|
mocha (~> 0.9.8)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.7
|
@@ -58,8 +58,7 @@ module MigrationTools
|
|
58
58
|
notify "Your database schema is up to date"
|
59
59
|
else
|
60
60
|
pending_migrations.each do |migration|
|
61
|
-
|
62
|
-
migrator.send(:record_version_state_after_migrating, migration.version)
|
61
|
+
ActiveRecord::Migrator.run(:up, 'db/migrate', migration.version)
|
63
62
|
end
|
64
63
|
|
65
64
|
Rake::Task["db:schema:dump"].invoke if ActiveRecord::Base.schema_format == :ruby
|
data/migration_tools.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{migration_tools}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.7"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Morten Primdahl"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-09-08}
|
13
13
|
s.description = %q{Suite of task extensions for Rails 2.3 that makes managing migrations easier of more nimble}
|
14
14
|
s.email = %q{morten@zendesk.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -33,7 +33,7 @@ Gem::Specification.new do |s|
|
|
33
33
|
s.homepage = %q{http://github.com/morten/migration_tools}
|
34
34
|
s.licenses = ["MIT"]
|
35
35
|
s.require_paths = ["lib"]
|
36
|
-
s.rubygems_version = %q{1.
|
36
|
+
s.rubygems_version = %q{1.6.2}
|
37
37
|
s.summary = %q{Helpful Rails 2.3 migration tools}
|
38
38
|
s.test_files = [
|
39
39
|
"test/helper.rb",
|
@@ -41,22 +41,21 @@ Gem::Specification.new do |s|
|
|
41
41
|
]
|
42
42
|
|
43
43
|
if s.respond_to? :specification_version then
|
44
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
45
44
|
s.specification_version = 3
|
46
45
|
|
47
46
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
48
|
-
s.add_runtime_dependency(%q<activerecord>, ["
|
47
|
+
s.add_runtime_dependency(%q<activerecord>, ["~> 2.3.11"])
|
49
48
|
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
50
49
|
s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
|
51
50
|
s.add_development_dependency(%q<mocha>, ["~> 0.9.8"])
|
52
51
|
else
|
53
|
-
s.add_dependency(%q<activerecord>, ["
|
52
|
+
s.add_dependency(%q<activerecord>, ["~> 2.3.11"])
|
54
53
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
55
54
|
s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
|
56
55
|
s.add_dependency(%q<mocha>, ["~> 0.9.8"])
|
57
56
|
end
|
58
57
|
else
|
59
|
-
s.add_dependency(%q<activerecord>, ["
|
58
|
+
s.add_dependency(%q<activerecord>, ["~> 2.3.11"])
|
60
59
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
61
60
|
s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
|
62
61
|
s.add_dependency(%q<mocha>, ["~> 0.9.8"])
|
@@ -136,9 +136,9 @@ class TestMigrationTools < Test::Unit::TestCase
|
|
136
136
|
ENV['GROUP'] = 'before'
|
137
137
|
migrator = stub(:pending_migrations => proxies)
|
138
138
|
ActiveRecord::Migrator.expects(:new).returns(migrator)
|
139
|
+
|
139
140
|
proxies.select { |p| p.migration_group == 'before' }.each do |p|
|
140
|
-
|
141
|
-
migrator.expects(:record_version_state_after_migrating).with(p.version).once
|
141
|
+
ActiveRecord::Migrator.expects(:run).with(:up, 'db/migrate', p.version).once
|
142
142
|
end
|
143
143
|
|
144
144
|
Rake::Task["db:migrate:group"].invoke
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: migration_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 21
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 7
|
10
|
+
version: 0.1.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Morten Primdahl
|
@@ -15,29 +15,26 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-09-08 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
prerelease: false
|
23
|
-
type: :runtime
|
24
|
-
name: activerecord
|
25
22
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
26
23
|
none: false
|
27
24
|
requirements:
|
28
|
-
- -
|
25
|
+
- - ~>
|
29
26
|
- !ruby/object:Gem::Version
|
30
|
-
hash:
|
27
|
+
hash: 21
|
31
28
|
segments:
|
32
29
|
- 2
|
33
30
|
- 3
|
34
|
-
-
|
35
|
-
version: 2.3.
|
31
|
+
- 11
|
32
|
+
version: 2.3.11
|
33
|
+
name: activerecord
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
36
|
requirement: *id001
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
|
-
prerelease: false
|
39
|
-
type: :development
|
40
|
-
name: bundler
|
41
38
|
version_requirements: &id002 !ruby/object:Gem::Requirement
|
42
39
|
none: false
|
43
40
|
requirements:
|
@@ -49,11 +46,11 @@ dependencies:
|
|
49
46
|
- 0
|
50
47
|
- 0
|
51
48
|
version: 1.0.0
|
49
|
+
name: bundler
|
50
|
+
type: :development
|
51
|
+
prerelease: false
|
52
52
|
requirement: *id002
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
|
-
prerelease: false
|
55
|
-
type: :development
|
56
|
-
name: jeweler
|
57
54
|
version_requirements: &id003 !ruby/object:Gem::Requirement
|
58
55
|
none: false
|
59
56
|
requirements:
|
@@ -65,11 +62,11 @@ dependencies:
|
|
65
62
|
- 5
|
66
63
|
- 1
|
67
64
|
version: 1.5.1
|
65
|
+
name: jeweler
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
68
|
requirement: *id003
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
prerelease: false
|
71
|
-
type: :development
|
72
|
-
name: mocha
|
73
70
|
version_requirements: &id004 !ruby/object:Gem::Requirement
|
74
71
|
none: false
|
75
72
|
requirements:
|
@@ -81,6 +78,9 @@ dependencies:
|
|
81
78
|
- 9
|
82
79
|
- 8
|
83
80
|
version: 0.9.8
|
81
|
+
name: mocha
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
84
|
requirement: *id004
|
85
85
|
description: Suite of task extensions for Rails 2.3 that makes managing migrations easier of more nimble
|
86
86
|
email: morten@zendesk.com
|
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
134
|
requirements: []
|
135
135
|
|
136
136
|
rubyforge_project:
|
137
|
-
rubygems_version: 1.
|
137
|
+
rubygems_version: 1.6.2
|
138
138
|
signing_key:
|
139
139
|
specification_version: 3
|
140
140
|
summary: Helpful Rails 2.3 migration tools
|