data_plan 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. data/README +27 -13
  2. metadata +5 -5
data/README CHANGED
@@ -1,12 +1,14 @@
1
1
  == Data Plan
2
2
 
3
- A tool for easy migration generation. Works with Sinatra/ActiveRecord and with Rails too.
3
+ A tool for easy migration generation. Works with Sinatra/ActiveRecord and
4
+ with Rails too.
4
5
 
5
6
  == Usage
6
7
 
7
8
  Before use in Sinatra, install 'sinatra-activerecord' gem.
8
- It extends Sinatra with extension methods and Rake tasks for dealing with an SQL database using the ActiveRecord ORM.
9
- Follow it's instructions and create a Rakefile with migration commands.
9
+ It extends Sinatra with extension methods and Rake tasks for dealing with
10
+ an SQL database using the ActiveRecord ORM.
11
+ Follow it's instructions and create a Rakefile with migration commands.
10
12
  After that you can invoke 'rake db:create_migration' and get migrations.
11
13
 
12
14
  And then, magic begins.
@@ -14,27 +16,39 @@ And then, magic begins.
14
16
  require 'data_plan/generators/migration/sinatra'
15
17
  * Create db/plan.rb file and describe desired db schema in it.
16
18
 
17
- Now, when you create a migration, DataPlan will generate a new migration and put all differencies
18
- between plan.rb and your current database schema! You can migrate immediately, or add some
19
- more tweaks to your migration, or something else.
19
+ Now, when you create a migration, DataPlan will find and put all
20
+ differencies between plan.rb and your current database schema!
21
+ That's it, you get migration code for free. You can migrate immediately,
22
+ or add some more tweaks to your migration, or something else.
20
23
 
21
- Why is it great? Because you don't need to remember all that syntax like
22
- change_column, add_column, etc - you just modify your schema (in the plan.rb).
24
+ Why is it great?
25
+ * You have the one place (plan.rb) where you write db schema and
26
+ comments on it.
27
+ * You don't need to remember all that syntax like
28
+ change_column, add_column, etc. You just write the schema in plan.rb
29
+ file and get migrations code for free.
23
30
 
24
- Nice bonus: migrations are automatically named (of course you may override name suggested).
31
+ Nice bonus: migrations are automatically named (of course you may override
32
+ name suggested).
25
33
 
26
34
  == How to use with Rails
27
35
  Copy from the gem the folder
28
- GEMROOT/lib/data_plan/generators/migration/*
36
+ GEMROOT/lib/data_plan/generators/migration/*
29
37
  to the Rails project as follows:
30
- YOURAPPROOT/lib/generators/migration/*
31
- Thats it, Data Plan now in your rails app, and you can invoke 'script/generate migration'
38
+ YOURAPPROOT/lib/generators/migration/*
39
+ Thats it, Data Plan now in your rails app,
40
+ and you can invoke 'script/generate migration'
32
41
  and get migrations auto-generated as described above.
33
42
 
34
43
  == How to install
35
44
 
36
45
  gem install data_plan
37
46
 
47
+ == Ruby versions
48
+ Because Sinatra-ActiveRecord works only with Ruby 1.9, DataPlan works with 1.9 for Sinatra.
49
+ For Rails, it should work both for 1.8 and 1.9.
50
+ Only (Sinatra-ActiveRecord 1.1.2 + ruby 1.9) and (Rails 2.3 + ruby 1.8) was tested.
51
+
38
52
  == Todo
39
53
 
40
54
  Indices are partially supported at the moment.
@@ -54,4 +68,4 @@ Pavel Vasev [ pavel.vasev@gmail.com ]
54
68
 
55
69
  Released under the MIT license (included)
56
70
 
57
- p.s. Schema-Definition plugin is hugely based on Auto-Migrations by PJ Hyett [ pjhyett@gmail.com ]
71
+ p.s. Schema-Definition plugin is hugely based on Auto-Migrations by PJ Hyett
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: data_plan
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Pavel Vasev
@@ -38,8 +38,8 @@ files:
38
38
  - LICENSE
39
39
  - test/test_data_plan.rb
40
40
  homepage: http://rubygems.org/gems/data_plan
41
- licenses: []
42
-
41
+ licenses:
42
+ - MIT
43
43
  post_install_message:
44
44
  rdoc_options: []
45
45