chop 0.26.1 → 0.27.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/gemfiles/rails_5.1.gemfile.lock +1 -1
- data/gemfiles/rails_5.2.gemfile.lock +1 -1
- data/gemfiles/rails_6.0.gemfile.lock +1 -1
- data/gemfiles/rails_6.1.gemfile.lock +1 -1
- data/gemfiles/rails_7.0.gemfile.lock +1 -1
- data/lib/chop/form.rb +3 -1
- data/lib/chop/version.rb +1 -1
- data/lib/chop.rb +4 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06dae0b0190a3ec10f90abda7f5e19d5c8cc46d8c34850d800b7fd13687b9c4c
|
4
|
+
data.tar.gz: 18364b86f246ac84c09864121323af7d1d56d4bb12e2869519d4086050853a04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55591167c97f7305a483083fa51ae51a7fa619a19b22e670ded3ef50af3e5405c177a5da422f32e2ec1f2a1e5b04c3260296f11873479881b319f794bcc3f08f
|
7
|
+
data.tar.gz: f7c4ee1dfbfdf7908137c051b98d1ad8ae46987df16b9a70508247c72c1c844279d5c376b858f164c1a7426fbf8451ad62f49d1f24f84cd0c7f110a47d34ce60
|
data/lib/chop/form.rb
CHANGED
@@ -185,6 +185,7 @@ module Chop
|
|
185
185
|
private
|
186
186
|
|
187
187
|
def file_path
|
188
|
+
return nil unless value.present?
|
188
189
|
::File.expand_path(::File.join(path, value)).tap do |path|
|
189
190
|
::File.open(path){} # raise Errno::ENOENT if file doesn't exist
|
190
191
|
end
|
@@ -210,10 +211,11 @@ module Chop
|
|
210
211
|
|
211
212
|
def file_paths
|
212
213
|
value.split(" ").map do |filename|
|
214
|
+
next nil unless filename.present?
|
213
215
|
::File.expand_path(::File.join(path, filename)).tap do |path|
|
214
216
|
::File.open(path){} # raise Errno::ENOENT if file doesn't exist
|
215
217
|
end
|
216
|
-
end
|
218
|
+
end.compact
|
217
219
|
end
|
218
220
|
end
|
219
221
|
|
data/lib/chop/version.rb
CHANGED
data/lib/chop.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.27.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Micah Geisel
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
181
|
- !ruby/object:Gem::Version
|
182
182
|
version: '0'
|
183
183
|
requirements: []
|
184
|
-
rubygems_version: 3.
|
184
|
+
rubygems_version: 3.2.32
|
185
185
|
signing_key:
|
186
186
|
specification_version: 4
|
187
187
|
summary: Slice and dice your cucumber tables with ease!
|