dr_nic_magic_models 0.7.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +9 -9
- data/lib/base.rb +10 -95
- data/lib/connection_adapters/abstract/schema_statements.rb +0 -0
- data/lib/connection_adapters/abstract_adapter.rb +32 -0
- data/lib/connection_adapters/mysql_adapter.rb +42 -0
- data/lib/connection_adapters/postgresql_adapter.rb +45 -0
- data/lib/dr_nic_magic_models/schema.rb +210 -8
- data/lib/dr_nic_magic_models/validations.rb +35 -18
- data/lib/dr_nic_magic_models/version.rb +2 -2
- data/lib/dr_nic_magic_models.rb +13 -2
- data/lib/module.rb +0 -18
- data/lib/rails.rb +19 -0
- data/lib/schema_dumper.rb +0 -0
- data/scripts/txt2js +57 -0
- data/test/connections/native_postgresql/connection.rb +14 -0
- data/test/fixtures/adjectives.yml +3 -0
- data/test/fixtures/adjectives_fun_users.yml +3 -0
- data/test/fixtures/db_definitions/mysql.drop.sql +4 -30
- data/test/fixtures/db_definitions/mysql.sql +30 -2
- data/test/fixtures/db_definitions/postgresql.drop.sql +4 -0
- data/test/fixtures/db_definitions/postgresql.sql +56 -0
- data/test/fixtures/fun_users.yml +8 -1
- data/test/fixtures/group_tag.yml +3 -1
- data/test/fixtures/groups.yml +9 -1
- data/test/foreign_keys_test.rb +0 -0
- data/test/fun_user_plus.rb +2 -0
- data/test/invisible_model_access_test.rb +35 -7
- data/test/invisible_model_assoc_test.rb +34 -19
- data/test/invisible_model_classes_test.rb +5 -1
- data/website/index.html +24 -4
- data/website/index.txt +9 -1
- data/website/template.js +3 -0
- data/website/template.rhtml +10 -1
- data/website/version-raw.js +3 -0
- data/website/version-raw.txt +1 -0
- data/website/version.js +4 -0
- data/website/version.txt +3 -0
- metadata +32 -19
- 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
|
-
date: 2006-
|
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/
|
40
|
-
- lib/
|
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
|
-
-
|
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
|
-
|
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
|
+
|