include2ignore 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1980856274a5f39c2eaf284ba7c0f42263261a873a1fca9d7257243b47585852
4
- data.tar.gz: b3891c0ab2157af33f311c0869694e9d296bf60b5642cc8a1ea3f2bd3a17c002
3
+ metadata.gz: 12bd8f59b928236ea120418fb2be28ee375b956de4591f171b188b3fdf36152f
4
+ data.tar.gz: e1acd89a6f84bab273df40c04f0307c2cd9bb3909cc6b35162bdc8d7ade7c862
5
5
  SHA512:
6
- metadata.gz: ba2816257df56abb506128ccba3bff9a901db0b5062e014e24836402b6db4a687a2fe00c3ab7ab41e856e354fb077d1ea603f6121bcdf6abb5d9116f26a4e425
7
- data.tar.gz: e0f4a554fd8729f0c9c9fbbbf18b9c48d867c36e8024b5bd0ed88c1c4a76db3868f71f92975ca868d9dad41301481b7de60d60709769919d15740a1a4fa8a557
6
+ metadata.gz: 871809b79618c7132f9e311f85bc5a033485a23d83412f5db6354686470c2b13dabfe3cf45c7b40e7f371854da5edd17b1ebcb75a18cdffff2d283c2d20917c1
7
+ data.tar.gz: 5f2936076de595ac7c22e9438193f0d0b78d28f28e5f88b9273430d9a568969dc0a8822a3bd259a19f59f0b1270eb317ca622ee4b5a4759439001aee0021ee2d
@@ -289,6 +289,7 @@ EOF
289
289
  # Last key is known to match last item, so if that were tested, it would pass.
290
290
  return position_index == @elements.size - 1
291
291
  end
292
+ return false if position_index == @elements.size
292
293
  if @elements[position_index].re == :anydirs
293
294
  # :anydir absorbs current key and moves to next position.
294
295
  return true if search(index_arrays, array_index + 1, position_index + 1)
@@ -6,5 +6,5 @@
6
6
  # Name and version.
7
7
  module Include2Ignore
8
8
  NAME = 'include2ignore'
9
- VERSION = '0.1.0'
9
+ VERSION = '0.1.1'
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: include2ignore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ismo Kärkkäinen