around_the_world 0.29.1 → 0.29.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -6
- data/lib/around_the_world/version.rb +1 -1
- data/lib/around_the_world.rb +1 -5
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 031716f256389df73a0ac36012f80d7ffe953b04aaa56c9d6acc02f7d8e18910
|
4
|
+
data.tar.gz: 63bb3d6e5963b08f9b63ff15a9a7e4a1f02417a51150c5014b4549e88fb77c94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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(...)
|
112
|
+
super(...)
|
117
113
|
|
118
114
|
"It works for class methods too!"
|
119
115
|
end
|
data/lib/around_the_world.rb
CHANGED
@@ -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
|
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.
|
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:
|
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:
|
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:
|
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.
|
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.
|
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
|