sunrise-locales 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (259) hide show
  1. data/Gemfile +36 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +15 -0
  4. data/Rakefile +27 -0
  5. data/app/controllers/manage/locales_controller.rb +43 -0
  6. data/app/views/manage/locales/_locale.html.erb +21 -0
  7. data/app/views/manage/locales/edit.html.erb +101 -0
  8. data/app/views/manage/locales/index.html.erb +24 -0
  9. data/config/locales/ru.yml +20 -0
  10. data/config/locales/uk.yml +20 -0
  11. data/config/routes.rb +5 -0
  12. data/lib/generators/sunrise/locales/USAGE +6 -0
  13. data/lib/generators/sunrise/locales/install_generator.rb +20 -0
  14. data/lib/generators/sunrise/locales/templates/codemirror.css +107 -0
  15. data/lib/generators/sunrise/locales/templates/codemirror.js +2157 -0
  16. data/lib/generators/sunrise/locales/templates/yaml.js +95 -0
  17. data/lib/sunrise-locales.rb +1 -0
  18. data/lib/sunrise/locales.rb +13 -0
  19. data/lib/sunrise/locales/engine.rb +19 -0
  20. data/lib/sunrise/locales/version.rb +5 -0
  21. data/lib/sunrise/locales/yml_locale.rb +43 -0
  22. data/spec/controllers/manage/locales_controller_spec.rb +59 -0
  23. data/spec/dummy/Rakefile +7 -0
  24. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  25. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  26. data/spec/dummy/app/helpers/manage/assets_helper.rb +2 -0
  27. data/spec/dummy/app/helpers/manage/base_helper.rb +81 -0
  28. data/spec/dummy/app/helpers/manage/pages_helper.rb +2 -0
  29. data/spec/dummy/app/helpers/manage/settings_helper.rb +2 -0
  30. data/spec/dummy/app/helpers/manage/structures_helper.rb +12 -0
  31. data/spec/dummy/app/helpers/manage/users_helper.rb +6 -0
  32. data/spec/dummy/app/models/defaults/ability.rb +39 -0
  33. data/spec/dummy/app/models/defaults/asset.rb +9 -0
  34. data/spec/dummy/app/models/defaults/attachment_file.rb +31 -0
  35. data/spec/dummy/app/models/defaults/avatar.rb +33 -0
  36. data/spec/dummy/app/models/defaults/header.rb +5 -0
  37. data/spec/dummy/app/models/defaults/page.rb +5 -0
  38. data/spec/dummy/app/models/defaults/picture.rb +31 -0
  39. data/spec/dummy/app/models/defaults/position_type.rb +7 -0
  40. data/spec/dummy/app/models/defaults/role.rb +20 -0
  41. data/spec/dummy/app/models/defaults/role_type.rb +8 -0
  42. data/spec/dummy/app/models/defaults/structure.rb +16 -0
  43. data/spec/dummy/app/models/defaults/structure_type.rb +9 -0
  44. data/spec/dummy/app/models/defaults/user.rb +47 -0
  45. data/spec/dummy/app/uploaders/attachment_file_uploader.rb +5 -0
  46. data/spec/dummy/app/uploaders/avatar_uploader.rb +17 -0
  47. data/spec/dummy/app/uploaders/picture_uploader.rb +17 -0
  48. data/spec/dummy/app/views/layouts/application.html.erb +37 -0
  49. data/spec/dummy/app/views/pages/show.html.erb +2 -0
  50. data/spec/dummy/app/views/shared/_notice.html.erb +17 -0
  51. data/spec/dummy/config.ru +4 -0
  52. data/spec/dummy/config/application.rb +46 -0
  53. data/spec/dummy/config/application.yml.sample +4 -0
  54. data/spec/dummy/config/boot.rb +10 -0
  55. data/spec/dummy/config/database.yml +22 -0
  56. data/spec/dummy/config/database.yml.sample +34 -0
  57. data/spec/dummy/config/environment.rb +5 -0
  58. data/spec/dummy/config/environments/development.rb +26 -0
  59. data/spec/dummy/config/environments/production.rb +49 -0
  60. data/spec/dummy/config/environments/test.rb +35 -0
  61. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  62. data/spec/dummy/config/initializers/devise.rb +204 -0
  63. data/spec/dummy/config/initializers/inflections.rb +10 -0
  64. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  65. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  66. data/spec/dummy/config/initializers/session_store.rb +8 -0
  67. data/spec/dummy/config/initializers/simple_form.rb +93 -0
  68. data/spec/dummy/config/initializers/sunrise.rb +9 -0
  69. data/spec/dummy/config/locales/devise.en.yml +53 -0
  70. data/spec/dummy/config/locales/en.yml +3 -0
  71. data/spec/dummy/config/locales/ru.yml +3 -0
  72. data/spec/dummy/config/locales/simple_form.en.yml +24 -0
  73. data/spec/dummy/config/locales/uk.yml +2 -0
  74. data/spec/dummy/config/logrotate-config.sample +9 -0
  75. data/spec/dummy/config/nginx-config-passenger.sample +51 -0
  76. data/spec/dummy/config/routes.rb +64 -0
  77. data/spec/dummy/db/migrate/20110801124809_sunrise_create_users.rb +29 -0
  78. data/spec/dummy/db/migrate/20110801124909_sunrise_create_roles.rb +16 -0
  79. data/spec/dummy/db/migrate/20110801125009_sunrise_create_structures.rb +27 -0
  80. data/spec/dummy/db/migrate/20110801125109_sunrise_create_pages.rb +17 -0
  81. data/spec/dummy/db/migrate/20110801125209_sunrise_create_assets.rb +28 -0
  82. data/spec/dummy/db/migrate/20110801125309_sunrise_create_headers.rb +20 -0
  83. data/spec/dummy/db/seeds.rb +25 -0
  84. data/spec/dummy/db/test.sqlite3 +0 -0
  85. data/spec/dummy/lib/templates/erb/scaffold/_form.html.erb +13 -0
  86. data/spec/dummy/log/test.log +1678 -0
  87. data/spec/dummy/public/404.html +26 -0
  88. data/spec/dummy/public/422.html +26 -0
  89. data/spec/dummy/public/500.html +26 -0
  90. data/spec/dummy/public/favicon.ico +0 -0
  91. data/spec/dummy/public/images/manage/add_post_bot.gif +0 -0
  92. data/spec/dummy/public/images/manage/add_post_top.gif +0 -0
  93. data/spec/dummy/public/images/manage/add_white_bot.gif +0 -0
  94. data/spec/dummy/public/images/manage/add_white_top.gif +0 -0
  95. data/spec/dummy/public/images/manage/arrow.png +0 -0
  96. data/spec/dummy/public/images/manage/back_but_lc.gif +0 -0
  97. data/spec/dummy/public/images/manage/back_but_rc.gif +0 -0
  98. data/spec/dummy/public/images/manage/bot_corn.gif +0 -0
  99. data/spec/dummy/public/images/manage/bot_duo_corn.gif +0 -0
  100. data/spec/dummy/public/images/manage/but_bg.png +0 -0
  101. data/spec/dummy/public/images/manage/but_block_lc.gif +0 -0
  102. data/spec/dummy/public/images/manage/but_block_rc.gif +0 -0
  103. data/spec/dummy/public/images/manage/but_freze_lc.gif +0 -0
  104. data/spec/dummy/public/images/manage/but_freze_rc.gif +0 -0
  105. data/spec/dummy/public/images/manage/but_gr.gif +0 -0
  106. data/spec/dummy/public/images/manage/but_gr_l.gif +0 -0
  107. data/spec/dummy/public/images/manage/but_gr_r.gif +0 -0
  108. data/spec/dummy/public/images/manage/but_search.gif +0 -0
  109. data/spec/dummy/public/images/manage/but_unfreze_lc.gif +0 -0
  110. data/spec/dummy/public/images/manage/but_unfreze_rc.gif +0 -0
  111. data/spec/dummy/public/images/manage/button_add_foto.gif +0 -0
  112. data/spec/dummy/public/images/manage/button_add_foto_ru.gif +0 -0
  113. data/spec/dummy/public/images/manage/button_add_foto_ua.gif +0 -0
  114. data/spec/dummy/public/images/manage/button_add_foto_uk.gif +0 -0
  115. data/spec/dummy/public/images/manage/cancelbutton.gif +0 -0
  116. data/spec/dummy/public/images/manage/dark_arr.gif +0 -0
  117. data/spec/dummy/public/images/manage/dark_arr_left.gif +0 -0
  118. data/spec/dummy/public/images/manage/dark_cross_ico.gif +0 -0
  119. data/spec/dummy/public/images/manage/dot.gif +0 -0
  120. data/spec/dummy/public/images/manage/duo_bg.gif +0 -0
  121. data/spec/dummy/public/images/manage/duo_bg_small.gif +0 -0
  122. data/spec/dummy/public/images/manage/duo_bg_small_blocked.gif +0 -0
  123. data/spec/dummy/public/images/manage/duo_bg_small_frozed.gif +0 -0
  124. data/spec/dummy/public/images/manage/duo_bg_small_notact.gif +0 -0
  125. data/spec/dummy/public/images/manage/duo_bot_small.gif +0 -0
  126. data/spec/dummy/public/images/manage/duo_bot_small_blocked.gif +0 -0
  127. data/spec/dummy/public/images/manage/duo_bot_small_frozed.gif +0 -0
  128. data/spec/dummy/public/images/manage/duo_bot_small_notact.gif +0 -0
  129. data/spec/dummy/public/images/manage/duo_top_small.gif +0 -0
  130. data/spec/dummy/public/images/manage/duo_top_small_blocked.gif +0 -0
  131. data/spec/dummy/public/images/manage/duo_top_small_frozed.gif +0 -0
  132. data/spec/dummy/public/images/manage/duo_top_small_notact.gif +0 -0
  133. data/spec/dummy/public/images/manage/edit_white_top.gif +0 -0
  134. data/spec/dummy/public/images/manage/empty.gif +0 -0
  135. data/spec/dummy/public/images/manage/filter_bot_bg.gif +0 -0
  136. data/spec/dummy/public/images/manage/filter_top_bg.gif +0 -0
  137. data/spec/dummy/public/images/manage/flag_en.gif +0 -0
  138. data/spec/dummy/public/images/manage/flag_en_nonact.gif +0 -0
  139. data/spec/dummy/public/images/manage/flag_ru.gif +0 -0
  140. data/spec/dummy/public/images/manage/flag_ru_nonact.gif +0 -0
  141. data/spec/dummy/public/images/manage/flag_ua.gif +0 -0
  142. data/spec/dummy/public/images/manage/flag_ua_nonact.gif +0 -0
  143. data/spec/dummy/public/images/manage/foto.jpg +0 -0
  144. data/spec/dummy/public/images/manage/ico_add.gif +0 -0
  145. data/spec/dummy/public/images/manage/ico_del.gif +0 -0
  146. data/spec/dummy/public/images/manage/ico_down.gif +0 -0
  147. data/spec/dummy/public/images/manage/ico_edit.gif +0 -0
  148. data/spec/dummy/public/images/manage/ico_settings.gif +0 -0
  149. data/spec/dummy/public/images/manage/ico_up.gif +0 -0
  150. data/spec/dummy/public/images/manage/input_bg.gif +0 -0
  151. data/spec/dummy/public/images/manage/l_but_corn.gif +0 -0
  152. data/spec/dummy/public/images/manage/minimise_but.gif +0 -0
  153. data/spec/dummy/public/images/manage/mp3.png +0 -0
  154. data/spec/dummy/public/images/manage/page_arr_hover.png +0 -0
  155. data/spec/dummy/public/images/manage/page_next_arr.gif +0 -0
  156. data/spec/dummy/public/images/manage/page_num_hover.gif +0 -0
  157. data/spec/dummy/public/images/manage/page_prev_arr.gif +0 -0
  158. data/spec/dummy/public/images/manage/panel/l_but_corn.gif +0 -0
  159. data/spec/dummy/public/images/manage/panel/maximise_but.gif +0 -0
  160. data/spec/dummy/public/images/manage/panel/r_but_corn.gif +0 -0
  161. data/spec/dummy/public/images/manage/panel/top_menu_arr.gif +0 -0
  162. data/spec/dummy/public/images/manage/panel/user_pic.gif +0 -0
  163. data/spec/dummy/public/images/manage/preloader.gif +0 -0
  164. data/spec/dummy/public/images/manage/r_but_corn.gif +0 -0
  165. data/spec/dummy/public/images/manage/select_bg.gif +0 -0
  166. data/spec/dummy/public/images/manage/select_corn.gif +0 -0
  167. data/spec/dummy/public/images/manage/struct_corn_lg.gif +0 -0
  168. data/spec/dummy/public/images/manage/struct_corn_llg.gif +0 -0
  169. data/spec/dummy/public/images/manage/struct_corn_lw.gif +0 -0
  170. data/spec/dummy/public/images/manage/struct_corn_rg.gif +0 -0
  171. data/spec/dummy/public/images/manage/struct_corn_rlg.gif +0 -0
  172. data/spec/dummy/public/images/manage/struct_corn_rw.gif +0 -0
  173. data/spec/dummy/public/images/manage/tab_gl.gif +0 -0
  174. data/spec/dummy/public/images/manage/tab_gr.gif +0 -0
  175. data/spec/dummy/public/images/manage/tab_wl.gif +0 -0
  176. data/spec/dummy/public/images/manage/tab_wr.gif +0 -0
  177. data/spec/dummy/public/images/manage/top_corn.gif +0 -0
  178. data/spec/dummy/public/images/manage/top_duo_corn.gif +0 -0
  179. data/spec/dummy/public/images/manage/top_menu_arr.gif +0 -0
  180. data/spec/dummy/public/images/manage/transp_cross.png +0 -0
  181. data/spec/dummy/public/images/manage/upload_progress.gif +0 -0
  182. data/spec/dummy/public/images/manage/user_act_lc.gif +0 -0
  183. data/spec/dummy/public/images/manage/user_act_rc.gif +0 -0
  184. data/spec/dummy/public/images/manage/user_ico.gif +0 -0
  185. data/spec/dummy/public/images/manage/user_pic.gif +0 -0
  186. data/spec/dummy/public/images/manage/user_pic_small.gif +0 -0
  187. data/spec/dummy/public/images/manage/user_pic_thumb.gif +0 -0
  188. data/spec/dummy/public/javascripts/application.js +2 -0
  189. data/spec/dummy/public/javascripts/controls.js +965 -0
  190. data/spec/dummy/public/javascripts/datepicker/jquery-ui-i18n.js +1176 -0
  191. data/spec/dummy/public/javascripts/datepicker/jquery.ui.datepicker-ru.js +37 -0
  192. data/spec/dummy/public/javascripts/datepicker/jquery.ui.datepicker-uk.js +37 -0
  193. data/spec/dummy/public/javascripts/dragdrop.js +974 -0
  194. data/spec/dummy/public/javascripts/effects.js +1123 -0
  195. data/spec/dummy/public/javascripts/fileupload/fileuploader-input.js +217 -0
  196. data/spec/dummy/public/javascripts/fileupload/fileuploader.css +31 -0
  197. data/spec/dummy/public/javascripts/fileupload/fileuploader.js +1288 -0
  198. data/spec/dummy/public/javascripts/jquery-ui-timepicker-addon.js +911 -0
  199. data/spec/dummy/public/javascripts/jquery.cookie.js +97 -0
  200. data/spec/dummy/public/javascripts/jquery.fancybox-1.3.4.pack.js +46 -0
  201. data/spec/dummy/public/javascripts/jquery.tmpl.min.js +10 -0
  202. data/spec/dummy/public/javascripts/manage-fileuploader.js +182 -0
  203. data/spec/dummy/public/javascripts/manage.js +294 -0
  204. data/spec/dummy/public/javascripts/preloader.js +47 -0
  205. data/spec/dummy/public/javascripts/prototype.js +6001 -0
  206. data/spec/dummy/public/javascripts/rails.js +331 -0
  207. data/spec/dummy/public/stylesheets/application.css +1 -0
  208. data/spec/dummy/public/stylesheets/fancybox/images/blank.gif +0 -0
  209. data/spec/dummy/public/stylesheets/fancybox/images/fancy_close.png +0 -0
  210. data/spec/dummy/public/stylesheets/fancybox/images/fancy_loading.png +0 -0
  211. data/spec/dummy/public/stylesheets/fancybox/images/fancy_nav_left.png +0 -0
  212. data/spec/dummy/public/stylesheets/fancybox/images/fancy_nav_right.png +0 -0
  213. data/spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_e.png +0 -0
  214. data/spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_n.png +0 -0
  215. data/spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_ne.png +0 -0
  216. data/spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_nw.png +0 -0
  217. data/spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_s.png +0 -0
  218. data/spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_se.png +0 -0
  219. data/spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_sw.png +0 -0
  220. data/spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_w.png +0 -0
  221. data/spec/dummy/public/stylesheets/fancybox/images/fancy_title_left.png +0 -0
  222. data/spec/dummy/public/stylesheets/fancybox/images/fancy_title_main.png +0 -0
  223. data/spec/dummy/public/stylesheets/fancybox/images/fancy_title_over.png +0 -0
  224. data/spec/dummy/public/stylesheets/fancybox/images/fancy_title_right.png +0 -0
  225. data/spec/dummy/public/stylesheets/fancybox/images/fancybox-x.png +0 -0
  226. data/spec/dummy/public/stylesheets/fancybox/images/fancybox-y.png +0 -0
  227. data/spec/dummy/public/stylesheets/fancybox/images/fancybox.png +0 -0
  228. data/spec/dummy/public/stylesheets/fancybox/jquery.fancybox-1.3.4.css +359 -0
  229. data/spec/dummy/public/stylesheets/manage/buttons.css +42 -0
  230. data/spec/dummy/public/stylesheets/manage/ie.css +16 -0
  231. data/spec/dummy/public/stylesheets/manage/main.css +1108 -0
  232. data/spec/dummy/public/stylesheets/manage/panel.css +126 -0
  233. data/spec/dummy/public/stylesheets/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  234. data/spec/dummy/public/stylesheets/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  235. data/spec/dummy/public/stylesheets/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  236. data/spec/dummy/public/stylesheets/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  237. data/spec/dummy/public/stylesheets/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  238. data/spec/dummy/public/stylesheets/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  239. data/spec/dummy/public/stylesheets/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  240. data/spec/dummy/public/stylesheets/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  241. data/spec/dummy/public/stylesheets/smoothness/images/ui-icons_222222_256x240.png +0 -0
  242. data/spec/dummy/public/stylesheets/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  243. data/spec/dummy/public/stylesheets/smoothness/images/ui-icons_454545_256x240.png +0 -0
  244. data/spec/dummy/public/stylesheets/smoothness/images/ui-icons_888888_256x240.png +0 -0
  245. data/spec/dummy/public/stylesheets/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  246. data/spec/dummy/public/stylesheets/smoothness/jquery-ui-1.8.13.custom.css +578 -0
  247. data/spec/dummy/script/rails +6 -0
  248. data/spec/factories/structure_factory.rb +22 -0
  249. data/spec/factories/user_factory.rb +48 -0
  250. data/spec/generators/install_generator_spec.rb +18 -0
  251. data/spec/integration/navigation_spec.rb +9 -0
  252. data/spec/spec.opts +2 -0
  253. data/spec/spec_helper.rb +57 -0
  254. data/spec/sunrise_locales_spec.rb +7 -0
  255. data/spec/support/helpers/controller_macros.rb +40 -0
  256. data/spec/tmp/public/javascripts/codemirror.js +2157 -0
  257. data/spec/tmp/public/javascripts/yaml.js +95 -0
  258. data/spec/tmp/public/stylesheets/codemirror.css +107 -0
  259. metadata +575 -0
