schema_comments 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. data/.gitignore +4 -0
  2. data/LICENSE.txt +60 -0
  3. data/README +149 -0
  4. data/Rakefile +46 -0
  5. data/VERSION +1 -0
  6. data/autotest/discover.rb +10 -0
  7. data/init.rb +4 -0
  8. data/lib/annotate_models.rb +224 -0
  9. data/lib/schema_comments/base.rb +72 -0
  10. data/lib/schema_comments/connection_adapters.rb +170 -0
  11. data/lib/schema_comments/migration.rb +20 -0
  12. data/lib/schema_comments/migrator.rb +20 -0
  13. data/lib/schema_comments/schema.rb +20 -0
  14. data/lib/schema_comments/schema_comment.rb +195 -0
  15. data/lib/schema_comments/schema_dumper.rb +160 -0
  16. data/lib/schema_comments.rb +53 -0
  17. data/spec/.gitignore +3 -0
  18. data/spec/annotate_models_spec.rb +56 -0
  19. data/spec/database.yml +13 -0
  20. data/spec/fixtures/.gitignore +0 -0
  21. data/spec/i18n_export_spec.rb +48 -0
  22. data/spec/migration_spec.rb +96 -0
  23. data/spec/migrations/valid/001_create_products.rb +17 -0
  24. data/spec/migrations/valid/002_rename_products.rb +10 -0
  25. data/spec/migrations/valid/003_rename_products_again.rb +10 -0
  26. data/spec/migrations/valid/004_remove_price.rb +10 -0
  27. data/spec/migrations/valid/005_change_products_name.rb +10 -0
  28. data/spec/migrations/valid/006_change_products_name_with_comment.rb +10 -0
  29. data/spec/resources/models/product.rb +2 -0
  30. data/spec/resources/models/product_name.rb +2 -0
  31. data/spec/schema.rb +2 -0
  32. data/spec/schema_dumper_spec.rb +74 -0
  33. data/spec/spec.opts +6 -0
  34. data/spec/spec_helper.rb +46 -0
  35. data/spec/yaml_export_spec.rb +52 -0
  36. data/tasks/annotate_models_tasks.rake +12 -0
  37. data/tasks/schema_comments.rake +204 -0
  38. metadata +115 -0
metadata ADDED
@@ -0,0 +1,115 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: schema_comments
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - akimatter
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-10-29 00:00:00 +09:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rspec
17
+ type: :development
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 1.2.9
24
+ version:
25
+ description: schema_comments generates extra methods dynamically for attribute which has options
26
+ email: akm2000@gmail.com
27
+ executables: []
28
+
29
+ extensions: []
30
+
31
+ extra_rdoc_files:
32
+ - LICENSE.txt
33
+ - README
34
+ files:
35
+ - .gitignore
36
+ - LICENSE.txt
37
+ - README
38
+ - Rakefile
39
+ - VERSION
40
+ - autotest/discover.rb
41
+ - init.rb
42
+ - lib/annotate_models.rb
43
+ - lib/schema_comments.rb
44
+ - lib/schema_comments/base.rb
45
+ - lib/schema_comments/connection_adapters.rb
46
+ - lib/schema_comments/migration.rb
47
+ - lib/schema_comments/migrator.rb
48
+ - lib/schema_comments/schema.rb
49
+ - lib/schema_comments/schema_comment.rb
50
+ - lib/schema_comments/schema_dumper.rb
51
+ - spec/.gitignore
52
+ - spec/annotate_models_spec.rb
53
+ - spec/database.yml
54
+ - spec/fixtures/.gitignore
55
+ - spec/i18n_export_spec.rb
56
+ - spec/migration_spec.rb
57
+ - spec/migrations/valid/001_create_products.rb
58
+ - spec/migrations/valid/002_rename_products.rb
59
+ - spec/migrations/valid/003_rename_products_again.rb
60
+ - spec/migrations/valid/004_remove_price.rb
61
+ - spec/migrations/valid/005_change_products_name.rb
62
+ - spec/migrations/valid/006_change_products_name_with_comment.rb
63
+ - spec/resources/models/product.rb
64
+ - spec/resources/models/product_name.rb
65
+ - spec/schema.rb
66
+ - spec/schema_dumper_spec.rb
67
+ - spec/spec.opts
68
+ - spec/spec_helper.rb
69
+ - spec/yaml_export_spec.rb
70
+ - tasks/annotate_models_tasks.rake
71
+ - tasks/schema_comments.rake
72
+ has_rdoc: true
73
+ homepage: http://github.com/akm/schema_comments
74
+ licenses: []
75
+
76
+ post_install_message:
77
+ rdoc_options:
78
+ - --charset=UTF-8
79
+ require_paths:
80
+ - lib
81
+ required_ruby_version: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ version: "0"
86
+ version:
87
+ required_rubygems_version: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: "0"
92
+ version:
93
+ requirements: []
94
+
95
+ rubyforge_project:
96
+ rubygems_version: 1.3.5
97
+ signing_key:
98
+ specification_version: 3
99
+ summary: schema_comments generates extra methods dynamically
100
+ test_files:
101
+ - spec/annotate_models_spec.rb
102
+ - spec/i18n_export_spec.rb
103
+ - spec/migration_spec.rb
104
+ - spec/migrations/valid/001_create_products.rb
105
+ - spec/migrations/valid/002_rename_products.rb
106
+ - spec/migrations/valid/003_rename_products_again.rb
107
+ - spec/migrations/valid/004_remove_price.rb
108
+ - spec/migrations/valid/005_change_products_name.rb
109
+ - spec/migrations/valid/006_change_products_name_with_comment.rb
110
+ - spec/resources/models/product.rb
111
+ - spec/resources/models/product_name.rb
112
+ - spec/schema.rb
113
+ - spec/schema_dumper_spec.rb
114
+ - spec/spec_helper.rb
115
+ - spec/yaml_export_spec.rb