refinerycms-page-images 2.1.0 → 2.1.1

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: d734dccd4a97c7c04d9752e6cfd85cb2b6266997
4
- data.tar.gz: beeee224e8b42b0425e26a3e3e8a49c09aba4e3e
3
+ metadata.gz: b6fc2bbd624edbc3cc8c6a79788d6dd8088cae31
4
+ data.tar.gz: 7dc2219f661feb71369a946280e1d795b298b4ab
5
5
  SHA512:
6
- metadata.gz: 515f2c187884f0a6157d5a05fdadf9f2a88c83b77216cafb8091fab7eceb090e12a3f1402c2e56e0eb8ad270ab321c70f8b7af1fd0e399dedf282e1deac74819
7
- data.tar.gz: 3a35eaefb138d3104354a442ac6df63c5313a46ba56ec7fc981edf9c9a0e9552daf35a8bf302fa056a5b95852fd527894b5f964c0b6dded04c5f508415952864
6
+ metadata.gz: 815969fd574b909a7f13487dd8adfe6fff6a750971e13f12016add64cafea2ddc471573034932b41987c85e993f4866b9b76a83ef1b42ad422a655c384ca3874
7
+ data.tar.gz: 9b2067631165952b8925fd9f4aaf18b376cae84257f57ca045744896828f707df777dc03dd88008fc9cc79cc4387ac471ccc1fdf18beda590adb4b9929e23c43
@@ -9,6 +9,7 @@
9
9
  <% modal_class = Refinery::PageImages.config.wysiwyg ? 'wym' : 'plain' %>
10
10
 
11
11
  <div class='wym_box field images_field'>
12
+ <%= hidden_field_tag "#{f.object_name.demodulize}[images_attributes][-1]", "" %>
12
13
  <ul id='page_images' class='clearfix'>
13
14
  <%= f.fields_for :images do |image_form| %>
14
15
  <li id='image_<%= image_form.object.id %>'>
@@ -13,6 +13,7 @@ module Refinery
13
13
  # deletes an already defined images_attributes
14
14
  module_eval do
15
15
  def images_attributes=(data)
16
+ data = data.reject {|key, data| data.blank?}
16
17
  ids_to_keep = data.map{|i, d| d['image_page_id']}.compact
17
18
 
18
19
  image_pages_to_delete = if ids_to_keep.empty?
@@ -1,10 +1,10 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{refinerycms-page-images}
3
- s.version = %q{2.1.0}
4
- s.description = %q{Attach images to pages ins Refinery CMS}
3
+ s.version = %q{2.1.1}
4
+ s.description = %q{Attach images to pages in Refinery CMS}
5
5
  s.summary = %q{Page Images extension for Refinery CMS}
6
6
  s.email = %q{info@refinerycms.com}
7
- s.homepage = %q{http://github.com/refinery/refinerycms-page-images}
7
+ s.homepage = %q{https://github.com/refinery/refinerycms-page-images}
8
8
  s.authors = ['Philip Arndt', 'David Jones']
9
9
  s.require_paths = %w(lib)
10
10
  s.license = %q{MIT}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-page-images
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Arndt
@@ -9,30 +9,30 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-04 00:00:00.000000000 Z
12
+ date: 2014-06-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: refinerycms-pages
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ~>
18
+ - - "~>"
19
19
  - !ruby/object:Gem::Version
20
20
  version: 2.1.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ~>
25
+ - - "~>"
26
26
  - !ruby/object:Gem::Version
27
27
  version: 2.1.0
28
- description: Attach images to pages ins Refinery CMS
28
+ description: Attach images to pages in Refinery CMS
29
29
  email: info@refinerycms.com
30
30
  executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
- - .gitignore
35
- - .travis.yml
34
+ - ".gitignore"
35
+ - ".travis.yml"
36
36
  - Gemfile
37
37
  - Rakefile
38
38
  - app/assets/javascripts/refinery/page-image-picker.js.erb
@@ -73,7 +73,7 @@ files:
73
73
  - spec/models/refinery/page_spec.rb
74
74
  - spec/spec_helper.rb
75
75
  - tasks/rspec.rake
76
- homepage: http://github.com/refinery/refinerycms-page-images
76
+ homepage: https://github.com/refinery/refinerycms-page-images
77
77
  licenses:
78
78
  - MIT
79
79
  metadata: {}
@@ -83,17 +83,17 @@ require_paths:
83
83
  - lib
84
84
  required_ruby_version: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - '>='
86
+ - - ">="
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  requirements:
91
- - - '>='
91
+ - - ">="
92
92
  - !ruby/object:Gem::Version
93
93
  version: '0'
94
94
  requirements: []
95
95
  rubyforge_project:
96
- rubygems_version: 2.0.6
96
+ rubygems_version: 2.2.2
97
97
  signing_key:
98
98
  specification_version: 4
99
99
  summary: Page Images extension for Refinery CMS