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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c00884fb2fbfb420d6998158cd169e37656c0f298711f3acbde0c50e45635be
4
- data.tar.gz: a461f88706aaaa561fdc3ea69445726a399a40c35b89a675240013d6b29c16e6
3
+ metadata.gz: 06dae0b0190a3ec10f90abda7f5e19d5c8cc46d8c34850d800b7fd13687b9c4c
4
+ data.tar.gz: 18364b86f246ac84c09864121323af7d1d56d4bb12e2869519d4086050853a04
5
5
  SHA512:
6
- metadata.gz: d9e2717f830ddc325738bfb5d527f17ef22f1e1719ece7740b1351eb2717290716187b77590ddb43e2e2aab8fc29113d07e167f7593734d684144c94afbe54d9
7
- data.tar.gz: 9dc889b110203b2871aabc0c6df10adb5feec16c07b994522d527615033e682831a3b971753b9f861dfbf6c8f2139bb531f6f4dfa6ae630650555afc5b68e010
6
+ metadata.gz: 55591167c97f7305a483083fa51ae51a7fa619a19b22e670ded3ef50af3e5405c177a5da422f32e2ec1f2a1e5b04c3260296f11873479881b319f794bcc3f08f
7
+ data.tar.gz: f7c4ee1dfbfdf7908137c051b98d1ad8ae46987df16b9a70508247c72c1c844279d5c376b858f164c1a7426fbf8451ad62f49d1f24f84cd0c7f110a47d34ce60
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- chop (0.26.1)
4
+ chop (0.27.0)
5
5
  activerecord
6
6
  capybara
7
7
  cucumber
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- chop (0.26.1)
4
+ chop (0.27.0)
5
5
  activerecord
6
6
  capybara
7
7
  cucumber
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- chop (0.26.1)
4
+ chop (0.27.0)
5
5
  activerecord
6
6
  capybara
7
7
  cucumber
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- chop (0.26.1)
4
+ chop (0.27.0)
5
5
  activerecord
6
6
  capybara
7
7
  cucumber
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- chop (0.26.1)
4
+ chop (0.27.0)
5
5
  activerecord
6
6
  capybara
7
7
  cucumber
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
@@ -1,3 +1,3 @@
1
1
  module Chop
2
- VERSION = "0.26.1"
2
+ VERSION = "0.27.0"
3
3
  end
data/lib/chop.rb CHANGED
@@ -11,5 +11,9 @@ require "chop/config"
11
11
  module Chop
12
12
  extend DSL
13
13
  extend Config
14
+
15
+ def self.empty_table
16
+ Cucumber::MultilineArgument::DataTable.from([[]])
17
+ end
14
18
  end
15
19
 
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.26.1
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: 2021-12-30 00:00:00.000000000 Z
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.0.8
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!