legacy_data 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/Gemfile +12 -0
- data/History.txt +6 -1
- data/Rakefile +37 -28
- data/VERSION +1 -1
- data/examples/blog_migration.rb +5 -3
- data/examples/generated/blog_mysql/factories.rb +2 -2
- data/examples/generated/blog_sqlite3/factories.rb +3 -3
- data/examples/generated/drupal_mysql/factories.rb +238 -238
- data/examples/generated/j2ee_petstore_mysql/factories.rb +30 -30
- data/examples/generated/j2ee_petstore_oracle/factories.rb +29 -29
- data/examples/generated/j2ee_petstore_sqlite3/factories.rb +30 -30
- data/legacy_data.gemspec +22 -256
- data/lib/legacy_data/schema.rb +1 -1
- data/lib/legacy_data/table_class_name_mapper.rb +1 -1
- data/spec/legacy_data/schema_spec.rb +3 -3
- metadata +102 -37
@@ -1,10 +1,16 @@
|
|
1
|
-
Factory.define :
|
2
|
-
|
3
|
-
|
1
|
+
Factory.define :address do |a|
|
2
|
+
a.street1 'some string'
|
3
|
+
a.city 'some string'
|
4
|
+
a.state 'some string'
|
5
|
+
a.zip 'some string'
|
6
|
+
a.latitude 12.3
|
7
|
+
a.longitude 12.3
|
4
8
|
end
|
5
9
|
|
6
|
-
Factory.define :
|
7
|
-
|
10
|
+
Factory.define :seller_contact_info do |s|
|
11
|
+
s.lastname 'some string'
|
12
|
+
s.firstname 'some string'
|
13
|
+
s.email 'some string'
|
8
14
|
end
|
9
15
|
|
10
16
|
Factory.define :category do |c|
|
@@ -12,20 +18,8 @@ Factory.define :category do |c|
|
|
12
18
|
c.description 'some string'
|
13
19
|
end
|
14
20
|
|
15
|
-
Factory.define :
|
16
|
-
|
17
|
-
t.itemid 'some string'
|
18
|
-
end
|
19
|
-
|
20
|
-
Factory.define :tag do |t|
|
21
|
-
t.tag 'some string'
|
22
|
-
t.refcount 7
|
23
|
-
end
|
24
|
-
|
25
|
-
Factory.define :product do |p|
|
26
|
-
p.categoryid 'some string'
|
27
|
-
p.name 'some string'
|
28
|
-
p.description 'some string'
|
21
|
+
Factory.define :id_gen do |i|
|
22
|
+
i.gen_value 7
|
29
23
|
end
|
30
24
|
|
31
25
|
Factory.define :item do |i|
|
@@ -40,18 +34,24 @@ Factory.define :item do |i|
|
|
40
34
|
i.disabled 7
|
41
35
|
end
|
42
36
|
|
43
|
-
Factory.define :
|
44
|
-
|
45
|
-
|
46
|
-
|
37
|
+
Factory.define :product do |p|
|
38
|
+
p.categoryid 'some string'
|
39
|
+
p.name 'some string'
|
40
|
+
p.description 'some string'
|
47
41
|
end
|
48
42
|
|
49
|
-
Factory.define :
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
43
|
+
Factory.define :tag do |t|
|
44
|
+
t.tag 'some string'
|
45
|
+
t.refcount 7
|
46
|
+
end
|
47
|
+
|
48
|
+
Factory.define :tag_item do |t|
|
49
|
+
t.tagid 7
|
50
|
+
t.itemid 'some string'
|
51
|
+
end
|
52
|
+
|
53
|
+
Factory.define :ziplocation do |z|
|
54
|
+
z.city 'some string'
|
55
|
+
z.state 'some string'
|
56
56
|
end
|
57
57
|
|
@@ -1,10 +1,10 @@
|
|
1
|
-
Factory.define :
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
Factory.define :address do |a|
|
2
|
+
a.street1 'some string'
|
3
|
+
a.city 'some string'
|
4
|
+
a.state 'some string'
|
5
|
+
a.zip 'some string'
|
6
|
+
a.latitude 12.3
|
7
|
+
a.longitude 12.3
|
8
8
|
end
|
9
9
|
|
10
10
|
Factory.define :category do |c|
|
@@ -12,21 +12,8 @@ Factory.define :category do |c|
|
|
12
12
|
c.description 'some string'
|
13
13
|
end
|
14
14
|
|
15
|
-
Factory.define :
|
16
|
-
|
17
|
-
t.refcount 7
|
18
|
-
end
|
19
|
-
|
20
|
-
Factory.define :sellercontactinfo do |s|
|
21
|
-
s.lastname 'some string'
|
22
|
-
s.firstname 'some string'
|
23
|
-
s.email 'some string'
|
24
|
-
end
|
25
|
-
|
26
|
-
Factory.define :product do |p|
|
27
|
-
p.categoryid 'some string'
|
28
|
-
p.name 'some string'
|
29
|
-
p.description 'some string'
|
15
|
+
Factory.define :id_gen do |i|
|
16
|
+
i.gen_value 7
|
30
17
|
end
|
31
18
|
|
32
19
|
Factory.define :item do |i|
|
@@ -41,12 +28,25 @@ Factory.define :item do |i|
|
|
41
28
|
i.disabled 7
|
42
29
|
end
|
43
30
|
|
44
|
-
Factory.define :
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
31
|
+
Factory.define :product do |p|
|
32
|
+
p.categoryid 'some string'
|
33
|
+
p.name 'some string'
|
34
|
+
p.description 'some string'
|
35
|
+
end
|
36
|
+
|
37
|
+
Factory.define :sellercontactinfo do |s|
|
38
|
+
s.lastname 'some string'
|
39
|
+
s.firstname 'some string'
|
40
|
+
s.email 'some string'
|
41
|
+
end
|
42
|
+
|
43
|
+
Factory.define :tag do |t|
|
44
|
+
t.tag 'some string'
|
45
|
+
t.refcount 7
|
46
|
+
end
|
47
|
+
|
48
|
+
Factory.define :ziplocation do |z|
|
49
|
+
z.city 'some string'
|
50
|
+
z.state 'some string'
|
51
51
|
end
|
52
52
|
|
@@ -1,10 +1,16 @@
|
|
1
|
-
Factory.define :
|
2
|
-
|
3
|
-
|
1
|
+
Factory.define :address do |a|
|
2
|
+
a.street1 'some string'
|
3
|
+
a.city 'some string'
|
4
|
+
a.state 'some string'
|
5
|
+
a.zip 'some string'
|
6
|
+
a.latitude 12.3
|
7
|
+
a.longitude 12.3
|
4
8
|
end
|
5
9
|
|
6
|
-
Factory.define :
|
7
|
-
|
10
|
+
Factory.define :seller_contact_info do |s|
|
11
|
+
s.lastname 'some string'
|
12
|
+
s.firstname 'some string'
|
13
|
+
s.email 'some string'
|
8
14
|
end
|
9
15
|
|
10
16
|
Factory.define :category do |c|
|
@@ -12,20 +18,8 @@ Factory.define :category do |c|
|
|
12
18
|
c.description 'some string'
|
13
19
|
end
|
14
20
|
|
15
|
-
Factory.define :
|
16
|
-
|
17
|
-
t.itemid 'some string'
|
18
|
-
end
|
19
|
-
|
20
|
-
Factory.define :tag do |t|
|
21
|
-
t.tag 'some string'
|
22
|
-
t.refcount 7
|
23
|
-
end
|
24
|
-
|
25
|
-
Factory.define :product do |p|
|
26
|
-
p.categoryid 'some string'
|
27
|
-
p.name 'some string'
|
28
|
-
p.description 'some string'
|
21
|
+
Factory.define :id_gen do |i|
|
22
|
+
i.gen_value 7
|
29
23
|
end
|
30
24
|
|
31
25
|
Factory.define :item do |i|
|
@@ -40,18 +34,24 @@ Factory.define :item do |i|
|
|
40
34
|
i.disabled 7
|
41
35
|
end
|
42
36
|
|
43
|
-
Factory.define :
|
44
|
-
|
45
|
-
|
46
|
-
|
37
|
+
Factory.define :product do |p|
|
38
|
+
p.categoryid 'some string'
|
39
|
+
p.name 'some string'
|
40
|
+
p.description 'some string'
|
47
41
|
end
|
48
42
|
|
49
|
-
Factory.define :
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
43
|
+
Factory.define :tag do |t|
|
44
|
+
t.tag 'some string'
|
45
|
+
t.refcount 7
|
46
|
+
end
|
47
|
+
|
48
|
+
Factory.define :tag_item do |t|
|
49
|
+
t.tagid 7
|
50
|
+
t.itemid 'some string'
|
51
|
+
end
|
52
|
+
|
53
|
+
Factory.define :ziplocation do |z|
|
54
|
+
z.city 'some string'
|
55
|
+
z.state 'some string'
|
56
56
|
end
|
57
57
|
|
data/legacy_data.gemspec
CHANGED
@@ -1,260 +1,26 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
1
|
Gem::Specification.new do |s|
|
7
|
-
s.name
|
8
|
-
s.version
|
9
|
-
|
10
|
-
s.
|
11
|
-
s.
|
12
|
-
s.
|
13
|
-
s.
|
14
|
-
s.
|
15
|
-
s.
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
s.files
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
"LICENSE",
|
24
|
-
"README.md",
|
25
|
-
"Rakefile",
|
26
|
-
"VERSION",
|
27
|
-
"examples/README",
|
28
|
-
"examples/blog_migration.rb",
|
29
|
-
"examples/create_j2ee_petstore.sql",
|
30
|
-
"examples/delete_j2ee_petstore.sql",
|
31
|
-
"examples/drupal_6_14.sql",
|
32
|
-
"examples/generated/blog_mysql/comment.rb",
|
33
|
-
"examples/generated/blog_mysql/factories.rb",
|
34
|
-
"examples/generated/blog_mysql/post.rb",
|
35
|
-
"examples/generated/blog_mysql/tag.rb",
|
36
|
-
"examples/generated/blog_sqlite3/comment.rb",
|
37
|
-
"examples/generated/blog_sqlite3/factories.rb",
|
38
|
-
"examples/generated/blog_sqlite3/post.rb",
|
39
|
-
"examples/generated/blog_sqlite3/tag.rb",
|
40
|
-
"examples/generated/drupal_mysql/access.rb",
|
41
|
-
"examples/generated/drupal_mysql/action.rb",
|
42
|
-
"examples/generated/drupal_mysql/actions_aid.rb",
|
43
|
-
"examples/generated/drupal_mysql/authmap.rb",
|
44
|
-
"examples/generated/drupal_mysql/batch.rb",
|
45
|
-
"examples/generated/drupal_mysql/block.rb",
|
46
|
-
"examples/generated/drupal_mysql/blocks_role.rb",
|
47
|
-
"examples/generated/drupal_mysql/box.rb",
|
48
|
-
"examples/generated/drupal_mysql/cache.rb",
|
49
|
-
"examples/generated/drupal_mysql/cache_block.rb",
|
50
|
-
"examples/generated/drupal_mysql/cache_filter.rb",
|
51
|
-
"examples/generated/drupal_mysql/cache_form.rb",
|
52
|
-
"examples/generated/drupal_mysql/cache_menu.rb",
|
53
|
-
"examples/generated/drupal_mysql/cache_page.rb",
|
54
|
-
"examples/generated/drupal_mysql/cache_update.rb",
|
55
|
-
"examples/generated/drupal_mysql/comment.rb",
|
56
|
-
"examples/generated/drupal_mysql/factories.rb",
|
57
|
-
"examples/generated/drupal_mysql/filter.rb",
|
58
|
-
"examples/generated/drupal_mysql/filter_format.rb",
|
59
|
-
"examples/generated/drupal_mysql/flood.rb",
|
60
|
-
"examples/generated/drupal_mysql/history.rb",
|
61
|
-
"examples/generated/drupal_mysql/menu_custom.rb",
|
62
|
-
"examples/generated/drupal_mysql/menu_link.rb",
|
63
|
-
"examples/generated/drupal_mysql/menu_router.rb",
|
64
|
-
"examples/generated/drupal_mysql/node.rb",
|
65
|
-
"examples/generated/drupal_mysql/node_access.rb",
|
66
|
-
"examples/generated/drupal_mysql/node_comment_statistic.rb",
|
67
|
-
"examples/generated/drupal_mysql/node_counter.rb",
|
68
|
-
"examples/generated/drupal_mysql/node_revision.rb",
|
69
|
-
"examples/generated/drupal_mysql/node_type.rb",
|
70
|
-
"examples/generated/drupal_mysql/permission.rb",
|
71
|
-
"examples/generated/drupal_mysql/role.rb",
|
72
|
-
"examples/generated/drupal_mysql/session.rb",
|
73
|
-
"examples/generated/drupal_mysql/system.rb",
|
74
|
-
"examples/generated/drupal_mysql/term_data.rb",
|
75
|
-
"examples/generated/drupal_mysql/term_hierarchy.rb",
|
76
|
-
"examples/generated/drupal_mysql/term_node.rb",
|
77
|
-
"examples/generated/drupal_mysql/term_relation.rb",
|
78
|
-
"examples/generated/drupal_mysql/term_synonym.rb",
|
79
|
-
"examples/generated/drupal_mysql/uploaded_files.rb",
|
80
|
-
"examples/generated/drupal_mysql/url_alias.rb",
|
81
|
-
"examples/generated/drupal_mysql/user.rb",
|
82
|
-
"examples/generated/drupal_mysql/users_role.rb",
|
83
|
-
"examples/generated/drupal_mysql/variable.rb",
|
84
|
-
"examples/generated/drupal_mysql/vocabulary.rb",
|
85
|
-
"examples/generated/drupal_mysql/vocabulary_node_type.rb",
|
86
|
-
"examples/generated/drupal_mysql/watchdog.rb",
|
87
|
-
"examples/generated/j2ee_petstore_mysql/address.rb",
|
88
|
-
"examples/generated/j2ee_petstore_mysql/category.rb",
|
89
|
-
"examples/generated/j2ee_petstore_mysql/factories.rb",
|
90
|
-
"examples/generated/j2ee_petstore_mysql/id_gen.rb",
|
91
|
-
"examples/generated/j2ee_petstore_mysql/item.rb",
|
92
|
-
"examples/generated/j2ee_petstore_mysql/product.rb",
|
93
|
-
"examples/generated/j2ee_petstore_mysql/seller_contact_info.rb",
|
94
|
-
"examples/generated/j2ee_petstore_mysql/tag.rb",
|
95
|
-
"examples/generated/j2ee_petstore_mysql/tag_item.rb",
|
96
|
-
"examples/generated/j2ee_petstore_mysql/ziplocation.rb",
|
97
|
-
"examples/generated/j2ee_petstore_oracle/address.rb",
|
98
|
-
"examples/generated/j2ee_petstore_oracle/category.rb",
|
99
|
-
"examples/generated/j2ee_petstore_oracle/factories.rb",
|
100
|
-
"examples/generated/j2ee_petstore_oracle/id_gen.rb",
|
101
|
-
"examples/generated/j2ee_petstore_oracle/item.rb",
|
102
|
-
"examples/generated/j2ee_petstore_oracle/product.rb",
|
103
|
-
"examples/generated/j2ee_petstore_oracle/sellercontactinfo.rb",
|
104
|
-
"examples/generated/j2ee_petstore_oracle/tag.rb",
|
105
|
-
"examples/generated/j2ee_petstore_oracle/ziplocation.rb",
|
106
|
-
"examples/generated/j2ee_petstore_sqlite3/address.rb",
|
107
|
-
"examples/generated/j2ee_petstore_sqlite3/category.rb",
|
108
|
-
"examples/generated/j2ee_petstore_sqlite3/factories.rb",
|
109
|
-
"examples/generated/j2ee_petstore_sqlite3/id_gen.rb",
|
110
|
-
"examples/generated/j2ee_petstore_sqlite3/item.rb",
|
111
|
-
"examples/generated/j2ee_petstore_sqlite3/product.rb",
|
112
|
-
"examples/generated/j2ee_petstore_sqlite3/seller_contact_info.rb",
|
113
|
-
"examples/generated/j2ee_petstore_sqlite3/tag.rb",
|
114
|
-
"examples/generated/j2ee_petstore_sqlite3/tag_item.rb",
|
115
|
-
"examples/generated/j2ee_petstore_sqlite3/ziplocation.rb",
|
116
|
-
"generators/models_from_tables/USAGE",
|
117
|
-
"generators/models_from_tables/models_from_tables_generator.rb",
|
118
|
-
"generators/models_from_tables/templates/model.rb",
|
119
|
-
"legacy_data.gemspec",
|
120
|
-
"lib/active_record/connection_adapters/oracleenhanced_adapter.rb",
|
121
|
-
"lib/legacy_data.rb",
|
122
|
-
"lib/legacy_data/schema.rb",
|
123
|
-
"lib/legacy_data/table_class_name_mapper.rb",
|
124
|
-
"lib/legacy_data/table_definition.rb",
|
125
|
-
"spec/expected/factories.rb",
|
126
|
-
"spec/expected/post.rb",
|
127
|
-
"spec/functional/blog_adapterspec.rb",
|
128
|
-
"spec/functional/database.yml",
|
129
|
-
"spec/functional/drupal_adapterspec.rb",
|
130
|
-
"spec/functional/functional_spec_helper.rb",
|
131
|
-
"spec/functional/j2ee_petstore_adapterspec.rb",
|
132
|
-
"spec/legacy_data/schema_spec.rb",
|
133
|
-
"spec/legacy_data/table_class_name_mapper_spec.rb",
|
134
|
-
"spec/legacy_data/table_definition_spec.rb",
|
135
|
-
"spec/models_from_tables_generator_spec.rb",
|
136
|
-
"spec/spec_helper.rb"
|
137
|
-
]
|
138
|
-
s.homepage = %q{http://github.com/alexrothenberg/legacy_data}
|
139
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
140
|
-
s.require_paths = ["lib"]
|
141
|
-
s.rubygems_version = %q{1.3.6}
|
142
|
-
s.summary = %q{Create ActiveRecord models from an existing database}
|
143
|
-
s.test_files = [
|
144
|
-
"spec/expected/factories.rb",
|
145
|
-
"spec/expected/post.rb",
|
146
|
-
"spec/functional/blog_adapterspec.rb",
|
147
|
-
"spec/functional/drupal_adapterspec.rb",
|
148
|
-
"spec/functional/functional_spec_helper.rb",
|
149
|
-
"spec/functional/j2ee_petstore_adapterspec.rb",
|
150
|
-
"spec/legacy_data/schema_spec.rb",
|
151
|
-
"spec/legacy_data/table_class_name_mapper_spec.rb",
|
152
|
-
"spec/legacy_data/table_definition_spec.rb",
|
153
|
-
"spec/models_from_tables_generator_spec.rb",
|
154
|
-
"spec/spec_helper.rb",
|
155
|
-
"examples/blog_migration.rb",
|
156
|
-
"examples/generated/blog_mysql/comment.rb",
|
157
|
-
"examples/generated/blog_mysql/factories.rb",
|
158
|
-
"examples/generated/blog_mysql/post.rb",
|
159
|
-
"examples/generated/blog_mysql/tag.rb",
|
160
|
-
"examples/generated/blog_sqlite3/comment.rb",
|
161
|
-
"examples/generated/blog_sqlite3/factories.rb",
|
162
|
-
"examples/generated/blog_sqlite3/post.rb",
|
163
|
-
"examples/generated/blog_sqlite3/tag.rb",
|
164
|
-
"examples/generated/drupal_mysql/access.rb",
|
165
|
-
"examples/generated/drupal_mysql/action.rb",
|
166
|
-
"examples/generated/drupal_mysql/actions_aid.rb",
|
167
|
-
"examples/generated/drupal_mysql/authmap.rb",
|
168
|
-
"examples/generated/drupal_mysql/batch.rb",
|
169
|
-
"examples/generated/drupal_mysql/block.rb",
|
170
|
-
"examples/generated/drupal_mysql/blocks_role.rb",
|
171
|
-
"examples/generated/drupal_mysql/box.rb",
|
172
|
-
"examples/generated/drupal_mysql/cache.rb",
|
173
|
-
"examples/generated/drupal_mysql/cache_block.rb",
|
174
|
-
"examples/generated/drupal_mysql/cache_filter.rb",
|
175
|
-
"examples/generated/drupal_mysql/cache_form.rb",
|
176
|
-
"examples/generated/drupal_mysql/cache_menu.rb",
|
177
|
-
"examples/generated/drupal_mysql/cache_page.rb",
|
178
|
-
"examples/generated/drupal_mysql/cache_update.rb",
|
179
|
-
"examples/generated/drupal_mysql/comment.rb",
|
180
|
-
"examples/generated/drupal_mysql/factories.rb",
|
181
|
-
"examples/generated/drupal_mysql/filter.rb",
|
182
|
-
"examples/generated/drupal_mysql/filter_format.rb",
|
183
|
-
"examples/generated/drupal_mysql/flood.rb",
|
184
|
-
"examples/generated/drupal_mysql/history.rb",
|
185
|
-
"examples/generated/drupal_mysql/menu_custom.rb",
|
186
|
-
"examples/generated/drupal_mysql/menu_link.rb",
|
187
|
-
"examples/generated/drupal_mysql/menu_router.rb",
|
188
|
-
"examples/generated/drupal_mysql/node.rb",
|
189
|
-
"examples/generated/drupal_mysql/node_access.rb",
|
190
|
-
"examples/generated/drupal_mysql/node_comment_statistic.rb",
|
191
|
-
"examples/generated/drupal_mysql/node_counter.rb",
|
192
|
-
"examples/generated/drupal_mysql/node_revision.rb",
|
193
|
-
"examples/generated/drupal_mysql/node_type.rb",
|
194
|
-
"examples/generated/drupal_mysql/permission.rb",
|
195
|
-
"examples/generated/drupal_mysql/role.rb",
|
196
|
-
"examples/generated/drupal_mysql/session.rb",
|
197
|
-
"examples/generated/drupal_mysql/system.rb",
|
198
|
-
"examples/generated/drupal_mysql/term_data.rb",
|
199
|
-
"examples/generated/drupal_mysql/term_hierarchy.rb",
|
200
|
-
"examples/generated/drupal_mysql/term_node.rb",
|
201
|
-
"examples/generated/drupal_mysql/term_relation.rb",
|
202
|
-
"examples/generated/drupal_mysql/term_synonym.rb",
|
203
|
-
"examples/generated/drupal_mysql/uploaded_files.rb",
|
204
|
-
"examples/generated/drupal_mysql/url_alias.rb",
|
205
|
-
"examples/generated/drupal_mysql/user.rb",
|
206
|
-
"examples/generated/drupal_mysql/users_role.rb",
|
207
|
-
"examples/generated/drupal_mysql/variable.rb",
|
208
|
-
"examples/generated/drupal_mysql/vocabulary.rb",
|
209
|
-
"examples/generated/drupal_mysql/vocabulary_node_type.rb",
|
210
|
-
"examples/generated/drupal_mysql/watchdog.rb",
|
211
|
-
"examples/generated/j2ee_petstore_mysql/address.rb",
|
212
|
-
"examples/generated/j2ee_petstore_mysql/category.rb",
|
213
|
-
"examples/generated/j2ee_petstore_mysql/factories.rb",
|
214
|
-
"examples/generated/j2ee_petstore_mysql/id_gen.rb",
|
215
|
-
"examples/generated/j2ee_petstore_mysql/item.rb",
|
216
|
-
"examples/generated/j2ee_petstore_mysql/product.rb",
|
217
|
-
"examples/generated/j2ee_petstore_mysql/seller_contact_info.rb",
|
218
|
-
"examples/generated/j2ee_petstore_mysql/tag.rb",
|
219
|
-
"examples/generated/j2ee_petstore_mysql/tag_item.rb",
|
220
|
-
"examples/generated/j2ee_petstore_mysql/ziplocation.rb",
|
221
|
-
"examples/generated/j2ee_petstore_oracle/address.rb",
|
222
|
-
"examples/generated/j2ee_petstore_oracle/category.rb",
|
223
|
-
"examples/generated/j2ee_petstore_oracle/factories.rb",
|
224
|
-
"examples/generated/j2ee_petstore_oracle/id_gen.rb",
|
225
|
-
"examples/generated/j2ee_petstore_oracle/item.rb",
|
226
|
-
"examples/generated/j2ee_petstore_oracle/product.rb",
|
227
|
-
"examples/generated/j2ee_petstore_oracle/sellercontactinfo.rb",
|
228
|
-
"examples/generated/j2ee_petstore_oracle/tag.rb",
|
229
|
-
"examples/generated/j2ee_petstore_oracle/ziplocation.rb",
|
230
|
-
"examples/generated/j2ee_petstore_sqlite3/address.rb",
|
231
|
-
"examples/generated/j2ee_petstore_sqlite3/category.rb",
|
232
|
-
"examples/generated/j2ee_petstore_sqlite3/factories.rb",
|
233
|
-
"examples/generated/j2ee_petstore_sqlite3/id_gen.rb",
|
234
|
-
"examples/generated/j2ee_petstore_sqlite3/item.rb",
|
235
|
-
"examples/generated/j2ee_petstore_sqlite3/product.rb",
|
236
|
-
"examples/generated/j2ee_petstore_sqlite3/seller_contact_info.rb",
|
237
|
-
"examples/generated/j2ee_petstore_sqlite3/tag.rb",
|
238
|
-
"examples/generated/j2ee_petstore_sqlite3/tag_item.rb",
|
239
|
-
"examples/generated/j2ee_petstore_sqlite3/ziplocation.rb"
|
240
|
-
]
|
2
|
+
s.name = 'legacy_data'
|
3
|
+
s.version = File.read(File.expand_path('../VERSION', __FILE__)).strip
|
4
|
+
s.authors = ["Alex Rothenberg"]
|
5
|
+
s.description = 'Create ActiveRecord models from an existing database'
|
6
|
+
s.summary = 'Create ActiveRecord models from an existing database'
|
7
|
+
s.email = 'alex@alexrothenberg.com'
|
8
|
+
s.homepage = 'http://github.com/alexrothenberg/legacy_data'
|
9
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
10
|
+
s.require_path = 'lib'
|
11
|
+
s.rubygems_version = '1.3.7'
|
12
|
+
s.files = `git ls-files`.split("\n")
|
13
|
+
s.test_files = `git ls-files -- {spec,features,examples/generated}/*`.split("\n")
|
14
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
15
|
+
s.extra_rdoc_files = ["LICENSE", "README.md", "History.txt"]
|
16
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
17
|
+
s.require_path = "lib"
|
241
18
|
|
242
|
-
|
243
|
-
|
244
|
-
s.specification_version = 3
|
19
|
+
s.add_dependency 'activerecord', '~> 2.3.5'
|
20
|
+
s.add_dependency 'foreigner', '~> 0.9.1'
|
245
21
|
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
else
|
251
|
-
s.add_dependency(%q<rspec>, [">= 0"])
|
252
|
-
s.add_dependency(%q<activerecord>, [">= 0"])
|
253
|
-
s.add_dependency(%q<matthuhiggins-foreigner>, [">= 0.2.1"])
|
254
|
-
end
|
255
|
-
else
|
256
|
-
s.add_dependency(%q<rspec>, [">= 0"])
|
257
|
-
s.add_dependency(%q<activerecord>, [">= 0"])
|
258
|
-
s.add_dependency(%q<matthuhiggins-foreigner>, [">= 0.2.1"])
|
259
|
-
end
|
22
|
+
s.add_development_dependency 'rake', '~> 0.8.7'
|
23
|
+
s.add_development_dependency 'rspec', '~> 1.3.1'
|
24
|
+
s.add_development_dependency 'sqlite3-ruby', '~> 1.3.1'
|
25
|
+
s.add_development_dependency 'rails', '~> 2.3.5'
|
260
26
|
end
|