dr_nic_magic_models 0.7.1 → 0.8.0

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 (39) hide show
  1. data/Rakefile +9 -9
  2. data/lib/base.rb +10 -95
  3. data/lib/connection_adapters/abstract/schema_statements.rb +0 -0
  4. data/lib/connection_adapters/abstract_adapter.rb +32 -0
  5. data/lib/connection_adapters/mysql_adapter.rb +42 -0
  6. data/lib/connection_adapters/postgresql_adapter.rb +45 -0
  7. data/lib/dr_nic_magic_models/schema.rb +210 -8
  8. data/lib/dr_nic_magic_models/validations.rb +35 -18
  9. data/lib/dr_nic_magic_models/version.rb +2 -2
  10. data/lib/dr_nic_magic_models.rb +13 -2
  11. data/lib/module.rb +0 -18
  12. data/lib/rails.rb +19 -0
  13. data/lib/schema_dumper.rb +0 -0
  14. data/scripts/txt2js +57 -0
  15. data/test/connections/native_postgresql/connection.rb +14 -0
  16. data/test/fixtures/adjectives.yml +3 -0
  17. data/test/fixtures/adjectives_fun_users.yml +3 -0
  18. data/test/fixtures/db_definitions/mysql.drop.sql +4 -30
  19. data/test/fixtures/db_definitions/mysql.sql +30 -2
  20. data/test/fixtures/db_definitions/postgresql.drop.sql +4 -0
  21. data/test/fixtures/db_definitions/postgresql.sql +56 -0
  22. data/test/fixtures/fun_users.yml +8 -1
  23. data/test/fixtures/group_tag.yml +3 -1
  24. data/test/fixtures/groups.yml +9 -1
  25. data/test/foreign_keys_test.rb +0 -0
  26. data/test/fun_user_plus.rb +2 -0
  27. data/test/invisible_model_access_test.rb +35 -7
  28. data/test/invisible_model_assoc_test.rb +34 -19
  29. data/test/invisible_model_classes_test.rb +5 -1
  30. data/website/index.html +24 -4
  31. data/website/index.txt +9 -1
  32. data/website/template.js +3 -0
  33. data/website/template.rhtml +10 -1
  34. data/website/version-raw.js +3 -0
  35. data/website/version-raw.txt +1 -0
  36. data/website/version.js +4 -0
  37. data/website/version.txt +3 -0
  38. metadata +32 -19
  39. data/lib/dr_nic_magic_models/associations.rb +0 -12
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: dr_nic_magic_models
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.7.1
7
- date: 2006-08-12 00:00:00 +02:00
6
+ version: 0.8.0
7
+ date: 2006-09-20 00:00:00 +02:00
8
8
  summary: Invisible validations, assocations and Active Record models themselves!
9
9
  require_paths:
10
10
  - lib
@@ -33,40 +33,61 @@ files:
33
33
  - README
34
34
  - CHANGELOG
35
35
  - lib/dr_nic_magic_models
36
+ - lib/connection_adapters
36
37
  - lib/dr_nic_magic_models.rb
37
- - lib/base.rb
38
38
  - lib/module.rb
39
- - lib/dr_nic_magic_models/associations.rb
40
- - lib/dr_nic_magic_models/schema.rb
39
+ - lib/base.rb
40
+ - lib/schema_dumper.rb
41
+ - lib/rails.rb
41
42
  - lib/dr_nic_magic_models/validations.rb
43
+ - lib/dr_nic_magic_models/schema.rb
42
44
  - lib/dr_nic_magic_models/version.rb
45
+ - lib/connection_adapters/abstract
46
+ - lib/connection_adapters/abstract_adapter.rb
47
+ - lib/connection_adapters/postgresql_adapter.rb
48
+ - lib/connection_adapters/mysql_adapter.rb
49
+ - lib/connection_adapters/abstract/schema_statements.rb
43
50
  - test/connections
44
51
  - test/fixtures
45
- - test/dummy_test.rb
46
- - test/env_test.rb
47
52
  - test/invisible_model_classes_test.rb
48
53
  - test/abstract_unit.rb
54
+ - test/foreign_keys_test.rb
49
55
  - test/invisible_model_access_test.rb
56
+ - test/env_test.rb
57
+ - test/dummy_test.rb
50
58
  - test/invisible_model_assoc_test.rb
59
+ - test/fun_user_plus.rb
51
60
  - test/connections/native_mysql
61
+ - test/connections/native_postgresql
52
62
  - test/connections/native_mysql/connection.rb
63
+ - test/connections/native_postgresql/connection.rb
53
64
  - test/fixtures/db_definitions
54
65
  - test/fixtures/groups.yml
55
66
  - test/fixtures/group_tag.yml
56
- - test/fixtures/group_memberships.yml
57
67
  - test/fixtures/fun_users.yml
68
+ - test/fixtures/group_memberships.yml
69
+ - test/fixtures/adjectives.yml
70
+ - test/fixtures/adjectives_fun_users.yml
58
71
  - test/fixtures/db_definitions/mysql.sql
59
72
  - test/fixtures/db_definitions/mysql.drop.sql
60
- - website/index.html
73
+ - test/fixtures/db_definitions/postgresql.drop.sql
74
+ - test/fixtures/db_definitions/postgresql.sql
61
75
  - website/javascripts
62
76
  - website/stylesheets
63
77
  - website/template.rhtml
78
+ - website/version.js
79
+ - website/version.txt
64
80
  - website/index.txt
81
+ - website/template.js
82
+ - website/version-raw.js
83
+ - website/index.html
84
+ - website/version-raw.txt
65
85
  - website/javascripts/rounded_corners_lite.inc.js
66
86
  - website/stylesheets/screen.css
67
87
  - scripts/rubyforge-orig
68
88
  - scripts/txt2html
69
89
  - scripts/http-access2-2.0.6.gem
90
+ - scripts/txt2js
70
91
  test_files: []
71
92
 
72
93
  rdoc_options:
@@ -80,13 +101,5 @@ extensions: []
80
101
 
81
102
  requirements: []
82
103
 
83
- dependencies:
84
- - !ruby/object:Gem::Dependency
85
- name: activerecord
86
- version_requirement:
87
- version_requirements: !ruby/object:Gem::Version::Requirement
88
- requirements:
89
- - - ">="
90
- - !ruby/object:Gem::Version
91
- version: 1.14.3
92
- version:
104
+ dependencies: []
105
+
@@ -1,12 +0,0 @@
1
- module DrNicMagicModels
2
- module Associations
3
- def self.append_features(base)
4
- super
5
- base.extend(ClassMethods)
6
- end
7
-
8
- # Composite key versions of Association functions
9
- module ClassMethods
10
- end
11
- end
12
- end