migrate-well 0.1.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,11 @@
1
+ ## 0.2 (February 15, 2011)
2
+
3
+ * Use more sensible options names
4
+
5
+ ## 0.1.1 (February 9, 2011)
6
+
7
+ * Relax ActiveRecord version dependency
8
+
9
+ ## 0.1 (February 9, 2011)
10
+
11
+ * First release
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  migrate-well
2
2
  ============
3
3
 
4
- migrate-well is a very simple gem for Rails 3. It adds a rake task `db:migrate:well` that runs `rake db:migrate`, `rake db:migrate:redo`, `rake db:test:prepare` and `annotate`.
4
+ migrate-well is a very simple gem for Rails 3. It adds a rake task `db:migrate:well` that runs `rake db:migrate`, `rake db:migrate:redo`, `rake db:test:prepare` and `annotate` (only if the annotate gem is installed).
5
5
 
6
6
  It has been tested with Rails 3.0.3.
7
7
 
@@ -11,14 +11,14 @@ To run: `rake db:migrate:well`
11
11
 
12
12
  Options:
13
13
 
14
- * `without_redo=true` or `wr=true`: don't run the `db:migrate:redo` task
15
- * `without_test_prepare=true` or `wt=true`: don't run the `db:test:prepare` task
16
- * `without_annotate=true` or `wa=true`: don't run the `annotate` command
14
+ * `redo=false`: don't run the `db:migrate:redo` task
15
+ * `test=false`: don't run the `db:test:prepare` task
16
+ * `anno=false`: don't run the `annotate` command
17
17
 
18
18
  Examples:
19
19
 
20
- * run without annotating: `rake db:migrate:well wa=true`
21
- * run without annotating and without redoing the migration: `rake db:migrate:well wr=true wa=true`
20
+ * run without annotating: `rake db:migrate:well anno=false`
21
+ * run without annotating and without redoing the migration: `rake db:migrate:well anno=false redo=false`
22
22
 
23
23
  TODO
24
24
 
@@ -1,3 +1,3 @@
1
1
  module MigrateWell
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2"
3
3
  end
@@ -1,18 +1,16 @@
1
1
  namespace :db do
2
2
  namespace :migrate do
3
- desc 'Run migration (db:migrate), redo it (db:redo), prepare test db (db:test:prepare) and annotate models (annotate). Options: "wr=true": without db:redo; "wt=true": without db:test:prepare; "wa=true": without annotate.'
3
+ desc 'Run migration (db:migrate), redo it (db:redo), prepare test db (db:test:prepare) and annotate models (annotate). Options: "redo=false": without db:redo; "test=false": without db:test:prepare; "anno=false": without annotate.'
4
4
  task :well do
5
+ abort "Aborted because you use removed options. Please use the new options, to see them run rake -D well" if ENV["without_redo"] || ENV["wr"] || ENV["without_test_prepare"] || ENV["wt"] || ENV["without_annotate"] || ENV["wa"]
6
+
5
7
  system_with_echo "rake db:migrate"
8
+
9
+ system_with_echo "rake db:migrate:redo" unless ENV["redo"] == "false"
6
10
 
7
- unless ENV["without_redo"] == "true" || ENV["wr"] == "true"
8
- system_with_echo "rake db:migrate:redo"
9
- end
11
+ system_with_echo "rake db:test:prepare" unless ENV["test"] == "false"
10
12
 
11
- unless ENV["without_test_prepare"] == "true" || ENV["wt"] == "true"
12
- system_with_echo "rake db:test:prepare"
13
- end
14
-
15
- unless ENV["without_annotate"] == "true" || ENV["wa"] == "true"
13
+ unless ENV["anno"] == "false"
16
14
  begin
17
15
  require "annotate"
18
16
  system_with_echo "bundle exec annotate"
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.email = ["florent2@gmail.com"]
11
11
  s.homepage = %q{http://github.com/Florent2/migrate-well}
12
12
  s.summary = %q{Adds a rake task that runs "rake db:migrate", "rake db:migrate:redo", "rake db:test:prepare" and "annotate".}
13
- s.description = %q{Adds a rake task "db:migrate:well" that runs "rake db:migrate", "rake db:migrate:redo", "rake db:test:prepare" and "annotate". Options: "wr=true": without db:redo; "wt=true": without db:test:prepare; "wa=true": without annotate.}
13
+ s.description = %q{Adds a rake task "db:migrate:well" that runs "rake db:migrate", "rake db:migrate:redo", "rake db:test:prepare" and "annotate". Options: "redo:false": without db:redo; "test:false": without db:test:prepare; "anno:false": without annotate.}
14
14
  s.licenses = ["MIT"]
15
15
 
16
16
  s.files = `git ls-files`.split("\n")
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: migrate-well
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.1
5
+ version: "0.2"
6
6
  platform: ruby
7
7
  authors:
8
8
  - Florent Guilleux
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-02-09 00:00:00 -05:00
13
+ date: 2011-02-15 00:00:00 -05:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -24,7 +24,7 @@ dependencies:
24
24
  version: "0"
25
25
  type: :runtime
26
26
  version_requirements: *id001
27
- description: "Adds a rake task \"db:migrate:well\" that runs \"rake db:migrate\", \"rake db:migrate:redo\", \"rake db:test:prepare\" and \"annotate\". Options: \"wr=true\": without db:redo; \"wt=true\": without db:test:prepare; \"wa=true\": without annotate."
27
+ description: "Adds a rake task \"db:migrate:well\" that runs \"rake db:migrate\", \"rake db:migrate:redo\", \"rake db:test:prepare\" and \"annotate\". Options: \"redo:false\": without db:redo; \"test:false\": without db:test:prepare; \"anno:false\": without annotate."
28
28
  email:
29
29
  - florent2@gmail.com
30
30
  executables: []
@@ -35,6 +35,7 @@ extra_rdoc_files: []
35
35
 
36
36
  files:
37
37
  - .gitignore
38
+ - CHANGELOG.md
38
39
  - Gemfile
39
40
  - LICENSE
40
41
  - README.md