interactive_migrations 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/interactive_migrations.gemspec +2 -2
- data/lib/tasks/interactive_migrations.rake +3 -3
- metadata +14 -13
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 67236dd811e2ff587df7a5bd44ab0c43768a6f52
|
4
|
+
data.tar.gz: 5a6afe75ccb0b3b39417ecd109fc7cc1c346f46c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9ca37bca8e7a3a548e3a20b8e1b00631e09ca5c397a26a1ec8666b9379496af617e9501e1d57eee9ad89ce0e5481d2bdfba10b4b890b694e7da20e7e7cc7dc61
|
7
|
+
data.tar.gz: 059bad701e2c33f57da4c76d6fb0e0faec16f2fb30f37daa1ba8646c59324450b675adec02dc091ec47b242bdc6b1ab881fe712e19dbc1264e0d1b900b92ee54
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "interactive_migrations"
|
3
|
-
s.version = '0.0.
|
3
|
+
s.version = '0.0.4'
|
4
4
|
s.authors = ["James Tippett"]
|
5
5
|
s.email = ["hi@jamestippett.com"]
|
6
6
|
|
@@ -9,5 +9,5 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.homepage = "http://github.com/jtippett/interactive_migrations"
|
10
10
|
s.files = `git ls-files`.split("\n")
|
11
11
|
|
12
|
-
s.add_runtime_dependency 'highline'
|
12
|
+
s.add_runtime_dependency 'highline', '~> 0'
|
13
13
|
end
|
@@ -5,7 +5,7 @@ namespace :db do
|
|
5
5
|
|
6
6
|
desc "Migrate Interactively"
|
7
7
|
task :interactive => :environment do
|
8
|
-
pending_migrations = ActiveRecord::Migrator.
|
8
|
+
pending_migrations = ActiveRecord::Migrator.open(ActiveRecord::Migrator.migrations_paths).pending_migrations
|
9
9
|
|
10
10
|
logger = Logger.new(Rails.root.join('log', 'migrations.log'))
|
11
11
|
|
@@ -21,7 +21,7 @@ namespace :db do
|
|
21
21
|
puts '--------------------------------'
|
22
22
|
if agree("run this migration? y/n")
|
23
23
|
begin
|
24
|
-
time = Benchmark.measure { ActiveRecord::Migrator.run(:up,
|
24
|
+
time = Benchmark.measure { ActiveRecord::Migrator.run(:up, ActiveRecord::Migrator.migrations_paths, pending_migration.version) }
|
25
25
|
logger.info ('== %4d %s ' % [pending_migration.version, pending_migration.name]).ljust(100, '=') + "\n"
|
26
26
|
logger.info File.read(file)
|
27
27
|
logger.info ('== Migrated in %.4fs ' % time.real).ljust(100, '=') + "\n"
|
@@ -40,7 +40,7 @@ namespace :db do
|
|
40
40
|
Rake::Task["db:schema:dump"].invoke
|
41
41
|
end
|
42
42
|
end
|
43
|
-
puts "done, with #{ActiveRecord::Migrator.
|
43
|
+
puts "done, with #{ActiveRecord::Migrator.open(ActiveRecord::Migrator.migrations_paths).pending_migrations.size} further migrations pending"
|
44
44
|
else
|
45
45
|
puts "no migrations pending."
|
46
46
|
end
|
metadata
CHANGED
@@ -1,27 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: interactive_migrations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.4
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- James Tippett
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-05-08 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: highline
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
25
27
|
description: If your rails project has migrations, you are prompted to run each one,
|
26
28
|
with a printout of the code which will be run. You have the option of running or
|
27
29
|
skipping the migration. Useful for production deploys where migrations are a delicate
|
@@ -38,26 +40,25 @@ files:
|
|
38
40
|
- lib/tasks/interactive_migrations.rake
|
39
41
|
homepage: http://github.com/jtippett/interactive_migrations
|
40
42
|
licenses: []
|
43
|
+
metadata: {}
|
41
44
|
post_install_message:
|
42
45
|
rdoc_options: []
|
43
46
|
require_paths:
|
44
47
|
- lib
|
45
48
|
required_ruby_version: !ruby/object:Gem::Requirement
|
46
|
-
none: false
|
47
49
|
requirements:
|
48
|
-
- -
|
50
|
+
- - ">="
|
49
51
|
- !ruby/object:Gem::Version
|
50
52
|
version: '0'
|
51
53
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
|
-
none: false
|
53
54
|
requirements:
|
54
|
-
- -
|
55
|
+
- - ">="
|
55
56
|
- !ruby/object:Gem::Version
|
56
57
|
version: '0'
|
57
58
|
requirements: []
|
58
59
|
rubyforge_project:
|
59
|
-
rubygems_version:
|
60
|
+
rubygems_version: 2.2.2
|
60
61
|
signing_key:
|
61
|
-
specification_version:
|
62
|
+
specification_version: 4
|
62
63
|
summary: A rake task giving you interactive migrations in your rails 3 project
|
63
64
|
test_files: []
|