muck-engine 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +8 -0
- data/VERSION +1 -1
- data/lib/muck_engine.rb +6 -0
- data/lib/muck_engine/tasks.rb +691 -0
- data/muck-engine.gemspec +42 -4
- data/rdoc/created.rid +1 -1
- data/rdoc/files/README_rdoc.html +9 -7
- data/rdoc/files/lib/{muck-engine → muck_engine}/tasks_rb.html +1 -1
- data/rdoc/files/lib/{muck-engine_rb.html → muck_engine_rb.html} +1 -1
- metadata +6 -4
data/Rakefile
CHANGED
@@ -33,6 +33,14 @@ begin
|
|
33
33
|
gemspec.description = "The base engine for the muck system. Contains common tables, custom for, css and javascript."
|
34
34
|
gemspec.authors = ["Justin Ball"]
|
35
35
|
gemspec.rubyforge_project = 'muck-engine'
|
36
|
+
gemspec.files.include %w( tasks/*
|
37
|
+
db/migrate/*.rb
|
38
|
+
app/**/**/**/*
|
39
|
+
config/*
|
40
|
+
locales/*
|
41
|
+
rails/*
|
42
|
+
test/*
|
43
|
+
lib/**/* )
|
36
44
|
end
|
37
45
|
rescue LoadError
|
38
46
|
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/lib/muck_engine.rb
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
|
2
|
+
ActionController::Base.send :include, ActionController::MuckApplication
|
3
|
+
ActiveRecord::Base.send :include, ActiveRecord::MuckModel
|
4
|
+
ActionController::Base.send :helper, MuckEngineHelper
|
5
|
+
|
6
|
+
I18n.load_path += Dir[ File.join(File.dirname(__FILE__), '..', 'locales', '*.{rb,yml}') ]
|
@@ -0,0 +1,691 @@
|
|
1
|
+
require 'rake'
|
2
|
+
require 'rake/tasklib'
|
3
|
+
require 'fileutils'
|
4
|
+
require 'jcode'
|
5
|
+
|
6
|
+
class MuckEngine
|
7
|
+
class Tasks < ::Rake::TaskLib
|
8
|
+
def initialize
|
9
|
+
define
|
10
|
+
end
|
11
|
+
|
12
|
+
private
|
13
|
+
def define
|
14
|
+
|
15
|
+
namespace :muck do
|
16
|
+
namespace :base do
|
17
|
+
desc "Sync files from muck engine."
|
18
|
+
task :sync do
|
19
|
+
path = File.join(File.dirname(__FILE__), *%w[.. ..])
|
20
|
+
system "rsync -ruv #{path}/db ."
|
21
|
+
system "rsync -ruv #{path}/public ."
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
namespace :db do
|
26
|
+
desc "populate database with language, state and country data"
|
27
|
+
task :populate => :environment do
|
28
|
+
$KCODE = 'UTF8'
|
29
|
+
[
|
30
|
+
['AD', 'Andorra'],
|
31
|
+
['AE', 'United Arab Emirates'],
|
32
|
+
['AF', 'Afghanistan'],
|
33
|
+
['AG', 'Antigua and Barbuda'],
|
34
|
+
['AI', 'Anguilla'],
|
35
|
+
['AL', 'Albania'],
|
36
|
+
['AM', 'Armenia'],
|
37
|
+
['AN', 'Netherlands Antilles'],
|
38
|
+
['AO', 'Angola'],
|
39
|
+
['AQ', 'Antarctica'],
|
40
|
+
['AR', 'Argentina'],
|
41
|
+
['AS', 'American Samoa'],
|
42
|
+
['AU', 'Austria'],
|
43
|
+
['AS', 'Australia'],
|
44
|
+
['AW', 'Aruba'],
|
45
|
+
['AZ', 'Azerbaijan'],
|
46
|
+
['BA', 'Bosnia and Herzegovina'],
|
47
|
+
['BB', 'Barbados'],
|
48
|
+
['BD', 'Bangladesh'],
|
49
|
+
['BE', 'Belgium'],
|
50
|
+
['BF', 'Burkina Faso'],
|
51
|
+
['BH', 'Bahrain'],
|
52
|
+
['BI', 'Burundi'],
|
53
|
+
['BJ', 'Benin'],
|
54
|
+
['BM', 'Bermuda'],
|
55
|
+
['BO', 'Bolivia'],
|
56
|
+
['BR', 'Brazil'],
|
57
|
+
['BS', 'Bahamas'],
|
58
|
+
['BT', 'Bhutan'],
|
59
|
+
['BU', 'Bouvet Island'],
|
60
|
+
['BV', 'Bulgaria'],
|
61
|
+
['BW', 'Botswana'],
|
62
|
+
['BX', 'Brunei Darussalam'],
|
63
|
+
['BY', 'Belarus'],
|
64
|
+
['BZ', 'Belize'],
|
65
|
+
['CA', 'Canada', 2],
|
66
|
+
['CC', 'Cocos (Keeling) Islands'],
|
67
|
+
['CF', 'Central African Republic'],
|
68
|
+
['CG', 'Congo'],
|
69
|
+
['CH', 'Switzerland'],
|
70
|
+
['CI', 'Cote D\'Ivoire (Ivory Coast)'],
|
71
|
+
['CK', 'Cook Islands'],
|
72
|
+
['CL', 'Chile'],
|
73
|
+
['CM', 'Cameroon'],
|
74
|
+
['CN', 'China'],
|
75
|
+
['CO', 'Colombia'],
|
76
|
+
['CR', 'Costa Rica'],
|
77
|
+
['CU', 'Cuba'],
|
78
|
+
['CV', 'Cape Verde'],
|
79
|
+
['CX', 'Christmas Island'],
|
80
|
+
['CY', 'Cyprus'],
|
81
|
+
['CZ', 'Czech Republic'],
|
82
|
+
['DE', 'Germany'],
|
83
|
+
['DJ', 'Djibouti'],
|
84
|
+
['DK', 'Denmark'],
|
85
|
+
['DM', 'Dominica'],
|
86
|
+
['DO', 'Dominican Republic'],
|
87
|
+
['DZ', 'Algeria'],
|
88
|
+
['EC', 'Ecuador'],
|
89
|
+
['EE', 'Estonia'],
|
90
|
+
['EG', 'Egypt'],
|
91
|
+
['EH', 'Western Sahara'],
|
92
|
+
['ER', 'Eritrea'],
|
93
|
+
['ES', 'Spain'],
|
94
|
+
['ET', 'Ethiopia'],
|
95
|
+
['FI', 'Finland'],
|
96
|
+
['FJ', 'Fiji'],
|
97
|
+
['FK', 'Falkland Islands (Malvinas)'],
|
98
|
+
['FM', 'Micronesia'],
|
99
|
+
['FO', 'Faroe Islands'],
|
100
|
+
['FR', 'France'],
|
101
|
+
['GA', 'Gabon'],
|
102
|
+
['GB', 'Great Britain (UK)'],
|
103
|
+
['GD', 'Grenada'],
|
104
|
+
['GE', 'Georgia'],
|
105
|
+
['GF', 'French Guiana'],
|
106
|
+
['GH', 'Ghana'],
|
107
|
+
['GI', 'Gibraltar'],
|
108
|
+
['GL', 'Greenland'],
|
109
|
+
['GM', 'Gambia'],
|
110
|
+
['GN', 'Guinea'],
|
111
|
+
['GP', 'Guadeloupe'],
|
112
|
+
['GQ', 'Equatorial Guinea'],
|
113
|
+
['GR', 'Greece'],
|
114
|
+
['GS', 'South Georgia and South Sandwich Islands'],
|
115
|
+
['GT', 'Guatemala'],
|
116
|
+
['GU', 'Guam'],
|
117
|
+
['GW', 'Guinea-Bissau'],
|
118
|
+
['GY', 'Guyana'],
|
119
|
+
['HK', 'Hong Kong'],
|
120
|
+
['HM', 'Heard and McDonald Islands'],
|
121
|
+
['HN', 'Honduras'],
|
122
|
+
['HR', 'Croatia and Hrvatska'],
|
123
|
+
['HT', 'Haiti'],
|
124
|
+
['HU', 'Hungary'],
|
125
|
+
['ID', 'Indonesia'],
|
126
|
+
['IE', 'Ireland'],
|
127
|
+
['IL', 'Israel'],
|
128
|
+
['IN', 'India'],
|
129
|
+
['IO', 'British Indian Ocean Territory'],
|
130
|
+
['IQ', 'Iraq'],
|
131
|
+
['IR', 'Iran'],
|
132
|
+
['IS', 'Iceland'],
|
133
|
+
['IT', 'Italy'],
|
134
|
+
['JM', 'Jamaica'],
|
135
|
+
['JO', 'Jordan'],
|
136
|
+
['JP', 'Japan'],
|
137
|
+
['KE', 'Kenya'],
|
138
|
+
['KG', 'Kyrgyzstan'],
|
139
|
+
['KH', 'Cambodia'],
|
140
|
+
['KI', 'Kiribati'],
|
141
|
+
['KM', 'Comoros'],
|
142
|
+
['KN', 'Saint Kitts and Nevis'],
|
143
|
+
['KP', 'Korea North'],
|
144
|
+
['KR', 'Korea South'],
|
145
|
+
['KW', 'Kuwait'],
|
146
|
+
['KY', 'Cayman Islands'],
|
147
|
+
['KZ', 'Kazakhstan'],
|
148
|
+
['LA', 'Laos'],
|
149
|
+
['LB', 'Lebanon'],
|
150
|
+
['LC', 'Saint Lucia'],
|
151
|
+
['LI', 'Liechtenstein'],
|
152
|
+
['LK', 'Sri Lanka'],
|
153
|
+
['LR', 'Liberia'],
|
154
|
+
['LS', 'Lesotho'],
|
155
|
+
['LT', 'Lithuania'],
|
156
|
+
['LU', 'Luxembourg'],
|
157
|
+
['LV', 'Latvia'],
|
158
|
+
['LY', 'Libya'],
|
159
|
+
['MA', 'Morocco'],
|
160
|
+
['MC', 'Monaco'],
|
161
|
+
['MD', 'Moldova'],
|
162
|
+
['MG', 'Madagascar'],
|
163
|
+
['MH', 'Marshall Islands'],
|
164
|
+
['MK', 'Macedonia'],
|
165
|
+
['ML', 'Mali'],
|
166
|
+
['MM', 'Myanmar'],
|
167
|
+
['MN', 'Mongolia'],
|
168
|
+
['MO', 'Macau'],
|
169
|
+
['MP', 'Northern Mariana Islands'],
|
170
|
+
['MQ', 'Martinique'],
|
171
|
+
['MR', 'Mauritania'],
|
172
|
+
['MS', 'Montserrat'],
|
173
|
+
['MT', 'Malta'],
|
174
|
+
['MU', 'Mauritius'],
|
175
|
+
['MV', 'Maldives'],
|
176
|
+
['MW', 'Malawi'],
|
177
|
+
['MX', 'Mexico'],
|
178
|
+
['MY', 'Malaysia'],
|
179
|
+
['MZ', 'Mozambique'],
|
180
|
+
['NA', 'Namibia'],
|
181
|
+
['NC', 'New Caledonia'],
|
182
|
+
['NE', 'Niger'],
|
183
|
+
['NF', 'Norfolk Island'],
|
184
|
+
['NG', 'Nigeria'],
|
185
|
+
['NI', 'Nicaragua'],
|
186
|
+
['NE', 'Netherlands'],
|
187
|
+
['NO', 'Norway'],
|
188
|
+
['NP', 'Nepal'],
|
189
|
+
['NR', 'Nauru'],
|
190
|
+
['NU', 'Niue'],
|
191
|
+
['NZ', 'New Zealand'],
|
192
|
+
['OM', 'Oman'],
|
193
|
+
['PA', 'Panama'],
|
194
|
+
['PE', 'Peru'],
|
195
|
+
['PF', 'French Polynesia'],
|
196
|
+
['PG', 'Papua New Guinea'],
|
197
|
+
['PH', 'Philippines'],
|
198
|
+
['PK', 'Pakistan'],
|
199
|
+
['PO', 'Poland'],
|
200
|
+
['PM', 'St. Pierre and Miquelon'],
|
201
|
+
['PN', 'Pitcairn'],
|
202
|
+
['PR', 'Puerto Rico'],
|
203
|
+
['PT', 'Portugal'],
|
204
|
+
['PW', 'Palau'],
|
205
|
+
['PY', 'Paraguay'],
|
206
|
+
['QA', 'Qatar'],
|
207
|
+
['RE', 'Reunion'],
|
208
|
+
['RO', 'Romania'],
|
209
|
+
['RU', 'Russian Federation'],
|
210
|
+
['RW', 'Rwanda'],
|
211
|
+
['SA', 'Saudi Arabia'],
|
212
|
+
['SB', 'Solomon Islands'],
|
213
|
+
['SC', 'Seychelles'],
|
214
|
+
['SD', 'Sudan'],
|
215
|
+
['SE', 'Sweden'],
|
216
|
+
['SG', 'Singapore'],
|
217
|
+
['SH', 'St. Helena'],
|
218
|
+
['SI', 'Slovenia'],
|
219
|
+
['SJ', 'Svalbard and Jan Mayen Islands'],
|
220
|
+
['SK', 'Slovak Republic'],
|
221
|
+
['SL', 'Sierra Leone'],
|
222
|
+
['SM', 'San Marino'],
|
223
|
+
['SN', 'Senegal'],
|
224
|
+
['SO', 'Somalia'],
|
225
|
+
['SR', 'Suriname'],
|
226
|
+
['ST', 'Sao Tome and Principe'],
|
227
|
+
['SV', 'El Salvador'],
|
228
|
+
['SY', 'Syria'],
|
229
|
+
['SZ', 'Swaziland'],
|
230
|
+
['TC', 'Turks and Caicos Islands'],
|
231
|
+
['TD', 'Chad'],
|
232
|
+
['TF', 'French Southern Territories'],
|
233
|
+
['TG', 'Togo'],
|
234
|
+
['TH', 'Thailand'],
|
235
|
+
['TI', 'Tajikistan'],
|
236
|
+
['TK', 'Tokelau'],
|
237
|
+
['TM', 'Turkmenistan'],
|
238
|
+
['TN', 'Tunisia'],
|
239
|
+
['TO', 'Tonga'],
|
240
|
+
['TP', 'East Timor'],
|
241
|
+
['TR', 'Turkey'],
|
242
|
+
['TT', 'Trinidad and Tobago'],
|
243
|
+
['TV', 'Tuvalu'],
|
244
|
+
['TW', 'Tahean'],
|
245
|
+
['TZ', 'Tanzania'],
|
246
|
+
['UA', 'Ukraine'],
|
247
|
+
['UG', 'Uganda'],
|
248
|
+
['UK', 'United Kingdom', 3],
|
249
|
+
['UM', 'US Minor Outlying Islands'],
|
250
|
+
['US', 'United States of America (USA)', 1],
|
251
|
+
['UY', 'Uruguay'],
|
252
|
+
['UZ', 'Uzbekistan'],
|
253
|
+
['VA', 'Vatican City State'],
|
254
|
+
['VC', 'Saint Vincent and the Grenadines'],
|
255
|
+
['VE', 'Venezuela'],
|
256
|
+
['VG', 'Virgin Islands (British)'],
|
257
|
+
['VN', 'Viet Nam'],
|
258
|
+
['VU', 'Vanuatu'],
|
259
|
+
['WF', 'Wallis and Futuna Islands'],
|
260
|
+
['WS', 'Samoa'],
|
261
|
+
['YE', 'Yemen'],
|
262
|
+
['YT', 'Mayotte'],
|
263
|
+
['YU', 'Yugoslavia'],
|
264
|
+
['ZA', 'South Africa'],
|
265
|
+
['ZM', 'Zambia'],
|
266
|
+
['ZR', 'Zaire'],
|
267
|
+
['ZW', 'Zimbabwe']
|
268
|
+
].each {|c| Country.create(:abbreviation => c[0], :name => c[1], :sort => (c.length >= 3 ? c[2] : 1000 )) unless Country.find_by_name(c[1]) }
|
269
|
+
|
270
|
+
us_id = Country.find_by_abbreviation('US').id
|
271
|
+
|
272
|
+
[
|
273
|
+
['Alaska', 'AK', us_id],
|
274
|
+
['Alabama', 'AL', us_id],
|
275
|
+
# ['AMERICAN SAMOA', 'AS', us_id],
|
276
|
+
['Arkansas', 'AR', us_id],
|
277
|
+
['Arizona', 'AZ', us_id],
|
278
|
+
['California', 'CA', us_id],
|
279
|
+
['Colorado', 'CO', us_id],
|
280
|
+
['Connecticut', 'CT', us_id],
|
281
|
+
['District of Columbia', 'DC', us_id],
|
282
|
+
['Washington, DC', 'DC', us_id],
|
283
|
+
['Delaware', 'DE', us_id],
|
284
|
+
['Florida', 'FL', us_id],
|
285
|
+
# ['FEDERATED STATES OF MICRONESIA', 'FM', us_id],
|
286
|
+
['Georgia', 'GA', us_id],
|
287
|
+
# ['GUAM', 'GU', us_id],
|
288
|
+
['Hawaii', 'HI', us_id],
|
289
|
+
['Iowa', 'IA', us_id],
|
290
|
+
['Idaho', 'ID', us_id],
|
291
|
+
['Illinois', 'IL', us_id],
|
292
|
+
['Indiana', 'IN', us_id],
|
293
|
+
['Kansas', 'KS', us_id],
|
294
|
+
['Kentucky', 'KY', us_id],
|
295
|
+
['Louisiana', 'LA', us_id],
|
296
|
+
['Massachusetts', 'MA', us_id],
|
297
|
+
['Maryland', 'MD', us_id],
|
298
|
+
['Maine', 'ME', us_id],
|
299
|
+
# ['MARSHALL ISLANDS', 'MH', us_id],
|
300
|
+
['Michigan', 'MI', us_id],
|
301
|
+
['Minnesota', 'MN', us_id],
|
302
|
+
['Missouri', 'MO', us_id],
|
303
|
+
# ['NORTHERN MARIANA ISLANDS', 'MP', us_id],
|
304
|
+
['Mississippi', 'MS', us_id],
|
305
|
+
['Montana', 'MT', us_id],
|
306
|
+
['North Carolina', 'NC', us_id],
|
307
|
+
['North Dakota', 'ND', us_id],
|
308
|
+
['Nebraska', 'NE', us_id],
|
309
|
+
['New Hampshire', 'NH', us_id],
|
310
|
+
['New Jersey', 'NJ', us_id],
|
311
|
+
['New Mexico', 'NM', us_id],
|
312
|
+
['Nevada', 'NV', us_id],
|
313
|
+
['New York', 'NY', us_id],
|
314
|
+
['Ohio', 'OH', us_id],
|
315
|
+
['Oklahoma', 'OK', us_id],
|
316
|
+
['Oregon', 'OR', us_id],
|
317
|
+
['Pennsylvania', 'PA', us_id],
|
318
|
+
['Puerto Rico', 'PR', us_id],
|
319
|
+
# ['PALAU', 'PW', us_id],
|
320
|
+
['Rhode Island', 'RI', us_id],
|
321
|
+
['South Carolina', 'SC', us_id],
|
322
|
+
['South Dakota', 'SD', us_id],
|
323
|
+
['Tennessee', 'TN', us_id],
|
324
|
+
['Texas', 'TX', us_id],
|
325
|
+
['Utah', 'UT', us_id],
|
326
|
+
['Virginia', 'VA', us_id],
|
327
|
+
# ['VIRGIN ISLANDS', 'VI', us_id],
|
328
|
+
['Vermont', 'VT', us_id],
|
329
|
+
['Washington', 'WA', us_id],
|
330
|
+
['Wisconsin', 'WI', us_id],
|
331
|
+
['West Virginia', 'WV', us_id],
|
332
|
+
['Wyoming', 'WY', us_id]
|
333
|
+
].each {|s| State.create(:name => s[0], :abbreviation => s[1], :country_id => s[2]) unless State.find_by_name(s[0]) }
|
334
|
+
|
335
|
+
# TODO figure out the UK
|
336
|
+
# ireland_id = Country.find_by_abbreviation('IE').id
|
337
|
+
# channel_islands_id
|
338
|
+
# [
|
339
|
+
# ['Aberdeenshire', 'ABD', Scotland],
|
340
|
+
# ['Anglesey', 'AGY', Wales],
|
341
|
+
# ['Alderney', 'ALD', channel_islands_id],
|
342
|
+
# ['Angus', 'ANS', Scotland],
|
343
|
+
# ['Co. Antrim', 'ANT', Northern ireland_id],
|
344
|
+
# ['Argyllshire', 'ARL', Scotland],
|
345
|
+
# ['Co. Armagh', 'ARM', Northern ireland_id],
|
346
|
+
# ['Avon', 'AVN', England],
|
347
|
+
# ['Ayrshire', 'AYR', Scotland],
|
348
|
+
# ['Banffshire', 'BAN', Scotland],
|
349
|
+
# ['Bedfordshire', 'BDF', England],
|
350
|
+
# ['Berwickshire', 'BEW', Scotland],
|
351
|
+
# ['Buckinghamshire', 'BKM', England],
|
352
|
+
# ['Borders', 'BOR', Scotland],
|
353
|
+
# ['Breconshire', 'BRE', Wales],
|
354
|
+
# ['Berkshire', 'BRK', England],
|
355
|
+
# ['Bute', 'BUT', Scotland],
|
356
|
+
# ['Caernarvonshire', 'CAE', Wales],
|
357
|
+
# ['Caithness', 'CAI', Scotland],
|
358
|
+
# ['Cambridgeshire', 'CAM', England],
|
359
|
+
# ['Co. Carlow', 'CAR', ireland_id],
|
360
|
+
# ['Co. Cavan', 'CAV', ireland_id],
|
361
|
+
# ['Central', 'CEN', Scotland],
|
362
|
+
# ['Cardiganshire', 'CGN', Wales],
|
363
|
+
# ['Cheshire', 'CHS', England],
|
364
|
+
# ['Co. Clare', 'CLA', ireland_id],
|
365
|
+
# ['Clackmannanshire', 'CLK', Scotland],
|
366
|
+
# ['Cleveland', 'CLV', England],
|
367
|
+
# ['Cumbria', 'CMA', England],
|
368
|
+
# ['Carmarthenshire', 'CMN', Wales],
|
369
|
+
# ['Cornwall', 'CON', England],
|
370
|
+
# ['Co. Cork', 'COR', ireland_id],
|
371
|
+
# ['Cumberland', 'CUL', England],
|
372
|
+
# ['Clwyd', 'CWD', Wales],
|
373
|
+
# ['Derbyshire', 'DBY', England],
|
374
|
+
# ['Denbighshire', 'DEN', Wales],
|
375
|
+
# ['Devon', 'DEV', England],
|
376
|
+
# ['Dyfed', 'DFD', Wales],
|
377
|
+
# ['Dumfries-shire', 'DFS', Scotland],
|
378
|
+
# ['Dumfries and Galloway', 'DGY', Scotland],
|
379
|
+
# ['Dunbartonshire', 'DNB', Scotland],
|
380
|
+
# ['Co. Donegal', 'DON', ireland_id],
|
381
|
+
# ['Dorset', 'DOR', England],
|
382
|
+
# ['Co. Down', 'DOW', Northern ireland_id],
|
383
|
+
# ['Co. Dublin', 'DUB', ireland_id],
|
384
|
+
# ['Co. Durham', 'DUR', England],
|
385
|
+
# ['East Lothian', 'ELN', Scotland],
|
386
|
+
# ['East Riding of Yorkshire', 'ERY', England],
|
387
|
+
# ['Essex', 'ESS', England],
|
388
|
+
# ['Co. Fermanagh', 'FER', Northern ireland_id],
|
389
|
+
# ['Fife', 'FIF', Scotland],
|
390
|
+
# ['Flintshire', 'FLN', Wales],
|
391
|
+
# ['Co. Galway', 'GAL', ireland_id],
|
392
|
+
# ['Glamorgan', 'GLA', Wales],
|
393
|
+
# ['Gloucestershire', 'GLS', England],
|
394
|
+
# ['Grampian', 'GMP', Scotland],
|
395
|
+
# ['Gwent', 'GNT', Wales],
|
396
|
+
# ['Guernsey', 'GSY', channel_islands_id],
|
397
|
+
# ['Greater Manchester', 'GTM', England],
|
398
|
+
# ['Gwynedd', 'GWN', Wales],
|
399
|
+
# ['Hampshire', 'HAM', England],
|
400
|
+
# ['Herefordshire', 'HEF', England],
|
401
|
+
# ['Highland', 'HLD', Scotland],
|
402
|
+
# ['Hertfordshire', 'HRT', England],
|
403
|
+
# ['Humberside', 'HUM', England],
|
404
|
+
# ['Huntingdonshire', 'HUN', England],
|
405
|
+
# ['Hereford and Worcester', 'HWR', England],
|
406
|
+
# ['Inverness-shire', 'INV', Scotland],
|
407
|
+
# ['Isle of Wight', 'IOW', England],
|
408
|
+
# ['Jersey', 'JSY', channel_islands_id],
|
409
|
+
# ['Kincardineshire', 'KCD', Scotland],
|
410
|
+
# ['Kent', 'KEN', England],
|
411
|
+
# ['Co. Kerry', 'KER', ireland_id],
|
412
|
+
# ['Co. Kildare', 'KID', ireland_id],
|
413
|
+
# ['Co. Kilkenny', 'KIK', ireland_id],
|
414
|
+
# ['Kirkcudbrightshire', 'KKD', Scotland],
|
415
|
+
# ['Kinross-shire', 'KRS', Scotland],
|
416
|
+
# ['Lancashire', 'LAN', England],
|
417
|
+
# ['Co. Londonderry', 'LDY', Northern ireland_id],
|
418
|
+
# ['Leicestershire', 'LEI', England],
|
419
|
+
# ['Co. Leitrim', 'LET', ireland_id],
|
420
|
+
# ['Co. Laois', 'LEX', ireland_id],
|
421
|
+
# ['Co. Limerick', 'LIM', ireland_id],
|
422
|
+
# ['Lincolnshire', 'LIN', England],
|
423
|
+
# ['Lanarkshire', 'LKS', Scotland],
|
424
|
+
# ['Co. Longford', 'LOG', ireland_id],
|
425
|
+
# ['Co. Louth', 'LOU', ireland_id],
|
426
|
+
# ['Lothian', 'LTN', Scotland],
|
427
|
+
# ['Co. Mayo', 'MAY', ireland_id],
|
428
|
+
# ['Co. Meath', 'MEA', ireland_id],
|
429
|
+
# ['Merionethshire', 'MER', Wales],
|
430
|
+
# ['Mid Glamorgan', 'MGM', Wales],
|
431
|
+
# ['Montgomeryshire', 'MGY', Wales],
|
432
|
+
# ['Midlothian', 'MLN', Scotland],
|
433
|
+
# ['Co. Monaghan', 'MOG', ireland_id],
|
434
|
+
# ['Monmouthshire', 'MON', Wales],
|
435
|
+
# ['Morayshire', 'MOR', Scotland],
|
436
|
+
# ['Merseyside', 'MSY', England],
|
437
|
+
# ['Nairn', 'NAI', Scotland],
|
438
|
+
# ['Northumberland', 'NBL', England],
|
439
|
+
# ['Norfolk', 'NFK', England],
|
440
|
+
# ['North Riding of Yorkshire', 'NRY', England],
|
441
|
+
# ['Northamptonshire', 'NTH', England],
|
442
|
+
# ['Nottinghamshire', 'NTT', England],
|
443
|
+
# ['North Yorkshire', 'NYK', England],
|
444
|
+
# ['Co. Offaly', 'OFF', ireland_id],
|
445
|
+
# ['Orkney', 'OKI', Scotland],
|
446
|
+
# ['Oxfordshire', 'OXF', England],
|
447
|
+
# ['Peebles-shire', 'PEE', Scotland],
|
448
|
+
# ['Pembrokeshire', 'PEM', Wales],
|
449
|
+
# ['Perth', 'PER', Scotland],
|
450
|
+
# ['Powys', 'POW', Wales],
|
451
|
+
# ['Radnorshire', 'RAD', Wales],
|
452
|
+
# ['Renfrewshire', 'RFW', Scotland],
|
453
|
+
# ['Ross and Cromarty', 'ROC', Scotland],
|
454
|
+
# ['Co. Roscommon', 'ROS', ireland_id],
|
455
|
+
# ['Roxburghshire', 'ROX', Scotland],
|
456
|
+
# ['Rutland', 'RUT', England],
|
457
|
+
# ['Shropshire', 'SAL', England],
|
458
|
+
# ['Selkirkshire', 'SEL', Scotland],
|
459
|
+
# ['Suffolk', 'SFK', England],
|
460
|
+
# ['South Glamorgan', 'SGM', Wales],
|
461
|
+
# ['Shetland', 'SHI', Scotland],
|
462
|
+
# ['Co. Sligo', 'SLI', ireland_id],
|
463
|
+
# ['Somerset', 'SOM', England],
|
464
|
+
# ['Sark', 'SRK', channel_islands_id],
|
465
|
+
# ['Surrey', 'SRY', England],
|
466
|
+
# ['Sussex', 'SSX', England],
|
467
|
+
# ['Strathclyde', 'STD', Scotland],
|
468
|
+
# ['Stirlingshire', 'STI', Scotland],
|
469
|
+
# ['Staffordshire', 'STS', England],
|
470
|
+
# ['Sutherland', 'SUT', Scotland],
|
471
|
+
# ['East Sussex', 'SXE', England],
|
472
|
+
# ['West Sussex', 'SXW', England],
|
473
|
+
# ['South Yorkshire', 'SYK', England],
|
474
|
+
# ['Tayside', 'TAY', Scotland],
|
475
|
+
# ['Co. Tipperary', 'TIP', ireland_id],
|
476
|
+
# ['Tyne and Wear', 'TWR', England],
|
477
|
+
# ['Co. Tyrone', 'TYR', Northern ireland_id],
|
478
|
+
# ['Warwickshire', 'WAR', England],
|
479
|
+
# ['Co. Waterford', 'WAT', ireland_id],
|
480
|
+
# ['Co. Westmeath', 'WEM', ireland_id],
|
481
|
+
# ['Westmorland', 'WES', England],
|
482
|
+
# ['Co. Wexford', 'WEX', ireland_id],
|
483
|
+
# ['West Glamorgan', 'WGM', Wales],
|
484
|
+
# ['Co. Wicklow', 'WIC', ireland_id],
|
485
|
+
# ['Wigtownshire', 'WIG', Scotland],
|
486
|
+
# ['Wiltshire', 'WIL', England],
|
487
|
+
# ['Western Isles', 'WIS', Scotland],
|
488
|
+
# ['West Lothian', 'WLN', Scotland],
|
489
|
+
# ['West Midlands', 'WMD', England],
|
490
|
+
# ['Worcestershire', 'WOR', England],
|
491
|
+
# ['West Riding of Yorkshire', 'WRY', England],
|
492
|
+
# ['West Yorkshire', 'WYK', England],
|
493
|
+
# ['Yorkshire', 'YKS', England]
|
494
|
+
# ].each {|s| State.create(:name => s[0], :abbreviation => s[1], :country_id => s[2]) }
|
495
|
+
|
496
|
+
[
|
497
|
+
['Afar', 'Afaraf', false, 'aa', false],
|
498
|
+
['Аҧсуа', 'Abkhazian', false, 'ab', false],
|
499
|
+
['avesta', 'Avestan', false, 'ae', false],
|
500
|
+
['Afrikaans', 'Afrikaans', false, 'af', false],
|
501
|
+
['Akan', 'Akan', false, 'ak', false],
|
502
|
+
['አማርኛ', 'Amharic', false, 'am', false],
|
503
|
+
['Aragonés', 'Aragonese', false, 'an', false],
|
504
|
+
['العربية', 'Arabic', false, 'ar', true],
|
505
|
+
['অসমীয়া', 'Assamese', false, 'as', false],
|
506
|
+
['авар мацӀ', 'Avaric', false, 'av', false],
|
507
|
+
['aymar aru', 'Aymara', false, 'ay', false],
|
508
|
+
['azərbaycan dili', 'Azerbaijani', false, 'az', false],
|
509
|
+
['башҡорт теле', 'Bashkir', false, 'ba', false],
|
510
|
+
['Беларуская', 'Belarusian', false, 'be', false],
|
511
|
+
['български език', 'Bulgarian', false, 'bg', true],
|
512
|
+
['भोजपुरी', 'Bihari', false, 'bh', false],
|
513
|
+
['Bislama', 'Bislama', false, 'bi', false],
|
514
|
+
['bamanankan', 'Bambara', false, 'bm', false],
|
515
|
+
['বাংলা', 'Bengali', false, 'bn', false],
|
516
|
+
['བོད་ཡིག', 'Tibetan', false, 'bo', false],
|
517
|
+
['brezhoneg', 'Breton', false, 'br', false],
|
518
|
+
['bosanski jezik', 'Bosnian', false, 'bs', false],
|
519
|
+
['Català', 'Catalan', false, 'ca', true],
|
520
|
+
['нохчийн мотт', 'Chechen', false, 'ce', false],
|
521
|
+
['Chamoru', 'Chamorro', false, 'ch', false],
|
522
|
+
['corsu', 'Corsican', false, 'co', false],
|
523
|
+
['ᓀᐦᐃᔭᐍᐏᐣ', 'Croation', false, 'cr', true],
|
524
|
+
['česky', 'Czech', false, 'cs', true],
|
525
|
+
['ѩзыкъ словѣньскъ', 'Church', false, 'cu', false],
|
526
|
+
['чӑваш чӗлхи', 'Chuvash', false, 'cv', false],
|
527
|
+
['Cymraeg', 'Welsh', false, 'cy', false],
|
528
|
+
['dansk', 'Danish', false, 'da', true],
|
529
|
+
['Deutsch', 'German', false, 'de', true],
|
530
|
+
['ދިވެހި', 'Divehi', false, 'dv', false],
|
531
|
+
['རྫོང་ཁ', 'Dzongkha', false, 'dz', false],
|
532
|
+
['Ɛʋɛgbɛ', 'Ewe', false, 'ee', false],
|
533
|
+
['Ελληνικά', 'Greek', false, 'el', true],
|
534
|
+
['English', 'English', true, 'en', true],
|
535
|
+
['Esperanto', 'Esperanto', false, 'eo', false],
|
536
|
+
['Español', 'Spanish', false, 'es', true],
|
537
|
+
['eesti', 'Estonian', false, 'et', false],
|
538
|
+
['euskara', 'Basque', false, 'eu', false],
|
539
|
+
['فارسی', 'Persian', false, 'fa', false],
|
540
|
+
['Fulfulde', 'Fulah', false, 'ff', false],
|
541
|
+
['suomi', 'Finnish', false, 'fi', true],
|
542
|
+
['vosa Vakaviti', 'Fijian', false, 'fj', false],
|
543
|
+
['Føroyskt', 'Faroese', false, 'fo', false],
|
544
|
+
['Français', 'French', false, 'fr', true],
|
545
|
+
['Frisian', 'Western', false, 'fy', false],
|
546
|
+
['Gaeilge', 'Irish', false, 'ga', false],
|
547
|
+
['Gaelic', 'Scottish', false, 'gd', false],
|
548
|
+
['Galego', 'Galician', false, 'gl', false],
|
549
|
+
['Avañeẽ', 'Guaraní', false, 'gn', false],
|
550
|
+
['ગુજરાતી', 'Gujarati', false, 'gu', false],
|
551
|
+
['Gaelg', 'Manx', false, 'gv', false],
|
552
|
+
['هَوُسَ', 'Hausa', false, 'ha', false],
|
553
|
+
['עברית', 'Hebrew', false, 'he', true],
|
554
|
+
['हिन्दी', 'Hindi', false, 'hi', true],
|
555
|
+
['Hiri Motu', 'Hiri', false, 'ho', false],
|
556
|
+
['Hrvatski', 'Croatian', false, 'hr', false],
|
557
|
+
['Kreyòl ayisyen', 'Haitian', false, 'ht', false],
|
558
|
+
['Magyar', 'Hungarian', false, 'hu', false],
|
559
|
+
['Հայերեն', 'Armenian', false, 'hy', false],
|
560
|
+
['Otjiherero', 'Herero', false, 'hz', false],
|
561
|
+
['Bahasa Indonesia', 'Indonesian', false, 'id', true],
|
562
|
+
['Interlingue', 'Interlingue', false, 'ie', false],
|
563
|
+
['Igbo', 'Igbo', false, 'ig', false],
|
564
|
+
['ꆇꉙ', 'Sichuan', false, 'ii', false],
|
565
|
+
['Iñupiaq', 'Inupiaq', false, 'ik', false],
|
566
|
+
['Ido', 'Ido', false, 'io', false],
|
567
|
+
['Íslenska', 'Icelandic', false, 'is', false],
|
568
|
+
['Italiano', 'Italian', false, 'it', true],
|
569
|
+
['ᐃᓄᒃᑎᑐᑦ', 'Inuktitut', false, 'iu', false],
|
570
|
+
['日本語', 'Japanese', false, 'ja', true],
|
571
|
+
['basa Jawa', 'Javanese', false, 'jv', false],
|
572
|
+
['ქართული', 'Georgian', false, 'ka', false],
|
573
|
+
['KiKongo', 'Kongo', false, 'kg', false],
|
574
|
+
['Gĩkũyũ', 'Kikuyu', false, 'ki', false],
|
575
|
+
['Kuanyama', 'Kwanyama', false, 'kj', false],
|
576
|
+
['Қазақ тілі', 'Kazakh', false, 'kk', false],
|
577
|
+
['kalaallisut', 'Kalaallisut', false, 'kl', false],
|
578
|
+
['ភាសាខ្មែរ', 'Khmer', false, 'km', false],
|
579
|
+
['ಕನ್ನಡ', 'Kannada', false, 'kn', false],
|
580
|
+
['한국어', 'Korean', false, 'ko', true],
|
581
|
+
['Kanuri', 'Kanuri', false, 'kr', false],
|
582
|
+
['कश्मीरी', 'Kashmiri', false, 'ks', false],
|
583
|
+
['Kurdî', 'Kurdish', false, 'ku', false],
|
584
|
+
['коми кыв', 'Komi', false, 'kv', false],
|
585
|
+
['Kernewek', 'Cornish', false, 'kw', false],
|
586
|
+
['кыргыз тили', 'Kirghiz', false, 'ky', false],
|
587
|
+
['latine', 'Latin', false, 'la', false],
|
588
|
+
['Lëtzebuergesch', 'Luxembourgish', false, 'lb', false],
|
589
|
+
['Luganda', 'Ganda', false, 'lg', false],
|
590
|
+
['Limburgs', 'Limburgish', false, 'li', false],
|
591
|
+
['Lingála', 'Lingala', false, 'ln', false],
|
592
|
+
['ພາສາລາວ', 'Lao', false, 'lo', false],
|
593
|
+
['lietuvių kalba', 'Lithuanian', false, 'lt', true],
|
594
|
+
['Luba-Katanga', 'Luba-Katanga', false, 'lu', false],
|
595
|
+
['latviešu valoda', 'Latvian', false, 'lv', true],
|
596
|
+
['Malagasy fiteny', 'Malagasy', false, 'mg', false],
|
597
|
+
['Kajin M̧ajeļ', 'Marshallese', false, 'mh', false],
|
598
|
+
['te reo Māori', 'Māori', false, 'mi', false],
|
599
|
+
['македонски јазик', 'Macedonian', false, 'mk', false],
|
600
|
+
['മലയാളം', 'Malayalam', false, 'ml', false],
|
601
|
+
['Монгол', 'Mongolian', false, 'mn', false],
|
602
|
+
['मराठी', 'Marathi', false, 'mr', false],
|
603
|
+
['bahasa Melayu', 'Malay', false, 'ms', false],
|
604
|
+
['Malti', 'Maltese', false, 'mt', false],
|
605
|
+
['ဗမာစာ', 'Burmese', false, 'my', false],
|
606
|
+
['Ekakairũ Naoero', 'Nauru', false, 'na', false],
|
607
|
+
['Bokmål Norsk bokmål', 'Norwegian', false, 'nb', false],
|
608
|
+
['Ndebele isiNdebele', 'North', false, 'nd', false],
|
609
|
+
['नेपाली', 'Nepali', false, 'ne', false],
|
610
|
+
['Owambo', 'Ndonga', false, 'ng', false],
|
611
|
+
['Nederlands', 'Dutch', false, 'nl', true],
|
612
|
+
['Nynorsk Norsk nynorsk', 'Norwegian', false, 'nn', false],
|
613
|
+
['Norsk', 'Norwegian', false, 'no', true],
|
614
|
+
['Ndebele isiNdebele', 'South', false, 'nr', false],
|
615
|
+
['Diné bizaad', 'Navajo', false, 'nv', false],
|
616
|
+
['chiCheŵa', 'Chichewa', false, 'ny', false],
|
617
|
+
['Occitan', 'Occitan', false, 'oc', false],
|
618
|
+
['ᐊᓂᔑᓈᐯᒧᐎᓐ', 'Ojibwa', false, 'oj', false],
|
619
|
+
['Afaan Oromoo', 'Oromo', false, 'om', false],
|
620
|
+
['ଓଡ଼ିଆ', 'Oriya', false, 'or', false],
|
621
|
+
['Ирон æвзаг', 'Ossetian', false, 'os', false],
|
622
|
+
['ਪੰਜਾਬੀ', 'Panjabi', false, 'pa', false],
|
623
|
+
['पाऴि', 'Pāli', false, 'pi', false],
|
624
|
+
['polski', 'Polish', false, 'pl', true],
|
625
|
+
['پښتو', 'Pashto', false, 'ps', false],
|
626
|
+
['Português', 'Portuguese', false, 'pt', true],
|
627
|
+
['Runa Simi', 'Quechua', false, 'qu', false],
|
628
|
+
['rumantsch grischun', 'Raeto-Romance', false, 'rm', false],
|
629
|
+
['kiRundi', 'Kirundi', false, 'rn', false],
|
630
|
+
['română', 'Romanian', false, 'ro', true],
|
631
|
+
['русский язык', 'Russian', false, 'ru', true],
|
632
|
+
['Ikinyarwanda', 'Kinyarwanda', false, 'rw', false],
|
633
|
+
['संस्कृतम्', 'Sanskrit', false, 'sa', false],
|
634
|
+
['sardu', 'Sardinian', false, 'sc', false],
|
635
|
+
['सिन्धी', 'Sindhi', false, 'sd', false],
|
636
|
+
['Sami Davvisámegiella', 'Northern', false, 'se', false],
|
637
|
+
['yângâ tî sängö', 'Sango', false, 'sg', false],
|
638
|
+
['සිංහල', 'Sinhala', false, 'si', false],
|
639
|
+
['slovenčina', 'Slovak', false, 'sk', true],
|
640
|
+
['slovenščina', 'Slovenian', false, 'sl', true],
|
641
|
+
['gagana fa`a Samoa', 'Samoan', false, 'sm', false],
|
642
|
+
['chiShona', 'Shona', false, 'sn', false],
|
643
|
+
['Soomaaliga', 'Somali', false, 'so', false],
|
644
|
+
['Shqip', 'Albanian', false, 'sq', false],
|
645
|
+
['српски језик', 'Serbian', false, 'sr', true],
|
646
|
+
['SiSwati', 'Swati', false, 'ss', false],
|
647
|
+
['Sotho Sesotho', 'Southern', false, 'st', false],
|
648
|
+
['Basa Sunda', 'Sundanese', false, 'su', false],
|
649
|
+
['svenska', 'Swedish', false, 'sv', true],
|
650
|
+
['Kiswahili', 'Swahili', false, 'sw', false],
|
651
|
+
['தமிழ்', 'Tamil', false, 'ta', false],
|
652
|
+
['తెలుగు', 'Telugu', false, 'te', false],
|
653
|
+
['тоҷикӣ', 'Tajik', false, 'tg', false],
|
654
|
+
['ไทย', 'Thai', false, 'th', false],
|
655
|
+
['ትግርኛ', 'Tigrinya', false, 'ti', false],
|
656
|
+
['Türkmen', 'Turkmen', false, 'tk', false],
|
657
|
+
['Tagalog', 'Tagalog', false, 'tl', true],
|
658
|
+
['Setswana', 'Tswana', false, 'tn', false],
|
659
|
+
['faka Tonga', 'Tonga', false, 'to', false],
|
660
|
+
['Türkçe', 'Turkish', false, 'tr', false],
|
661
|
+
['Xitsonga', 'Tsonga', false, 'ts', false],
|
662
|
+
['татарча', 'Tatar', false, 'tt', false],
|
663
|
+
['Twi', 'Twi', false, 'tw', false],
|
664
|
+
['Reo Mā`ohi', 'Tahitian', false, 'ty', false],
|
665
|
+
['Uyƣurqə', 'Uighur', false, 'ug', false],
|
666
|
+
['Українська', 'Ukrainian', false, 'uk', true],
|
667
|
+
['اردو', 'Urdu', false, 'ur', false],
|
668
|
+
['O`zbek', 'Uzbek', false, 'uz', false],
|
669
|
+
['Tshivenḓa', 'Venda', false, 've', false],
|
670
|
+
['Tiếng Việt', 'Vietnamese', false, 'vi', true],
|
671
|
+
['Volapük', 'Volapük', false, 'vo', false],
|
672
|
+
['Walon', 'Walloon', false, 'wa', false],
|
673
|
+
['Wollof', 'Wolof', false, 'wo', false],
|
674
|
+
['isiXhosa', 'Xhosa', false, 'xh', false],
|
675
|
+
['ייִדיש', 'Yiddish', false, 'yi', false],
|
676
|
+
['Yorùbá', 'Yoruba', false, 'yo', false],
|
677
|
+
['Saɯ cueŋƅ', 'Zhuang', false, 'za', false],
|
678
|
+
['中文', 'Chinese', false, 'zh-CN', true],
|
679
|
+
['中文', 'Chinese Traditional', false, 'zh-TW', true],
|
680
|
+
['isiZulu', 'Zulu', false, 'zu', false]
|
681
|
+
].each {|l| Language.create(:name => l[0], :english_name => l[1], :is_default => l[2], :locale => l[3], :supported => l[4]) }
|
682
|
+
|
683
|
+
puts 'Finished adding languages, countries and states'
|
684
|
+
end
|
685
|
+
end
|
686
|
+
end
|
687
|
+
|
688
|
+
end
|
689
|
+
end
|
690
|
+
end
|
691
|
+
MuckEngine::Tasks.new
|
data/muck-engine.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{muck-engine}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.2"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Justin Ball"]
|
9
|
-
s.date = %q{2009-06-
|
9
|
+
s.date = %q{2009-06-12}
|
10
10
|
s.description = %q{The base engine for the muck system. Contains common tables, custom for, css and javascript.}
|
11
11
|
s.email = %q{justinball@gmail.com}
|
12
12
|
s.extra_rdoc_files = [
|
@@ -18,34 +18,67 @@ Gem::Specification.new do |s|
|
|
18
18
|
"Rakefile",
|
19
19
|
"VERSION",
|
20
20
|
"app/controllers/admin/muck/base_controller.rb",
|
21
|
+
"app/controllers/admin/muck/base_controller.rb",
|
22
|
+
"app/helpers/muck_custom_form_builder.rb",
|
21
23
|
"app/helpers/muck_custom_form_builder.rb",
|
22
24
|
"app/helpers/muck_engine_helper.rb",
|
25
|
+
"app/helpers/muck_engine_helper.rb",
|
23
26
|
"app/models/country.rb",
|
27
|
+
"app/models/country.rb",
|
28
|
+
"app/models/language.rb",
|
24
29
|
"app/models/language.rb",
|
25
30
|
"app/models/state.rb",
|
31
|
+
"app/models/state.rb",
|
32
|
+
"app/views/forms/_base_field.html.erb",
|
26
33
|
"app/views/forms/_base_field.html.erb",
|
27
34
|
"app/views/forms/_color_picker_field.html.erb",
|
35
|
+
"app/views/forms/_color_picker_field.html.erb",
|
36
|
+
"app/views/forms/_default.html.erb",
|
28
37
|
"app/views/forms/_default.html.erb",
|
29
38
|
"app/views/forms/_field.html.erb",
|
39
|
+
"app/views/forms/_field.html.erb",
|
40
|
+
"app/views/forms/_field_with_tips.html.erb",
|
30
41
|
"app/views/forms/_field_with_tips.html.erb",
|
31
42
|
"app/views/forms/_menu_field.erb",
|
43
|
+
"app/views/forms/_menu_field.erb",
|
44
|
+
"app/views/forms/_menu_field.html.erb",
|
32
45
|
"app/views/forms/_menu_field.html.erb",
|
33
46
|
"app/views/forms/_tips.html.erb",
|
47
|
+
"app/views/forms/_tips.html.erb",
|
48
|
+
"app/views/layouts/admin.html.erb",
|
34
49
|
"app/views/layouts/admin.html.erb",
|
35
50
|
"app/views/layouts/default.html.erb",
|
51
|
+
"app/views/layouts/default.html.erb",
|
52
|
+
"app/views/shared/_error_box.html.erb",
|
36
53
|
"app/views/shared/_error_box.html.erb",
|
37
54
|
"app/views/shared/_field_error.html.erb",
|
55
|
+
"app/views/shared/_field_error.html.erb",
|
56
|
+
"app/views/shared/_flash_error_box.html.erb",
|
38
57
|
"app/views/shared/_flash_error_box.html.erb",
|
39
58
|
"app/views/shared/_flash_messages.html.erb",
|
59
|
+
"app/views/shared/_flash_messages.html.erb",
|
40
60
|
"app/views/shared/_growl.html.erb",
|
61
|
+
"app/views/shared/_growl.html.erb",
|
62
|
+
"app/views/shared/_growl_box.html.erb",
|
41
63
|
"app/views/shared/_growl_box.html.erb",
|
42
64
|
"app/views/shared/_no_result.html.erb",
|
65
|
+
"app/views/shared/_no_result.html.erb",
|
66
|
+
"db/migrate/20090402234137_create_languages.rb",
|
43
67
|
"db/migrate/20090402234137_create_languages.rb",
|
44
68
|
"db/migrate/20090426041056_create_countries.rb",
|
69
|
+
"db/migrate/20090426041056_create_countries.rb",
|
70
|
+
"db/migrate/20090426041103_create_states.rb",
|
45
71
|
"db/migrate/20090426041103_create_states.rb",
|
46
72
|
"install.rb",
|
47
73
|
"lib/action_controller/muck_application.rb",
|
74
|
+
"lib/action_controller/muck_application.rb",
|
75
|
+
"lib/active_record/muck_model.rb",
|
48
76
|
"lib/active_record/muck_model.rb",
|
77
|
+
"lib/muck_engine.rb",
|
78
|
+
"lib/muck_engine.rb",
|
79
|
+
"lib/muck_engine/tasks.rb",
|
80
|
+
"lib/muck_engine/tasks.rb",
|
81
|
+
"locales/en.yml",
|
49
82
|
"locales/en.yml",
|
50
83
|
"muck-engine.gemspec",
|
51
84
|
"public/images/arrow_down.gif",
|
@@ -163,6 +196,7 @@ Gem::Specification.new do |s|
|
|
163
196
|
"public/stylesheets/reset.css",
|
164
197
|
"public/stylesheets/styles.css",
|
165
198
|
"rails/init.rb",
|
199
|
+
"rails/init.rb",
|
166
200
|
"rdoc/classes/ActionController.html",
|
167
201
|
"rdoc/classes/ActionController/MuckApplication.html",
|
168
202
|
"rdoc/classes/ActionController/MuckApplication/ClassMethods.html",
|
@@ -177,16 +211,20 @@ Gem::Specification.new do |s|
|
|
177
211
|
"rdoc/files/README_rdoc.html",
|
178
212
|
"rdoc/files/lib/action_controller/muck_application_rb.html",
|
179
213
|
"rdoc/files/lib/active_record/muck_model_rb.html",
|
180
|
-
"rdoc/files/lib/
|
181
|
-
"rdoc/files/lib/
|
214
|
+
"rdoc/files/lib/muck_engine/tasks_rb.html",
|
215
|
+
"rdoc/files/lib/muck_engine_rb.html",
|
182
216
|
"rdoc/fr_class_index.html",
|
183
217
|
"rdoc/fr_file_index.html",
|
184
218
|
"rdoc/fr_method_index.html",
|
185
219
|
"rdoc/index.html",
|
186
220
|
"rdoc/rdoc-style.css",
|
187
221
|
"tasks/languages.txt",
|
222
|
+
"tasks/languages.txt",
|
223
|
+
"tasks/rails.rake",
|
188
224
|
"tasks/rails.rake",
|
189
225
|
"test/muck_engine_test.rb",
|
226
|
+
"test/muck_engine_test.rb",
|
227
|
+
"test/test_helper.rb",
|
190
228
|
"test/test_helper.rb",
|
191
229
|
"uninstall.rb"
|
192
230
|
]
|
data/rdoc/created.rid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Thu, 11 Jun 2009
|
1
|
+
Thu, 11 Jun 2009 23:55:40 -0600
|
data/rdoc/files/README_rdoc.html
CHANGED
@@ -56,7 +56,7 @@
|
|
56
56
|
</tr>
|
57
57
|
<tr class="top-aligned-row">
|
58
58
|
<td><strong>Last Update:</strong></td>
|
59
|
-
<td>
|
59
|
+
<td>Thu Jun 11 23:09:28 -0600 2009</td>
|
60
60
|
</tr>
|
61
61
|
</table>
|
62
62
|
</div>
|
@@ -69,10 +69,7 @@
|
|
69
69
|
<div id="contextContent">
|
70
70
|
|
71
71
|
<div id="description">
|
72
|
-
<
|
73
|
-
<a href="../classes/MuckEngine.html">MuckEngine</a>
|
74
|
-
</p>
|
75
|
-
<h6>====</h6>
|
72
|
+
<h1><a href="../classes/MuckEngine.html">MuckEngine</a></h1>
|
76
73
|
<p>
|
77
74
|
The muck engine is forms the basis for the muck framework and includes
|
78
75
|
basic functionality utilized by the various muck engines.
|
@@ -90,10 +87,15 @@ Add optional functionality with the following command:
|
|
90
87
|
<pre>
|
91
88
|
$ rake rails:template LOCATION=http://github.com/jbasdf/rails-templates/raw/master/mucktoo.rb
|
92
89
|
</pre>
|
90
|
+
<h2>Setup</h2>
|
93
91
|
<p>
|
94
|
-
|
92
|
+
Be sure to include the muck_engine tasks in your Rakefile:
|
95
93
|
</p>
|
96
|
-
<
|
94
|
+
<pre>
|
95
|
+
require 'muck_engine'
|
96
|
+
require 'muck_engine/tasks'
|
97
|
+
</pre>
|
98
|
+
<h2>Layout</h2>
|
97
99
|
<p>
|
98
100
|
The muck template will build your basic application and construct all the
|
99
101
|
needed files and configuration.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muck-engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Ball
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-06-
|
12
|
+
date: 2009-06-12 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -55,6 +55,8 @@ files:
|
|
55
55
|
- install.rb
|
56
56
|
- lib/action_controller/muck_application.rb
|
57
57
|
- lib/active_record/muck_model.rb
|
58
|
+
- lib/muck_engine.rb
|
59
|
+
- lib/muck_engine/tasks.rb
|
58
60
|
- locales/en.yml
|
59
61
|
- muck-engine.gemspec
|
60
62
|
- public/images/arrow_down.gif
|
@@ -186,8 +188,8 @@ files:
|
|
186
188
|
- rdoc/files/README_rdoc.html
|
187
189
|
- rdoc/files/lib/action_controller/muck_application_rb.html
|
188
190
|
- rdoc/files/lib/active_record/muck_model_rb.html
|
189
|
-
- rdoc/files/lib/
|
190
|
-
- rdoc/files/lib/
|
191
|
+
- rdoc/files/lib/muck_engine/tasks_rb.html
|
192
|
+
- rdoc/files/lib/muck_engine_rb.html
|
191
193
|
- rdoc/fr_class_index.html
|
192
194
|
- rdoc/fr_file_index.html
|
193
195
|
- rdoc/fr_method_index.html
|