@@ -0,0 +1,95 @@
1
+ CodeMirror.defineMode("yaml", function() {
2
+
3
+ var cons = ['true', 'false', 'on', 'off', 'yes', 'no'];
4
+ var keywordRegex = new RegExp("\\b(("+cons.join(")|(")+"))$", 'i');
5
+
6
+ return {
7
+ token: function(stream, state) {
8
+ var ch = stream.peek();
9
+ var esc = state.escaped;
10
+ state.escaped = false;
11
+ /* comments */
12
+ if (ch == "#") { stream.skipToEnd(); return "comment"; }
13
+ if (state.literal && stream.indentation() > state.keyCol) {
14
+ stream.skipToEnd(); return "string";
15
+ } else if (state.literal) { state.literal = false; }
16
+ if (stream.sol()) {
17
+ state.keyCol = 0;
18
+ state.pair = false;
19
+ state.pairStart = false;
20
+ /* document start */
21
+ if(stream.match(/---/)) { return "def"; }
22
+ /* document end */
23
+ if (stream.match(/\.\.\./)) { return "def"; }
24
+ /* array list item */
25
+ if (stream.match(/\s*-\s+/)) { return 'meta'; }
26
+ }
27
+ /* pairs (associative arrays) -> key */
28
+ if (!state.pair && stream.match(/^\s*([a-z0-9\._-])+(?=\s*:)/i)) {
29
+ state.pair = true;
30
+ state.keyCol = stream.indentation();
31
+ return "atom";
32
+ }
33
+ if (state.pair && stream.match(/^:\s*/)) { state.pairStart = true; return 'meta'; }
34
+
35
+ /* inline pairs/lists */
36
+ if (stream.match(/^(\{|\}|\[|\])/)) {
37
+ if (ch == '{')
38
+ state.inlinePairs++;
39
+ else if (ch == '}')
40
+ state.inlinePairs--;
41
+ else if (ch == '[')
42
+ state.inlineList++;
43
+ else
44
+ state.inlineList--;
45
+ return 'meta';
46
+ }
47
+
48
+ /* list seperator */
49
+ if (state.inlineList > 0 && !esc && ch == ',') {
50
+ stream.next();
51
+ return 'meta';
52
+ }
53
+ /* pairs seperator */
54
+ if (state.inlinePairs > 0 && !esc && ch == ',') {
55
+ state.keyCol = 0;
56
+ state.pair = false;
57
+ state.pairStart = false;
58
+ stream.next();
59
+ return 'meta';
60
+ }
61
+
62
+ /* start of value of a pair */
63
+ if (state.pairStart) {
64
+ /* block literals */
65
+ if (stream.match(/^\s*(\||\>)\s*/)) { state.literal = true; return 'meta'; };
66
+ /* references */
67
+ if (stream.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i)) { return 'variable-2'; }
68
+ /* numbers */
69
+ if (state.inlinePairs == 0 && stream.match(/^\s*-?[0-9\.\,]+\s?$/)) { return 'number'; }
70
+ if (state.inlinePairs > 0 && stream.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/)) { return 'number'; }
71
+ /* keywords */
72
+ if (stream.match(keywordRegex)) { return 'keyword'; }
73
+ }
74
+
75
+ /* nothing found, continue */
76
+ state.pairStart = false;
77
+ state.escaped = (ch == '\\');
78
+ stream.next();
79
+ return null;
80
+ },
81
+ startState: function() {
82
+ return {
83
+ pair: false,
84
+ pairStart: false,
85
+ keyCol: 0,
86
+ inlinePairs: 0,
87
+ inlineList: 0,
88
+ literal: false,
89
+ escaped: false
90
+ };
91
+ }
92
+ };
93
+ });
94
+
95
+ CodeMirror.defineMIME("text/x-yaml", "yaml");
@@ -0,0 +1,107 @@
1
+ .CodeMirror {
2
+ line-height: 1em;
3
+ font-family: monospace;
4
+ }
5
+
6
+ .CodeMirror-scroll {
7
+ overflow: auto;
8
+ height: 400px;
9
+ /* This is needed to prevent an IE[67] bug where the scrolled content
10
+ is visible outside of the scrolling box. */
11
+ position: relative;
12
+ }
13
+
14
+ .CodeMirror-gutter {
15
+ position: absolute; left: 0; top: 0;
16
+ background-color: #f7f7f7;
17
+ border-right: 1px solid #eee;
18
+ min-width: 2em;
19
+ height: 100%;
20
+ }
21
+ .CodeMirror-gutter-text {
22
+ color: #aaa;
23
+ text-align: right;
24
+ padding: .4em .2em .4em .4em;
25
+ }
26
+ .CodeMirror-lines {
27
+ padding: .4em;
28
+ }
29
+
30
+ .CodeMirror pre {
31
+ -moz-border-radius: 0;
32
+ -webkit-border-radius: 0;
33
+ -o-border-radius: 0;
34
+ border-radius: 0;
35
+ border-width: 0; margin: 0; padding: 0; background: transparent;
36
+ font-family: inherit;
37
+ font-size: inherit;
38
+ padding: 0; margin: 0;
39
+ white-space: pre;
40
+ word-wrap: normal;
41
+ }
42
+
43
+ .CodeMirror textarea {
44
+ font-family: inherit !important;
45
+ font-size: inherit !important;
46
+ }
47
+
48
+ .CodeMirror-cursor {
49
+ z-index: 10;
50
+ position: absolute;
51
+ visibility: hidden;
52
+ border-left: 1px solid black !important;
53
+ }
54
+ .CodeMirror-focused .CodeMirror-cursor {
55
+ visibility: visible;
56
+ }
57
+
58
+ span.CodeMirror-selected {
59
+ background: #ccc !important;
60
+ color: HighlightText !important;
61
+ }
62
+ .CodeMirror-focused span.CodeMirror-selected {
63
+ background: Highlight !important;
64
+ }
65
+
66
+ .CodeMirror-matchingbracket {color: #0f0 !important;}
67
+ .CodeMirror-nonmatchingbracket {color: #f22 !important;}
68
+
69
+ /* Theme*/
70
+
71
+ .cm-s-default { background: #fff }
72
+ .cm-s-default span.cm-keyword {color: #708;}
73
+ .cm-s-default span.cm-atom {color: #219;}
74
+ .cm-s-default span.cm-number {color: #164;}
75
+ .cm-s-default span.cm-def {color: #00f;}
76
+ .cm-s-default span.cm-variable {color: black;}
77
+ .cm-s-default span.cm-variable-2 {color: #05a;}
78
+ .cm-s-default span.cm-variable-3 {color: #0a5;}
79
+ .cm-s-default span.cm-property {color: black;}
80
+ .cm-s-default span.cm-operator {color: black;}
81
+ .cm-s-default span.cm-comment {color: #a50;}
82
+ .cm-s-default span.cm-string {color: #a11;}
83
+ .cm-s-default span.cm-string-2 {color: #f50;}
84
+ .cm-s-default span.cm-meta {color: #555;}
85
+ .cm-s-default span.cm-error {color: #f00;}
86
+ .cm-s-default span.cm-qualifier {color: #555;}
87
+ .cm-s-default span.cm-builtin {color: #30a;}
88
+ .cm-s-default span.cm-bracket {color: #cc7;}
89
+ .cm-s-default span.cm-tag {color: #170;}
90
+ .cm-s-default span.cm-attribute {color: #00c;}
91
+
92
+ .searched {background: yellow;}
93
+ .activeline {background: #f0fcff !important;}
94
+
95
+ .fullscreen {
96
+ display: block;
97
+ position: absolute;
98
+ top: 0;
99
+ left: 0;
100
+ width: 100%;
101
+ height: 100%;
102
+ z-index: 9999;
103
+ margin: 0;
104
+ padding: 0;
105
+ border: 0px solid #BBBBBB;
106
+ opacity: 1;
107
+ }
metadata ADDED
@@ -0,0 +1,575 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sunrise-locales
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 0
10
+ version: 0.1.0
11
+ platform: ruby
12
+ authors:
13
+ - Pavel Galeta
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-09-13 00:00:00 +03:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: sunrise-cms
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 23
30
+ segments:
31
+ - 0
32
+ - 2
33
+ - 0
34
+ version: 0.2.0
35
+ type: :runtime
36
+ version_requirements: *id001
37
+ description: Locales plugin for Sunrise CMS via aimbulance
38
+ email: pavel.galeta@gmail.com
39
+ executables: []
40
+
41
+ extensions: []
42
+
43
+ extra_rdoc_files:
44
+ - README.rdoc
45
+ files:
46
+ - app/views/manage/locales/_locale.html.erb
47
+ - app/views/manage/locales/edit.html.erb
48
+ - app/views/manage/locales/index.html.erb
49
+ - app/controllers/manage/locales_controller.rb
50
+ - lib/sunrise/locales.rb
51
+ - lib/sunrise/locales/engine.rb
52
+ - lib/sunrise/locales/yml_locale.rb
53
+ - lib/sunrise/locales/version.rb
54
+ - lib/sunrise-locales.rb
55
+ - lib/generators/sunrise/locales/USAGE
56
+ - lib/generators/sunrise/locales/templates/codemirror.js
57
+ - lib/generators/sunrise/locales/templates/codemirror.css
58
+ - lib/generators/sunrise/locales/templates/yaml.js
59
+ - lib/generators/sunrise/locales/install_generator.rb
60
+ - config/locales/ru.yml
61
+ - config/locales/uk.yml
62
+ - config/routes.rb
63
+ - MIT-LICENSE
64
+ - Rakefile
65
+ - Gemfile
66
+ - README.rdoc
67
+ - spec/dummy/public/500.html
68
+ - spec/dummy/public/stylesheets/application.css
69
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_nav_right.png
70
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_e.png
71
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_se.png
72
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_s.png
73
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_title_main.png
74
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_nav_left.png
75
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_w.png
76
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_loading.png
77
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_ne.png
78
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_sw.png
79
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_n.png
80
+ - spec/dummy/public/stylesheets/fancybox/images/fancybox-x.png
81
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_title_right.png
82
+ - spec/dummy/public/stylesheets/fancybox/images/blank.gif
83
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_title_left.png
84
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_close.png
85
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_nw.png
86
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_title_over.png
87
+ - spec/dummy/public/stylesheets/fancybox/images/fancybox.png
88
+ - spec/dummy/public/stylesheets/fancybox/images/fancybox-y.png
89
+ - spec/dummy/public/stylesheets/fancybox/jquery.fancybox-1.3.4.css
90
+ - spec/dummy/public/stylesheets/manage/ie.css
91
+ - spec/dummy/public/stylesheets/manage/panel.css
92
+ - spec/dummy/public/stylesheets/manage/main.css
93
+ - spec/dummy/public/stylesheets/manage/buttons.css
94
+ - spec/dummy/public/stylesheets/smoothness/jquery-ui-1.8.13.custom.css
95
+ - spec/dummy/public/stylesheets/smoothness/images/ui-icons_888888_256x240.png
96
+ - spec/dummy/public/stylesheets/smoothness/images/ui-icons_222222_256x240.png
97
+ - spec/dummy/public/stylesheets/smoothness/images/ui-icons_454545_256x240.png
98
+ - spec/dummy/public/stylesheets/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
99
+ - spec/dummy/public/stylesheets/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
100
+ - spec/dummy/public/stylesheets/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
101
+ - spec/dummy/public/stylesheets/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
102
+ - spec/dummy/public/stylesheets/smoothness/images/ui-icons_2e83ff_256x240.png
103
+ - spec/dummy/public/stylesheets/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
104
+ - spec/dummy/public/stylesheets/smoothness/images/ui-bg_glass_75_dadada_1x400.png
105
+ - spec/dummy/public/stylesheets/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
106
+ - spec/dummy/public/stylesheets/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
107
+ - spec/dummy/public/stylesheets/smoothness/images/ui-icons_cd0a0a_256x240.png
108
+ - spec/dummy/public/422.html
109
+ - spec/dummy/public/404.html
110
+ - spec/dummy/public/favicon.ico
111
+ - spec/dummy/public/javascripts/rails.js
112
+ - spec/dummy/public/javascripts/datepicker/jquery.ui.datepicker-ru.js
113
+ - spec/dummy/public/javascripts/datepicker/jquery.ui.datepicker-uk.js
114
+ - spec/dummy/public/javascripts/datepicker/jquery-ui-i18n.js
115
+ - spec/dummy/public/javascripts/manage-fileuploader.js
116
+ - spec/dummy/public/javascripts/effects.js
117
+ - spec/dummy/public/javascripts/dragdrop.js
118
+ - spec/dummy/public/javascripts/preloader.js
119
+ - spec/dummy/public/javascripts/jquery.fancybox-1.3.4.pack.js
120
+ - spec/dummy/public/javascripts/jquery.tmpl.min.js
121
+ - spec/dummy/public/javascripts/controls.js
122
+ - spec/dummy/public/javascripts/application.js
123
+ - spec/dummy/public/javascripts/manage.js
124
+ - spec/dummy/public/javascripts/jquery.cookie.js
125
+ - spec/dummy/public/javascripts/jquery-ui-timepicker-addon.js
126
+ - spec/dummy/public/javascripts/prototype.js
127
+ - spec/dummy/public/javascripts/fileupload/fileuploader.js
128
+ - spec/dummy/public/javascripts/fileupload/fileuploader.css
129
+ - spec/dummy/public/javascripts/fileupload/fileuploader-input.js
130
+ - spec/dummy/public/images/manage/flag_ru.gif
131
+ - spec/dummy/public/images/manage/flag_en.gif
132
+ - spec/dummy/public/images/manage/add_white_top.gif
133
+ - spec/dummy/public/images/manage/but_gr_l.gif
134
+ - spec/dummy/public/images/manage/panel/user_pic.gif
135
+ - spec/dummy/public/images/manage/panel/l_but_corn.gif
136
+ - spec/dummy/public/images/manage/panel/top_menu_arr.gif
137
+ - spec/dummy/public/images/manage/panel/r_but_corn.gif
138
+ - spec/dummy/public/images/manage/panel/maximise_but.gif
139
+ - spec/dummy/public/images/manage/button_add_foto.gif
140
+ - spec/dummy/public/images/manage/user_pic_small.gif
141
+ - spec/dummy/public/images/manage/ico_down.gif
142
+ - spec/dummy/public/images/manage/duo_bot_small.gif
143
+ - spec/dummy/public/images/manage/mp3.png
144
+ - spec/dummy/public/images/manage/cancelbutton.gif
145
+ - spec/dummy/public/images/manage/select_corn.gif
146
+ - spec/dummy/public/images/manage/filter_bot_bg.gif
147
+ - spec/dummy/public/images/manage/tab_gr.gif
148
+ - spec/dummy/public/images/manage/add_white_bot.gif
149
+ - spec/dummy/public/images/manage/struct_corn_rw.gif
150
+ - spec/dummy/public/images/manage/dark_arr_left.gif
151
+ - spec/dummy/public/images/manage/but_bg.png
152
+ - spec/dummy/public/images/manage/but_freze_rc.gif
153
+ - spec/dummy/public/images/manage/flag_ua.gif
154
+ - spec/dummy/public/images/manage/duo_bg_small_notact.gif
155
+ - spec/dummy/public/images/manage/ico_up.gif
156
+ - spec/dummy/public/images/manage/duo_bot_small_notact.gif
157
+ - spec/dummy/public/images/manage/top_corn.gif
158
+ - spec/dummy/public/images/manage/struct_corn_lg.gif
159
+ - spec/dummy/public/images/manage/user_pic.gif
160
+ - spec/dummy/public/images/manage/l_but_corn.gif
161
+ - spec/dummy/public/images/manage/tab_wr.gif
162
+ - spec/dummy/public/images/manage/flag_en_nonact.gif
163
+ - spec/dummy/public/images/manage/empty.gif
164
+ - spec/dummy/public/images/manage/button_add_foto_ru.gif
165
+ - spec/dummy/public/images/manage/upload_progress.gif
166
+ - spec/dummy/public/images/manage/struct_corn_rlg.gif
167
+ - spec/dummy/public/images/manage/but_search.gif
168
+ - spec/dummy/public/images/manage/dark_arr.gif
169
+ - spec/dummy/public/images/manage/foto.jpg
170
+ - spec/dummy/public/images/manage/input_bg.gif
171
+ - spec/dummy/public/images/manage/flag_ru_nonact.gif
172
+ - spec/dummy/public/images/manage/dark_cross_ico.gif
173
+ - spec/dummy/public/images/manage/top_menu_arr.gif
174
+ - spec/dummy/public/images/manage/but_unfreze_lc.gif
175
+ - spec/dummy/public/images/manage/duo_bot_small_frozed.gif
176
+ - spec/dummy/public/images/manage/transp_cross.png
177
+ - spec/dummy/public/images/manage/but_block_lc.gif
178
+ - spec/dummy/public/images/manage/struct_corn_llg.gif
179
+ - spec/dummy/public/images/manage/back_but_rc.gif
180
+ - spec/dummy/public/images/manage/ico_del.gif
181
+ - spec/dummy/public/images/manage/ico_settings.gif
182
+ - spec/dummy/public/images/manage/tab_wl.gif
183
+ - spec/dummy/public/images/manage/button_add_foto_ua.gif
184
+ - spec/dummy/public/images/manage/duo_top_small_frozed.gif
185
+ - spec/dummy/public/images/manage/tab_gl.gif
186
+ - spec/dummy/public/images/manage/user_act_lc.gif
187
+ - spec/dummy/public/images/manage/minimise_but.gif
188
+ - spec/dummy/public/images/manage/top_duo_corn.gif
189
+ - spec/dummy/public/images/manage/user_ico.gif
190
+ - spec/dummy/public/images/manage/preloader.gif
191
+ - spec/dummy/public/images/manage/duo_bg_small_blocked.gif
192
+ - spec/dummy/public/images/manage/arrow.png
193
+ - spec/dummy/public/images/manage/bot_duo_corn.gif
194
+ - spec/dummy/public/images/manage/back_but_lc.gif
195
+ - spec/dummy/public/images/manage/page_arr_hover.png
196
+ - spec/dummy/public/images/manage/add_post_top.gif
197
+ - spec/dummy/public/images/manage/struct_corn_lw.gif
198
+ - spec/dummy/public/images/manage/page_prev_arr.gif
199
+ - spec/dummy/public/images/manage/r_but_corn.gif
200
+ - spec/dummy/public/images/manage/struct_corn_rg.gif
201
+ - spec/dummy/public/images/manage/page_num_hover.gif
202
+ - spec/dummy/public/images/manage/but_block_rc.gif
203
+ - spec/dummy/public/images/manage/add_post_bot.gif
204
+ - spec/dummy/public/images/manage/but_gr.gif
205
+ - spec/dummy/public/images/manage/duo_bg_small.gif
206
+ - spec/dummy/public/images/manage/flag_ua_nonact.gif
207
+ - spec/dummy/public/images/manage/user_pic_thumb.gif
208
+ - spec/dummy/public/images/manage/button_add_foto_uk.gif
209
+ - spec/dummy/public/images/manage/bot_corn.gif
210
+ - spec/dummy/public/images/manage/ico_edit.gif
211
+ - spec/dummy/public/images/manage/duo_bg.gif
212
+ - spec/dummy/public/images/manage/user_act_rc.gif
213
+ - spec/dummy/public/images/manage/duo_bg_small_frozed.gif
214
+ - spec/dummy/public/images/manage/duo_top_small.gif
215
+ - spec/dummy/public/images/manage/duo_top_small_notact.gif
216
+ - spec/dummy/public/images/manage/duo_bot_small_blocked.gif
217
+ - spec/dummy/public/images/manage/filter_top_bg.gif
218
+ - spec/dummy/public/images/manage/page_next_arr.gif
219
+ - spec/dummy/public/images/manage/dot.gif
220
+ - spec/dummy/public/images/manage/edit_white_top.gif
221
+ - spec/dummy/public/images/manage/duo_top_small_blocked.gif
222
+ - spec/dummy/public/images/manage/but_unfreze_rc.gif
223
+ - spec/dummy/public/images/manage/but_freze_lc.gif
224
+ - spec/dummy/public/images/manage/ico_add.gif
225
+ - spec/dummy/public/images/manage/but_gr_r.gif
226
+ - spec/dummy/public/images/manage/select_bg.gif
227
+ - spec/dummy/script/rails
228
+ - spec/dummy/log/test.log
229
+ - spec/dummy/Rakefile
230
+ - spec/dummy/db/migrate/20110801125009_sunrise_create_structures.rb
231
+ - spec/dummy/db/migrate/20110801125209_sunrise_create_assets.rb
232
+ - spec/dummy/db/migrate/20110801124809_sunrise_create_users.rb
233
+ - spec/dummy/db/migrate/20110801125309_sunrise_create_headers.rb
234
+ - spec/dummy/db/migrate/20110801125109_sunrise_create_pages.rb
235
+ - spec/dummy/db/migrate/20110801124909_sunrise_create_roles.rb
236
+ - spec/dummy/db/test.sqlite3
237
+ - spec/dummy/db/seeds.rb
238
+ - spec/dummy/app/views/shared/_notice.html.erb
239
+ - spec/dummy/app/views/pages/show.html.erb
240
+ - spec/dummy/app/views/layouts/application.html.erb
241
+ - spec/dummy/app/helpers/manage/structures_helper.rb
242
+ - spec/dummy/app/helpers/manage/base_helper.rb
243
+ - spec/dummy/app/helpers/manage/users_helper.rb
244
+ - spec/dummy/app/helpers/manage/pages_helper.rb
245
+ - spec/dummy/app/helpers/manage/assets_helper.rb
246
+ - spec/dummy/app/helpers/manage/settings_helper.rb
247
+ - spec/dummy/app/helpers/application_helper.rb
248
+ - spec/dummy/app/uploaders/picture_uploader.rb
249
+ - spec/dummy/app/uploaders/attachment_file_uploader.rb
250
+ - spec/dummy/app/uploaders/avatar_uploader.rb
251
+ - spec/dummy/app/models/defaults/structure_type.rb
252
+ - spec/dummy/app/models/defaults/header.rb
253
+ - spec/dummy/app/models/defaults/role_type.rb
254
+ - spec/dummy/app/models/defaults/attachment_file.rb
255
+ - spec/dummy/app/models/defaults/avatar.rb
256
+ - spec/dummy/app/models/defaults/structure.rb
257
+ - spec/dummy/app/models/defaults/asset.rb
258
+ - spec/dummy/app/models/defaults/role.rb
259
+ - spec/dummy/app/models/defaults/page.rb
260
+ - spec/dummy/app/models/defaults/user.rb
261
+ - spec/dummy/app/models/defaults/picture.rb
262
+ - spec/dummy/app/models/defaults/ability.rb
263
+ - spec/dummy/app/models/defaults/position_type.rb
264
+ - spec/dummy/app/controllers/application_controller.rb
265
+ - spec/dummy/config.ru
266
+ - spec/dummy/config/locales/ru.yml
267
+ - spec/dummy/config/locales/devise.en.yml
268
+ - spec/dummy/config/locales/simple_form.en.yml
269
+ - spec/dummy/config/locales/uk.yml
270
+ - spec/dummy/config/locales/en.yml
271
+ - spec/dummy/config/application.rb
272
+ - spec/dummy/config/database.yml.sample
273
+ - spec/dummy/config/database.yml
274
+ - spec/dummy/config/environments/development.rb
275
+ - spec/dummy/config/environments/production.rb
276
+ - spec/dummy/config/environments/test.rb
277
+ - spec/dummy/config/initializers/inflections.rb
278
+ - spec/dummy/config/initializers/secret_token.rb
279
+ - spec/dummy/config/initializers/simple_form.rb
280
+ - spec/dummy/config/initializers/mime_types.rb
281
+ - spec/dummy/config/initializers/devise.rb
282
+ - spec/dummy/config/initializers/backtrace_silencers.rb
283
+ - spec/dummy/config/initializers/sunrise.rb
284
+ - spec/dummy/config/initializers/session_store.rb
285
+ - spec/dummy/config/nginx-config-passenger.sample
286
+ - spec/dummy/config/environment.rb
287
+ - spec/dummy/config/application.yml.sample
288
+ - spec/dummy/config/logrotate-config.sample
289
+ - spec/dummy/config/boot.rb
290
+ - spec/dummy/config/routes.rb
291
+ - spec/dummy/lib/templates/erb/scaffold/_form.html.erb
292
+ - spec/spec_helper.rb
293
+ - spec/spec.opts
294
+ - spec/generators/install_generator_spec.rb
295
+ - spec/factories/user_factory.rb
296
+ - spec/factories/structure_factory.rb
297
+ - spec/support/helpers/controller_macros.rb
298
+ - spec/integration/navigation_spec.rb
299
+ - spec/sunrise_locales_spec.rb
300
+ - spec/tmp/public/stylesheets/codemirror.css
301
+ - spec/tmp/public/javascripts/codemirror.js
302
+ - spec/tmp/public/javascripts/yaml.js
303
+ - spec/controllers/manage/locales_controller_spec.rb
304
+ has_rdoc: true
305
+ homepage: https://github.com/superp/sunrise-locales
306
+ licenses: []
307
+
308
+ post_install_message:
309
+ rdoc_options: []
310
+
311
+ require_paths:
312
+ - lib
313
+ required_ruby_version: !ruby/object:Gem::Requirement
314
+ none: false
315
+ requirements:
316
+ - - ">="
317
+ - !ruby/object:Gem::Version
318
+ hash: 3
319
+ segments:
320
+ - 0
321
+ version: "0"
322
+ required_rubygems_version: !ruby/object:Gem::Requirement
323
+ none: false
324
+ requirements:
325
+ - - ">="
326
+ - !ruby/object:Gem::Version
327
+ hash: 3
328
+ segments:
329
+ - 0
330
+ version: "0"
331
+ requirements: []
332
+
333
+ rubyforge_project: sunrise-locales
334
+ rubygems_version: 1.6.2
335
+ signing_key:
336
+ specification_version: 3
337
+ summary: Locales plugin for sunrise-cms
338
+ test_files:
339
+ - spec/dummy/public/500.html
340
+ - spec/dummy/public/stylesheets/application.css
341
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_nav_right.png
342
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_e.png
343
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_se.png
344
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_s.png
345
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_title_main.png
346
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_nav_left.png
347
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_w.png
348
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_loading.png
349
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_ne.png
350
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_sw.png
351
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_n.png
352
+ - spec/dummy/public/stylesheets/fancybox/images/fancybox-x.png
353
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_title_right.png
354
+ - spec/dummy/public/stylesheets/fancybox/images/blank.gif
355
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_title_left.png
356
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_close.png
357
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_shadow_nw.png
358
+ - spec/dummy/public/stylesheets/fancybox/images/fancy_title_over.png
359
+ - spec/dummy/public/stylesheets/fancybox/images/fancybox.png
360
+ - spec/dummy/public/stylesheets/fancybox/images/fancybox-y.png
361
+ - spec/dummy/public/stylesheets/fancybox/jquery.fancybox-1.3.4.css
362
+ - spec/dummy/public/stylesheets/manage/ie.css
363
+ - spec/dummy/public/stylesheets/manage/panel.css
364
+ - spec/dummy/public/stylesheets/manage/main.css
365
+ - spec/dummy/public/stylesheets/manage/buttons.css
366
+ - spec/dummy/public/stylesheets/smoothness/jquery-ui-1.8.13.custom.css
367
+ - spec/dummy/public/stylesheets/smoothness/images/ui-icons_888888_256x240.png
368
+ - spec/dummy/public/stylesheets/smoothness/images/ui-icons_222222_256x240.png
369
+ - spec/dummy/public/stylesheets/smoothness/images/ui-icons_454545_256x240.png
370
+ - spec/dummy/public/stylesheets/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
371
+ - spec/dummy/public/stylesheets/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
372
+ - spec/dummy/public/stylesheets/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
373
+ - spec/dummy/public/stylesheets/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
374
+ - spec/dummy/public/stylesheets/smoothness/images/ui-icons_2e83ff_256x240.png
375
+ - spec/dummy/public/stylesheets/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
376
+ - spec/dummy/public/stylesheets/smoothness/images/ui-bg_glass_75_dadada_1x400.png
377
+ - spec/dummy/public/stylesheets/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
378
+ - spec/dummy/public/stylesheets/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
379
+ - spec/dummy/public/stylesheets/smoothness/images/ui-icons_cd0a0a_256x240.png
380
+ - spec/dummy/public/422.html
381
+ - spec/dummy/public/404.html
382
+ - spec/dummy/public/favicon.ico
383
+ - spec/dummy/public/javascripts/rails.js
384
+ - spec/dummy/public/javascripts/datepicker/jquery.ui.datepicker-ru.js
385
+ - spec/dummy/public/javascripts/datepicker/jquery.ui.datepicker-uk.js
386
+ - spec/dummy/public/javascripts/datepicker/jquery-ui-i18n.js
387
+ - spec/dummy/public/javascripts/manage-fileuploader.js
388
+ - spec/dummy/public/javascripts/effects.js
389
+ - spec/dummy/public/javascripts/dragdrop.js
390
+ - spec/dummy/public/javascripts/preloader.js
391
+ - spec/dummy/public/javascripts/jquery.fancybox-1.3.4.pack.js
392
+ - spec/dummy/public/javascripts/jquery.tmpl.min.js
393
+ - spec/dummy/public/javascripts/controls.js
394
+ - spec/dummy/public/javascripts/application.js
395
+ - spec/dummy/public/javascripts/manage.js
396
+ - spec/dummy/public/javascripts/jquery.cookie.js
397
+ - spec/dummy/public/javascripts/jquery-ui-timepicker-addon.js
398
+ - spec/dummy/public/javascripts/prototype.js
399
+ - spec/dummy/public/javascripts/fileupload/fileuploader.js
400
+ - spec/dummy/public/javascripts/fileupload/fileuploader.css
401
+ - spec/dummy/public/javascripts/fileupload/fileuploader-input.js
402
+ - spec/dummy/public/images/manage/flag_ru.gif
403
+ - spec/dummy/public/images/manage/flag_en.gif
404
+ - spec/dummy/public/images/manage/add_white_top.gif
405
+ - spec/dummy/public/images/manage/but_gr_l.gif
406
+ - spec/dummy/public/images/manage/panel/user_pic.gif
407
+ - spec/dummy/public/images/manage/panel/l_but_corn.gif
408
+ - spec/dummy/public/images/manage/panel/top_menu_arr.gif
409
+ - spec/dummy/public/images/manage/panel/r_but_corn.gif
410
+ - spec/dummy/public/images/manage/panel/maximise_but.gif
411
+ - spec/dummy/public/images/manage/button_add_foto.gif
412
+ - spec/dummy/public/images/manage/user_pic_small.gif
413
+ - spec/dummy/public/images/manage/ico_down.gif
414
+ - spec/dummy/public/images/manage/duo_bot_small.gif
415
+ - spec/dummy/public/images/manage/mp3.png
416
+ - spec/dummy/public/images/manage/cancelbutton.gif
417
+ - spec/dummy/public/images/manage/select_corn.gif
418
+ - spec/dummy/public/images/manage/filter_bot_bg.gif
419
+ - spec/dummy/public/images/manage/tab_gr.gif
420
+ - spec/dummy/public/images/manage/add_white_bot.gif
421
+ - spec/dummy/public/images/manage/struct_corn_rw.gif
422
+ - spec/dummy/public/images/manage/dark_arr_left.gif
423
+ - spec/dummy/public/images/manage/but_bg.png
424
+ - spec/dummy/public/images/manage/but_freze_rc.gif
425
+ - spec/dummy/public/images/manage/flag_ua.gif
426
+ - spec/dummy/public/images/manage/duo_bg_small_notact.gif
427
+ - spec/dummy/public/images/manage/ico_up.gif
428
+ - spec/dummy/public/images/manage/duo_bot_small_notact.gif
429
+ - spec/dummy/public/images/manage/top_corn.gif
430
+ - spec/dummy/public/images/manage/struct_corn_lg.gif
431
+ - spec/dummy/public/images/manage/user_pic.gif
432
+ - spec/dummy/public/images/manage/l_but_corn.gif
433
+ - spec/dummy/public/images/manage/tab_wr.gif
434
+ - spec/dummy/public/images/manage/flag_en_nonact.gif
435
+ - spec/dummy/public/images/manage/empty.gif
436
+ - spec/dummy/public/images/manage/button_add_foto_ru.gif
437
+ - spec/dummy/public/images/manage/upload_progress.gif
438
+ - spec/dummy/public/images/manage/struct_corn_rlg.gif
439
+ - spec/dummy/public/images/manage/but_search.gif
440
+ - spec/dummy/public/images/manage/dark_arr.gif
441
+ - spec/dummy/public/images/manage/foto.jpg
442
+ - spec/dummy/public/images/manage/input_bg.gif
443
+ - spec/dummy/public/images/manage/flag_ru_nonact.gif
444
+ - spec/dummy/public/images/manage/dark_cross_ico.gif
445
+ - spec/dummy/public/images/manage/top_menu_arr.gif
446
+ - spec/dummy/public/images/manage/but_unfreze_lc.gif
447
+ - spec/dummy/public/images/manage/duo_bot_small_frozed.gif
448
+ - spec/dummy/public/images/manage/transp_cross.png
449
+ - spec/dummy/public/images/manage/but_block_lc.gif
450
+ - spec/dummy/public/images/manage/struct_corn_llg.gif
451
+ - spec/dummy/public/images/manage/back_but_rc.gif
452
+ - spec/dummy/public/images/manage/ico_del.gif
453
+ - spec/dummy/public/images/manage/ico_settings.gif
454
+ - spec/dummy/public/images/manage/tab_wl.gif
455
+ - spec/dummy/public/images/manage/button_add_foto_ua.gif
456
+ - spec/dummy/public/images/manage/duo_top_small_frozed.gif
457
+ - spec/dummy/public/images/manage/tab_gl.gif
458
+ - spec/dummy/public/images/manage/user_act_lc.gif
459
+ - spec/dummy/public/images/manage/minimise_but.gif
460
+ - spec/dummy/public/images/manage/top_duo_corn.gif
461
+ - spec/dummy/public/images/manage/user_ico.gif
462
+ - spec/dummy/public/images/manage/preloader.gif
463
+ - spec/dummy/public/images/manage/duo_bg_small_blocked.gif
464
+ - spec/dummy/public/images/manage/arrow.png
465
+ - spec/dummy/public/images/manage/bot_duo_corn.gif
466
+ - spec/dummy/public/images/manage/back_but_lc.gif
467
+ - spec/dummy/public/images/manage/page_arr_hover.png
468
+ - spec/dummy/public/images/manage/add_post_top.gif
469
+ - spec/dummy/public/images/manage/struct_corn_lw.gif
470
+ - spec/dummy/public/images/manage/page_prev_arr.gif
471
+ - spec/dummy/public/images/manage/r_but_corn.gif
472
+ - spec/dummy/public/images/manage/struct_corn_rg.gif
473
+ - spec/dummy/public/images/manage/page_num_hover.gif
474
+ - spec/dummy/public/images/manage/but_block_rc.gif
475
+ - spec/dummy/public/images/manage/add_post_bot.gif
476
+ - spec/dummy/public/images/manage/but_gr.gif
477
+ - spec/dummy/public/images/manage/duo_bg_small.gif
478
+ - spec/dummy/public/images/manage/flag_ua_nonact.gif
479
+ - spec/dummy/public/images/manage/user_pic_thumb.gif
480
+ - spec/dummy/public/images/manage/button_add_foto_uk.gif
481
+ - spec/dummy/public/images/manage/bot_corn.gif
482
+ - spec/dummy/public/images/manage/ico_edit.gif
483
+ - spec/dummy/public/images/manage/duo_bg.gif
484
+ - spec/dummy/public/images/manage/user_act_rc.gif
485
+ - spec/dummy/public/images/manage/duo_bg_small_frozed.gif
486
+ - spec/dummy/public/images/manage/duo_top_small.gif
487
+ - spec/dummy/public/images/manage/duo_top_small_notact.gif
488
+ - spec/dummy/public/images/manage/duo_bot_small_blocked.gif
489
+ - spec/dummy/public/images/manage/filter_top_bg.gif
490
+ - spec/dummy/public/images/manage/page_next_arr.gif
491
+ - spec/dummy/public/images/manage/dot.gif
492
+ - spec/dummy/public/images/manage/edit_white_top.gif
493
+ - spec/dummy/public/images/manage/duo_top_small_blocked.gif
494
+ - spec/dummy/public/images/manage/but_unfreze_rc.gif
495
+ - spec/dummy/public/images/manage/but_freze_lc.gif
496
+ - spec/dummy/public/images/manage/ico_add.gif
497
+ - spec/dummy/public/images/manage/but_gr_r.gif
498
+ - spec/dummy/public/images/manage/select_bg.gif
499
+ - spec/dummy/script/rails
500
+ - spec/dummy/log/test.log
501
+ - spec/dummy/Rakefile
502
+ - spec/dummy/db/migrate/20110801125009_sunrise_create_structures.rb
503
+ - spec/dummy/db/migrate/20110801125209_sunrise_create_assets.rb
504
+ - spec/dummy/db/migrate/20110801124809_sunrise_create_users.rb
505
+ - spec/dummy/db/migrate/20110801125309_sunrise_create_headers.rb
506
+ - spec/dummy/db/migrate/20110801125109_sunrise_create_pages.rb
507
+ - spec/dummy/db/migrate/20110801124909_sunrise_create_roles.rb
508
+ - spec/dummy/db/test.sqlite3
509
+ - spec/dummy/db/seeds.rb
510
+ - spec/dummy/app/views/shared/_notice.html.erb
511
+ - spec/dummy/app/views/pages/show.html.erb
512
+ - spec/dummy/app/views/layouts/application.html.erb
513
+ - spec/dummy/app/helpers/manage/structures_helper.rb
514
+ - spec/dummy/app/helpers/manage/base_helper.rb
515
+ - spec/dummy/app/helpers/manage/users_helper.rb
516
+ - spec/dummy/app/helpers/manage/pages_helper.rb
517
+ - spec/dummy/app/helpers/manage/assets_helper.rb
518
+ - spec/dummy/app/helpers/manage/settings_helper.rb
519
+ - spec/dummy/app/helpers/application_helper.rb
520
+ - spec/dummy/app/uploaders/picture_uploader.rb
521
+ - spec/dummy/app/uploaders/attachment_file_uploader.rb
522
+ - spec/dummy/app/uploaders/avatar_uploader.rb
523
+ - spec/dummy/app/models/defaults/structure_type.rb
524
+ - spec/dummy/app/models/defaults/header.rb
525
+ - spec/dummy/app/models/defaults/role_type.rb
526
+ - spec/dummy/app/models/defaults/attachment_file.rb
527
+ - spec/dummy/app/models/defaults/avatar.rb
528
+ - spec/dummy/app/models/defaults/structure.rb
529
+ - spec/dummy/app/models/defaults/asset.rb
530
+ - spec/dummy/app/models/defaults/role.rb
531
+ - spec/dummy/app/models/defaults/page.rb
532
+ - spec/dummy/app/models/defaults/user.rb
533
+ - spec/dummy/app/models/defaults/picture.rb
534
+ - spec/dummy/app/models/defaults/ability.rb
535
+ - spec/dummy/app/models/defaults/position_type.rb
536
+ - spec/dummy/app/controllers/application_controller.rb
537
+ - spec/dummy/config.ru
538
+ - spec/dummy/config/locales/ru.yml
539
+ - spec/dummy/config/locales/devise.en.yml
540
+ - spec/dummy/config/locales/simple_form.en.yml
541
+ - spec/dummy/config/locales/uk.yml
542
+ - spec/dummy/config/locales/en.yml
543
+ - spec/dummy/config/application.rb
544
+ - spec/dummy/config/database.yml.sample
545
+ - spec/dummy/config/database.yml
546
+ - spec/dummy/config/environments/development.rb
547
+ - spec/dummy/config/environments/production.rb
548
+ - spec/dummy/config/environments/test.rb
549
+ - spec/dummy/config/initializers/inflections.rb
550
+ - spec/dummy/config/initializers/secret_token.rb
551
+ - spec/dummy/config/initializers/simple_form.rb
552
+ - spec/dummy/config/initializers/mime_types.rb
553
+ - spec/dummy/config/initializers/devise.rb
554
+ - spec/dummy/config/initializers/backtrace_silencers.rb
555
+ - spec/dummy/config/initializers/sunrise.rb
556
+ - spec/dummy/config/initializers/session_store.rb
557
+ - spec/dummy/config/nginx-config-passenger.sample
558
+ - spec/dummy/config/environment.rb
559
+ - spec/dummy/config/application.yml.sample
560
+ - spec/dummy/config/logrotate-config.sample
561
+ - spec/dummy/config/boot.rb
562
+ - spec/dummy/config/routes.rb
563
+ - spec/dummy/lib/templates/erb/scaffold/_form.html.erb
564
+ - spec/spec_helper.rb
565
+ - spec/spec.opts
566
+ - spec/generators/install_generator_spec.rb
567
+ - spec/factories/user_factory.rb
568
+ - spec/factories/structure_factory.rb
569
+ - spec/support/helpers/controller_macros.rb
570
+ - spec/integration/navigation_spec.rb
571
+ - spec/sunrise_locales_spec.rb
572
+ - spec/tmp/public/stylesheets/codemirror.css
573
+ - spec/tmp/public/javascripts/codemirror.js
574
+ - spec/tmp/public/javascripts/yaml.js
575
+ - spec/controllers/manage/locales_controller_spec.rb