the_help 1.5.0 → 1.5.1

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: 6fdee5c4c5d8c3c2d67bbb8abf7fb42379961924c59faa7f36da7575a085d325
4
- data.tar.gz: 96464f2494174451d4581f984050fc258901b010a27556a3dc19a555ba2d99ab
3
+ metadata.gz: bdc0248245f9ed54f9d28e080bdda74d1cf52515e776300862862edef815cc24
4
+ data.tar.gz: 0d1c6299e12d392191036c83a82761542ffac612885d8b275f3e428f72e19689
5
5
  SHA512:
6
- metadata.gz: 800152351fd6ca49eab793748e48030cdb73f14c53f8ad4cd419be8a28e1fc20291a40948ee764744b924b53b7a96a0f13c109024cd1f5ebf0cb2bc09326c1bc
7
- data.tar.gz: 3c11bcb7dbcf769a5045f3a42bcf52cec4b5a06ecee8015eda56554ae67d7f4604bb1df15914f09bf4c4991eb74201bc47120c675659f85e0c4c05b6cb576b2b
6
+ metadata.gz: 5a8ed78b1971e33b70a75b3138a22587edd8de7836f56a6d18c7df49cec7815ec51b32e112973e8c21d78d4348d771bd1450de2f6d10a8b7feaf62a7d81b6587
7
+ data.tar.gz: 12b6cf810bb4c4e868d0bf9822a26609d47fed852c0d2ad6919d1c8faf7924254f90dc3f04d431a5ba3a6f0c0e0095c105971f46a4b7c6f485ccaf26ce10d5ad
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- the_help (1.5.0)
4
+ the_help (1.5.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -22,11 +22,11 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- Create subclasses of [`TheHelp::Service`][lib/the_help/service.rb] and call
25
+ Create subclasses of [`TheHelp::Service`](lib/the_help/service.rb) and call
26
26
  them.
27
27
 
28
28
  Make it easier to call a service by including
29
- [`TheHelp::ServiceCaller`][lib/the_help/service_caller.rb].
29
+ [`TheHelp::ServiceCaller`](lib/the_help/service_caller.rb).
30
30
 
31
31
  ### Running Callbacks
32
32
 
@@ -59,7 +59,8 @@ module TheHelp
59
59
  define_method("#{name}_without_logging", &block)
60
60
  define_method(name) do |*args|
61
61
  if defined?(logger)
62
- logger.debug("#{inspect} received callback :#{name}.")
62
+ logger.debug("#{self.class.name}/#{__id__} received callback " \
63
+ ":#{name}.")
63
64
  end
64
65
  send("#{name}_without_logging", *args)
65
66
  self
@@ -37,6 +37,8 @@ module TheHelp
37
37
  context: service_context,
38
38
  logger: service_logger
39
39
  }.merge(args)
40
+ service_logger.debug("#{self.class.name}/#{__id__} called service " \
41
+ "#{service.name}")
40
42
  service.call(**service_args, &block)
41
43
  end
42
44
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TheHelp
4
- VERSION = '1.5.0'
4
+ VERSION = '1.5.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: the_help
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Wilger
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-26 00:00:00.000000000 Z
11
+ date: 2018-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake