callbacky 0.1.0 → 0.1.3

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: e1650a2a41db131898374f77c695a7d39ca079d55eec057ac0386a8f77871f38
4
- data.tar.gz: b173f270cc513c37c9e3e6a289c735a03cbc43d2afb65127a41a8be1e9603533
3
+ metadata.gz: baee8ec22528fd74b904dacdb75081f30a2bb5d9e621c4839d93822a2dccb1eb
4
+ data.tar.gz: 6caffbbde4f29a3066950af87ac475dd337c6f729ad39f7e6dd2d39df8b7122c
5
5
  SHA512:
6
- metadata.gz: 3539f6344551f3d538511b6e4aa747dbab311754cbe92535614ed48ee131c295d8010cbb548b4ef708e8ca6e82d60b6fcbeccbc7a526ffd82bf01767bf125624
7
- data.tar.gz: a351057fe468d4c5e7342f1d8c236b935d8e92654c4c132ed229c7c4d50616cce324f515b8212983a43e4aa494360fdef164d9dbcd3bbc561ffb4d28e947b220
6
+ metadata.gz: b416155f5fccfbebbcf1f834b5451b951f87f385be433d1b556fed0b2958167d51ef801d223ca3e6f43e0dac8ac9a119f5da4ca9417227bec344d02faf9ff14d
7
+ data.tar.gz: 6afbe4cdbec24a48a59c828e8678e95d5b8a57a5336fd2b50d012dd0b0ca01ec75ffe503fe49ae7c65a38e3bce47dd8c664e22b5a7e94519ec3780c979763625
data/README.md CHANGED
@@ -85,7 +85,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
85
85
 
86
86
  ## Contributing
87
87
 
88
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/callbacky. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/callbacky/blob/main/CODE_OF_CONDUCT.md).
88
+ Bug reports and pull requests are welcome on GitHub at https://github.com/pucinsk/callbacky. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/pucinsk/callbacky/blob/main/CODE_OF_CONDUCT.md).
89
89
 
90
90
  ## License
91
91
 
data/flake.nix CHANGED
@@ -20,7 +20,7 @@
20
20
  };
21
21
 
22
22
  packages = with pkgs; [
23
- ruby_3_4
23
+ ruby_3_1
24
24
  ];
25
25
 
26
26
  shellHook = ''
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Callbacky
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.3"
5
5
  end
data/lib/callbacky.rb CHANGED
@@ -21,16 +21,16 @@ module Callbacky
21
21
 
22
22
  define_method("callbacky_#{event}") do |obj, &block|
23
23
  before_kallbacks = instance_variable_get(:@before_kallbacks)
24
- before_kallbacks.each { it.is_a?(Proc) ? it.call(obj) : obj.send(it) } if before_kallbacks
24
+ before_kallbacks.each { |it| it.is_a?(Proc) ? it.call(obj) : obj.send(it) } if before_kallbacks
25
25
  yield if block
26
26
  after_kallbacks = instance_variable_get(:@after_kallbacks)
27
- after_kallbacks.each { it.is_a?(Proc) ? it.call(obj) : obj.send(it) } if after_kallbacks
27
+ after_kallbacks.each { |it| it.is_a?(Proc) ? it.call(obj) : obj.send(it) } if after_kallbacks
28
28
  end
29
29
  end
30
30
  end
31
31
  end
32
32
 
33
- VALID_LIFECYCLES.each do
33
+ VALID_LIFECYCLES.each do |it|
34
34
  define_callback(it)
35
35
  end
36
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: callbacky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - pucinsk
@@ -17,7 +17,6 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
- - ".envrc"
21
20
  - ".rspec"
22
21
  - ".rubocop.yml"
23
22
  - CODE_OF_CONDUCT.md
@@ -33,6 +32,7 @@ licenses:
33
32
  - MIT
34
33
  metadata:
35
34
  homepage_uri: https://github.com/pucinsk/callbacky
35
+ source_code_uri: https://github.com/pucinsk/callbacky
36
36
  rdoc_options: []
37
37
  require_paths:
38
38
  - lib
data/.envrc DELETED
@@ -1 +0,0 @@
1
- use flake