voraz-dr_nic_magic_models 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +9 -0
- data/History.txt +33 -0
- data/Manifest.txt +56 -0
- data/README +0 -0
- data/Rakefile +149 -0
- data/install.rb +30 -0
- data/lib/base.rb +12 -0
- 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/inflector.rb +14 -0
- data/lib/dr_nic_magic_models/magic_model.rb +135 -0
- data/lib/dr_nic_magic_models/schema.rb +270 -0
- data/lib/dr_nic_magic_models/validations.rb +46 -0
- data/lib/dr_nic_magic_models/version.rb +9 -0
- data/lib/dr_nic_magic_models.rb +34 -0
- data/lib/module.rb +33 -0
- data/lib/rails.rb +19 -0
- data/scripts/txt2html +66 -0
- data/scripts/txt2js +58 -0
- data/test/abstract_unit.rb +70 -0
- data/test/connections/native_mysql/connection.rb +14 -0
- data/test/connections/native_postgresql/connection.rb +12 -0
- data/test/connections/native_sqlite/connection.rb +10 -0
- data/test/dummy_test.rb +13 -0
- data/test/env_test.rb +10 -0
- data/test/fixtures/.DS_Store +0 -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 -0
- data/test/fixtures/db_definitions/mysql.sql +58 -0
- data/test/fixtures/db_definitions/postgresql.sql +56 -0
- data/test/fixtures/db_definitions/sqlite.sql +49 -0
- data/test/fixtures/fun_users.yml +14 -0
- data/test/fixtures/group_memberships.yml +4 -0
- data/test/fixtures/group_tag.yml +11 -0
- data/test/fixtures/groups.yml +12 -0
- data/test/foreign_keys_test.rb +0 -0
- data/test/fun_user_plus.rb +2 -0
- data/test/invisible_model_access_test.rb +71 -0
- data/test/invisible_model_assoc_test.rb +61 -0
- data/test/invisible_model_classes_test.rb +23 -0
- data/test/magic_module_test.rb +20 -0
- data/test/test_existing_model.rb +20 -0
- data/test.db +0 -0
- data/website/index.html +409 -0
- data/website/index.txt +291 -0
- data/website/javascripts/rounded_corners_lite.inc.js +285 -0
- data/website/stylesheets/screen.css +106 -0
- data/website/template.js +3 -0
- data/website/template.rhtml +55 -0
- data/website/version-raw.js +3 -0
- data/website/version-raw.txt +2 -0
- data/website/version.js +4 -0
- data/website/version.txt +3 -0
- metadata +123 -0
@@ -0,0 +1,106 @@
|
|
1
|
+
body {
|
2
|
+
background-color: #115;
|
3
|
+
font-family: "Georgia", sans-serif;
|
4
|
+
font-size: 16px;
|
5
|
+
line-height: 1.6em;
|
6
|
+
padding: 1.6em 0 0 0;
|
7
|
+
color: #eee;
|
8
|
+
}
|
9
|
+
h1, h2, h3, h4, h5, h6 {
|
10
|
+
color: #77f;
|
11
|
+
}
|
12
|
+
h1 {
|
13
|
+
font-family: sans-serif;
|
14
|
+
font-weight: normal;
|
15
|
+
font-size: 4em;
|
16
|
+
line-height: 0.8em;
|
17
|
+
letter-spacing: -0.1ex;
|
18
|
+
}
|
19
|
+
li {
|
20
|
+
padding: 0;
|
21
|
+
margin: 0;
|
22
|
+
list-style-type: square;
|
23
|
+
}
|
24
|
+
a {
|
25
|
+
color: #99f;
|
26
|
+
font-weight: normal;
|
27
|
+
text-decoration: underline;
|
28
|
+
}
|
29
|
+
blockquote {
|
30
|
+
font-size: 90%;
|
31
|
+
font-style: italic;
|
32
|
+
border-left: 1px solid #eee;
|
33
|
+
padding-left: 1em;
|
34
|
+
}
|
35
|
+
.caps {
|
36
|
+
font-size: 80%;
|
37
|
+
}
|
38
|
+
|
39
|
+
#main {
|
40
|
+
width: 55em;
|
41
|
+
padding: 0;
|
42
|
+
margin: 0 auto;
|
43
|
+
}
|
44
|
+
.coda {
|
45
|
+
text-align: right;
|
46
|
+
color: #77f;
|
47
|
+
font-size: smaller;
|
48
|
+
}
|
49
|
+
|
50
|
+
pre, code {
|
51
|
+
font-family: monospace;
|
52
|
+
font-size: 90%;
|
53
|
+
line-height: 1.4em;
|
54
|
+
color: #ff8;
|
55
|
+
background-color: #111;
|
56
|
+
padding: 2px 10px 2px 10px;
|
57
|
+
}
|
58
|
+
.comment { color: #aaa; font-style: italic; }
|
59
|
+
.keyword { color: #eff; font-weight: bold; }
|
60
|
+
.punct { color: #eee; font-weight: bold; }
|
61
|
+
.symbol { color: #0bb; }
|
62
|
+
.string { color: #6b4; }
|
63
|
+
.ident { color: #ff8; }
|
64
|
+
.constant { color: #66f; }
|
65
|
+
.regex { color: #ec6; }
|
66
|
+
.number { color: #F99; }
|
67
|
+
.expr { color: #227; }
|
68
|
+
|
69
|
+
#version {
|
70
|
+
float: right;
|
71
|
+
text-align: right;
|
72
|
+
font-family: sans-serif;
|
73
|
+
font-weight: normal;
|
74
|
+
background-color: #ff8;
|
75
|
+
color: #66f;
|
76
|
+
padding: 15px 20px 10px 20px;
|
77
|
+
margin: 0 auto;
|
78
|
+
border: 3px solid #66f;
|
79
|
+
}
|
80
|
+
|
81
|
+
#version .numbers {
|
82
|
+
display: block;
|
83
|
+
font-size: 4em;
|
84
|
+
line-height: 0.8em;
|
85
|
+
letter-spacing: -0.1ex;
|
86
|
+
}
|
87
|
+
|
88
|
+
#version a {
|
89
|
+
text-decoration: none;
|
90
|
+
}
|
91
|
+
|
92
|
+
.clickable {
|
93
|
+
cursor: pointer;
|
94
|
+
cursor: hand;
|
95
|
+
}
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
.ads {
|
100
|
+
background-color: #7777FF;
|
101
|
+
padding: 10px;
|
102
|
+
}
|
103
|
+
.ads h4 {
|
104
|
+
color: white;
|
105
|
+
margin: 0px;
|
106
|
+
}
|
data/website/template.js
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<link rel="stylesheet" href="stylesheets/screen.css" type="text/css" media="screen" />
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
+
<title>
|
8
|
+
<%= title %>
|
9
|
+
</title>
|
10
|
+
<script src="javascripts/rounded_corners_lite.inc.js" type="text/javascript"></script>
|
11
|
+
<style>
|
12
|
+
|
13
|
+
</style>
|
14
|
+
<script type="text/javascript" src="version-raw.js"></script>
|
15
|
+
<script type="text/javascript">
|
16
|
+
window.onload = function() {
|
17
|
+
settings = {
|
18
|
+
tl: { radius: 10 },
|
19
|
+
tr: { radius: 10 },
|
20
|
+
bl: { radius: 10 },
|
21
|
+
br: { radius: 10 },
|
22
|
+
antiAlias: true,
|
23
|
+
autoPad: true,
|
24
|
+
validTags: ["div"]
|
25
|
+
}
|
26
|
+
var versionBox = new curvyCorners(settings, document.getElementById("version"));
|
27
|
+
versionBox.applyCornersToAll();
|
28
|
+
|
29
|
+
document.getElementById("version_num").innerHTML = version;
|
30
|
+
}
|
31
|
+
</script>
|
32
|
+
</head>
|
33
|
+
<body>
|
34
|
+
<div id="main">
|
35
|
+
<p><a href="/">↩ More Magic</a></p>
|
36
|
+
|
37
|
+
<div id="version" class="clickable" onclick='document.location = "<%= download %>"; return false'>
|
38
|
+
Get Version
|
39
|
+
<a id="version_num" href="<%= download %>" class="numbers"></a>
|
40
|
+
</div>
|
41
|
+
<h1><%= title %></h1>
|
42
|
+
<%= body %>
|
43
|
+
<p class="coda">
|
44
|
+
<a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, <%= modified.pretty %><br>
|
45
|
+
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
46
|
+
</p>
|
47
|
+
</div>
|
48
|
+
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
|
49
|
+
</script>
|
50
|
+
<script type="text/javascript">
|
51
|
+
_uacct = "UA-567811-3";
|
52
|
+
urchinTracker();
|
53
|
+
</script>
|
54
|
+
</body>
|
55
|
+
</html>
|
data/website/version.js
ADDED
data/website/version.txt
ADDED
metadata
ADDED
@@ -0,0 +1,123 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: voraz-dr_nic_magic_models
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- nicwilliams
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-08-10 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: hoe
|
17
|
+
type: :development
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 2.3.3
|
24
|
+
version:
|
25
|
+
description: Dr Nic's Magic Models - Invisible validations, assocations and Active Record models themselves!
|
26
|
+
email: drnicwilliams@gmail.com
|
27
|
+
executables: []
|
28
|
+
|
29
|
+
extensions: []
|
30
|
+
|
31
|
+
extra_rdoc_files:
|
32
|
+
- History.txt
|
33
|
+
- Manifest.txt
|
34
|
+
- website/index.txt
|
35
|
+
- website/version-raw.txt
|
36
|
+
- website/version.txt
|
37
|
+
files:
|
38
|
+
- CHANGELOG
|
39
|
+
- History.txt
|
40
|
+
- Manifest.txt
|
41
|
+
- README
|
42
|
+
- Rakefile
|
43
|
+
- install.rb
|
44
|
+
- lib/base.rb
|
45
|
+
- lib/connection_adapters/abstract/schema_statements.rb
|
46
|
+
- lib/connection_adapters/abstract_adapter.rb
|
47
|
+
- lib/connection_adapters/mysql_adapter.rb
|
48
|
+
- lib/connection_adapters/postgresql_adapter.rb
|
49
|
+
- lib/dr_nic_magic_models.rb
|
50
|
+
- lib/dr_nic_magic_models/inflector.rb
|
51
|
+
- lib/dr_nic_magic_models/magic_model.rb
|
52
|
+
- lib/dr_nic_magic_models/schema.rb
|
53
|
+
- lib/dr_nic_magic_models/validations.rb
|
54
|
+
- lib/dr_nic_magic_models/version.rb
|
55
|
+
- lib/module.rb
|
56
|
+
- lib/rails.rb
|
57
|
+
- scripts/txt2html
|
58
|
+
- scripts/txt2js
|
59
|
+
- test.db
|
60
|
+
- test/abstract_unit.rb
|
61
|
+
- test/connections/native_mysql/connection.rb
|
62
|
+
- test/connections/native_postgresql/connection.rb
|
63
|
+
- test/connections/native_sqlite/connection.rb
|
64
|
+
- test/dummy_test.rb
|
65
|
+
- test/env_test.rb
|
66
|
+
- test/fixtures/.DS_Store
|
67
|
+
- test/fixtures/adjectives.yml
|
68
|
+
- test/fixtures/adjectives_fun_users.yml
|
69
|
+
- test/fixtures/db_definitions/mysql.drop.sql
|
70
|
+
- test/fixtures/db_definitions/mysql.sql
|
71
|
+
- test/fixtures/db_definitions/postgresql.sql
|
72
|
+
- test/fixtures/db_definitions/sqlite.sql
|
73
|
+
- test/fixtures/fun_users.yml
|
74
|
+
- test/fixtures/group_memberships.yml
|
75
|
+
- test/fixtures/group_tag.yml
|
76
|
+
- test/fixtures/groups.yml
|
77
|
+
- test/foreign_keys_test.rb
|
78
|
+
- test/fun_user_plus.rb
|
79
|
+
- test/invisible_model_access_test.rb
|
80
|
+
- test/invisible_model_assoc_test.rb
|
81
|
+
- test/invisible_model_classes_test.rb
|
82
|
+
- test/magic_module_test.rb
|
83
|
+
- test/test_existing_model.rb
|
84
|
+
- website/index.html
|
85
|
+
- website/index.txt
|
86
|
+
- website/javascripts/rounded_corners_lite.inc.js
|
87
|
+
- website/stylesheets/screen.css
|
88
|
+
- website/template.js
|
89
|
+
- website/template.rhtml
|
90
|
+
- website/version-raw.js
|
91
|
+
- website/version-raw.txt
|
92
|
+
- website/version.js
|
93
|
+
- website/version.txt
|
94
|
+
has_rdoc: false
|
95
|
+
homepage: http://magicmodels.rubyforge.org
|
96
|
+
licenses:
|
97
|
+
post_install_message:
|
98
|
+
rdoc_options:
|
99
|
+
- --main
|
100
|
+
- README.txt
|
101
|
+
require_paths:
|
102
|
+
- lib
|
103
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - ">="
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: "0"
|
108
|
+
version:
|
109
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: "0"
|
114
|
+
version:
|
115
|
+
requirements: []
|
116
|
+
|
117
|
+
rubyforge_project: magicmodels
|
118
|
+
rubygems_version: 1.3.5
|
119
|
+
signing_key:
|
120
|
+
specification_version: 3
|
121
|
+
summary: Dr Nic's Magic Models - Invisible validations, assocations and Active Record models themselves!
|
122
|
+
test_files:
|
123
|
+
- test/test_existing_model.rb
|