cama_contact_form 0.0.27 → 0.0.28

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
- SHA1:
3
- metadata.gz: 1e0943d6f462a7f834e435510534030ec25adebf
4
- data.tar.gz: d37c4f408019f089f41ebc85a29b096f6439ca4e
2
+ SHA256:
3
+ metadata.gz: 9426562f3c96fb9894d0107425510999419cb6ae5e9cbdb08ed2896b95d63e0e
4
+ data.tar.gz: b5e28769c5cebe0015f3178d7a0e629a16f4c265aaad79a89e7db6a3f4c97ae5
5
5
  SHA512:
6
- metadata.gz: 735fa908aecfdc95ee55c788e09b58db50fc5f5c11af6690baa39571c6683fcb99768aaa6c6f3b940085ada2d334826900cc7d518132f9a7b99737de88bd1466
7
- data.tar.gz: c2d6c3eb58a5d8f25a5e4b8abc23bf714c429683d8db7323ced018dccefb657c170c9da37ba0586daa05ea8addb1228798534d6826798efd834560fbbb378989
6
+ metadata.gz: 068863da0e5372504fb169ae629941e21ae2546c6602754d235f56103c7f528ea8c52282f470f59c1ed1baeaaaa97c091081b37c4aae562b08482b013ad2f2a2
7
+ data.tar.gz: 25f3c18df9e836f405f0bd65cca575b1df4a49e8446bec8cd2a88e23189af597b28ddb6e41b4b64d5e95d378203d9a16e6a226c0742880f005b1c4c0b549016c
@@ -5,7 +5,7 @@ module Plugins::CamaContactForm::ContactFormControllerConcern
5
5
  form.fields.each do |f|
6
6
  if f[:field_type] == 'file'
7
7
  file_paths = []
8
- fields[f[:cid].to_sym].each do |file|
8
+ fields[f[:cid].to_sym].to_a.each do |file|
9
9
  res = cama_tmp_upload(file, {
10
10
  maximum: current_site.get_option('filesystem_max_size', 100).megabytes,
11
11
  path: Rails.public_path.join("contact_form", current_site.id.to_s),
@@ -64,7 +64,7 @@ module Plugins::CamaContactForm::ContactFormControllerConcern
64
64
  errors << "#{label.to_s.translate}: #{form.the_message('captcha_not_match', t('.captch_error_val', default: 'The entered code is incorrect'))}"
65
65
  validate = false
66
66
  }
67
-
67
+
68
68
  if form.recaptcha_enabled?
69
69
  form.set_captcha_settings!
70
70
  error_message.call unless verify_recaptcha
@@ -100,4 +100,4 @@ module Plugins::CamaContactForm::ContactFormControllerConcern
100
100
  def relevant_field?(field)
101
101
  !%w(captcha submit button).include? field[:field_type]
102
102
  end
103
- end
103
+ end
@@ -1,3 +1,3 @@
1
1
  module CamaContactForm
2
- VERSION = "0.0.27"
2
+ VERSION = "0.0.28"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cama_contact_form
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.27
4
+ version: 0.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Owen Peredo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-01 00:00:00.000000000 Z
11
+ date: 2019-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -141,45 +141,45 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  version: '0'
142
142
  requirements: []
143
143
  rubyforge_project:
144
- rubygems_version: 2.6.10
144
+ rubygems_version: 2.7.7
145
145
  signing_key:
146
146
  specification_version: 4
147
147
  summary: Contact Form Plugin for Camaleon CMS
148
148
  test_files:
149
- - test/dummy/app/controllers/application_controller.rb
150
- - test/dummy/app/views/layouts/application.html.erb
149
+ - test/cama_contact_form_test.rb
151
150
  - test/dummy/app/assets/javascripts/application.js
152
151
  - test/dummy/app/assets/stylesheets/application.css
152
+ - test/dummy/app/controllers/application_controller.rb
153
153
  - test/dummy/app/helpers/application_helper.rb
154
- - test/dummy/bin/rake
155
- - test/dummy/bin/setup
154
+ - test/dummy/app/views/layouts/application.html.erb
156
155
  - test/dummy/bin/bundle
157
156
  - test/dummy/bin/rails
158
- - test/dummy/config/secrets.yml
159
- - test/dummy/config/routes.rb
160
- - test/dummy/config/locales/en.yml
161
- - test/dummy/config/environments/production.rb
162
- - test/dummy/config/environments/development.rb
163
- - test/dummy/config/environments/test.rb
164
- - test/dummy/config/environment.rb
157
+ - test/dummy/bin/rake
158
+ - test/dummy/bin/setup
165
159
  - test/dummy/config/application.rb
166
- - test/dummy/config/database.yml
167
160
  - test/dummy/config/boot.rb
161
+ - test/dummy/config/database.yml
162
+ - test/dummy/config/environment.rb
163
+ - test/dummy/config/environments/development.rb
164
+ - test/dummy/config/environments/production.rb
165
+ - test/dummy/config/environments/test.rb
166
+ - test/dummy/config/initializers/assets.rb
168
167
  - test/dummy/config/initializers/backtrace_silencers.rb
169
- - test/dummy/config/initializers/mime_types.rb
168
+ - test/dummy/config/initializers/cookies_serializer.rb
170
169
  - test/dummy/config/initializers/filter_parameter_logging.rb
170
+ - test/dummy/config/initializers/inflections.rb
171
+ - test/dummy/config/initializers/mime_types.rb
171
172
  - test/dummy/config/initializers/session_store.rb
172
173
  - test/dummy/config/initializers/wrap_parameters.rb
173
- - test/dummy/config/initializers/assets.rb
174
- - test/dummy/config/initializers/cookies_serializer.rb
175
- - test/dummy/config/initializers/inflections.rb
174
+ - test/dummy/config/locales/en.yml
175
+ - test/dummy/config/routes.rb
176
+ - test/dummy/config/secrets.yml
176
177
  - test/dummy/config.ru
177
- - test/dummy/Rakefile
178
- - test/dummy/public/favicon.ico
178
+ - test/dummy/public/404.html
179
179
  - test/dummy/public/422.html
180
180
  - test/dummy/public/500.html
181
- - test/dummy/public/404.html
181
+ - test/dummy/public/favicon.ico
182
+ - test/dummy/Rakefile
182
183
  - test/dummy/README.rdoc
183
- - test/cama_contact_form_test.rb
184
184
  - test/integration/navigation_test.rb
185
185
  - test/test_helper.rb