alchemy_cms 3.1.0.beta1 → 3.1.0.beta2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.travis.yml +4 -2
  4. data/README.md +9 -1
  5. data/alchemy_cms.gemspec +24 -13
  6. data/app/assets/javascripts/alchemy/alchemy.autocomplete.js.coffee +1 -1
  7. data/app/assets/javascripts/alchemy/alchemy.element_editors.js.coffee +1 -1
  8. data/app/assets/javascripts/alchemy/alchemy.initializer.js.coffee +9 -0
  9. data/app/assets/javascripts/alchemy/alchemy.js +4 -0
  10. data/app/assets/javascripts/alchemy/alchemy.preview.js.coffee +3 -2
  11. data/app/assets/javascripts/alchemy/alchemy.preview_window.js.coffee +2 -0
  12. data/app/assets/javascripts/alchemy/alchemy.translations.js.coffee +43 -1
  13. data/app/assets/stylesheets/alchemy/_mixins.scss +1 -2
  14. data/app/assets/stylesheets/alchemy/archive.scss +1 -1
  15. data/app/assets/stylesheets/alchemy/base.scss +18 -1
  16. data/app/assets/stylesheets/alchemy/buttons.scss +5 -0
  17. data/app/assets/stylesheets/alchemy/dialogs.scss +0 -1
  18. data/app/assets/stylesheets/alchemy/frame.scss +17 -10
  19. data/app/assets/stylesheets/alchemy/menubar.css.scss +3 -0
  20. data/app/assets/stylesheets/alchemy/tables.scss +30 -8
  21. data/app/controllers/alchemy/admin/attachments_controller.rb +9 -1
  22. data/app/controllers/alchemy/admin/essence_files_controller.rb +3 -4
  23. data/app/controllers/alchemy/pages_controller.rb +20 -2
  24. data/app/models/alchemy/content.rb +2 -1
  25. data/app/models/alchemy/element.rb +1 -1
  26. data/app/views/alchemy/admin/attachments/_files_list.html.erb +22 -18
  27. data/app/views/alchemy/admin/attachments/index.html.erb +1 -1
  28. data/app/views/alchemy/admin/languages/_table.html.erb +29 -25
  29. data/app/views/alchemy/admin/languages/index.html.erb +1 -1
  30. data/app/views/alchemy/admin/pictures/info.html.erb +3 -2
  31. data/app/views/alchemy/admin/resources/_table.html.erb +17 -13
  32. data/app/views/alchemy/admin/resources/index.html.erb +1 -1
  33. data/app/views/alchemy/admin/sites/index.html.erb +1 -1
  34. data/app/views/alchemy/admin/tags/edit.html.erb +1 -1
  35. data/app/views/alchemy/admin/tags/index.html.erb +14 -10
  36. data/app/views/alchemy/essences/_essence_file_editor.html.erb +20 -24
  37. data/app/views/alchemy/messages/contact_form_mail.es.text.erb +12 -0
  38. data/app/views/layouts/alchemy/admin.html.erb +2 -0
  39. data/bin/alchemy +58 -26
  40. data/config/locales/alchemy.en.yml +2 -1
  41. data/config/locales/alchemy.es.yml +958 -0
  42. data/config/locales/alchemy.fr.yml +1 -1
  43. data/config/locales/alchemy.ru.yml +837 -0
  44. data/config/locales/simple_form.es.yml +6 -0
  45. data/config/locales/simple_form.ru.yml +25 -0
  46. data/lib/alchemy/engine.rb +11 -0
  47. data/lib/alchemy/essence.rb +12 -1
  48. data/lib/alchemy/resources_helper.rb +3 -1
  49. data/lib/alchemy/test_support/essence_shared_examples.rb +37 -0
  50. data/lib/alchemy/test_support/factories.rb +2 -0
  51. data/lib/alchemy/version.rb +1 -1
  52. data/lib/rails/generators/alchemy/module/templates/module_config.rb.tt +4 -2
  53. data/lib/rails/generators/alchemy/scaffold/files/alchemy.es.yml +31 -0
  54. data/lib/rails/generators/alchemy/scaffold/scaffold_generator.rb +1 -0
  55. data/lib/rails/templates/alchemy.rb +2 -0
  56. data/lib/tasks/alchemy/install.rake +11 -7
  57. data/spec/controllers/admin/attachments_controller_spec.rb +21 -0
  58. data/spec/controllers/admin/essence_files_controller_spec.rb +13 -12
  59. data/spec/controllers/alchemy/api/contents_controller_spec.rb +4 -4
  60. data/spec/controllers/attachments_controller_spec.rb +18 -0
  61. data/spec/controllers/pages_controller_spec.rb +20 -3
  62. data/spec/dummy/db/migrate/20121026104128_create_events.rb +2 -0
  63. data/spec/dummy/db/schema.rb +5 -3
  64. data/spec/features/admin/resources_integration_spec.rb +5 -0
  65. data/spec/features/page_feature_spec.rb +20 -0
  66. data/spec/models/content_spec.rb +24 -2
  67. data/spec/models/element_spec.rb +11 -0
  68. data/spec/views/essences/essence_file_editor_spec.rb +61 -0
  69. data/vendor/assets/javascripts/jquery_plugins/jquery.floatThead.min.js +3 -0
  70. data/vendor/assets/javascripts/tinymce/langs/es.js +197 -0
  71. data/vendor/assets/javascripts/tinymce/langs/ru.js +197 -0
  72. metadata +53 -38
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alchemy_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.beta1
4
+ version: 3.1.0.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas von Deyen
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2014-11-25 00:00:00.000000000 Z
15
+ date: 2014-12-17 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rails
@@ -192,30 +192,16 @@ dependencies:
192
192
  name: sass-rails
