standalone_migrations 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +2 -0
- data/Rakefile +4 -0
- data/VERSION +1 -1
- data/lib/tasks/standalone_migrations.rb +5 -2
- data/standalone_migrations.gemspec +3 -3
- metadata +62 -38
data/README.markdown
CHANGED
@@ -172,6 +172,7 @@ Contributors
|
|
172
172
|
============
|
173
173
|
- [Todd Huss](http://gabrito.com/)
|
174
174
|
- [Two Bit Labs](http://twobitlabs.com/)
|
175
|
+
- [Class Monkeys](http://www.classmonkeys.com/)
|
175
176
|
- [Michael Grosser](http://pragmatig.wordpress.com)
|
176
177
|
- [Eric Lindvall](http://bitmonkey.net)
|
177
178
|
- [Steve Hodgkiss](http://stevehodgkiss.com/)
|
@@ -181,5 +182,6 @@ Contributors
|
|
181
182
|
- [Federico Builes](http://mheroin.com/)
|
182
183
|
- [Ricardo Valeriano](http://ricardovaleriano.com/)
|
183
184
|
- [Gazler](http://blog.gazler.com/)
|
185
|
+
- [Yuu Yamashita](https://github.com/yyuu)
|
184
186
|
|
185
187
|
This work is originally based on [Lincoln Stoll's blog post](http://lstoll.net/2008/04/stand-alone-activerecord-migrations/) and [David Welton's post](http://journal.dedasys.com/2007/01/28/using-migrations-outside-of-rails).
|
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.10
|
@@ -53,14 +53,17 @@ end
|
|
53
53
|
|
54
54
|
task(:rails_env){}
|
55
55
|
|
56
|
-
task(:environment) do
|
57
|
-
ActiveRecord::Base.configurations = standalone_configurator.config_for_all
|
56
|
+
task(:environment => "db:load_config") do
|
58
57
|
ActiveRecord::Base.establish_connection standalone_configurator.config_for Rails.env
|
59
58
|
end
|
60
59
|
|
61
60
|
load 'active_record/railties/databases.rake'
|
62
61
|
|
63
62
|
namespace :db do
|
63
|
+
task :load_config do
|
64
|
+
ActiveRecord::Base.configurations = standalone_configurator.config_for_all
|
65
|
+
end
|
66
|
+
|
64
67
|
desc "Create a new migration"
|
65
68
|
task :new_migration do |t|
|
66
69
|
unless migration = ENV['name']
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "standalone_migrations"
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.10"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Todd Huss", "Michael Grosser"]
|
12
|
-
s.date = "2012-05-
|
12
|
+
s.date = "2012-05-29"
|
13
13
|
s.email = "thuss@gabrito.com"
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"README.markdown"
|
@@ -34,7 +34,7 @@ Gem::Specification.new do |s|
|
|
34
34
|
]
|
35
35
|
s.homepage = "http://github.com/thuss/standalone-migrations"
|
36
36
|
s.require_paths = ["lib"]
|
37
|
-
s.rubygems_version = "1.8.
|
37
|
+
s.rubygems_version = "1.8.24"
|
38
38
|
s.summary = "A thin wrapper to use Rails Migrations in non Rails projects"
|
39
39
|
|
40
40
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
@@ -1,46 +1,60 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: standalone_migrations
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 3
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
- 10
|
10
|
+
version: 1.0.10
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Todd Huss
|
9
14
|
- Michael Grosser
|
10
15
|
autorequire:
|
11
16
|
bindir: bin
|
12
17
|
cert_chain: []
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
requirement: &
|
18
|
+
|
19
|
+
date: 2012-05-29 00:00:00 Z
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
18
23
|
none: false
|
19
|
-
requirements:
|
20
|
-
- -
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
|
23
|
-
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
hash: 3
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
version: "0"
|
24
31
|
prerelease: false
|
25
|
-
version_requirements: *70316416937560
|
26
|
-
- !ruby/object:Gem::Dependency
|
27
|
-
name: activerecord
|
28
|
-
requirement: &70316416936300 !ruby/object:Gem::Requirement
|
29
|
-
none: false
|
30
|
-
requirements:
|
31
|
-
- - ! '>='
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '3'
|
34
32
|
type: :runtime
|
33
|
+
name: rake
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
37
|
+
none: false
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
hash: 5
|
42
|
+
segments:
|
43
|
+
- 3
|
44
|
+
version: "3"
|
35
45
|
prerelease: false
|
36
|
-
|
46
|
+
type: :runtime
|
47
|
+
name: activerecord
|
48
|
+
version_requirements: *id002
|
37
49
|
description:
|
38
50
|
email: thuss@gabrito.com
|
39
51
|
executables: []
|
52
|
+
|
40
53
|
extensions: []
|
41
|
-
|
54
|
+
|
55
|
+
extra_rdoc_files:
|
42
56
|
- README.markdown
|
43
|
-
files:
|
57
|
+
files:
|
44
58
|
- Gemfile
|
45
59
|
- Gemfile.lock
|
46
60
|
- MIT-LICENSE
|
@@ -59,26 +73,36 @@ files:
|
|
59
73
|
- vendor/migration_helpers/lib/migration_helper.rb
|
60
74
|
homepage: http://github.com/thuss/standalone-migrations
|
61
75
|
licenses: []
|
76
|
+
|
62
77
|
post_install_message:
|
63
78
|
rdoc_options: []
|
64
|
-
|
79
|
+
|
80
|
+
require_paths:
|
65
81
|
- lib
|
66
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
82
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
67
83
|
none: false
|
68
|
-
requirements:
|
69
|
-
- -
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
|
72
|
-
|
84
|
+
requirements:
|
85
|
+
- - ">="
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
hash: 3
|
88
|
+
segments:
|
89
|
+
- 0
|
90
|
+
version: "0"
|
91
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
92
|
none: false
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
hash: 3
|
97
|
+
segments:
|
98
|
+
- 0
|
99
|
+
version: "0"
|
78
100
|
requirements: []
|
101
|
+
|
79
102
|
rubyforge_project:
|
80
|
-
rubygems_version: 1.8.
|
103
|
+
rubygems_version: 1.8.24
|
81
104
|
signing_key:
|
82
105
|
specification_version: 3
|
83
106
|
summary: A thin wrapper to use Rails Migrations in non Rails projects
|
84
107
|
test_files: []
|
108
|
+
|