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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 56638f0ecdd1caedf7b97009ae42b7a38a8d5ca96876665cbbd3df017a89a780
4
- data.tar.gz: dbdf5d23235bb2b5925431a988704efed01b078825a6a7d67074221eada6438c
3
+ metadata.gz: 031716f256389df73a0ac36012f80d7ffe953b04aaa56c9d6acc02f7d8e18910
4
+ data.tar.gz: 63bb3d6e5963b08f9b63ff15a9a7e4a1f02417a51150c5014b4549e88fb77c94
5
5
  SHA512:
6
- metadata.gz: 746569894c55bab41cc4dcb868f425e7306aab5a358b40a37f8dc48e9151898b489f2d09634ccae20c77b9727a901bb3ffabb13d862112d49753df5fb5353fd7
7
- data.tar.gz: f6af3f6360b3f02a45f0d6bcec96dda0f62315bfb4988d820a60bf8c37bd9f9bdafe9899e0aff3df49fc1b1e160e9d44f991b3f021b9aca3cc4c6d112ffd1371
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.1"
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.1
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-08-23 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.1
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.7
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