193
193
  requirement: !ruby/object:Gem::Requirement
194
194
  requirements:
195
- - - ">="
196
- - !ruby/object:Gem::Version
197
- version: 4.0.4
198
- type: :runtime
199
- prerelease: false
200
- version_requirements: !ruby/object:Gem::Requirement
201
- requirements:
202
- - - ">="
203
- - !ruby/object:Gem::Version
204
- version: 4.0.4
205
- - !ruby/object:Gem::Dependency
206
- name: sass
207
- requirement: !ruby/object:Gem::Requirement
208
- requirements:
209
- - - ">="
195
+ - - "~>"
210
196
  - !ruby/object:Gem::Version
211
- version: 3.2.19
197
+ version: 4.0.5
212
198
  type: :runtime
213
199
  prerelease: false
214
200
  version_requirements: !ruby/object:Gem::Requirement
215
201
  requirements:
216
- - - ">="
202
+ - - "~>"
217
203
  - !ruby/object:Gem::Version
218
- version: 3.2.19
204
+ version: 4.0.5
219
205
  - !ruby/object:Gem::Dependency
220
206
  name: uglifier
221
207
  requirement: !ruby/object:Gem::Requirement
@@ -276,16 +262,22 @@ dependencies:
276
262
  name: select2-rails
277
263
  requirement: !ruby/object:Gem::Requirement
278
264
  requirements:
279
- - - "~>"
265
+ - - ">="
266
+ - !ruby/object:Gem::Version
267
+ version: 3.5.9.1
268
+ - - "<"
280
269
  - !ruby/object:Gem::Version
281
- version: '3.4'
270
+ version: '4.0'
282
271
  type: :runtime
283
272
  prerelease: false
284
273
  version_requirements: !ruby/object:Gem::Requirement
285
274
  requirements:
286
- - - "~>"
275
+ - - ">="
287
276
  - !ruby/object:Gem::Version
288
- version: '3.4'
277
+ version: 3.5.9.1
278
+ - - "<"
279
+ - !ruby/object:Gem::Version
280
+ version: '4.0'
289
281
  - !ruby/object:Gem::Dependency
290
282
  name: tvdeyen-handles_sortable_columns
291
283
  requirement: !ruby/object:Gem::Requirement
@@ -320,14 +312,14 @@ dependencies:
320
312
  requirements:
321
313
  - - "~>"
322
314
  - !ruby/object:Gem::Version
323
- version: '2.0'
315
+ version: '2.5'
324
316
  type: :runtime
325
317
  prerelease: false
