action_logic 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +6 -6
- data/lib/action_logic/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19b4824f31ca1ffe3d22502fce6ce674f5fffc37
|
4
|
+
data.tar.gz: 16d5f9e7a00b95f6e2678c5fd2a0d68821161374
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23f4be5534c06e0864af1a61c08595b2410ddcbc19f3d877691b9183e1675a290402daa18f7e9635e72464ab84fab81c77ae43f43e69f7fb908a64b1e7590c2e
|
7
|
+
data.tar.gz: 14b9bcd6c0e2a089f944d78e469db97c2d3034d76a63b4e2d4aa1ca24dba006014c41fadc300c542119d5b35162f887097ff7943a862a70e5ae73397ff1d0909
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -961,7 +961,7 @@ by specifying a log file. To do this, you configure `ActionLogic` to use a `File
|
|
961
961
|
```ruby
|
962
962
|
ActionLogic.configure do |config|
|
963
963
|
config.benchmark = true
|
964
|
-
|
964
|
+
config.benchmark_log = File.open("benchmark.log", "w")
|
965
965
|
end
|
966
966
|
```
|
967
967
|
|
@@ -981,8 +981,8 @@ allowing you to provide your own formatter:
|
|
981
981
|
```ruby
|
982
982
|
ActionLogic.configure do |config|
|
983
983
|
config.benchmark = true
|
984
|
-
|
985
|
-
|
984
|
+
config.benchmark_log = File.open("benchmark.log", "w")
|
985
|
+
config.benchmark_formatter = YourCustomFormatter
|
986
986
|
end
|
987
987
|
```
|
988
988
|
|
@@ -992,15 +992,15 @@ Where `YourCustomFormatter` subclasses `ActionLogic::ActionBenchmark::DefaultFor
|
|
992
992
|
class CustomFormatter < ActionLogic::ActionBenchmark::DefaultFormatter
|
993
993
|
|
994
994
|
def log_coordinator(benchmark_result, execution_context_name)
|
995
|
-
|
995
|
+
benchmark_log.puts("The ActionCoordinator #{execution_context_name} took #{benchmark_result.real} to complete.")
|
996
996
|
end
|
997
997
|
|
998
998
|
def log_use_case(benchmark_result, execution_context_name)
|
999
|
-
|
999
|
+
benchmark_log.puts("The ActionUseCase #{execution_context_name} took #{benchmark_result.real} to complete.")
|
1000
1000
|
end
|
1001
1001
|
|
1002
1002
|
def log_task(benchmark_result, execution_context_name)
|
1003
|
-
|
1003
|
+
benchmark_log.puts("The ActionTask #{execution_context_name} took #{benchmark_result.real} to complete.")
|
1004
1004
|
end
|
1005
1005
|
|
1006
1006
|
end
|
data/lib/action_logic/version.rb
CHANGED