alchemy_cms 2.6.0.rc5 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. data/.travis.yml +1 -1
  2. data/Gemfile +2 -1
  3. data/README.md +2 -4
  4. data/alchemy_cms.gemspec +1 -1
  5. data/app/assets/fonts/alchemy/icons.eot +0 -0
  6. data/app/assets/fonts/alchemy/icons.svg +71 -0
  7. data/app/assets/fonts/alchemy/icons.ttf +0 -0
  8. data/app/assets/fonts/alchemy/icons.woff +0 -0
  9. data/app/assets/javascripts/alchemy/alchemy.elements_window.js.coffee +6 -8
  10. data/app/assets/javascripts/alchemy/alchemy.hotkeys.js.coffee +2 -3
  11. data/app/assets/javascripts/alchemy/alchemy.image_cropper.js.coffee +3 -8
  12. data/app/assets/javascripts/alchemy/alchemy.link_overlay.js.coffee +3 -3
  13. data/app/assets/javascripts/alchemy/alchemy.preview_window.js.coffee +19 -9
  14. data/app/assets/javascripts/tiny_mce/plugins/alchemy_link/editor_plugin.js +6 -7
  15. data/app/assets/stylesheets/alchemy/admin.css.scss +0 -1
  16. data/app/assets/stylesheets/alchemy/archive.scss +55 -7
  17. data/app/assets/stylesheets/alchemy/base.scss +8 -144
  18. data/app/assets/stylesheets/alchemy/defaults.scss +1 -1
  19. data/app/assets/stylesheets/alchemy/elements.scss +20 -16
  20. data/app/assets/stylesheets/alchemy/flash.scss +1 -1
  21. data/app/assets/stylesheets/alchemy/form_elements.scss +49 -42
  22. data/app/assets/stylesheets/alchemy/icon-font.css.scss +67 -0
  23. data/app/assets/stylesheets/alchemy/icons.scss +16 -4
  24. data/app/assets/stylesheets/alchemy/jquery-ui.scss +40 -26
  25. data/app/assets/stylesheets/alchemy/menubar.css.scss +1 -1
  26. data/app/assets/stylesheets/alchemy/notices.scss +6 -1
  27. data/app/assets/stylesheets/alchemy/search.scss +3 -2
  28. data/app/assets/stylesheets/alchemy/sitemap.scss +72 -13
  29. data/app/assets/stylesheets/alchemy/tables.scss +31 -24
  30. data/app/assets/stylesheets/alchemy/upload.scss +1 -1
  31. data/app/assets/stylesheets/alchemy/variables.scss +2 -1
  32. data/app/assets/stylesheets/tiny_mce/plugins/inlinepopups/skins/{alchemy → alchemy-tinymce-dialog}/window.css.scss +70 -65
  33. data/app/controllers/alchemy/admin/base_controller.rb +7 -4
  34. data/app/controllers/alchemy/admin/pictures_controller.rb +2 -0
  35. data/app/controllers/alchemy/admin/users_controller.rb +1 -1
  36. data/app/controllers/alchemy/user_sessions_controller.rb +1 -1
  37. data/app/helpers/alchemy/admin/base_helper.rb +161 -60
  38. data/app/helpers/alchemy/admin/pages_helper.rb +4 -1
  39. data/app/helpers/alchemy/elements_block_helper.rb +1 -1
  40. data/app/helpers/alchemy/elements_helper.rb +119 -31
  41. data/app/helpers/alchemy/pages_helper.rb +29 -72
  42. data/app/models/alchemy/attachment.rb +0 -2
  43. data/app/models/alchemy/content.rb +1 -1
  44. data/app/models/alchemy/language.rb +1 -0
  45. data/app/models/alchemy/page.rb +8 -8
  46. data/app/views/alchemy/admin/attachments/_archive_overlay.html.erb +3 -1
  47. data/app/views/alchemy/admin/attachments/_overlay_file_list.html.erb +1 -1
  48. data/app/views/alchemy/admin/attachments/_tag_list.html.erb +25 -27
  49. data/app/views/alchemy/admin/attachments/index.html.erb +4 -1
  50. data/app/views/alchemy/admin/elements/_elements_select.html.erb +6 -6
  51. data/app/views/alchemy/admin/elements/list.js.erb +1 -1
  52. data/app/views/alchemy/admin/pages/_page.html.erb +1 -1
  53. data/app/views/alchemy/admin/pages/_page_for_links.html.erb +1 -1
  54. data/app/views/alchemy/admin/pages/edit.html.erb +4 -2
  55. data/app/views/alchemy/admin/pictures/_archive.html.erb +0 -1
  56. data/app/views/alchemy/admin/pictures/_filter_bar.html.erb +2 -1
  57. data/app/views/alchemy/admin/pictures/_picture.html.erb +5 -0
  58. data/app/views/alchemy/admin/pictures/index.html.erb +1 -0
  59. data/app/views/alchemy/base/500.html.erb +26 -5
  60. data/app/views/alchemy/essences/_essence_picture_tools.html.erb +1 -1
  61. data/app/views/alchemy/essences/_linkable_essence_tools.html.erb +1 -1
  62. data/app/views/alchemy/language_links/_language.html.erb +12 -0
  63. data/app/views/alchemy/language_links/_spacer.html.erb +1 -0
  64. data/config/locales/alchemy.de.yml +7 -3
  65. data/config/locales/alchemy.en.yml +8 -3
  66. data/lib/alchemy/page_layout.rb +1 -1
  67. data/lib/alchemy/tinymce.rb +1 -1
  68. data/lib/alchemy/upgrader.rb +26 -0
  69. data/lib/alchemy/version.rb +1 -1
  70. data/lib/rails/generators/alchemy/scaffold/scaffold_generator.rb +4 -1
  71. data/lib/tasks/ferret.rake +1 -0
  72. data/spec/controllers/admin/users_controller_spec.rb +5 -5
  73. data/spec/features/admin/pages_controller_spec.rb +1 -1
  74. data/spec/helpers/admin/pages_helper_spec.rb +31 -0
  75. data/spec/helpers/pages_helper_spec.rb +60 -72
  76. data/spec/models/content_spec.rb +2 -1
  77. data/spec/models/page_layout_spec.rb +29 -0
  78. data/spec/models/page_spec.rb +33 -1
  79. data/spec/support/alchemy/test_tweaks.rb +2 -6
  80. metadata +34 -12
  81. data/app/assets/fonts/alchemy-icons.eot +0 -0
  82. data/app/assets/fonts/alchemy-icons.svg +0 -54
  83. data/app/assets/fonts/alchemy-icons.ttf +0 -0
  84. data/app/assets/fonts/alchemy-icons.woff +0 -0
  85. data/app/assets/images/alchemy/placeholder.png +0 -0
  86. data/app/assets/stylesheets/alchemy/fonts.scss +0 -46
@@ -1,17 +1,13 @@
1
+ # https://gist.github.com/mperham/3049152
1
2
  # Fixes Capybara database connection issues
2
- # Found http://blog.plataformatec.com.br/2011/12/three-tips-to-improve-the-performance-of-your-test-suite/
3
-
4
3
  class ActiveRecord::Base
5
4
  mattr_accessor :shared_connection
6
5
  @@shared_connection = nil
7
6
 
8
7
  def self.connection
9
- @@shared_connection || retrieve_connection
8
+ @@shared_connection || ConnectionPool::Wrapper.new(:size => 1) { retrieve_connection }
10
9
  end
11
10
  end
12
-
13
- # Forces all threads to share the same connection. This works on
14
- # Capybara because it starts the web server in a thread.
15
11
  ActiveRecord::Base.shared_connection = ActiveRecord::Base.connection
16
12
 
17
13
  # fast truncation of all tables that need truncations (select is 10x faster then truncate)
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alchemy_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0.rc5
5
- prerelease: 6
4
+ version: 2.6.0
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Thomas von Deyen
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2013-04-30 00:00:00.000000000 Z
16
+ date: 2013-05-14 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: rails
@@ -383,6 +383,22 @@ dependencies:
383
383
  - - ! '>='
384
384
  - !ruby/object:Gem::Version
385
385
  version: '0'
386
+ - !ruby/object:Gem::Dependency
387
+ name: rspec-rails
388
+ requirement: !ruby/object:Gem::Requirement
389
+ none: false
390
+ requirements:
391
+ - - ~>
392
+ - !ruby/object:Gem::Version
393
+ version: 2.13.1
394
+ type: :development
395
+ prerelease: false
396
+ version_requirements: !ruby/object:Gem::Requirement
397
+ none: false
398
+ requirements:
399
+ - - ~>
400
+ - !ruby/object:Gem::Version
401
+ version: 2.13.1
386
402
  - !ruby/object:Gem::Dependency
387
403
  name: sqlite3
388
404
  requirement: !ruby/object:Gem::Requirement
@@ -449,14 +465,13 @@ files:
449
465
  - README.md
450
466
  - Rakefile
451
467
  - alchemy_cms.gemspec
452
- - app/assets/fonts/alchemy-icons.eot
453
- - app/assets/fonts/alchemy-icons.svg
454
- - app/assets/fonts/alchemy-icons.ttf
455
- - app/assets/fonts/alchemy-icons.woff
468
+ - app/assets/fonts/alchemy/icons.eot
469
+ - app/assets/fonts/alchemy/icons.svg
470
+ - app/assets/fonts/alchemy/icons.ttf
471
+ - app/assets/fonts/alchemy/icons.woff
456
472
  - app/assets/images/alchemy/alchemy-logo.png
457
473
  - app/assets/images/alchemy/icons.png
458
474
  - app/assets/images/alchemy/lupe.cur
459
- - app/assets/images/alchemy/placeholder.png
460
475
  - app/assets/images/alchemy/swfupload/browse_button.png
461
476
  - app/assets/images/alchemy/ui-icons_666666_256x240.png
462
477
  - app/assets/images/sassy-ie-overlay.png
@@ -506,9 +521,9 @@ files:
506
521
  - app/assets/stylesheets/alchemy/errors.scss
507
522
  - app/assets/stylesheets/alchemy/extends.scss
508
523
  - app/assets/stylesheets/alchemy/flash.scss
509
- - app/assets/stylesheets/alchemy/fonts.scss
510
524
  - app/assets/stylesheets/alchemy/form_elements.scss
511
525
  - app/assets/stylesheets/alchemy/frame.scss
526
+ - app/assets/stylesheets/alchemy/icon-font.css.scss
512
527
  - app/assets/stylesheets/alchemy/icons.scss
513
528
  - app/assets/stylesheets/alchemy/jquery-ui.scss
514
529
  - app/assets/stylesheets/alchemy/login.scss
@@ -525,7 +540,7 @@ files:
525
540
  - app/assets/stylesheets/alchemy/toolbar.scss
526
541
  - app/assets/stylesheets/alchemy/upload.scss
527
542
  - app/assets/stylesheets/alchemy/variables.scss
528
- - app/assets/stylesheets/tiny_mce/plugins/inlinepopups/skins/alchemy/window.css.scss
543
+ - app/assets/stylesheets/tiny_mce/plugins/inlinepopups/skins/alchemy-tinymce-dialog/window.css.scss
529
544
  - app/controllers/alchemy/admin/attachments_controller.rb
530
545
  - app/controllers/alchemy/admin/base_controller.rb
531
546
  - app/controllers/alchemy/admin/clipboard_controller.rb
@@ -769,6 +784,8 @@ files:
769
784
  - app/views/alchemy/essences/_essence_text_editor.html.erb
770
785
  - app/views/alchemy/essences/_essence_text_view.html.erb
771
786
  - app/views/alchemy/essences/_linkable_essence_tools.html.erb
787
+ - app/views/alchemy/language_links/_language.html.erb
788
+ - app/views/alchemy/language_links/_spacer.html.erb
772
789
  - app/views/alchemy/messages/contact_form_mail.text.erb
773
790
  - app/views/alchemy/messages/new.html.erb
774
791
  - app/views/alchemy/navigation/_image_link.html.erb
@@ -954,6 +971,7 @@ files:
954
971
  - spec/helpers/admin/contents_helper_spec.rb
955
972
  - spec/helpers/admin/elements_helper_spec.rb
956
973
  - spec/helpers/admin/essences_helper_spec.rb
974
+ - spec/helpers/admin/pages_helper_spec.rb
957
975
  - spec/helpers/admin/tags_helper_spec.rb
958
976
  - spec/helpers/base_helper_spec.rb
959
977
  - spec/helpers/elements_block_helper_spec.rb
