eac_ruby_utils 0.49.1 → 0.50.0

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: 950ee0e703e04a530326ce6df19fa23a921061a3cc046d1ec880e1c078fd30fa
4
- data.tar.gz: 3e81efb81e7fc9e8e5d23f1e5228eb6767be645a5ed1abefcb1d5551c39dc4b0
3
+ metadata.gz: 0c80765ea909f0b3c1b855d32546e7bfaf1c694d38c80b25e75eabb23c7dc206
4
+ data.tar.gz: ffe2cfa92b0d23c9fa6bc43a494b9afa8ad596559ca389cc793e8c430c906265
5
5
  SHA512:
6
- metadata.gz: a05690c1726e671c20b7a85e1c0ac44387c085ff2cba3d7381a7ffab7850f056a014f301d2360c8610cd266879ac368af0f27a4c7738ae9a53306442316bbed6
7
- data.tar.gz: 256ad147935d38435623279add15c7ae78de97357864cc0d065aaed9b3e2095a4ded3a63ca51ac70c966900f8dff2acc07d887656140cfa65068f5ced27b5eef
6
+ metadata.gz: aceb74a3c6ae1d3a157eebcd5cbfad84f0597fb66e22e5725e6fd20f3be705505052c76c60954b5da79adf9db387e9e6288b877cbe4aad5ed4c7caef6450a17e
7
+ data.tar.gz: 8d48dc6c978e5f937a31488f360fcc024b248074892b765e0e42cd752859598f95396ed8f4d3b2f2d350ee5f0b7846f2b5c24a1150580999cfadbc6e310f44a9
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/require_sub'
4
+ ::EacRubyUtils.require_sub __FILE__
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Enumerator
4
+ def current(default_value = nil)
5
+ peek
6
+ rescue ::StopIteration
7
+ default_value
8
+ end
9
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Enumerator
4
+ def ongoing?
5
+ !stopped?
6
+ end
7
+
8
+ def stopped?
9
+ peek
10
+ false
11
+ rescue ::StopIteration
12
+ true
13
+ end
14
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyUtils
4
- VERSION = '0.49.1'
4
+ VERSION = '0.50.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.49.1
4
+ version: 0.50.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: 2020-11-10 00:00:00.000000000 Z
11
+ date: 2020-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -183,6 +183,9 @@ files:
183
183
  - lib/eac_ruby_utils/patches/class/common_constructor.rb
184
184
  - lib/eac_ruby_utils/patches/enumerable.rb
185
185
  - lib/eac_ruby_utils/patches/enumerable/boolean_combinations.rb
186
+ - lib/eac_ruby_utils/patches/enumerator.rb
187
+ - lib/eac_ruby_utils/patches/enumerator/current.rb
188
+ - lib/eac_ruby_utils/patches/enumerator/stopped.rb
186
189
  - lib/eac_ruby_utils/patches/hash.rb
187
190
  - lib/eac_ruby_utils/patches/hash/options_consumer.rb
188
191
  - lib/eac_ruby_utils/patches/hash/sym_keys_hash.rb