326
318
  version_requirements: !ruby/object:Gem::Requirement
327
319
  requirements:
328
320
  - - "~>"
329
321
  - !ruby/object:Gem::Version
330
- version: '2.0'
322
+ version: '2.5'
331
323
  - !ruby/object:Gem::Dependency
332
324
  name: non-stupid-digest-assets
333
325
  requirement: !ruby/object:Gem::Requirement
@@ -351,7 +343,7 @@ dependencies:
351
343
  version: 0.8.1
352
344
  - - "<"
353
345
  - !ruby/object:Gem::Version
354
- version: 0.10.0
346
+ version: 0.9.1
355
347
  type: :runtime
356
348
  prerelease: false
357
349
  version_requirements: !ruby/object:Gem::Requirement
@@ -361,7 +353,7 @@ dependencies:
361
353
  version: 0.8.1
362
354
  - - "<"
363
355
  - !ruby/object:Gem::Version
364
- version: 0.10.0
356
+ version: 0.9.1
365
357
  - !ruby/object:Gem::Dependency
366
358
  name: request_store
367
359
  requirement: !ruby/object:Gem::Requirement
@@ -806,6 +798,7 @@ files:
806
798
  - app/views/alchemy/language_links/_spacer.html.erb
807
799
  - app/views/alchemy/messages/contact_form_mail.de.text.erb
808
800
  - app/views/alchemy/messages/contact_form_mail.en.text.erb
801
+ - app/views/alchemy/messages/contact_form_mail.es.text.erb
809
802
  - app/views/alchemy/messages/new.html.erb
810
803
  - app/views/alchemy/navigation/_image_link.html.erb
811
804
  - app/views/alchemy/navigation/_link.html.erb
@@ -832,12 +825,16 @@ files:
832
825
  - config/initializers/simple_form.rb
833
826
  - config/locales/alchemy.de.yml
834
827
  - config/locales/alchemy.en.yml
828
+ - config/locales/alchemy.es.yml
835
829
  - config/locales/alchemy.fr.yml
836
830
  - config/locales/alchemy.nl.yml
831
+ - config/locales/alchemy.ru.yml
837
832
  - config/locales/simple_form.de.yml
838
833
  - config/locales/simple_form.en.yml
834
+ - config/locales/simple_form.es.yml
839
835
  - config/locales/simple_form.fr.yml
840
836
  - config/locales/simple_form.nl.yml
837
+ - config/locales/simple_form.ru.yml
841
838
  - config/routes.rb
842
839
  - db/migrate/20130827094554_alchemy_two_point_six.rb
843
840
  - db/migrate/20130828121054_remove_do_not_index_from_alchemy_essence_texts.rb
@@ -914,6 +911,7 @@ files:
914
911
  - lib/rails/generators/alchemy/scaffold/files/alchemy.de.yml
915
912
  - lib/rails/generators/alchemy/scaffold/files/alchemy.elements.css.scss
916
913
  - lib/rails/generators/alchemy/scaffold/files/alchemy.en.yml
914
+ - lib/rails/generators/alchemy/scaffold/files/alchemy.es.yml
917
915
  - lib/rails/generators/alchemy/scaffold/files/application.html.erb
918
916
  - lib/rails/generators/alchemy/scaffold/files/elements.yml
919
917
  - lib/rails/generators/alchemy/scaffold/scaffold_generator.rb
@@ -1104,6 +1102,7 @@ files:
1104
1102
  - spec/views/essences/essence_boolean_editor_spec.rb
1105
1103
  - spec/views/essences/essence_boolean_view_spec.rb
1106
1104
  - spec/views/essences/essence_date_view_spec.rb
1105
+ - spec/views/essences/essence_file_editor_spec.rb
1107
1106
  - spec/views/essences/essence_file_view_spec.rb
1108
1107
  - spec/views/essences/essence_html_view_spec.rb
1109
1108
  - spec/views/essences/essence_link_view_spec.rb
@@ -1117,6 +1116,7 @@ files:
1117
1116
  - vendor/assets/javascripts/fileupload/jquery.fileupload.js
1118
1117
  - vendor/assets/javascripts/fileupload/jquery.iframe-transport.js
