standalone_migrations 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +2 -1
- data/VERSION +1 -1
- data/lib/tasks/standalone_migrations.rb +5 -2
- data/spec/standalone_migrations_spec.rb +19 -0
- data/standalone_migrations.gemspec +1 -1
- metadata +5 -5
data/README.markdown
CHANGED
@@ -2,7 +2,7 @@ Rails migrations in non-Rails (and non Ruby) projects.
|
|
2
2
|
|
3
3
|
WHAT'S NEW
|
4
4
|
==========
|
5
|
-
In the 1.0 release we have moved to using Rails 3 migrations instead of maintaining our own migration related code. Just about anything you can do with Rails 3 migrations you can now do with [Standalone Migrations](https://github.com/thuss/standalone-migrations) too! This removed 95% of the code we have to maintain. Big thanks to [Michael Grosser](http://pragmatig.wordpress.com) for undertaking this major rewrite!
|
5
|
+
In the 1.0.x release we have moved to using Rails 3 migrations instead of maintaining our own migration related code. Just about anything you can do with Rails 3 migrations you can now do with [Standalone Migrations](https://github.com/thuss/standalone-migrations) too! This removed 95% of the code we have to maintain. Big thanks to [Michael Grosser](http://pragmatig.wordpress.com) for undertaking this major rewrite!
|
6
6
|
|
7
7
|
CONTRIBUTE
|
8
8
|
==========
|
@@ -213,5 +213,6 @@ Contributors
|
|
213
213
|
- [Robert J. Berger](http://blog.ibd.com/)
|
214
214
|
- [Federico Builes](http://mheroin.com/)
|
215
215
|
- [Ricardo Valeriano](http://ricardovaleriano.com/)
|
216
|
+
- [Gazler](http://blog.gazler.com/)
|
216
217
|
|
217
218
|
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/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.8
|
@@ -253,6 +253,25 @@ test:
|
|
253
253
|
run('rake db:test:purge')
|
254
254
|
end
|
255
255
|
end
|
256
|
+
|
257
|
+
describe "db:seed" do
|
258
|
+
it "loads" do
|
259
|
+
write("db/seeds.rb", "puts 'LOADEDDD'")
|
260
|
+
run("rake db:seed").should =~ /LOADEDDD/
|
261
|
+
end
|
262
|
+
|
263
|
+
it "does nothing without seeds" do
|
264
|
+
run("rake db:seed").length.should == 0
|
265
|
+
end
|
266
|
+
end
|
267
|
+
|
268
|
+
describe "db:reset" do
|
269
|
+
it "should not error when a seeds file does not exist" do
|
270
|
+
make_migration('yyy')
|
271
|
+
run('rake db:migrate DB=test')
|
272
|
+
run("rake db:reset").should_not raise_error(/rake aborted/)
|
273
|
+
end
|
274
|
+
end
|
256
275
|
|
257
276
|
describe 'db:migrate when environment is specified' do
|
258
277
|
it "runs when using the DB environment variable" do
|
@@ -5,7 +5,7 @@
|
|
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.8"
|
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"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: standalone_migrations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ date: 2012-02-16 00:00:00.000000000Z
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
17
|
-
requirement: &
|
17
|
+
requirement: &70131209500420 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70131209500420
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: activerecord
|
28
|
-
requirement: &
|
28
|
+
requirement: &70131209499080 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: '3'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70131209499080
|
37
37
|
description:
|
38
38
|
email: thuss@gabrito.com
|
39
39
|
executables: []
|