refinements 12.7.0 → 12.7.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: d95a713a69dbbeaec7c6c2f76c634f576d763e86d32b1f46bad9817ac6eacd70
4
- data.tar.gz: 5d972fa9193dab8743c5ed1aa7980a9b11be3b34e951f885377d25742d791eb1
3
+ metadata.gz: 81242c43b3aad6b04319273228ac9a83e1dde30677f95bafe56629552e9a2aff
4
+ data.tar.gz: 350fbedab3dba89b6506b73b1ee1eb029d0fab302d347caddccfb53af865bc8b
5
5
  SHA512:
6
- metadata.gz: cec359f8d82a7e98889f2913e8330857d15f9d7a99ae0024e3895b6b4ec61c7a6c6a17897fb19b3ae1f10224d02be2affca6c81093d7965c6acfdb58d0b5c535
7
- data.tar.gz: b967aed2a285c8ca49b5ef6a54f830721a19ccdc7521ac7857bedcec849b781e7b6a357b770c4f99cd47fe4197f2f0b2cbecd149e89096cd4193c841a64dc623
6
+ metadata.gz: 3b52ff2d707ddca982386b1f65d49f21a080faa3f5985adead49c3c15c3bed2ebc4c5587c0bedbbe2fcc3a0b80e97946c5b895fb365d39eeeabf02922b0388a0
7
+ data.tar.gz: f7eaf17a912a7ddfdf05117da9a13f0bd699aae9238f6df8e8dcc26f963f431781710a20f39775162547c44fe847d04edd6304da3bbaea90412e74db35f2c72f
checksums.yaml.gz.sig CHANGED
Binary file
data/README.adoc CHANGED
@@ -1681,19 +1681,19 @@ An alias of `#merge` and identical in behavior (see `#merge` documentation for d
1681
1681
 
1682
1682
  ===== #call
1683
1683
 
1684
- Enhances symbol-to-proc by allowing you to send additional arguments and/or a block. This only works
1685
- with public methods in order to not break encapsulation.
1684
+ Enhances symbol-to-proc functionality by allowing you to send positional, keyword, and/or a block arguments. This only works with public methods in order to not break encapsulation.
1686
1685
 
1687
1686
  [source,ruby]
1688
1687
  ----
1688
+
1689
1689
  %w[clue crow cow].map(&:tr.call("c", "b")) # ["blue", "brow", "bow"]
1690
+ [1.3, 1.5, 1.9].map(&:round.call(half: :up)) # [1, 2, 2]
1690
1691
  [%w[a b c], %w[c a b]].map(&:index.call { |element| element == "b" }) # [1, 2]
1691
- %w[1.outside 2.inside].map(&:sub.call(/\./) { |bullet| bullet + " " }) # ["1. outside", "2. inside"]
1692
+ %w[1.out 2.in].map(&:sub.call(/\./) { |bullet| bullet + " " }) # ["1. out", "2. in"]
1692
1693
  [1, 2, 3].map(&:to_s.call) # ["1", "2", "3"]
1693
1694
  ----
1694
1695
 
1695
- ⚠️ Use of `#call` without any arguments or block should be avoided in order to not incur extra
1696
- processing costs since the original symbol-to-proc call can be used instead.
1696
+ ⚠️ Use of `#call` without any arguments should be avoided in order to not incur extra processing costs since the original symbol-to-proc call can be used instead.
1697
1697
 
1698
1698
  == Development
1699
1699
 
@@ -4,8 +4,8 @@ module Refinements
4
4
  # Provides additional enhancements to the Symbol primitive.
5
5
  module Symbol
6
6
  refine ::Symbol do
7
- def call(*arguments, &block)
8
- proc { |receiver| receiver.public_send self, *arguments, &block }
7
+ def call(*positionals, **keywords, &block)
8
+ proc { |receiver| receiver.public_send self, *positionals, **keywords, &block }
9
9
  end
10
10
  end
11
11
  end
data/refinements.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "refinements"
5
- spec.version = "12.7.0"
5
+ spec.version = "12.7.1"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://alchemists.io/projects/refinements"
data.tar.gz.sig CHANGED
@@ -1 +1,2 @@
1
- ��d c&C^ �����g��8K�}�34t*R ��L�=��H2
1
+ �����Ԯ荨��I4 "uO�/�6#�h9e:�e /(#Sg�]^Y1H�'�}�/��x�R#��H]�F�]w�j���k�tt�[�P�����P�uG�7U��1M�z?��(D��6����瀅2F(-:"6)-0֫+]��ri����MOKYm9��A��e�؈J�њ��/i����9< C�G�F:d\�)��
2
+ O�:6j����m}ǎq�t�bn^X<�$n�e�M����+I
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinements
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.7.0
4
+ version: 12.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -35,7 +35,7 @@ cert_chain:
35
35
  3n5C8/6Zh9DYTkpcwPSuIfAga6wf4nXc9m6JAw8AuMLaiWN/r/2s4zJsUHYERJEu
36
36
  gZGm4JqtuSg8pYjPeIJxS960owq+SfuC+jxqmRA54BisFCv/0VOJi7tiJVY=
37
37
  -----END CERTIFICATE-----
38
- date: 2024-07-15 00:00:00.000000000 Z
38
+ date: 2024-08-03 00:00:00.000000000 Z
39
39
  dependencies: []
40
40
  description:
41
41
  email:
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0'
95
95
  requirements: []
96
- rubygems_version: 3.5.15
96
+ rubygems_version: 3.5.17
97
97
  signing_key:
98
98
  specification_version: 4
99
99
  summary: A collection of core object refinements.
metadata.gz.sig CHANGED
Binary file