eac_ruby_utils 0.68.0 → 0.69.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: e3efdb1a6b5314499bf9a4ea397ffbb6f60234d4300170f84f47f113cc530604
4
- data.tar.gz: 76d6c0005193c3c52c05bcf1c9d037908c909728fb5d51cae0a840de0fb06d6c
3
+ metadata.gz: 0fab6e5db312ff7ad93ceadf6412b41ecb725d5ad8ea13c0b0f4f350b6d2dfa0
4
+ data.tar.gz: 1a3a81dfa1baaac26a79bcd25f2b6559555445b7f1075a00d54d7ed78fd999c6
5
5
  SHA512:
6
- metadata.gz: dfe79da4c2ac368cc8db6e06f7ae2fafdc18987ab66ebd5a020cac638022bebb11fa1752e6e42bb15f01a2d93b612cf6e653bbf2569b377abacd82761fa761a1
7
- data.tar.gz: 6bbb5c7b6757fca0b4b0f66451cb318b4e73608c2c9ce16e6d02a65d85d8a12fe5d021790bf674a7d722517294f65e9667d7c66fdb624f085e1f3d96c1b1cc0b
6
+ metadata.gz: e776c88a80777227d29e2055e2f06e865d849486aa8d7489f56156e986030dd0bf6a9c261c01a3ec7a1775581780f2ad201e4c26a9b68fc4b24c6eef0b01f090
7
+ data.tar.gz: ca955067e64bd91a42d606e6d55c0bb3655ee140b18db5452276972f4ac1dcbceb5aacbfedf6f8638f8f246e8d1b9b0a6f56c639415ce91510cd67754b9f8848
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'pathname'
4
+
5
+ class Pathname
6
+ # Apply .parent n times.
7
+ # @return [Pathname]
8
+ def parent_n(n) # rubocop:disable Naming/MethodParameterName
9
+ n.times.inject(self) { |a, _e| a.parent }
10
+ end
11
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyUtils
4
- VERSION = '0.68.0'
4
+ VERSION = '0.69.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_ruby_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.68.0
4
+ version: 0.69.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-11 00:00:00.000000000 Z
11
+ date: 2021-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -186,6 +186,7 @@ files:
186
186
  - lib/eac_ruby_utils/patches/object/to_pathname.rb
187
187
  - lib/eac_ruby_utils/patches/pathname.rb
188
188
  - lib/eac_ruby_utils/patches/pathname/basename_sub.rb
189
+ - lib/eac_ruby_utils/patches/pathname/parent_n.rb
189
190
  - lib/eac_ruby_utils/patches/regexp.rb
190
191
  - lib/eac_ruby_utils/patches/regexp/if_match.rb
191
192
  - lib/eac_ruby_utils/patches/regexp/to_parser.rb