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 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
@@ -1,3 +1,7 @@
1
+
2
+ require 'rubygems'
3
+ require 'bundler/setup'
4
+
1
5
  task :default do
2
6
  sh "rspec spec"
3
7
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.9
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.9"
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-10"
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.17"
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
- version: 1.0.9
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
- date: 2012-05-10 00:00:00.000000000 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: rake
17
- requirement: &70316416937560 !ruby/object:Gem::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
- version: '0'
23
- type: :runtime
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
- version_requirements: *70316416936300
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
- extra_rdoc_files:
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
- require_paths:
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
- version: '0'
72
- required_rubygems_version: !ruby/object:Gem::Requirement
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
- version: '0'
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.17
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
+