muck-engine 0.2.19 → 0.2.20

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.19
1
+ 0.2.20
@@ -32,6 +32,10 @@ Factory.sequence :locale do |n|
32
32
  "a#{n}"
33
33
  end
34
34
 
35
+ Factory.sequence :address do |n|
36
+ "#{n} West #{n} South"
37
+ end
38
+
35
39
  Factory.define :state do |f|
36
40
  f.name { Factory.next(:name) }
37
41
  f.abbreviation { Factory.next(:abbr) }
data/muck-engine.gemspec CHANGED
@@ -1,15 +1,15 @@
1
1
  # Generated by jeweler
2
- # DO NOT EDIT THIS FILE
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{muck-engine}
8
- s.version = "0.2.19"
8
+ s.version = "0.2.20"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Justin Ball", "Joel Duffin"]
12
- s.date = %q{2009-12-07}
12
+ s.date = %q{2009-12-12}
13
13
  s.description = %q{The base engine for the muck system. Contains common tables, custom for, css and javascript.}
14
14
  s.email = %q{justin@tatemae.com}
15
15
  s.extra_rdoc_files = [
@@ -22,197 +22,101 @@ Gem::Specification.new do |s|
22
22
  "Rakefile",
23
23
  "VERSION",
24
24
  "app/controllers/admin/muck/base_controller.rb",
25
- "app/controllers/admin/muck/base_controller.rb",
26
- "app/controllers/muck/helper_controller.rb",
27
25
  "app/controllers/muck/helper_controller.rb",
28
26
  "app/helpers/muck_custom_form_builder.rb",
29
- "app/helpers/muck_custom_form_builder.rb",
30
- "app/helpers/muck_engine_helper.rb",
31
27
  "app/helpers/muck_engine_helper.rb",
32
28
  "app/models/basic_mailer.rb",
33
- "app/models/basic_mailer.rb",
34
- "app/models/country.rb",
35
29
  "app/models/country.rb",
36
30
  "app/models/language.rb",
37
- "app/models/language.rb",
38
31
  "app/models/state.rb",
39
- "app/models/state.rb",
40
- "app/views/forms/_base_field.html.erb",
41
32
  "app/views/forms/_base_field.html.erb",
42
33
  "app/views/forms/_color_picker_field.html.erb",
43
- "app/views/forms/_color_picker_field.html.erb",
44
34
  "app/views/forms/_default.html.erb",
45
- "app/views/forms/_default.html.erb",
46
- "app/views/forms/_field.html.erb",
47
35
  "app/views/forms/_field.html.erb",
48
36
  "app/views/forms/_field_with_tips.html.erb",
49
- "app/views/forms/_field_with_tips.html.erb",
50
37
  "app/views/forms/_menu_field.html.erb",
51
- "app/views/forms/_menu_field.html.erb",
52
- "app/views/forms/_tips.html.erb",
53
38
  "app/views/forms/_tips.html.erb",
54
39
  "app/views/layouts/admin.html.erb",
55
- "app/views/layouts/admin.html.erb",
56
- "app/views/layouts/default.html.erb",
57
40
  "app/views/layouts/default.html.erb",
58
41
  "app/views/layouts/email_default.text.html.erb",
59
- "app/views/layouts/email_default.text.html.erb",
60
- "app/views/layouts/email_default.text.plain.erb",
61
42
  "app/views/layouts/email_default.text.plain.erb",
62
43
  "app/views/layouts/frame.html.erb",
63
- "app/views/layouts/frame.html.erb",
64
44
  "app/views/layouts/global/_google_analytics.html.erb",
65
- "app/views/layouts/global/_google_analytics.html.erb",
66
- "app/views/layouts/global/_head.html.erb",
67
45
  "app/views/layouts/global/_head.html.erb",
68
46
  "app/views/layouts/popup.html.erb",
69
- "app/views/layouts/popup.html.erb",
70
47
  "app/views/scripts/_parse_uri.html.erb",
71
- "app/views/scripts/_parse_uri.html.erb",
72
- "app/views/scripts/_time_scripts.html.erb",
73
48
  "app/views/scripts/_time_scripts.html.erb",
74
49
  "app/views/shared/_delete.html.erb",
75
- "app/views/shared/_delete.html.erb",
76
50
  "app/views/shared/_error_box.html.erb",
77
- "app/views/shared/_error_box.html.erb",
78
- "app/views/shared/_field_error.html.erb",
79
51
  "app/views/shared/_field_error.html.erb",
80
52
  "app/views/shared/_flash_error_box.html.erb",
81
- "app/views/shared/_flash_error_box.html.erb",
82
- "app/views/shared/_flash_messages.html.erb",
83
53
  "app/views/shared/_flash_messages.html.erb",
84
54
  "app/views/shared/_growl.html.erb",
85
- "app/views/shared/_growl.html.erb",
86
- "app/views/shared/_growl_box.html.erb",
87
55
  "app/views/shared/_growl_box.html.erb",
88
56
  "app/views/shared/_no_result.html.erb",
89
- "app/views/shared/_no_result.html.erb",
90
57
  "config/muck_engine_routes.rb",
91
- "config/muck_engine_routes.rb",
92
- "db/migrate/20090402234137_create_languages.rb",
93
58
  "db/migrate/20090402234137_create_languages.rb",
94
59
  "db/migrate/20090426041056_create_countries.rb",
95
- "db/migrate/20090426041056_create_countries.rb",
96
- "db/migrate/20090426041103_create_states.rb",
97
60
  "db/migrate/20090426041103_create_states.rb",
98
61
  "install.rb",
99
62
  "lib/action_controller/muck_application.rb",
100
- "lib/action_controller/muck_application.rb",
101
- "lib/active_record/muck_model.rb",
102
63
  "lib/active_record/muck_model.rb",
103
64
  "lib/muck_engine.rb",
104
- "lib/muck_engine.rb",
105
- "lib/muck_engine/initialize_routes.rb",
106
65
  "lib/muck_engine/initialize_routes.rb",
107
66
  "lib/muck_engine/tasks.rb",
108
- "lib/muck_engine/tasks.rb",
109
- "lib/muck_test_helper.rb",
110
67
  "lib/muck_test_helper.rb",
111
68
  "lib/test/muck_factories.rb",
112
- "lib/test/muck_factories.rb",
113
- "lib/test/muck_test_definitions.rb",
114
69
  "lib/test/muck_test_definitions.rb",
115
70
  "lib/test/muck_test_methods.rb",
116
- "lib/test/muck_test_methods.rb",
117
71
  "lib/test/shoulda_macros/controller.rb",
118
- "lib/test/shoulda_macros/controller.rb",
119
- "lib/test/shoulda_macros/forms.rb",
120
72
  "lib/test/shoulda_macros/forms.rb",
121
73
  "lib/test/shoulda_macros/models.rb",
122
- "lib/test/shoulda_macros/models.rb",
123
74
  "lib/test/shoulda_macros/pagination.rb",
124
- "lib/test/shoulda_macros/pagination.rb",
125
- "lib/test/shoulda_macros/plugins.rb",
126
75
  "lib/test/shoulda_macros/plugins.rb",
127
76
  "locales/ar.yml",
128
- "locales/ar.yml",
129
77
  "locales/bg.yml",
130
- "locales/bg.yml",
131
- "locales/ca.yml",
132
78
  "locales/ca.yml",
133
79
  "locales/cs.yml",
134
- "locales/cs.yml",
135
- "locales/da.yml",
136
80
  "locales/da.yml",
137
81
  "locales/de.yml",
138
- "locales/de.yml",
139
- "locales/el.yml",
140
82
  "locales/el.yml",
141
83
  "locales/en.yml",
142
- "locales/en.yml",
143
84
  "locales/es.yml",
144
- "locales/es.yml",
145
- "locales/et.yml",
146
85
  "locales/et.yml",
147
86
  "locales/fa.yml",
148
- "locales/fa.yml",
149
87
  "locales/fi.yml",
150
- "locales/fi.yml",
151
- "locales/fr.yml",
152
88
  "locales/fr.yml",
153
89
  "locales/gl.yml",
154
- "locales/gl.yml",
155
90
  "locales/hi.yml",
156
- "locales/hi.yml",
157
- "locales/hr.yml",
158
91
  "locales/hr.yml",
159
92
  "locales/hu.yml",
160
- "locales/hu.yml",
161
- "locales/id.yml",
162
93
  "locales/id.yml",
163
94
  "locales/it.yml",
164
- "locales/it.yml",
165
- "locales/iw.yml",
166
95
  "locales/iw.yml",
167
96
  "locales/ja.yml",
168
- "locales/ja.yml",
169
97
  "locales/ko.yml",
170
- "locales/ko.yml",
171
- "locales/lt.yml",
172
98
  "locales/lt.yml",
173
99
  "locales/lv.yml",
174
- "locales/lv.yml",
175
100
  "locales/mt.yml",
176
- "locales/mt.yml",
177
- "locales/nl.yml",
178
101
  "locales/nl.yml",
179
102
  "locales/no.yml",
180
- "locales/no.yml",
181
103
  "locales/pl.yml",
182
- "locales/pl.yml",
183
- "locales/pt-PT.yml",
184
104
  "locales/pt-PT.yml",
185
105
  "locales/pt.yml",
186
- "locales/pt.yml",
187
- "locales/ro.yml",
188
106
  "locales/ro.yml",
189
107
  "locales/ru.yml",
190
- "locales/ru.yml",
191
- "locales/sk.yml",
192
108
  "locales/sk.yml",
193
109
  "locales/sl.yml",
194
- "locales/sl.yml",
195
110
  "locales/sq.yml",
196
- "locales/sq.yml",
197
- "locales/sr.yml",
198
111
  "locales/sr.yml",
199
112
  "locales/sv.yml",
200
- "locales/sv.yml",
201
113
  "locales/th.yml",
202
- "locales/th.yml",
203
- "locales/tl.yml",
204
114
  "locales/tl.yml",
205
115
  "locales/tr.yml",
206
- "locales/tr.yml",
207
116
  "locales/uk.yml",
208
- "locales/uk.yml",
209
- "locales/vi.yml",
210
117
  "locales/vi.yml",
211
118
  "locales/zh-CN.yml",
212
- "locales/zh-CN.yml",
213
119
  "locales/zh-TW.yml",
214
- "locales/zh-TW.yml",
215
- "locales/zh.yml",
216
120
  "locales/zh.yml",
217
121
  "muck-engine.gemspec",
218
122
  "public/images/arrow_down.gif",
@@ -262,7 +166,6 @@ Gem::Specification.new do |s|
262
166
  "public/images/spinner.gif",
263
167
  "public/images/sprites.png",
264
168
  "public/javascripts/fancyzoom.min.js",
265
- "public/javascripts/fancyzoom.min.js",
266
169
  "public/javascripts/jquery/colorpicker.js",
267
170
  "public/javascripts/jquery/jquery-ui.js",
268
171
  "public/javascripts/jquery/jquery.autocomplete.js.readme",
@@ -280,10 +183,8 @@ Gem::Specification.new do |s|
280
183
  "public/javascripts/jquery/jquery.tips.js",
281
184
  "public/javascripts/jquery/jrails.js",
282
185
  "public/javascripts/muck.js",
283
- "public/javascripts/muck.js",
284
186
  "public/javascripts/muck_time/en.js",
285
187
  "public/javascripts/tree.js",
286
- "public/javascripts/tree.js",
287
188
  "public/stylesheets/admin.css",
288
189
  "public/stylesheets/blueprint/ie.css",
289
190
  "public/stylesheets/blueprint/liquid_screen.css",
@@ -385,7 +286,6 @@ Gem::Specification.new do |s|
385
286
  "public/stylesheets/reset.css",
386
287
  "public/stylesheets/styles.css",
387
288
  "rails/init.rb",
388
- "rails/init.rb",
389
289
  "rails_i18n/ar.yml",
390
290
  "rails_i18n/bg.yml",
391
291
  "rails_i18n/bn-IN.yml",
@@ -436,9 +336,8 @@ Gem::Specification.new do |s|
436
336
  "rails_i18n/vi.yml",
437
337
  "rails_i18n/zh-CN.yml",
438
338
  "rails_i18n/zh-TW.yml",
339
+ "rails_i18n/zh.yml",
439
340
  "tasks/languages.txt",
440
- "tasks/languages.txt",
441
- "tasks/rails.rake",
442
341
  "tasks/rails.rake",
443
342
  "test/rails_root/.gitignore",
444
343
  "test/rails_root/.rake_tasks",
@@ -700,3 +599,4 @@ Gem::Specification.new do |s|
700
599
  s.add_dependency(%q<git>, [">= 0"])
701
600
  end
702
601
  end
602
+
@@ -84,3 +84,6 @@ div.jGrowl div.jGrowl-notification h2{text-align:left;font-weight:bold;padding:5
84
84
  #errorExplanation h2{text-align:left;font-weight:bold;padding:5px 5px 5px 15px;font-size:16px;background-color:#B61E12;color:#fff;}
85
85
  #errorExplanation p{color:#333;margin-bottom:0;padding:5px;}
86
86
  #errorExplanation ul li{list-style:square;}
87
+
88
+ /* support */
89
+ .support-information{font-size:9px;color:#333;}
data/rails_i18n/zh.yml ADDED
@@ -0,0 +1,132 @@
1
+ # Chinese (China) translations for Ruby on Rails
2
+ # by tsechingho (http://github.com/tsechingho)
3
+
4
+ "zh-CN":
5
+ date:
6
+ formats:
7
+ default: "%Y-%m-%d"
8
+ short: "%b%d日"
9
+ long: "%Y年%b%d日"
10
+ day_names: [星期日, 星期一, 星期二, 星期三, 星期四, 星期五, 星期六]
11
+ abbr_day_names: [日, 一, 二, 三, 四, 五, 六]
12
+ month_names: [~, 一月, 二月, 三月, 四月, 五月, 六月, 七月, 八月, 九月, 十月, 十一月, 十二月]
13
+ abbr_month_names: [~, 1月, 2月, 3月, 4月, 5月, 6月, 7月, 8月, 9月, 10月, 11月, 12月]
14
+ order: [ :year, :month, :day ]
15
+
16
+ time:
17
+ formats:
18
+ default: "%Y年%b%d日 %A %H:%M:%S %Z"
19
+ short: "%b%d日 %H:%M"
20
+ long: "%Y年%b%d日 %H:%M"
21
+ am: "上午"
22
+ pm: "下午"
23
+
24
+ datetime:
25
+ distance_in_words:
26
+ half_a_minute: "半分钟"
27
+ less_than_x_seconds:
28
+ one: "不到一秒"
29
+ other: "不到 {{count}} 秒"
30
+ x_seconds:
31
+ one: "一秒"
32
+ other: "{{count}} 秒"
33
+ less_than_x_minutes:
34
+ one: "不到一分钟"
35
+ other: "不到 {{count}} 分钟"
36
+ x_minutes:
37
+ one: "一分钟"
38
+ other: "{{count}} 分钟"
39
+ about_x_hours:
40
+ one: "大约一小时"
41
+ other: "大约 {{count}} 小时"
42
+ x_days:
43
+ one: "一天"
44
+ other: "{{count}} 天"
45
+ about_x_months:
46
+ one: "大约一个月"
47
+ other: "大约 {{count}} 个月"
48
+ x_months:
49
+ one: "一个月"
50
+ other: "{{count}} 个月"
51
+ about_x_years:
52
+ one: "大约一年"
53
+ other: "大约 {{count}} 年"
54
+ over_x_years:
55
+ one: "一年多"
56
+ other: "{{count}} 年多"
57
+ prompts:
58
+ year: "年"
59
+ month: "月"
60
+ day: "日"
61
+ hour: "时"
62
+ minute: "分"
63
+ second: "秒"
64
+
65
+ number:
66
+ format:
67
+ separator: "."
68
+ delimiter: ","
69
+ precision: 3
70
+ currency:
71
+ format:
72
+ format: "%u %n"
73
+ unit: "CN¥"
74
+ separator: "."
75
+ delimiter: ","
76
+ precision: 2
77
+ percentage:
78
+ format:
79
+ delimiter: ""
80
+ precision:
81
+ format:
82
+ delimiter: ""
83
+ human:
84
+ format:
85
+ delimiter: ""
86
+ precision: 1
87
+ storage_units:
88
+ format: "%n %u"
89
+ units:
90
+ byte:
91
+ one: "Byte"
92
+ other: "Bytes"
93
+ kb: "KB"
94
+ mb: "MB"
95
+ gb: "GB"
96
+ tb: "TB"
97
+
98
+ support:
99
+ array:
100
+ words_connector: ", "
101
+ two_words_connector: " 和 "
102
+ last_word_connector: ", 和 "
103
+
104
+ activerecord:
105
+ errors:
106
+ template:
107
+ header:
108
+ one: "有 1 个错误发生导致「{{model}}」无法被保存。"
109
+ other: "有 {{count}} 个错误发生导致「{{model}}」无法被保存。"
110
+ body: "如下字段出现错误:"
111
+ messages:
112
+ inclusion: "不包含于列表中"
113
+ exclusion: "是保留关键字"
114
+ invalid: "是无效的"
115
+ confirmation: "与确认值不匹配"
116
+ accepted: "必须是可被接受的"
117
+ empty: "不能留空"
118
+ blank: "不能为空字符"
119
+ too_long: "过长(最长为 {{count}} 个字符)"
120
+ too_short: "过短(最短为 {{count}} 个字符)"
121
+ wrong_length: "长度非法(必须为 {{count}} 个字符)"
122
+ taken: "已经被使用"
123
+ not_a_number: "不是数字"
124
+ greater_than: "必须大于 {{count}}"
125
+ greater_than_or_equal_to: "必须大于或等于 {{count}}"
126
+ equal_to: "必须等于 {{count}}"
127
+ less_than: "必须小于 {{count}}"
128
+ less_than_or_equal_to: "必须小于或等于 {{count}}"
129
+ odd: "必须为单数"
130
+ even: "必须为双数"
131
+
132
+
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.2.19
4
+ version: 0.2.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Ball
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-12-07 00:00:00 -07:00
13
+ date: 2009-12-12 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -372,6 +372,7 @@ files:
372
372
  - rails_i18n/vi.yml
373
373
  - rails_i18n/zh-CN.yml
374
374
  - rails_i18n/zh-TW.yml
375
+ - rails_i18n/zh.yml
375
376
  - tasks/languages.txt
376
377
  - tasks/rails.rake
377
378
  - test/rails_root/.gitignore