1119
1118
  - vendor/assets/javascripts/jquery_plugins/jquery.Jcrop.min.js
1119
+ - vendor/assets/javascripts/jquery_plugins/jquery.floatThead.min.js
1120
1120
  - vendor/assets/javascripts/jquery_plugins/jquery.scrollTo.min.js
1121
1121
  - vendor/assets/javascripts/jquery_plugins/jquery.ui.nestedSortable.js
1122
1122
  - vendor/assets/javascripts/jquery_plugins/jquery.ui.tabspaging.js
@@ -1124,8 +1124,10 @@ files:
1124
1124
  - vendor/assets/javascripts/requestAnimationFrame.js
1125
1125
  - vendor/assets/javascripts/spin.min.js
1126
1126
  - vendor/assets/javascripts/tinymce/langs/de.js
1127
+ - vendor/assets/javascripts/tinymce/langs/es.js
1127
1128
  - vendor/assets/javascripts/tinymce/langs/fr.js
1128
1129
  - vendor/assets/javascripts/tinymce/langs/nl.js
1130
+ - vendor/assets/javascripts/tinymce/langs/ru.js
1129
1131
  - vendor/assets/javascripts/tinymce/license.txt
1130
1132
  - vendor/assets/javascripts/tinymce/plugins/anchor/plugin.min.js
1131
1133
  - vendor/assets/javascripts/tinymce/plugins/autoresize/plugin.min.js
@@ -1145,20 +1147,32 @@ homepage: http://alchemy-cms.com
1145
1147
  licenses:
1146
1148
  - BSD New
1147
1149
  metadata: {}
1148
- post_install_message: |
1149
- To complete the installation of Alchemy please run:
1150
+ post_install_message: |+
1151
+ -------------------------------------------------------------
1152
+ Thank you for installing Alchemy CMS
1153
+ -------------------------------------------------------------
1154
+
1155
+ - Create a new standalone Alchemy project:
1156
+
1157
+ $ alchemy new my_project_name
1158
+
1159
+ - Complete the installation in an existing Rails application:
1160
+
1161
+ $ bin/rake alchemy:install
1162
+
1163
+ - Complete the upgrade of an existing Alchemy installation:
1150
1164
 
1151
- $ bin/rake alchemy:install
1165
+ $ bin/rake alchemy:upgrade
1152
1166
 
1153
- To upgrade former Alchemy intallations please run:
1167
+ and follow the onscreen instructions.
1154
1168
 
1155
- $ bin/rake alchemy:upgrade
1169
+ Need help? Try:
1156
1170
 
1157
- Thanks for installing Alchemy!
1171
+ * http://stackoverflow.com/questions/tagged/alchemy-cms
1172
+ * http://groups.google.com/group/alchemy-cms
1173
+ * irc://irc.freenode.net#alchemy_cms
1174
+ -------------------------------------------------------------
1158
1175
 
1159
- Need help?
1160
- Try https://groups.google.com/forum/#!forum/alchemy-cms
1161
- or #alchemy_cms on irc.freenode.net
1162
1176
  rdoc_options: []
1163
1177
  require_paths:
1164
1178
  - lib
@@ -1175,7 +1189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1175
1189
  requirements:
1176
1190
  - ImageMagick (libmagick), v6.6 or greater.
1177
1191
  rubyforge_project:
1178
- rubygems_version: 2.2.2
1192
+ rubygems_version: 2.4.5
1179
1193
  signing_key:
1180
1194
  specification_version: 4
1181
1195
  summary: A powerful, userfriendly and flexible CMS for Rails 4
@@ -1356,6 +1370,7 @@ test_files:
1356
1370
  - spec/views/essences/essence_boolean_editor_spec.rb
1357
1371
  - spec/views/essences/essence_boolean_view_spec.rb
1358
1372
  - spec/views/essences/essence_date_view_spec.rb
1373
+ - spec/views/essences/essence_file_editor_spec.rb
1359
1374
  - spec/views/essences/essence_file_view_spec.rb
1360
1375
  - spec/views/essences/essence_html_view_spec.rb
1361
1376
  - spec/views/essences/essence_link_view_spec.rb