around_the_world 0.29.0 → 0.29.2

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: 664f9f102fd2182bddbe25922dc95848d7b860baceba0791954d612b1e9b01b2
4
- data.tar.gz: dc023fa9d2f18d84069440706c278f3923856e3639201c53c3716180adcfbf59
3
+ metadata.gz: 031716f256389df73a0ac36012f80d7ffe953b04aaa56c9d6acc02f7d8e18910
4
+ data.tar.gz: 63bb3d6e5963b08f9b63ff15a9a7e4a1f02417a51150c5014b4549e88fb77c94
5
5
  SHA512:
6
- metadata.gz: 9f467db11525352922e1eadad35a026a65b670f5d5f13926f229e1f617f4be6165c5e033220cd9dee02e4ae7f472957ce8cb1656ffbaaf4f3f3ad53a4a84e993
7
- data.tar.gz: bf8b8f9120d79e71642743f1a23c2a35c9219f4f7b5eff1a4f990763fa3d9f6387b79977dcc08d3c649b7b1d1f952b617824137887ef5caf165e5d7474f0bfe4
6
+ metadata.gz: bf20523f00f5120110c1eb0f3f598fbe4b94ab4ed54da732e2bbc2a7e4e6b4f48a86440f26dc850586c992d44efe3ead53e1d9a8164fbe2e53d7639776ee3f11
7
+ data.tar.gz: d3ef9676ba7fa6f79ea6dbd43e9ffd4fc215f878e17dc0f7da09529713057006ac551d518d61809d988b11be88aa3a47805b4b5c4fb323a351b6a3dcfa8abe5f
data/README.md CHANGED
@@ -48,11 +48,7 @@ class SomeClass
48
48
  !!@something_happened
49
49
  end
50
50
 
51
- around_method :make_something_happen!, :did_something_happened? do |*args| # use |...| for ruby 2.7+
52
- # For Ruby <= 2.6:
53
- things_happened = super(*args)
54
-
55
- #Or, for Ruby <= 2.7:
51
+ around_method :make_something_happen!, :did_something_happened? do |..|
56
52
  things_happened = super(...)
57
53
 
58
54
  if things_happened
@@ -113,7 +109,7 @@ class SomeClass
113
109
  def a_singleton_method; end
114
110
 
115
111
  around_method :a_singleton_method do |...|
116
- super(...) # See above for ruby <= 2.6 syntax
112
+ super(...)
117
113
 
118
114
  "It works for class methods too!"
119
115
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module AroundTheWorld
4
4
  # This constant is managed by spicerack
5
- VERSION = "0.29.0"
5
+ VERSION = "0.29.2"
6
6
  end
@@ -23,11 +23,7 @@ module AroundTheWorld
23
23
  #
24
24
  # @example
25
25
  # class SomeClass
26
- # around_method :make_something_happen!, :did_something_happened? do |*args| # use |...| for ruby 2.7+
27
- # # For Ruby <= 2.6:
28
- # things_happened = super(*args)
29
-
30
- # #Or, for Ruby <= 2.7:
26
+ # around_method :make_something_happen!, :did_something_happened? do |...|
31
27
  # things_happened = super(...)
32
28
 
33
29
  # if things_happened
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: around_the_world
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.29.0
4
+ version: 0.29.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Allen Rettberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-08 00:00:00.000000000 Z
11
+ date: 2023-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 5.2.1
19
+ version: 6.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 5.2.1
26
+ version: 6.0.0
27
27
  description: A metaprogramming module which allows you to wrap any method easily
28
28
  email:
29
29
  - allen.rettberg@freshly.com
@@ -47,7 +47,7 @@ metadata:
47
47
  homepage_uri: https://github.com/RubyAfterAll/spicerack/tree/main/around_the_world
48
48
  source_code_uri: https://github.com/RubyAfterAll/spicerack/tree/main/around_the_world
49
49
  changelog_uri: https://github.com/RubyAfterAll/spicerack/blob/main/around_the_world/CHANGELOG.md
50
- documentation_uri: https://www.rubydoc.info/gems/around_the_world/0.29.0
50
+ documentation_uri: https://www.rubydoc.info/gems/around_the_world/0.29.2
51
51
  post_install_message:
52
52
  rdoc_options: []
53
53
  require_paths:
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  - !ruby/object:Gem::Version
64
64
  version: '0'
65
65
  requirements: []
66
- rubygems_version: 3.3.8
66
+ rubygems_version: 3.3.15
67
67
  signing_key:
68
68
  specification_version: 4
69
69
  summary: Allows you to easily wrap methods with custom logic on any class