effective_bootstrap 1.18.6 → 1.19.0

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
  SHA256:
3
- metadata.gz: e7622861e08b0f2d26507c958a27e9911fa3c9e1a9d63856d5681feae3d57a1c
4
- data.tar.gz: 25106f78d44870955fd64aec81f578d58296239792fd59bb71089b3081113c7a
3
+ metadata.gz: 844038db1d595831ec16f1cd49a7f3c89bb8b7b877261d36babc5560da5f7a72
4
+ data.tar.gz: ac61d9e612506dd44cd17b475f2fd2b462ad2aec596867d64c6c1227a927a7cb
5
5
  SHA512:
6
- metadata.gz: 5da3e707da876fbae855e43c039e2d7e127b215076abeddf3fb660a5997b36011ebdb99f2bf2ee8bc39139020327f7eb26f1a9339716134cb1826d5c9ac77f10
7
- data.tar.gz: e107e2b8a9491ebb5cf0de401d281b2c35731ed5754d8f2e4d4b01cee9425e72703c50472aa901a8e18d40e9183750361c2f3769ecef396ad2085c53d009f828
6
+ metadata.gz: 00da333a9a954cc0d2726fd04c8609f07028f310aa8e74c75ca8a095879665013d9343948466d4a1520d210a28a912dca4bb7a1b6085a73334b45e47b48f74c2
7
+ data.tar.gz: 2bf1ae4caaa18d4ce889319408a45f3f6e65e18bfd2682fbe03b700ed98fdd6800e994b195ad7434165be72a7cae61e80ce376e4e77605c33c5d3134975b3e09
@@ -105,8 +105,8 @@ this.EffectiveForm ||= new class
105
105
 
106
106
  # Process remote form
107
107
  if $form.length > 0
108
- try EffectiveBootstrap.initialize($form)
109
108
  $target.replaceWith($form)
109
+ try EffectiveBootstrap.initialize($form)
110
110
  else
111
111
  $form = @reset($target) # There is no remote form. So we assume success and reset the submitted one.
112
112
 
@@ -151,10 +151,12 @@ module Effective
151
151
  case mode
152
152
  when :default, :admin
153
153
  default_mode.merge(active_storage: active_storage, css: css, custom: { css: custom_css })
154
+ when :email
155
+ restricted_mode.merge(active_storage: false, css: css, custom: { css: custom_css })
154
156
  when :restricted
155
157
  restricted_mode.merge(active_storage: false, css: css, custom: { css: custom_css })
156
158
  else
157
- raise("unexpected mode: #{mode}. Try :default or :restricted")
159
+ raise("unexpected mode: #{mode}. Try :default, :email, or :restricted")
158
160
  end
159
161
  end
160
162
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '1.18.6'.freeze
2
+ VERSION = '1.19.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.18.6
4
+ version: 1.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-23 00:00:00.000000000 Z
11
+ date: 2024-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails