simple_form_bs5_file_input 0.0.6 → 0.0.7

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: 9b00aca895432b5130fad571666763a588ed10615d80319ae50a797eac704031
4
- data.tar.gz: 167cc07867256c4b1bf2043578b9cd158a4b9356982eef823e54c7cf48e39d3a
3
+ metadata.gz: a8d494c48e5c5e83b8eb9ceecddff74c2326585a270dad9af472b1a3c3dfcca0
4
+ data.tar.gz: 0b4dfe0fc0d349880060d23d98ff402d2cb54b75a293a62264ada3b8f3f48762
5
5
  SHA512:
6
- metadata.gz: 06acfb0828ebe32f582004073ca34c8d9a136d7dad56f1da3ea22909fd591d70184a6e05415313bb12c8b7fcffe84033700d14906ccfe06044afe384dce17dcb
7
- data.tar.gz: 6d243229507b7e0fdee145b2c3d156c7d6aaefb3b3628b51d7a4537a5ba76fd113c2bfd4b47222a8e451a08242925966d7639a8b623778aa9f2c28f364b4a70c
6
+ metadata.gz: d7a46f3bf31605f9232fcc9a29081471fdac8a89734212b165afdc965759708dbdcfd3a1f16ac23118e5105c0b7f260617f4d18a52990fdc6d1ce208a813aa26
7
+ data.tar.gz: cb14c8ce8f5b21d73a02719ec51e935ae4b2e79e84c7e7eaeb106991623cb19add4237a39f67f1c936f6cddf0148cb135787dc8d6c876dc38ca4431a42f6616f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simple_form_bs5_file_input (0.0.6)
4
+ simple_form_bs5_file_input (0.0.7)
5
5
  rails
6
6
  simple_form
7
7
 
@@ -91,7 +91,6 @@ GEM
91
91
  railties (>= 4.1.0)
92
92
  responders
93
93
  warden (~> 1.2.3)
94
- digest (3.1.0)
95
94
  erubi (1.10.0)
96
95
  execjs (2.8.1)
97
96
  ffi (1.15.5)
@@ -117,20 +116,14 @@ GEM
117
116
  mini_portile2 (2.8.0)
118
117
  minitest (5.15.0)
119
118
  msgpack (1.5.2)
120
- net-imap (0.2.3)
121
- digest
119
+ net-imap (0.3.1)
122
120
  net-protocol
123
- strscan
124
- net-pop (0.1.1)
125
- digest
121
+ net-pop (0.1.2)
126
122
  net-protocol
127
- timeout
128
123
  net-protocol (0.1.3)
129
124
  timeout
130
- net-smtp (0.3.1)
131
- digest
125
+ net-smtp (0.3.3)
132
126
  net-protocol
133
- timeout
134
127
  nio4r (2.5.8)
135
128
  nokogiri (1.13.6)
136
129
  mini_portile2 (~> 2.8.0)
@@ -194,7 +187,6 @@ GEM
194
187
  activesupport (>= 5.2)
195
188
  sprockets (>= 3.0.0)
196
189
  sqlite3 (1.4.2)
197
- strscan (3.0.3)
198
190
  thor (1.2.1)
199
191
  tilt (2.0.10)
200
192
  timeout (0.3.0)
@@ -36,7 +36,8 @@ window.inputSingleDeletableFile = {
36
36
  $('.js-sdfi-deletable-file__delete-field', $scope).val('');
37
37
  }
38
38
 
39
- if (/^image\/\w+$/.test(file.type) && (hasResize || hasPreview)) {
39
+
40
+ if (/^image\/[a-z+]+$/.test(file.type) && (hasResize || hasPreview)) {
40
41
  reader = new FileReader();
41
42
  reader.readAsDataURL(file);
42
43
  if (hasResize) {
@@ -1,3 +1,3 @@
1
1
  module SimpleFormBs5FileInput
2
- VERSION = "0.0.6".freeze
2
+ VERSION = "0.0.7".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_form_bs5_file_input
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pierre-andré Boissinot
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-30 00:00:00.000000000 Z
11
+ date: 2022-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -97,7 +97,7 @@ homepage: https://github.com/noesya/simple_form_bs5_file_input
97
97
  licenses:
98
98
  - MIT
99
99
  metadata: {}
100
- post_install_message:
100
+ post_install_message:
101
101
  rdoc_options: []
102
102
  require_paths:
103
103
  - lib
@@ -112,8 +112,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  - !ruby/object:Gem::Version
113
113
  version: '0'
114
114
  requirements: []
115
- rubygems_version: 3.1.6
116
- signing_key:
115
+ rubygems_version: 3.1.4
116
+ signing_key:
117
117
  specification_version: 4
118
118
  summary: Simple Form BS5 File Input
119
119
  test_files: []