kuhsaft 2.5.1 → 2.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6ae10c05114b458cf5e763fd12fa07a80cc7361
4
- data.tar.gz: c7d58fca0c78ee0fc6ac61101f44b766e9749a26
3
+ metadata.gz: ef9a363f06a35a948e4efb98b45dfc122b70e4cb
4
+ data.tar.gz: f58e57e75f974fea67371e7a86e1b186f5b73a9d
5
5
  SHA512:
6
- metadata.gz: ff52c3c3093e99f995819335e976f794daa285fbe36ce05bd3c876b61ed4122ea7683aa3a5cd92612c9ed4527db1f144e973b8e47efa003faf2df6c4de87ba05
7
- data.tar.gz: 70b84be2e3c8ebea53fa3aadc569cf219e393f4f8aeaf180790a427b9e794661fd074e9724554846bdc5a624ef776cfa0acd4f2b9bf9293bf2bd3c8e805243ce
6
+ metadata.gz: 940dcb88d844dbba451c0521d24926d16a679e109c93d8ba629dfa33015c079dae07b6c659a4e2a6379662e66e5308e769c403ddd9f90e7af766ea654c1483c4
7
+ data.tar.gz: cbbec6e5c2441e11dc65b939ab91aaf610b2e2a8e8d1cc18be24f9b568525a7e0954c45ec990599b857f9a1a867ce0db10a13ecc1ee4933805f11fe6aafc3f92
@@ -23,8 +23,9 @@ module Kuhsaft
23
23
 
24
24
  def update
25
25
  @brick = Kuhsaft::Brick.find(params[:id])
26
+ @brick.image_size ||= ImageSize.all.first.name.to_s
27
+ params['brick'].delete('image_cache') if params['brick']['image']
26
28
  @brick.update_attributes(brick_params)
27
-
28
29
  #
29
30
  # rails will fall back to html if ajax can't be used
30
31
  # this is the case with the image brick, because ajax does not
@@ -1,5 +1,5 @@
1
1
  .brick-item{ id: brick.to_brick_item_id, class: brick.to_style_class, 'data-id' => brick.id }
2
- = simple_form_for brick, as: :brick, url: kuhsaft.cms_brick_path(brick), remote: !brick.uploader?, html: { id: nil }, wrapper: :bootstrap do |form|
2
+ = simple_form_for brick, as: :brick, url: kuhsaft.cms_brick_path(brick), remote: true, html: { id: nil }, wrapper: :bootstrap do |form|
3
3
  = form.hidden_field :position, class: 'position-field'
4
4
  - brick_content = render(brick.to_edit_partial_path, brick: brick, form: form)
5
5
 
@@ -1,3 +1,3 @@
1
1
  module Kuhsaft
2
- VERSION = '2.5.1'
2
+ VERSION = '2.5.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kuhsaft
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.1
4
+ version: 2.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Immanuel Häussermann
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2014-08-26 00:00:00.000000000 Z
15
+ date: 2014-11-14 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rspec-rails
@@ -454,17 +454,15 @@ executables: []
454
454
  extensions: []
455
455
  extra_rdoc_files: []
456
456
  files:
457
- - README.md
458
- - Rakefile
459
- - app/assets/javascripts/ckeditor/plugins/adv_link/LICENSE.txt
460
- - app/assets/javascripts/ckeditor/plugins/adv_link/README.md
461
457
  - app/assets/javascripts/ckeditor/plugins/adv_link/dialogs/anchor.js.coffee
462
458
  - app/assets/javascripts/ckeditor/plugins/adv_link/dialogs/link.js.coffee
463
459
  - app/assets/javascripts/ckeditor/plugins/adv_link/images/anchor.png
464
460
  - app/assets/javascripts/ckeditor/plugins/adv_link/images/hidpi/anchor.png
465
461
  - app/assets/javascripts/ckeditor/plugins/adv_link/lang/de.js
466
462
  - app/assets/javascripts/ckeditor/plugins/adv_link/lang/en.js
463
+ - app/assets/javascripts/ckeditor/plugins/adv_link/LICENSE.txt
467
464
  - app/assets/javascripts/ckeditor/plugins/adv_link/plugin.js.coffee
465
+ - app/assets/javascripts/ckeditor/plugins/adv_link/README.md
468
466
  - app/assets/javascripts/kuhsaft/application.js.coffee
469
467
  - app/assets/javascripts/kuhsaft/cms/application.js.coffee.erb
470
468
  - app/assets/javascripts/kuhsaft/views/read_more_view.js.coffee
@@ -649,7 +647,6 @@ files:
649
647
  - db/seeds.rb
650
648
  - lib/generators/kuhsaft/assets/install_generator.rb
651
649
  - lib/generators/kuhsaft/translations/add_generator.rb
652
- - lib/kuhsaft.rb
653
650
  - lib/kuhsaft/brick_list.rb
654
651
  - lib/kuhsaft/engine.rb
655
652
  - lib/kuhsaft/gridded.rb
@@ -661,11 +658,19 @@ files:
661
658
  - lib/kuhsaft/touch_placeholders.rb
662
659
  - lib/kuhsaft/translatable.rb
663
660
  - lib/kuhsaft/version.rb
661
+ - lib/kuhsaft.rb
664
662
  - lib/tasks/kuhsaft_tasks.rake
665
663
  - lib/templates/kuhsaft/assets/ck-config.js.coffee
666
664
  - lib/templates/kuhsaft/assets/customizations.css.sass
667
665
  - lib/templates/kuhsaft/assets/customizations.js.coffee
668
666
  - lib/templates/kuhsaft/translations/add_translation.erb
667
+ - vendor/assets/javascripts/bootstrap-modal-v2.js
668
+ - vendor/assets/javascripts/bootstrap-modalmanager.js
669
+ - vendor/assets/javascripts/jquery.nestable.js
670
+ - vendor/assets/stylesheets/bootstrap_modal.css
671
+ - vendor/assets/stylesheets/nestable.css
672
+ - Rakefile
673
+ - README.md
669
674
  - spec/controllers/kuhsaft/api/pages_controller_spec.rb
670
675
  - spec/controllers/kuhsaft/pages_controller_spec.rb
671
676
  - spec/controllers/kuhsaft/sitemaps_controller_spec.rb
@@ -746,11 +751,6 @@ files:
746
751
  - spec/support/kuhsaft_spec_helper.rb
747
752
  - spec/support/write_expectation.rb
748
753
  - spec/views/kuhsaft/sitemaps/index.xml.haml_spec.rb
749
- - vendor/assets/javascripts/bootstrap-modal-v2.js
750
- - vendor/assets/javascripts/bootstrap-modalmanager.js
751
- - vendor/assets/javascripts/jquery.nestable.js
752
- - vendor/assets/stylesheets/bootstrap_modal.css
753
- - vendor/assets/stylesheets/nestable.css
754
754
  homepage: http://github.com/screenconcept/kuhsaft
755
755
  licenses:
756
756
  - MIT
@@ -771,7 +771,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
771
771
  version: '0'
772
772
  requirements: []
773
773
  rubyforge_project: kuhsaft
774
- rubygems_version: 2.2.2
774
+ rubygems_version: 2.0.3
775
775
  signing_key:
776
776
  specification_version: 4
777
777
  summary: A tool that helps you to manage your content within your app.
@@ -856,3 +856,4 @@ test_files:
856
856
  - spec/support/kuhsaft_spec_helper.rb
857
857
  - spec/support/write_expectation.rb
858
858
  - spec/views/kuhsaft/sitemaps/index.xml.haml_spec.rb
859
+ has_rdoc: