trace-util-adv 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. data/Advanced TraceUtils tutorial.pdf +0 -0
  2. data/CHANGELOG +4 -8
  3. data/{lib/TODO.txt → TODO.txt} +8 -0
  4. data/VERSION +1 -1
  5. data/lib/action_handler/action_handler.rb +40 -0
  6. data/lib/{action_handler.rb → action_handler/action_handler_registration.rb} +3 -41
  7. data/lib/appenders/appender.rb +1 -13
  8. data/lib/appenders/appender_mappings.rb +13 -0
  9. data/lib/appenders/base_appender.rb +2 -11
  10. data/lib/appenders/file_appender.rb +21 -13
  11. data/lib/appenders/include.rb +4 -0
  12. data/lib/appenders/types/README-NOTE.txt +2 -0
  13. data/lib/appenders/{html_appender.rb → types/html_appender.rb} +4 -20
  14. data/lib/appenders/{logger_appender.rb → types/logger_appender.rb} +0 -0
  15. data/lib/appenders/{stream_appender.rb → types/stream_appender.rb} +0 -0
  16. data/lib/appenders/{template_log_appender.rb → types/template_log_appender.rb} +0 -0
  17. data/lib/appenders/{xml_appender.rb → types/xml_appender.rb} +1 -1
  18. data/lib/extensions/array_extensions.rb +42 -0
  19. data/lib/extensions/hash_extensions.rb +181 -0
  20. data/lib/extensions/hash_rule_extensions.rb +50 -0
  21. data/lib/extensions/include.rb +1 -0
  22. data/lib/extensions/nilclass_extensions.rb +10 -0
  23. data/lib/extensions/object_extensions.rb +19 -0
  24. data/lib/extensions/string_extensions.rb +35 -0
  25. data/lib/extensions/symbol_extensions.rb +30 -0
  26. data/lib/filters/composite/composite_class_filter.rb +25 -0
  27. data/lib/filters/composite/composite_module_filter.rb +53 -0
  28. data/lib/filters/executor/filter_exec.rb +74 -0
  29. data/lib/filters/filter.rb +43 -0
  30. data/lib/filters/filter_factory.rb +1 -1
  31. data/lib/filters/filter_mappings.rb +36 -0
  32. data/lib/filters/{tracing_filter.rb → filter_registration.rb} +6 -49
  33. data/lib/filters/filter_use.rb +10 -0
  34. data/lib/filters/include.rb +8 -0
  35. data/lib/filters/list/README-NOTE.txt +1 -0
  36. data/lib/filters/list/list_instance_var_filter.rb +27 -0
  37. data/lib/filters/{message_filters.rb → msg_context/message_context_filters.rb} +3 -12
  38. data/lib/filters/simple/argument_filter.rb +24 -0
  39. data/lib/filters/simple/class_filter.rb +15 -0
  40. data/lib/filters/simple/instance_var_filter.rb +25 -0
  41. data/lib/filters/simple/method_filter.rb +17 -0
  42. data/lib/filters/simple/module_filter.rb +14 -0
  43. data/lib/{templates/trace_output_handler.rb → output_handler/output_handler.rb} +0 -0
  44. data/lib/rules/rule_mappings.rb +10 -0
  45. data/lib/{rule_match.rb → rules/rule_match.rb} +5 -3
  46. data/lib/targets/README-NOTE.txt +2 -0
  47. data/lib/targets/file_target.rb +65 -0
  48. data/lib/targets/stream_target.rb +9 -0
  49. data/lib/targets/string_target.rb +9 -0
  50. data/lib/templates/base_template.rb +3 -2
  51. data/lib/templates/html_template.rb +1 -2
  52. data/lib/templates/include.rb +2 -0
  53. data/lib/templates/string_template.rb +24 -25
  54. data/lib/templates/template_mappings.rb +10 -0
  55. data/lib/templates/xml_template.rb +28 -29
  56. data/lib/trace-util-adv.rb +24 -4
  57. data/lib/{trace_calls.rb → trace_calls/trace_calls.rb} +0 -0
  58. data/lib/trace_calls/trace_configuration.rb +29 -0
  59. data/lib/{trace_ext.rb → trace_calls/trace_ext.rb} +10 -9
  60. data/test/{test_action_handler.rb → action_handler/test_action_handler.rb} +1 -5
  61. data/test/action_handler/test_create_action_handler.rb +31 -0
  62. data/test/appenders/test_appender_filters.rb +0 -0
  63. data/test/appenders/test_appender_tracers.rb +56 -0
  64. data/test/appenders/test_create_appender.rb +49 -0
  65. data/test/{test_html_appender.rb → appenders/test_html_appender.rb} +3 -7
  66. data/test/appenders/test_stream_appender.rb +41 -0
  67. data/test/appenders/test_template_log_appender.rb +18 -0
  68. data/test/{test_xml_appender.rb → appenders/test_xml_appender.rb} +0 -0
  69. data/test/extensions/test_filters_creation.rb +36 -0
  70. data/test/extensions/test_hash_extensions.rb +208 -0
  71. data/test/extensions/test_hash_filter_extensions.rb +65 -0
  72. data/test/extensions/test_set_context.rb +94 -0
  73. data/test/extensions/test_string_extensions.rb +55 -0
  74. data/test/extensions/test_symbol_extensions.rb +35 -0
  75. data/test/{test_filters_chain.rb → filters/chain/test_filters_chain.rb} +2 -1
  76. data/test/filters/composite/test_composite_class_filter.rb +78 -0
  77. data/test/filters/composite/test_composite_module_filter.rb +82 -0
  78. data/test/filters/composite/test_composite_var_filter.rb +103 -0
  79. data/test/filters/executor/test_filter_exec.rb +80 -0
  80. data/test/filters/msg_context/test_custom_filters.rb +54 -0
  81. data/test/filters/simple/test_base_filter.rb +56 -0
  82. data/test/filters/simple/test_class_filter.rb +75 -0
  83. data/test/filters/simple/test_instancevar_filter.rb +82 -0
  84. data/test/filters/simple/test_method_filter.rb +77 -0
  85. data/test/filters/simple/test_module_filter.rb +63 -0
  86. data/test/samples/include.rb +1 -0
  87. data/test/samples/sample_classes.rb +23 -0
  88. data/test/samples/sample_composite_filters.rb +50 -0
  89. data/test/samples/sample_filters.rb +58 -0
  90. data/test/sandbox/matcher.rb +7 -0
  91. data/test/sandbox/sandbox.rb +25 -0
  92. data/test/{test_xml_gen.rb → sandbox/test_xml_gen.rb} +0 -0
  93. data/test/trace_calls/test_configure_.rb +70 -0
  94. data/test/trace_calls/tracing/test_html_tracing.rb +20 -0
  95. data/test/trace_calls/tracing/test_logger_tracing.rb +18 -0
  96. data/test/trace_calls/tracing/test_stream_tracing.rb +17 -0
  97. data/test/trace_calls/tracing/test_teamplate_log_tracing.rb +18 -0
  98. data/test/trace_calls/tracing/test_xml_tracing.rb +18 -0
  99. data/test/tracers/test_create_tracers.rb +46 -0
  100. data/test/tracers/test_exec_tracers.rb +11 -0
  101. data/trace-util-adv.gemspec +91 -32
  102. metadata +91 -32
  103. data/lib/core_extensions.rb +0 -101
  104. data/lib/filters/base_filters.rb +0 -178
  105. data/lib/filters/composite_filters.rb +0 -71
  106. data/lib/output_templates.rb +0 -5
  107. data/lib/sample_filters.rb +0 -97
  108. data/lib/trace_appenders.rb +0 -9
  109. data/lib/trace_filters.rb +0 -4
  110. data/test/test_appender.rb +0 -29
  111. data/test/test_file_appender.rb +0 -32
  112. data/test/test_filters.rb +0 -112
  113. data/test/test_filters_create.rb +0 -28
  114. data/test/test_special_filters.rb +0 -78
@@ -0,0 +1,58 @@
1
+ # my_instance_variables = {:template_path => 'taglibs/rapid_core.dryml'}
2
+ # args = {:a => 7}
3
+ # context = {
4
+ # :modules => cls_name.modules,
5
+ # :class_name => cls_name.class_name,
6
+ # :full_class_name => cls_name,
7
+ # :method_name => name,
8
+ # :args => args,
9
+ # :block => false,
10
+ # :vars => my_instance_variables # to carry @template_path etc.
11
+ # }
12
+
13
+ Method_filter_hello = {
14
+ :name => 'my methods',
15
+ :method_rules => [{
16
+ # id of method rule set
17
+ :name => 'my_methods',
18
+ :include => [/hi.*/, 'blip', 'blap'],
19
+ :exclude => ['hello'],
20
+ :default => false
21
+ }]
22
+ }
23
+
24
+ Module_filter_A = {
25
+ :name => 'my modules',
26
+ :module_rules => [{
27
+ # id of modules rule set
28
+ :name => ['my_modules'],
29
+ :include => [/Al/],
30
+ :exclude => [/Be/],
31
+ :default => true
32
+ }
33
+ ]}
34
+
35
+ Class_filter_A = {
36
+ :name => 'my classes',
37
+ :class_rules => [{
38
+ # id of class rule set
39
+ :name => 'my_classes',
40
+ :include => [/MyCl/],
41
+ :exclude => [/NotMy/],
42
+ :include_and_yield => ['blap'],
43
+ :default => false
44
+ }]
45
+ }
46
+
47
+ Method_filter_A = {
48
+ :name => 'my methods',
49
+ :method_rules => [{
50
+ # id of method rule set
51
+ :name => 'my_methods',
52
+ :include => [/by.*/, 'compile', 'do_it'],
53
+ :exclude => ['my.*'],
54
+ :exclude_and_yield => ['blip'],
55
+ :default => false
56
+ }]
57
+ }
58
+
@@ -0,0 +1,7 @@
1
+ def match?(name)
2
+ rule = /Dryml/
3
+ !(name =~ rule).nil?
4
+ end
5
+ # name = 'Drysml'
6
+ name = 'Blap'
7
+ puts "match: #{match?(name)}"
@@ -0,0 +1,25 @@
1
+ require 'extensions/core_extensions'
2
+ require 'extensions/array_extensions'
3
+
4
+ class Parser
5
+ attr_accessor :filters
6
+
7
+ def parse(*args)
8
+ @filters = args.flatten
9
+ end
10
+
11
+ def initialize(*args)
12
+ @filters ||= []
13
+ @filters.add(args)
14
+ end
15
+ end
16
+
17
+
18
+ parser = Parser.new('a')
19
+ puts parser.filters.inspect
20
+
21
+ parser.parse [:x, :y, [:w]]
22
+ p parser.filters
23
+
24
+ puts [].blank?
25
+ puts nil.blank?
File without changes
@@ -0,0 +1,70 @@
1
+ require 'extensions/core_extensions'
2
+ require 'filters/base_filters'
3
+ require 'rules/hash_rule_extensions'
4
+ require "test/unit"
5
+
6
+
7
+ class TestTraceCallsConfigure < Test::Unit::TestCase
8
+
9
+ def setup
10
+ # Trace filters
11
+ im_filter_1 = {:i_method_filter => "a,b"}
12
+ xym_class_1 = {:xy_class_filter => "C,D"}
13
+ @filters = [im_filter_1, xym_class_1]
14
+
15
+ @ah1_filter_1 = {:x_class_filter => "Dryml"}
16
+ @ah1_filter_1 = {:i_class_filter => "Template"}
17
+ end
18
+
19
+
20
+ def test_register_action_handler_from_hash
21
+ # Action handler
22
+ ah1 = {:filters => [@ah1_filter_1, @ah1_filter_2], :appenders => [ah1_app_1, ah1_app2]}
23
+ action_handlers = ah1
24
+ # Trace configuration
25
+ configuration = Tracing::Configuration.new {:action_handlers => action_handlers, :filters => @filters, :final_yield_action => :exclude}
26
+ # configure
27
+ TraceCalls.configure(configuration)
28
+ end
29
+
30
+ def test_register_action_handler_from_hash
31
+ # Action handlers
32
+ ah1 = {:filters => [ah1_filter_1, ah1_filter_2], }
33
+ app_1 = :xml
34
+ # Trace configuration
35
+ configuration = Tracing::Configuration.new {:appenders => app_1, :filters => filters, :final_yield_action => :exclude}
36
+
37
+ # configure
38
+ TraceCalls.configure(configuration)
39
+
40
+ end
41
+
42
+
43
+ def test_register_action_handler
44
+ end
45
+
46
+
47
+ def test_register_multiple_action_handlers
48
+ end
49
+
50
+ def test_register_multiple_action_handler_from_hash
51
+ # Action handlers
52
+ ah1 = {:filters => [ah1_filter_1, ah1_filter_2], :appenders => [ah1_app_1, ah1_app2]}
53
+ ah2 = {:filters => [ah2_filter_1, ah2_filter_2], :appenders => [ah2_app_1, ah2_app2]}
54
+
55
+ action_handlers = [ah1, ah2]
56
+
57
+ # Trace filters
58
+ im_filter_1 = {:i_method_filter => "a,b"}
59
+ xym_class_1 = {:xy_class_filter => "C,D"}
60
+ filters = [im_filter_1, xym_class_1]
61
+
62
+ # Trace configuration
63
+ configuration = Tracing::Configuration.new {:action_handlers => action_handlers, :filters => filters, :final_yield_action => :exclude}
64
+
65
+ # configure
66
+ TraceCalls.configure(configuration)
67
+ end
68
+
69
+ end
70
+
@@ -0,0 +1,20 @@
1
+ require "trace_util_adv"
2
+ require "samples/include"
3
+
4
+ class TestHtmlTracing < Test::Unit::TestCase
5
+
6
+ def test_html_tracing
7
+ classes_to_trace = [ 'My']
8
+ Tracing::HtmlAppender.default_path = 'log_files/html'
9
+ Tracing::TraceCalls.configure(:type => :html, :to_file => 'traced_dryml.html', :filters => Method_filter_hello)
10
+ my = Me::My.new
11
+ my.hello
12
+ my.hi_there
13
+ my.blip
14
+ my.blap
15
+
16
+ end
17
+
18
+
19
+ end
20
+
@@ -0,0 +1,18 @@
1
+ require "trace_util_adv"
2
+ require "samples/include"
3
+
4
+ class TestLoggerTracing < Test::Unit::TestCase
5
+
6
+ def test_logger_tracing
7
+ classes_to_trace = [ 'My']
8
+ Tracing::LoggerAppender.default_path = 'log_files'
9
+ Tracing::TraceCalls.configure(:type => :log, :filters => Method_filter_hello)
10
+ my = Me::My.new
11
+ my.hello
12
+ my.hi_there
13
+ my.blip
14
+ my.blap
15
+ end
16
+
17
+ end
18
+
@@ -0,0 +1,17 @@
1
+ require "trace_util_adv"
2
+ require "samples/include"
3
+
4
+ class TestStreamTracing < Test::Unit::TestCase
5
+
6
+ def test_stream_tracing
7
+ classes_to_trace = [ 'My']
8
+ Tracing::TraceCalls.configure(:type => :stream, :filters => Method_filter_hello)
9
+ my = Me::My.new
10
+ my.hello
11
+ my.hi_there
12
+ my.blip
13
+ my.blap
14
+ end
15
+
16
+ end
17
+
@@ -0,0 +1,18 @@
1
+ require "trace_util_adv"
2
+ require "samples/include"
3
+
4
+ class TestDrymlTemplateLogTracing < Test::Unit::TestCase
5
+
6
+ def test_dryml_template_tracing
7
+ classes_to_trace = [ 'My']
8
+ Tracing::TemplateLogAppender.default_path = 'log_files/templates'
9
+ Tracing::TraceCalls.configure(:type => :template_log, :filters => Method_filter_dryml)
10
+ my = Me::My.new
11
+ my.hello
12
+ my.hi_there
13
+ my.blip
14
+ my.blap
15
+ end
16
+
17
+ end
18
+
@@ -0,0 +1,18 @@
1
+ require "trace_util_adv"
2
+ require "samples/include"
3
+
4
+ class TestXmlTracing < Test::Unit::TestCase
5
+
6
+ def test_xml_tracing
7
+ classes_to_trace = [ 'My']
8
+ Tracing::XmlAppender.default_path = 'log_files/xml'
9
+ Tracing::TraceCalls.configure(:type => :xml, :to_file => 'traced_dryml.html', :filters => Method_filter_hello)
10
+ my = Me::My.new
11
+ my.hello
12
+ my.hi_there
13
+ my.blip
14
+ my.blap
15
+ end
16
+
17
+ end
18
+
@@ -0,0 +1,46 @@
1
+ require 'extensions/core_extensions'
2
+ require 'filters/base_filters'
3
+ require 'rules/hash_rule_extensions'
4
+ require "test/unit"
5
+
6
+
7
+ class TestCreateTracers < Test::Unit::TestCase
8
+
9
+ def test_tracer
10
+ rule = {:tracer => :html}
11
+ result = rule.tracer
12
+ assert_equal result.class, Tracing::OutputTemplate::HtmlTrace, "Should result in HtmlTrace"
13
+
14
+ rule = {:tracer => :xml}
15
+ result = rule.tracer
16
+ assert_equal result.class, Tracing::OutputTemplate::XmlTrace, "Should result in XmlTrace"
17
+
18
+ rule = {:tracer => :string}
19
+ result = rule.tracer
20
+ assert_equal result.class, Tracing::OutputTemplate::StringTrace, "Should result in StringTrace"
21
+ end
22
+
23
+ def test_create_xml_tracer
24
+ xml_tracer = {:type => :xml, :to_file => 'log_files/xml/traced.xml'}.tracer
25
+ assert_equal Tracing::XmlTracer, xml_tracer.class, "Should create instance of XmlTracer"
26
+ end
27
+
28
+ def test_create_html_tracer
29
+ html_tracer = {:type => :html, :default_path => 'log_files/html'}.tracer
30
+ assert_equal Tracing::HtmlTracer, html_tracer.class, "Should create instance of HtmlTracer"
31
+ end
32
+
33
+ def test_create_log_tracer
34
+ log_tracer = {:type => :log, :default_path => 'log_files'}.tracer
35
+ assert_equal Tracing::LogTracer, log_tracer.class, "Should create instance of LogTracer"
36
+ end
37
+
38
+ def test_create_log_tracer
39
+ stream_tracer = {:type => :stream, :stream => :STDOUT}.tracer
40
+ assert_equal Tracing::StreamTracer, log_tracer.class, "Should create instance of StreamTracer"
41
+ end
42
+
43
+ end
44
+
45
+
46
+
@@ -0,0 +1,11 @@
1
+ require 'extensions/core_extensions'
2
+ require 'filters/base_filters'
3
+ require 'rules/hash_rule_extensions'
4
+ require "test/unit"
5
+
6
+
7
+ class TestExecuteTracers < Test::Unit::TestCase
8
+
9
+
10
+
11
+ end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{trace-util-adv}
8
- s.version = "0.2.3"
8
+ s.version = "0.2.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kristian Mandrup"]
12
- s.date = %q{2009-10-29}
12
+ s.date = %q{2009-11-15}
13
13
  s.description = %q{
14
14
  Configure tracing using context sensitive filters, appenders, output templates in a completely non-intrusive fashion.
15
15
  Tracing can even be applied runtime as a response when certain conditions occur}
@@ -21,46 +21,74 @@ Gem::Specification.new do |s|
21
21
  s.files = [
22
22
  ".document",
23
23
  ".gitignore",
24
+ "Advanced TraceUtils tutorial.pdf",
24
25
  "CHANGELOG",
25
26
  "DOCUMENTATION",
26
27
  "LICENSE",
27
28
  "README.rdoc",
28
29
  "Rakefile",
30
+ "TODO.txt",
29
31
  "VERSION",
30
- "lib/TODO.txt",
31
- "lib/action_handler.rb",
32
+ "lib/action_handler/action_handler.rb",
33
+ "lib/action_handler/action_handler_registration.rb",
32
34
  "lib/appenders/appender.rb",
35
+ "lib/appenders/appender_mappings.rb",
33
36
  "lib/appenders/appender_registration.rb",
34
37
  "lib/appenders/base_appender.rb",
35
38
  "lib/appenders/file_appender.rb",
36
- "lib/appenders/html_appender.rb",
37
- "lib/appenders/logger_appender.rb",
38
- "lib/appenders/stream_appender.rb",
39
- "lib/appenders/template_log_appender.rb",
40
- "lib/appenders/xml_appender.rb",
41
- "lib/core_extensions.rb",
42
- "lib/filters/base_filters.rb",
43
- "lib/filters/composite_filters.rb",
39
+ "lib/appenders/include.rb",
40
+ "lib/appenders/types/README-NOTE.txt",
41
+ "lib/appenders/types/html_appender.rb",
42
+ "lib/appenders/types/logger_appender.rb",
43
+ "lib/appenders/types/stream_appender.rb",
44
+ "lib/appenders/types/template_log_appender.rb",
45
+ "lib/appenders/types/xml_appender.rb",
46
+ "lib/extensions/array_extensions.rb",
47
+ "lib/extensions/hash_extensions.rb",
48
+ "lib/extensions/hash_rule_extensions.rb",
49
+ "lib/extensions/include.rb",
50
+ "lib/extensions/nilclass_extensions.rb",
51
+ "lib/extensions/object_extensions.rb",
52
+ "lib/extensions/string_extensions.rb",
53
+ "lib/extensions/symbol_extensions.rb",
54
+ "lib/filters/composite/composite_class_filter.rb",
55
+ "lib/filters/composite/composite_module_filter.rb",
56
+ "lib/filters/executor/filter_exec.rb",
57
+ "lib/filters/filter.rb",
44
58
  "lib/filters/filter_factory.rb",
45
- "lib/filters/message_filters.rb",
46
- "lib/filters/tracing_filter.rb",
47
- "lib/output_templates.rb",
59
+ "lib/filters/filter_mappings.rb",
60
+ "lib/filters/filter_registration.rb",
61
+ "lib/filters/filter_use.rb",
62
+ "lib/filters/include.rb",
63
+ "lib/filters/list/README-NOTE.txt",
64
+ "lib/filters/list/list_instance_var_filter.rb",
65
+ "lib/filters/msg_context/message_context_filters.rb",
66
+ "lib/filters/simple/argument_filter.rb",
67
+ "lib/filters/simple/class_filter.rb",
68
+ "lib/filters/simple/instance_var_filter.rb",
69
+ "lib/filters/simple/method_filter.rb",
70
+ "lib/filters/simple/module_filter.rb",
71
+ "lib/output_handler/output_handler.rb",
48
72
  "lib/resources/jquery-1.3.2.min.js",
49
73
  "lib/resources/prototype.js",
50
74
  "lib/resources/tracing.css",
51
75
  "lib/resources/tracing.js",
52
- "lib/rule_match.rb",
53
- "lib/sample_filters.rb",
76
+ "lib/rules/rule_mappings.rb",
77
+ "lib/rules/rule_match.rb",
78
+ "lib/targets/README-NOTE.txt",
79
+ "lib/targets/file_target.rb",
80
+ "lib/targets/stream_target.rb",
81
+ "lib/targets/string_target.rb",
54
82
  "lib/templates/base_template.rb",
55
83
  "lib/templates/html_template.rb",
84
+ "lib/templates/include.rb",
56
85
  "lib/templates/string_template.rb",
57
- "lib/templates/trace_output_handler.rb",
86
+ "lib/templates/template_mappings.rb",
58
87
  "lib/templates/xml_template.rb",
59
88
  "lib/trace-util-adv.rb",
60
- "lib/trace_appenders.rb",
61
- "lib/trace_calls.rb",
62
- "lib/trace_ext.rb",
63
- "lib/trace_filters.rb",
89
+ "lib/trace_calls/trace_calls.rb",
90
+ "lib/trace_calls/trace_configuration.rb",
91
+ "lib/trace_calls/trace_ext.rb",
64
92
  "spec/spec.opts",
65
93
  "spec/spec_helper.rb",
66
94
  "spec/trace-util-adv_spec.rb",
@@ -74,16 +102,47 @@ Gem::Specification.new do |s|
74
102
  s.test_files = [
75
103
  "spec/spec_helper.rb",
76
104
  "spec/trace-util-adv_spec.rb",
77
- "test/test_action_handler.rb",
78
- "test/test_appender.rb",
79
- "test/test_file_appender.rb",
80
- "test/test_filters.rb",
81
- "test/test_filters_chain.rb",
82
- "test/test_filters_create.rb",
83
- "test/test_html_appender.rb",
84
- "test/test_special_filters.rb",
85
- "test/test_xml_appender.rb",
86
- "test/test_xml_gen.rb"
105
+ "test/action_handler/test_action_handler.rb",
106
+ "test/action_handler/test_create_action_handler.rb",
107
+ "test/appenders/test_appender_filters.rb",
108
+ "test/appenders/test_appender_tracers.rb",
109
+ "test/appenders/test_create_appender.rb",
110
+ "test/appenders/test_html_appender.rb",
111
+ "test/appenders/test_stream_appender.rb",
112
+ "test/appenders/test_template_log_appender.rb",
113
+ "test/appenders/test_xml_appender.rb",
114
+ "test/extensions/test_filters_creation.rb",
115
+ "test/extensions/test_hash_extensions.rb",
116
+ "test/extensions/test_hash_filter_extensions.rb",
117
+ "test/extensions/test_set_context.rb",
118
+ "test/extensions/test_string_extensions.rb",
119
+ "test/extensions/test_symbol_extensions.rb",
120
+ "test/filters/chain/test_filters_chain.rb",
121
+ "test/filters/composite/test_composite_class_filter.rb",
122
+ "test/filters/composite/test_composite_module_filter.rb",
123
+ "test/filters/composite/test_composite_var_filter.rb",
124
+ "test/filters/executor/test_filter_exec.rb",
125
+ "test/filters/msg_context/test_custom_filters.rb",
126
+ "test/filters/simple/test_base_filter.rb",
127
+ "test/filters/simple/test_class_filter.rb",
128
+ "test/filters/simple/test_instancevar_filter.rb",
129
+ "test/filters/simple/test_method_filter.rb",
130
+ "test/filters/simple/test_module_filter.rb",
131
+ "test/samples/include.rb",
132
+ "test/samples/sample_classes.rb",
133
+ "test/samples/sample_composite_filters.rb",
134
+ "test/samples/sample_filters.rb",
135
+ "test/sandbox/matcher.rb",
136
+ "test/sandbox/sandbox.rb",
137
+ "test/sandbox/test_xml_gen.rb",
138
+ "test/trace_calls/test_configure_.rb",
139
+ "test/trace_calls/tracing/test_html_tracing.rb",
140
+ "test/trace_calls/tracing/test_logger_tracing.rb",
141
+ "test/trace_calls/tracing/test_stream_tracing.rb",
142
+ "test/trace_calls/tracing/test_teamplate_log_tracing.rb",
143
+ "test/trace_calls/tracing/test_xml_tracing.rb",
144
+ "test/tracers/test_create_tracers.rb",
145
+ "test/tracers/test_exec_tracers.rb"
87
146
  ]
88
147
 
89
148
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trace-util-adv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kristian Mandrup
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-29 00:00:00 +01:00
12
+ date: 2009-11-15 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -37,46 +37,74 @@ extra_rdoc_files:
37
37
  files:
38
38
  - .document
39
39
  - .gitignore
40
+ - Advanced TraceUtils tutorial.pdf
40
41
  - CHANGELOG
41
42
  - DOCUMENTATION
42
43
  - LICENSE
43
44
  - README.rdoc
44
45
  - Rakefile
46
+ - TODO.txt
45
47
  - VERSION
46
- - lib/TODO.txt
47
- - lib/action_handler.rb
48
+ - lib/action_handler/action_handler.rb
49
+ - lib/action_handler/action_handler_registration.rb
48
50
  - lib/appenders/appender.rb
51
+ - lib/appenders/appender_mappings.rb
49
52
  - lib/appenders/appender_registration.rb
50
53
  - lib/appenders/base_appender.rb
51
54
  - lib/appenders/file_appender.rb
52
- - lib/appenders/html_appender.rb
53
- - lib/appenders/logger_appender.rb
54
- - lib/appenders/stream_appender.rb
55
- - lib/appenders/template_log_appender.rb
56
- - lib/appenders/xml_appender.rb
57
- - lib/core_extensions.rb
58
- - lib/filters/base_filters.rb
59
- - lib/filters/composite_filters.rb
55
+ - lib/appenders/include.rb
56
+ - lib/appenders/types/README-NOTE.txt
57
+ - lib/appenders/types/html_appender.rb
58
+ - lib/appenders/types/logger_appender.rb
59
+ - lib/appenders/types/stream_appender.rb
60
+ - lib/appenders/types/template_log_appender.rb
61
+ - lib/appenders/types/xml_appender.rb
62
+ - lib/extensions/array_extensions.rb
63
+ - lib/extensions/hash_extensions.rb
64
+ - lib/extensions/hash_rule_extensions.rb
65
+ - lib/extensions/include.rb
66
+ - lib/extensions/nilclass_extensions.rb
67
+ - lib/extensions/object_extensions.rb
68
+ - lib/extensions/string_extensions.rb
69
+ - lib/extensions/symbol_extensions.rb
70
+ - lib/filters/composite/composite_class_filter.rb
71
+ - lib/filters/composite/composite_module_filter.rb
72
+ - lib/filters/executor/filter_exec.rb
73
+ - lib/filters/filter.rb
60
74
  - lib/filters/filter_factory.rb
61
- - lib/filters/message_filters.rb
62
- - lib/filters/tracing_filter.rb
63
- - lib/output_templates.rb
75
+ - lib/filters/filter_mappings.rb
76
+ - lib/filters/filter_registration.rb
77
+ - lib/filters/filter_use.rb
78
+ - lib/filters/include.rb
79
+ - lib/filters/list/README-NOTE.txt
80
+ - lib/filters/list/list_instance_var_filter.rb
81
+ - lib/filters/msg_context/message_context_filters.rb
82
+ - lib/filters/simple/argument_filter.rb
83
+ - lib/filters/simple/class_filter.rb
84
+ - lib/filters/simple/instance_var_filter.rb
85
+ - lib/filters/simple/method_filter.rb
86
+ - lib/filters/simple/module_filter.rb
87
+ - lib/output_handler/output_handler.rb
64
88
  - lib/resources/jquery-1.3.2.min.js
65
89
  - lib/resources/prototype.js
66
90
  - lib/resources/tracing.css
67
91
  - lib/resources/tracing.js
68
- - lib/rule_match.rb
69
- - lib/sample_filters.rb
92
+ - lib/rules/rule_mappings.rb
93
+ - lib/rules/rule_match.rb
94
+ - lib/targets/README-NOTE.txt
95
+ - lib/targets/file_target.rb
96
+ - lib/targets/stream_target.rb
97
+ - lib/targets/string_target.rb
70
98
  - lib/templates/base_template.rb
71
99
  - lib/templates/html_template.rb
100
+ - lib/templates/include.rb
72
101
  - lib/templates/string_template.rb
73
- - lib/templates/trace_output_handler.rb
102
+ - lib/templates/template_mappings.rb
74
103
  - lib/templates/xml_template.rb
75
104
  - lib/trace-util-adv.rb
76
- - lib/trace_appenders.rb
77
- - lib/trace_calls.rb
78
- - lib/trace_ext.rb
79
- - lib/trace_filters.rb
105
+ - lib/trace_calls/trace_calls.rb
106
+ - lib/trace_calls/trace_configuration.rb
107
+ - lib/trace_calls/trace_ext.rb
80
108
  - spec/spec.opts
81
109
  - spec/spec_helper.rb
82
110
  - spec/trace-util-adv_spec.rb
@@ -112,13 +140,44 @@ summary: adds advancing tracing capability to your ruby code
112
140
  test_files:
113
141
  - spec/spec_helper.rb
114
142
  - spec/trace-util-adv_spec.rb
115
- - test/test_action_handler.rb
116
- - test/test_appender.rb
117
- - test/test_file_appender.rb
118
- - test/test_filters.rb
119
- - test/test_filters_chain.rb
120
- - test/test_filters_create.rb
121
- - test/test_html_appender.rb
122
- - test/test_special_filters.rb
123
- - test/test_xml_appender.rb
124
- - test/test_xml_gen.rb
143
+ - test/action_handler/test_action_handler.rb
144
+ - test/action_handler/test_create_action_handler.rb
145
+ - test/appenders/test_appender_filters.rb
146
+ - test/appenders/test_appender_tracers.rb
147
+ - test/appenders/test_create_appender.rb
148
+ - test/appenders/test_html_appender.rb
149
+ - test/appenders/test_stream_appender.rb
150
+ - test/appenders/test_template_log_appender.rb
151
+ - test/appenders/test_xml_appender.rb
152
+ - test/extensions/test_filters_creation.rb
153
+ - test/extensions/test_hash_extensions.rb
154
+ - test/extensions/test_hash_filter_extensions.rb
155
+ - test/extensions/test_set_context.rb
156
+ - test/extensions/test_string_extensions.rb
157
+ - test/extensions/test_symbol_extensions.rb
158
+ - test/filters/chain/test_filters_chain.rb
159
+ - test/filters/composite/test_composite_class_filter.rb
160
+ - test/filters/composite/test_composite_module_filter.rb
161
+ - test/filters/composite/test_composite_var_filter.rb
162
+ - test/filters/executor/test_filter_exec.rb
163
+ - test/filters/msg_context/test_custom_filters.rb
164
+ - test/filters/simple/test_base_filter.rb
165
+ - test/filters/simple/test_class_filter.rb
166
+ - test/filters/simple/test_instancevar_filter.rb
167
+ - test/filters/simple/test_method_filter.rb
168
+ - test/filters/simple/test_module_filter.rb
169
+ - test/samples/include.rb
170
+ - test/samples/sample_classes.rb
171
+ - test/samples/sample_composite_filters.rb
172
+ - test/samples/sample_filters.rb
173
+ - test/sandbox/matcher.rb
174
+ - test/sandbox/sandbox.rb
175
+ - test/sandbox/test_xml_gen.rb
176
+ - test/trace_calls/test_configure_.rb
177
+ - test/trace_calls/tracing/test_html_tracing.rb
178
+ - test/trace_calls/tracing/test_logger_tracing.rb
179
+ - test/trace_calls/tracing/test_stream_tracing.rb
180
+ - test/trace_calls/tracing/test_teamplate_log_tracing.rb
181
+ - test/trace_calls/tracing/test_xml_tracing.rb
182
+ - test/tracers/test_create_tracers.rb
183
+ - test/tracers/test_exec_tracers.rb