migrant 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source :gemcutter
2
2
 
3
- gem "rails"
3
+ gem "rails", ">= 3.0.0"
4
4
 
5
5
  group :development do
6
6
  gem "thoughtbot-shoulda"
data/Gemfile.lock CHANGED
@@ -83,7 +83,7 @@ PLATFORMS
83
83
  DEPENDENCIES
84
84
  ansi
85
85
  jeweler
86
- rails
86
+ rails (>= 3.0.0)
87
87
  simplecov
88
88
  sqlite3
89
89
  thoughtbot-shoulda
data/README.rdoc CHANGED
@@ -31,7 +31,7 @@ Start by creating some models with the structure you need:
31
31
  structure do
32
32
  name "The kernel's favourite fried chickens"
33
33
  website "http://www.google.co.za/"
34
- address ["11 Test Drive", "Gardens", "Cape Town" ,"South Africa"].join("\n")
34
+ address :text
35
35
  date_established Time.now - 300.years
36
36
  end
37
37
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.2
@@ -3,6 +3,9 @@ module Migrant
3
3
  TABS = ' ' # Tabs to spaces * 2
4
4
  NEWLINE = "\n "
5
5
  def run
6
+ # Ensure db/migrate path exists before starting
7
+ FileUtils.mkdir_p(Rails.root.join('db', 'migrate'))
8
+
6
9
  migrator = ActiveRecord::Migrator.new(:up, migrations_path)
7
10
 
8
11
  unless migrator.pending_migrations.blank?
data/migrant.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{migrant}
8
- s.version = "1.0.1"
8
+ s.version = "1.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Pascal Houliston"]
12
- s.date = %q{2011-02-28}
12
+ s.date = %q{2011-03-01}
13
13
  s.description = %q{Easier schema management for Rails that compliments your domain model.}
14
14
  s.email = %q{101pascal@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -143,7 +143,7 @@ Gem::Specification.new do |s|
143
143
  s.specification_version = 3
144
144
 
145
145
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
146
- s.add_runtime_dependency(%q<rails>, [">= 0"])
146
+ s.add_runtime_dependency(%q<rails>, [">= 3.0.0"])
147
147
  s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
148
148
  s.add_development_dependency(%q<ansi>, [">= 0"])
149
149
  s.add_development_dependency(%q<jeweler>, [">= 0"])
@@ -151,7 +151,7 @@ Gem::Specification.new do |s|
151
151
  s.add_development_dependency(%q<sqlite3>, [">= 0"])
152
152
  s.add_development_dependency(%q<simplecov>, [">= 0"])
153
153
  else
154
- s.add_dependency(%q<rails>, [">= 0"])
154
+ s.add_dependency(%q<rails>, [">= 3.0.0"])
155
155
  s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
156
156
  s.add_dependency(%q<ansi>, [">= 0"])
157
157
  s.add_dependency(%q<jeweler>, [">= 0"])
@@ -160,7 +160,7 @@ Gem::Specification.new do |s|
160
160
  s.add_dependency(%q<simplecov>, [">= 0"])
161
161
  end
162
162
  else
163
- s.add_dependency(%q<rails>, [">= 0"])
163
+ s.add_dependency(%q<rails>, [">= 3.0.0"])
164
164
  s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
165
165
  s.add_dependency(%q<ansi>, [">= 0"])
166
166
  s.add_dependency(%q<jeweler>, [">= 0"])
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: migrant
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.1
5
+ version: 1.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Pascal Houliston
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-02-28 00:00:00 +00:00
13
+ date: 2011-03-01 00:00:00 +00:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: "0"
23
+ version: 3.0.0
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: *id001
@@ -192,7 +192,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
192
192
  requirements:
193
193
  - - ">="
194
194
  - !ruby/object:Gem::Version
195
- hash: 333324173
195
+ hash: -270062193
196
196
  segments:
197
197
  - 0
198
198
  version: "0"