ez_model 1.0.6 → 1.0.7
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.
- data/doc/ActiveRecord/SchemaDumper.html +267 -0
- data/doc/ActiveRecord.html +108 -0
- data/doc/EZModel/Generator.html +190 -0
- data/doc/EZModel.html +122 -0
- data/doc/Rmre/Generator.html +848 -0
- data/doc/Rmre.html +122 -0
- data/doc/_index.html +169 -0
- data/doc/class_list.html +47 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +55 -0
- data/doc/css/style.css +322 -0
- data/doc/file.README.html +141 -0
- data/doc/file_list.html +49 -0
- data/doc/frames.html +13 -0
- data/doc/index.html +141 -0
- data/doc/js/app.js +205 -0
- data/doc/js/full_list.js +173 -0
- data/doc/js/jquery.js +16 -0
- data/doc/method_list.html +142 -0
- data/doc/top-level-namespace.html +105 -0
- data/ez_model.gemspec +4 -7
- data/lib/ez_model/version.rb +1 -1
- metadata +24 -11
@@ -0,0 +1,142 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
|
7
|
+
<link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
+
|
9
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
|
16
|
+
|
17
|
+
|
18
|
+
<base id="base_target" target="_parent" />
|
19
|
+
</head>
|
20
|
+
<body>
|
21
|
+
<script type="text/javascript" charset="utf-8">
|
22
|
+
if (window.top.frames.main) {
|
23
|
+
document.getElementById('base_target').target = 'main';
|
24
|
+
document.body.className = 'frames';
|
25
|
+
}
|
26
|
+
</script>
|
27
|
+
<div id="content">
|
28
|
+
<h1 id="full_list_header">Method List</h1>
|
29
|
+
<div id="nav">
|
30
|
+
|
31
|
+
<a target="_self" href="class_list.html">Classes</a>
|
32
|
+
|
33
|
+
<a target="_self" href="method_list.html">Methods</a>
|
34
|
+
|
35
|
+
<a target="_self" href="file_list.html">Files</a>
|
36
|
+
|
37
|
+
</div>
|
38
|
+
<div id="search">Search: <input type="text" /></div>
|
39
|
+
|
40
|
+
<ul id="full_list" class="methods">
|
41
|
+
|
42
|
+
|
43
|
+
<li class="r1 ">
|
44
|
+
<span class='object_link'><a href="EZModel/Generator.html#CreateModels-class_method" title="EZModel::Generator.CreateModels (method)">CreateModels</a></span>
|
45
|
+
|
46
|
+
<small>EZModel::Generator</small>
|
47
|
+
|
48
|
+
</li>
|
49
|
+
|
50
|
+
|
51
|
+
<li class="r2 ">
|
52
|
+
<span class='object_link'><a href="Rmre/Generator.html#connect-instance_method" title="Rmre::Generator#connect (method)">#connect</a></span>
|
53
|
+
|
54
|
+
<small>Rmre::Generator</small>
|
55
|
+
|
56
|
+
</li>
|
57
|
+
|
58
|
+
|
59
|
+
<li class="r1 ">
|
60
|
+
<span class='object_link'><a href="Rmre/Generator.html#connection-instance_method" title="Rmre::Generator#connection (method)">#connection</a></span>
|
61
|
+
|
62
|
+
<small>Rmre::Generator</small>
|
63
|
+
|
64
|
+
</li>
|
65
|
+
|
66
|
+
|
67
|
+
<li class="r2 ">
|
68
|
+
<span class='object_link'><a href="Rmre/Generator.html#create_model-instance_method" title="Rmre::Generator#create_model (method)">#create_model</a></span>
|
69
|
+
|
70
|
+
<small>Rmre::Generator</small>
|
71
|
+
|
72
|
+
</li>
|
73
|
+
|
74
|
+
|
75
|
+
<li class="r1 ">
|
76
|
+
<span class='object_link'><a href="Rmre/Generator.html#create_models-instance_method" title="Rmre::Generator#create_models (method)">#create_models</a></span>
|
77
|
+
|
78
|
+
<small>Rmre::Generator</small>
|
79
|
+
|
80
|
+
</li>
|
81
|
+
|
82
|
+
|
83
|
+
<li class="r2 ">
|
84
|
+
<span class='object_link'><a href="Rmre/Generator.html#dump_schema-instance_method" title="Rmre::Generator#dump_schema (method)">#dump_schema</a></span>
|
85
|
+
|
86
|
+
<small>Rmre::Generator</small>
|
87
|
+
|
88
|
+
</li>
|
89
|
+
|
90
|
+
|
91
|
+
<li class="r1 ">
|
92
|
+
<span class='object_link'><a href="ActiveRecord/SchemaDumper.html#dump_with_fk-class_method" title="ActiveRecord::SchemaDumper.dump_with_fk (method)">dump_with_fk</a></span>
|
93
|
+
|
94
|
+
<small>ActiveRecord::SchemaDumper</small>
|
95
|
+
|
96
|
+
</li>
|
97
|
+
|
98
|
+
|
99
|
+
<li class="r2 ">
|
100
|
+
<span class='object_link'><a href="ActiveRecord/SchemaDumper.html#dump_with_fk-instance_method" title="ActiveRecord::SchemaDumper#dump_with_fk (method)">#dump_with_fk</a></span>
|
101
|
+
|
102
|
+
<small>ActiveRecord::SchemaDumper</small>
|
103
|
+
|
104
|
+
</li>
|
105
|
+
|
106
|
+
|
107
|
+
<li class="r1 ">
|
108
|
+
<span class='object_link'><a href="Rmre/Generator.html#foreign_keys-instance_method" title="Rmre::Generator#foreign_keys (method)">#foreign_keys</a></span>
|
109
|
+
|
110
|
+
<small>Rmre::Generator</small>
|
111
|
+
|
112
|
+
</li>
|
113
|
+
|
114
|
+
|
115
|
+
<li class="r2 ">
|
116
|
+
<span class='object_link'><a href="Rmre/Generator.html#initialize-instance_method" title="Rmre::Generator#initialize (method)">#initialize</a></span>
|
117
|
+
|
118
|
+
<small>Rmre::Generator</small>
|
119
|
+
|
120
|
+
</li>
|
121
|
+
|
122
|
+
|
123
|
+
<li class="r1 ">
|
124
|
+
<span class='object_link'><a href="Rmre/Generator.html#output_path-instance_method" title="Rmre::Generator#output_path (method)">#output_path</a></span>
|
125
|
+
|
126
|
+
<small>Rmre::Generator</small>
|
127
|
+
|
128
|
+
</li>
|
129
|
+
|
130
|
+
|
131
|
+
<li class="r2 ">
|
132
|
+
<span class='object_link'><a href="Rmre/Generator.html#process%3F-instance_method" title="Rmre::Generator#process? (method)">#process?</a></span>
|
133
|
+
|
134
|
+
<small>Rmre::Generator</small>
|
135
|
+
|
136
|
+
</li>
|
137
|
+
|
138
|
+
|
139
|
+
</ul>
|
140
|
+
</div>
|
141
|
+
</body>
|
142
|
+
</html>
|
@@ -0,0 +1,105 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Top Level Namespace
|
8
|
+
|
9
|
+
— Documentation by YARD 0.7.5
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
relpath = '';
|
19
|
+
if (relpath != '') relpath += '/';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
25
|
+
|
26
|
+
|
27
|
+
</head>
|
28
|
+
<body>
|
29
|
+
<script type="text/javascript" charset="utf-8">
|
30
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
+
</script>
|
32
|
+
|
33
|
+
<div id="header">
|
34
|
+
<div id="menu">
|
35
|
+
|
36
|
+
<a href="_index.html">Index</a> »
|
37
|
+
|
38
|
+
|
39
|
+
<span class="title">Top Level Namespace</span>
|
40
|
+
|
41
|
+
|
42
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<div id="search">
|
46
|
+
|
47
|
+
<a id="class_list_link" href="#">Class List</a>
|
48
|
+
|
49
|
+
<a id="method_list_link" href="#">Method List</a>
|
50
|
+
|
51
|
+
<a id="file_list_link" href="#">File List</a>
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<div class="clear"></div>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<iframe id="search_frame"></iframe>
|
58
|
+
|
59
|
+
<div id="content"><h1>Top Level Namespace
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
</h1>
|
64
|
+
|
65
|
+
<dl class="box">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
</dl>
|
75
|
+
<div class="clear"></div>
|
76
|
+
|
77
|
+
<h2>Defined Under Namespace</h2>
|
78
|
+
<p class="children">
|
79
|
+
|
80
|
+
|
81
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="ActiveRecord.html" title="ActiveRecord (module)">ActiveRecord</a></span>, <span class='object_link'><a href="EZModel.html" title="EZModel (module)">EZModel</a></span>, <span class='object_link'><a href="Rmre.html" title="Rmre (module)">Rmre</a></span>
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
</p>
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
</div>
|
97
|
+
|
98
|
+
<div id="footer">
|
99
|
+
Generated on Sun Apr 22 17:28:29 2012 by
|
100
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
101
|
+
0.7.5 (ruby-1.9.3).
|
102
|
+
</div>
|
103
|
+
|
104
|
+
</body>
|
105
|
+
</html>
|
data/ez_model.gemspec
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
lib = File.expand_path("../lib/", __FILE__)
|
2
2
|
$:.unshift lib unless $:.include?(lib)
|
3
3
|
|
4
|
+
require "date"
|
4
5
|
require "ez_model/version"
|
5
6
|
require "rmre/version"
|
6
7
|
|
@@ -10,9 +11,9 @@ Gem::Specification.new do |s|
|
|
10
11
|
s.name = "ez_model"
|
11
12
|
s.version = ::EZModel::VERSION
|
12
13
|
s.platform = Gem::Platform::RUBY
|
13
|
-
s.date =
|
14
|
-
s.summary = "
|
15
|
-
s.description = "
|
14
|
+
s.date = Date.today.to_s
|
15
|
+
s.summary = "Automatically generate model files from database."
|
16
|
+
s.description = "Automatically generate model files from database."
|
16
17
|
|
17
18
|
# Author info
|
18
19
|
s.authors = ["Tianyu Huang"]
|
@@ -23,15 +24,11 @@ Gem::Specification.new do |s|
|
|
23
24
|
#s.required_rubygems_version = ">= 1.8.22"
|
24
25
|
s.add_dependency "activerecord", ">= 3.0.0"
|
25
26
|
s.add_dependency "erubis", ">= 2.6.6"
|
26
|
-
#s.add_development_dependency "rspec"
|
27
27
|
|
28
28
|
# Files
|
29
29
|
s.files = `git ls-files`.split("\n")
|
30
30
|
s.require_paths = ["lib"]
|
31
31
|
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
32
32
|
s.extra_rdoc_files = ["README.md", "LICENSE"]
|
33
|
-
|
34
|
-
|
35
|
-
|
36
33
|
|
37
34
|
end
|
data/lib/ez_model/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ez_model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-04-
|
12
|
+
date: 2012-04-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -43,14 +43,7 @@ dependencies:
|
|
43
43
|
- - ! '>='
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: 2.6.6
|
46
|
-
description:
|
47
|
-
one command line. If you prefer design ER diagram and export scripts to generate
|
48
|
-
database schema, or if you have to work with a legacy database, this can save you
|
49
|
-
insane amount of time. All you need to do is to have a database.yml configuraiton
|
50
|
-
file in ~/config/. Besides creating all models it sets proper table name and primary
|
51
|
-
key if tables and columns naming doesn’t follow Rails convention. It also tries
|
52
|
-
to read all foreign keys data from a database. It uses Rmre as underlying reverse
|
53
|
-
engine to generate models...
|
46
|
+
description: Automatically generate model files from database.
|
54
47
|
email:
|
55
48
|
- tianhsky@yahoo.com
|
56
49
|
executables:
|
@@ -64,6 +57,26 @@ files:
|
|
64
57
|
- LICENSE
|
65
58
|
- README.md
|
66
59
|
- bin/ezmodel
|
60
|
+
- doc/ActiveRecord.html
|
61
|
+
- doc/ActiveRecord/SchemaDumper.html
|
62
|
+
- doc/EZModel.html
|
63
|
+
- doc/EZModel/Generator.html
|
64
|
+
- doc/Rmre.html
|
65
|
+
- doc/Rmre/Generator.html
|
66
|
+
- doc/_index.html
|
67
|
+
- doc/class_list.html
|
68
|
+
- doc/css/common.css
|
69
|
+
- doc/css/full_list.css
|
70
|
+
- doc/css/style.css
|
71
|
+
- doc/file.README.html
|
72
|
+
- doc/file_list.html
|
73
|
+
- doc/frames.html
|
74
|
+
- doc/index.html
|
75
|
+
- doc/js/app.js
|
76
|
+
- doc/js/full_list.js
|
77
|
+
- doc/js/jquery.js
|
78
|
+
- doc/method_list.html
|
79
|
+
- doc/top-level-namespace.html
|
67
80
|
- ez_model.gemspec
|
68
81
|
- lib/ez_model.rb
|
69
82
|
- lib/ez_model/generator.rb
|
@@ -100,6 +113,6 @@ rubyforge_project:
|
|
100
113
|
rubygems_version: 1.8.22
|
101
114
|
signing_key:
|
102
115
|
specification_version: 3
|
103
|
-
summary:
|
116
|
+
summary: Automatically generate model files from database.
|
104
117
|
test_files: []
|
105
118
|
has_rdoc:
|