stance 0.8.2 → 0.8.3

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: f679d8376ef01172a2fe04995062885020f1810423df94a0621c3d863262267b
4
- data.tar.gz: 2941c4c5af5f147eb0105294e19c3d23a7e9b8887fbc67661ea4e59bb14791f0
3
+ metadata.gz: 8572eed60f1685bd2f34849875259f071a8dbe05f7e1cd02aeb97a155c70021a
4
+ data.tar.gz: 8abb221e5336b9d8034581ffd853cd248276b2641aeb6d23c9db67f16a456828
5
5
  SHA512:
6
- metadata.gz: '080ac5b578744bcd5103b049f103718b9bb8ffc5ef878893da96f4618e1097b4b5c4b3ea1296d4f8f06578701b2b2ddc881773623d20c76ce685755c97bf7954'
7
- data.tar.gz: 7cdad4e4fd10b3c53081bbca1def4134efdb9d83ec5f4e40991e7238e2451d0b270a1874c27a0f4a1def5cc31f37bce238c893f7ffb03dcd013ab93c61e46c3b
6
+ metadata.gz: 86def811871ad856a7e35cb24a9a8f84b4fe71ae2834005bf75224f99bc0b10c8b73a9c4ca2dee0de272a688b436b9edb2d0602def3e04222a1211d0b1984d89
7
+ data.tar.gz: 3dea2b96f4f894c1ff315c2b617e688de3f3886ad0e52528d1708778bcc5cb906fc19fc7620885103bf8bc8301a6acea879ae0a742abedc43f19b0ef19a95a29
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stance (0.8.2)
4
+ stance (0.8.3)
5
5
  multi_json (~> 1.15)
6
6
  rails (>= 7.0, < 8.0)
7
7
 
data/lib/stance/event.rb CHANGED
@@ -21,7 +21,7 @@ module Stance
21
21
  def method_added(method_name)
22
22
  super
23
23
 
24
- return if self == Stance::Event
24
+ return if self == Stance::Event || !instance_methods(false).include?(method_name)
25
25
 
26
26
  self.callback_methods ||= []
27
27
  self.callback_methods << method_name
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stance
4
- VERSION = '0.8.2'
4
+ VERSION = '0.8.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Moss
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-08 00:00:00.000000000 Z
11
+ date: 2024-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json