@@ -1128,9 +1146,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
1128
1146
  required_rubygems_version: !ruby/object:Gem::Requirement
1129
1147
  none: false
1130
1148
  requirements:
1131
- - - ! '>'
1149
+ - - ! '>='
1132
1150
  - !ruby/object:Gem::Version
1133
- version: 1.3.1
1151
+ version: '0'
1152
+ segments:
1153
+ - 0
1154
+ hash: -1448087068870740088
1134
1155
  requirements:
1135
1156
  - ImageMagick (libmagick), v6.6 or greater.
1136
1157
  rubyforge_project:
@@ -1218,6 +1239,7 @@ test_files:
1218
1239
  - spec/helpers/admin/contents_helper_spec.rb
1219
1240
  - spec/helpers/admin/elements_helper_spec.rb
1220
1241
  - spec/helpers/admin/essences_helper_spec.rb
1242
+ - spec/helpers/admin/pages_helper_spec.rb
1221
1243
  - spec/helpers/admin/tags_helper_spec.rb
1222
1244
  - spec/helpers/base_helper_spec.rb
1223
1245
  - spec/helpers/elements_block_helper_spec.rb
@@ -1,54 +0,0 @@
1
- <?xml version="1.0" standalone="no"?>
2
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
- <svg xmlns="http://www.w3.org/2000/svg">
4
- <metadata>
5
- Created by FontForge 20100429 at Sun Feb 24 00:13:31 2013
6
- By root
7
- Copyright (C) 2012 by original authors @ fontello.com
8
- </metadata>
9
- <defs>
10
- <font id="alchemy" horiz-adv-x="830" >
11
- <font-face
12
- font-family="alchemy"
13
- font-weight="500"
14
- font-stretch="normal"
15
- units-per-em="1000"
16
- panose-1="2 0 6 3 0 0 0 0 0 0"
17
- ascent="850"
18
- descent="-150"
19
- bbox="14 -150 955 850"
20
- underline-thickness="50"
21
- underline-position="-100"
22
- unicode-range="U+229E-1F50E"
23
- />
24
- <missing-glyph horiz-adv-x="364"
25
- d="M33 0v666h265v-666h-265zM66 33h199v600h-199v-600z" />
26
- <glyph glyph-name=".notdef" horiz-adv-x="364"
27
- d="M33 0v666h265v-666h-265zM66 33h199v600h-199v-600z" />
28
- <glyph glyph-name=".null" horiz-adv-x="0"
29
- />
30
- <glyph glyph-name="nonmarkingreturn" horiz-adv-x="333"
31
- />
32
- <glyph glyph-name="uni229E" unicode="&#x229e;"
33
- d="M715 750q42 0 71 -29t29 -71v-600q0 -41 -29.5 -70.5t-70.5 -29.5h-600q-40 0 -70 30t-30 70v600q0 41 29.5 70.5t70.5 29.5h600zM665 300v100h-200v200h-100v-200h-200v-100h200v-200h100v200h200z" />
34
- <glyph glyph-name="uni229F" unicode="&#x229f;"
35
- d="M715 750q42 0 71 -29t29 -71v-600q0 -41 -29.5 -70.5t-70.5 -29.5h-600q-40 0 -70 30t-30 70v600q0 41 29.5 70.5t70.5 29.5h600zM665 300v100h-500v-100h500z" />
36
- <glyph glyph-name="uni27F2" unicode="&#x27f2;" horiz-adv-x="970"
37
- d="M547 736q171 0 289 -120q119 -121 119 -290t-119 -290q-118 -120 -289 -120q-143 0 -252 88l70 74q84 -60 182 -60q126 0 216 90t90 218t-90 218t-216 90q-124 0 -214 -87q-91 -87 -92 -211h142l-184 -204l-184 204h124q1 166 122 283q120 117 286 117z" />
38
- <glyph glyph-name="uniE74F" unicode="&#xe74f;" horiz-adv-x="490"
39
- d="M245 850l230 -364h-460zM245 -150l-230 366h460z" />
40
- <glyph glyph-name="uniE800" unicode="&#xe800;" horiz-adv-x="930"
41
- d="M171 146l-106 100h296v-296l-100 106l-146 -156l-100 100zM915 700l-154 -144l104 -100h-294v294l100 -104l144 154z" />
42
- <glyph glyph-name="uniE801" unicode="&#xe801;" horiz-adv-x="927"
43
- d="M914 728v-242l-536 -536l-364 364l535 536h243zM770 584q25 26 25 61t-25.5 60.5t-60.5 25.5t-60.5 -25.5t-25.5 -60.5t25.5 -60.5t60.5 -25.5t61 25z" />
44
- <glyph glyph-name="uniE802" unicode="&#xe802;" horiz-adv-x="822"
45
- d="M491 746h316v-316l-100 124l-146 -152l-100 100l152 146zM261 302l100 -100l-152 -146l122 -100h-316v316l100 -122z" />
46
- <glyph glyph-name="uniE803" unicode="&#xe803;" horiz-adv-x="500"
47
- d="M467 194q18 -18 18 -43t-17.5 -42t-43.5 -17t-43 16l-132 152l-132 -152q-17 -16 -43 -16t-43 16q-16 17 -16 43t16 43l138 156l-138 158q-16 17 -16 43t16 43q17 16 43 16t43 -16l132 -152l132 152q17 16 43 16t43.5 -17t17.5 -42t-18 -43l-138 -158z" />
48
- <glyph glyph-name="uniE804" unicode="&#xe804;" horiz-adv-x="610"
49
- d="M565 400q30 0 30 -50t-30 -50h-210v-210q0 -30 -50 -30t-50 30v210h-210q-30 0 -30 50t30 50h210v210q0 30 50 30t50 -30v-210h210z" />
50
- <glyph glyph-name="u1F50E" unicode="&#x1f50e;" horiz-adv-x="928"
51
- d="M335 290l25 -25l-86 -86l-72 -74l-27 27l74 73zM579.5 841q136.5 0 234 -97t97.5 -234t-97.5 -233.5t-233.5 -96.5q-64 0 -123 24l-255 -256l-184 184l256 255q-26 63 -26 123q0 137 97.5 234t234 97zM579.5 290q91.5 0 155.5 64.5t64 155.5t-64 155t-155.5 64
52
- t-155.5 -64t-64 -155t64 -155.5t155.5 -64.5z" />
53
- </font>
54
- </defs></svg>
@@ -1,46 +0,0 @@
1
- @charset "UTF-8";
2
-
3
- @font-face {
4
- font-family: 'Alchemy Icons';
5
- src: url("/assets/alchemy-icons.eot?23044784");
6
- src: url("/assets/alchemy-icons.eot?23044784#iefix") format('embedded-opentype'),
7
- url("/assets/alchemy-icons.woff?23044784") format('woff'),
8
- url("/assets/alchemy-icons.ttf?23044784") format('truetype'),
9
- url("/assets/alchemy-icons.svg?23044784#alchemy") format('svg');
10
- font-weight: normal;
11
- font-style: normal;
12
- }
13
-
14
- .icon-plus,
15
- .icon-expand,
16
- .icon-collapse,
17
- .icon-cancel:before,
18
- .icon-reload:before,
19
- .icon-tag,
20
- .icon-fullscreen:before,
21
- .icon-exit-fullscreen:before,
22
- .icon-double-arrow,
23
- .icon-search {
24
- font-family: 'Alchemy Icons';
25
- font-size: 12px;
26
- font-style: normal;
27
- font-weight: normal;
28
- speak: none;
29
- text-decoration: none;
30
- width: 12px;
31
- color: #666;
32
- text-align: center;
33
- line-height: 1em;
34
- @include inline-block;
35
- }
36
-
37
- .icon-plus:before { content: '\e804' } /* '' */
38
- .icon-expand:before { content: '\229e' }
39
- .icon-collapse:before { content: '\229f' } /* '⊟' */
40
- .icon-cancel:before { content: '\e803' } /* '' */
41
- .icon-reload:before { content: '\27f2' } /* '⟲' */
42
- .icon-tag:before { content: '\e801' } /* '' */
43
- .icon-fullscreen:before { content: '\e802' } /* '' */
44
- .icon-exit-fullscreen:before { content: '\e800' } /* '' */
45
- .icon-double-arrow:before { content: '\e74f' } /* '' */
46
- .icon-search:before { content: '\1f50e' } /* '\1f50e' */