syc-spector 0.0.1

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.
Files changed (56) hide show
  1. data/README +17 -0
  2. data/bin/sycspector +7 -0
  3. data/doc/Inspector/Console.html +256 -0
  4. data/doc/Inspector/Options.html +301 -0
  5. data/doc/Inspector/Runner.html +239 -0
  6. data/doc/Inspector/Separator.html +456 -0
  7. data/doc/Inspector.html +157 -0
  8. data/doc/Object.html +165 -0
  9. data/doc/README.html +119 -0
  10. data/doc/TestConsole.html +143 -0
  11. data/doc/TestOptions.html +246 -0
  12. data/doc/TestSeparator.html +270 -0
  13. data/doc/created.rid +11 -0
  14. data/doc/images/add.png +0 -0
  15. data/doc/images/brick.png +0 -0
  16. data/doc/images/brick_link.png +0 -0
  17. data/doc/images/bug.png +0 -0
  18. data/doc/images/bullet_black.png +0 -0
  19. data/doc/images/bullet_toggle_minus.png +0 -0
  20. data/doc/images/bullet_toggle_plus.png +0 -0
  21. data/doc/images/date.png +0 -0
  22. data/doc/images/delete.png +0 -0
  23. data/doc/images/find.png +0 -0
  24. data/doc/images/loadingAnimation.gif +0 -0
  25. data/doc/images/macFFBgHack.png +0 -0
  26. data/doc/images/package.png +0 -0
  27. data/doc/images/page_green.png +0 -0
  28. data/doc/images/page_white_text.png +0 -0
  29. data/doc/images/page_white_width.png +0 -0
  30. data/doc/images/plugin.png +0 -0
  31. data/doc/images/ruby.png +0 -0
  32. data/doc/images/tag_blue.png +0 -0
  33. data/doc/images/tag_green.png +0 -0
  34. data/doc/images/transparent.png +0 -0
  35. data/doc/images/wrench.png +0 -0
  36. data/doc/images/wrench_orange.png +0 -0
  37. data/doc/images/zoom.png +0 -0
  38. data/doc/index.html +94 -0
  39. data/doc/js/darkfish.js +153 -0
  40. data/doc/js/jquery.js +18 -0
  41. data/doc/js/navigation.js +142 -0
  42. data/doc/js/search.js +94 -0
  43. data/doc/js/search_index.js +1 -0
  44. data/doc/js/searcher.js +228 -0
  45. data/doc/rdoc.css +543 -0
  46. data/doc/table_of_contents.html +109 -0
  47. data/lib/inspector/console.rb +60 -0
  48. data/lib/inspector/options.rb +212 -0
  49. data/lib/inspector/pattern.rb +11 -0
  50. data/lib/inspector/runner.rb +31 -0
  51. data/lib/inspector/separator.rb +182 -0
  52. data/sycspector.gemspec +18 -0
  53. data/test/test_console.rb +26 -0
  54. data/test/test_options.rb +115 -0
  55. data/test/test_separator.rb +118 -0
  56. metadata +140 -0
data/doc/Object.html ADDED
@@ -0,0 +1,165 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>class Object - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "./";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="class">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="./index.html">Home</a>
28
+ <a href="./table_of_contents.html#classes">Classes</a>
29
+ <a href="./table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+ <div id="file-metadata">
47
+ <nav id="file-list-section" class="section">
48
+ <h3 class="section-header">Defined In</h3>
49
+ <ul>
50
+ <li>lib/inspector/pattern.rb
51
+ </ul>
52
+ </nav>
53
+
54
+
55
+ </div>
56
+
57
+ <div id="class-metadata">
58
+
59
+ <nav id="parent-class-section" class="section">
60
+ <h3 class="section-header">Parent</h3>
61
+
62
+ <p class="link">BasicObject
63
+
64
+ </nav>
65
+
66
+
67
+
68
+ </div>
69
+
70
+ <div id="project-metadata">
71
+ <nav id="fileindex-section" class="section project-section">
72
+ <h3 class="section-header">Pages</h3>
73
+
74
+ <ul>
75
+
76
+ <li class="file"><a href="./README.html">README</a>
77
+
78
+ </ul>
79
+ </nav>
80
+
81
+ <nav id="classindex-section" class="section project-section">
82
+ <h3 class="section-header">Class and Module Index</h3>
83
+
84
+ <ul class="link-list">
85
+
86
+ <li><a href="./Inspector.html">Inspector</a>
87
+
88
+ <li><a href="./Inspector/Console.html">Inspector::Console</a>
89
+
90
+ <li><a href="./Inspector/Options.html">Inspector::Options</a>
91
+
92
+ <li><a href="./Inspector/Runner.html">Inspector::Runner</a>
93
+
94
+ <li><a href="./Inspector/Separator.html">Inspector::Separator</a>
95
+
96
+ <li><a href="./Object.html">Object</a>
97
+
98
+ <li><a href="./TestConsole.html">TestConsole</a>
99
+
100
+ <li><a href="./TestOptions.html">TestOptions</a>
101
+
102
+ <li><a href="./TestSeparator.html">TestSeparator</a>
103
+
104
+ </ul>
105
+ </nav>
106
+
107
+ </div>
108
+ </nav>
109
+
110
+ <div id="documentation">
111
+ <h1 class="class">class Object</h1>
112
+
113
+ <div id="description" class="description">
114
+
115
+ </div><!-- description -->
116
+
117
+
118
+
119
+
120
+ <section id="5Buntitled-5D" class="documentation-section">
121
+
122
+
123
+
124
+
125
+
126
+ <!-- Constants -->
127
+ <section id="constants-list" class="section">
128
+ <h3 class="section-header">Constants</h3>
129
+ <dl>
130
+
131
+ <dt id="ANY_EMAIL_PATTERN">ANY_EMAIL_PATTERN
132
+
133
+ <dd class="description"><p>Pattern that relizes an email within a line.</p>
134
+
135
+
136
+ <dt id="EMAIL_PATTERN">EMAIL_PATTERN
137
+
138
+ <dd class="description"><p>Pattern that relizes emails. Matches whole lines only</p>
139
+
140
+
141
+ <dt id="FULL_LINE">FULL_LINE
142
+
143
+ <dd class="description"><p>Pattern that relizes strings between A and Z that is beginning of line and
144
+ end of line patterns.</p>
145
+
146
+
147
+ </dl>
148
+ </section>
149
+
150
+
151
+
152
+
153
+ <!-- Methods -->
154
+
155
+ </section><!-- 5Buntitled-5D -->
156
+
157
+ </div><!-- documentation -->
158
+
159
+
160
+ <footer id="validator-badges">
161
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
162
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
163
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
164
+ </footer>
165
+
data/doc/README.html ADDED
@@ -0,0 +1,119 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>README - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "./";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
21
+
22
+
23
+ <body class="file">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="./index.html">Home</a>
28
+ <a href="./table_of_contents.html#classes">Classes</a>
29
+ <a href="./table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+ <div id="project-metadata">
47
+ <nav id="fileindex-section" class="section project-section">
48
+ <h3 class="section-header">Pages</h3>
49
+
50
+ <ul>
51
+
52
+ <li class="file"><a href="./README.html">README</a>
53
+
54
+ </ul>
55
+ </nav>
56
+
57
+ <nav id="classindex-section" class="section project-section">
58
+ <h3 class="section-header">Class and Module Index</h3>
59
+
60
+ <ul class="link-list">
61
+
62
+ <li><a href="./Inspector.html">Inspector</a>
63
+
64
+ <li><a href="./Inspector/Console.html">Inspector::Console</a>
65
+
66
+ <li><a href="./Inspector/Options.html">Inspector::Options</a>
67
+
68
+ <li><a href="./Inspector/Runner.html">Inspector::Runner</a>
69
+
70
+ <li><a href="./Inspector/Separator.html">Inspector::Separator</a>
71
+
72
+ <li><a href="./Object.html">Object</a>
73
+
74
+ <li><a href="./TestConsole.html">TestConsole</a>
75
+
76
+ <li><a href="./TestOptions.html">TestOptions</a>
77
+
78
+ <li><a href="./TestSeparator.html">TestSeparator</a>
79
+
80
+ </ul>
81
+ </nav>
82
+
83
+ </div>
84
+ </nav>
85
+
86
+ <div id="documentation" class="description">
87
+
88
+ <p>The sycspector scans a file for patterns provided on the command line.
89
+ Lines that match the pattern are saved to a valid file and those lines that
90
+ don’t match the pattern are added to an invalid file. The valid and invalid
91
+ files as well as the used pattern are stored in a history file. The saved
92
+ values are used for a subsequent call to sycspector with –show and -f for
93
+ fix.</p>
94
+
95
+ <p>Invokation Examples</p>
96
+
97
+ <pre>sycspector mail_addresses -p email</pre>
98
+
99
+ <p>searches for email addresses in the provided file ‘email_addresses’</p>
100
+
101
+ <p>Lines that are not recognized can be prompted, fixed and appended to the
102
+ valid file with</p>
103
+
104
+ <pre>sycspector -fa</pre>
105
+
106
+ <p>To show the result of the invokation use</p>
107
+
108
+ <pre>sycspector --show</pre>
109
+
110
+ </div>
111
+
112
+
113
+
114
+ <footer id="validator-badges">
115
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
116
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
117
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
118
+ </footer>
119
+
@@ -0,0 +1,143 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>class TestConsole - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "./";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="class">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="./index.html">Home</a>
28
+ <a href="./table_of_contents.html#classes">Classes</a>
29
+ <a href="./table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+ <div id="file-metadata">
47
+ <nav id="file-list-section" class="section">
48
+ <h3 class="section-header">Defined In</h3>
49
+ <ul>
50
+ <li>test/test_console.rb
51
+ </ul>
52
+ </nav>
53
+
54
+
55
+ </div>
56
+
57
+ <div id="class-metadata">
58
+
59
+ <nav id="parent-class-section" class="section">
60
+ <h3 class="section-header">Parent</h3>
61
+
62
+ <p class="link">Test::Unit::TestCase
63
+
64
+ </nav>
65
+
66
+
67
+
68
+ </div>
69
+
70
+ <div id="project-metadata">
71
+ <nav id="fileindex-section" class="section project-section">
72
+ <h3 class="section-header">Pages</h3>
73
+
74
+ <ul>
75
+
76
+ <li class="file"><a href="./README.html">README</a>
77
+
78
+ </ul>
79
+ </nav>
80
+
81
+ <nav id="classindex-section" class="section project-section">
82
+ <h3 class="section-header">Class and Module Index</h3>
83
+
84
+ <ul class="link-list">
85
+
86
+ <li><a href="./Inspector.html">Inspector</a>
87
+
88
+ <li><a href="./Inspector/Console.html">Inspector::Console</a>
89
+
90
+ <li><a href="./Inspector/Options.html">Inspector::Options</a>
91
+
92
+ <li><a href="./Inspector/Runner.html">Inspector::Runner</a>
93
+
94
+ <li><a href="./Inspector/Separator.html">Inspector::Separator</a>
95
+
96
+ <li><a href="./Object.html">Object</a>
97
+
98
+ <li><a href="./TestConsole.html">TestConsole</a>
99
+
100
+ <li><a href="./TestOptions.html">TestOptions</a>
101
+
102
+ <li><a href="./TestSeparator.html">TestSeparator</a>
103
+
104
+ </ul>
105
+ </nav>
106
+
107
+ </div>
108
+ </nav>
109
+
110
+ <div id="documentation">
111
+ <h1 class="class">class TestConsole</h1>
112
+
113
+ <div id="description" class="description">
114
+
115
+ <p>Tests the Console class</p>
116
+
117
+ </div><!-- description -->
118
+
119
+
120
+
121
+
122
+ <section id="5Buntitled-5D" class="documentation-section">
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+ <!-- Methods -->
132
+
133
+ </section><!-- 5Buntitled-5D -->
134
+
135
+ </div><!-- documentation -->
136
+
137
+
138
+ <footer id="validator-badges">
139
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
140
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
141
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
142
+ </footer>
143
+
@@ -0,0 +1,246 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>class TestOptions - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "./";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="class">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="./index.html">Home</a>
28
+ <a href="./table_of_contents.html#classes">Classes</a>
29
+ <a href="./table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+ <div id="file-metadata">
47
+ <nav id="file-list-section" class="section">
48
+ <h3 class="section-header">Defined In</h3>
49
+ <ul>
50
+ <li>test/test_options.rb
51
+ </ul>
52
+ </nav>
53
+
54
+
55
+ </div>
56
+
57
+ <div id="class-metadata">
58
+
59
+ <nav id="parent-class-section" class="section">
60
+ <h3 class="section-header">Parent</h3>
61
+
62
+ <p class="link">Test::Unit::TestCase
63
+
64
+ </nav>
65
+
66
+
67
+ <!-- Method Quickref -->
68
+ <nav id="method-list-section" class="section">
69
+ <h3 class="section-header">Methods</h3>
70
+
71
+ <ul class="link-list">
72
+
73
+ <li><a href="#method-i-setup">#setup</a>
74
+
75
+ <li><a href="#method-i-teardown">#teardown</a>
76
+
77
+ </ul>
78
+ </nav>
79
+
80
+ </div>
81
+
82
+ <div id="project-metadata">
83
+ <nav id="fileindex-section" class="section project-section">
84
+ <h3 class="section-header">Pages</h3>
85
+
86
+ <ul>
87
+
88
+ <li class="file"><a href="./README.html">README</a>
89
+
90
+ </ul>
91
+ </nav>
92
+
93
+ <nav id="classindex-section" class="section project-section">
94
+ <h3 class="section-header">Class and Module Index</h3>
95
+
96
+ <ul class="link-list">
97
+
98
+ <li><a href="./Inspector.html">Inspector</a>
99
+
100
+ <li><a href="./Inspector/Console.html">Inspector::Console</a>
101
+
102
+ <li><a href="./Inspector/Options.html">Inspector::Options</a>
103
+
104
+ <li><a href="./Inspector/Runner.html">Inspector::Runner</a>
105
+
106
+ <li><a href="./Inspector/Separator.html">Inspector::Separator</a>
107
+
108
+ <li><a href="./Object.html">Object</a>
109
+
110
+ <li><a href="./TestConsole.html">TestConsole</a>
111
+
112
+ <li><a href="./TestOptions.html">TestOptions</a>
113
+
114
+ <li><a href="./TestSeparator.html">TestSeparator</a>
115
+
116
+ </ul>
117
+ </nav>
118
+
119
+ </div>
120
+ </nav>
121
+
122
+ <div id="documentation">
123
+ <h1 class="class">class TestOptions</h1>
124
+
125
+ <div id="description" class="description">
126
+
127
+ <p>Test of the Options class</p>
128
+
129
+ </div><!-- description -->
130
+
131
+
132
+
133
+
134
+ <section id="5Buntitled-5D" class="documentation-section">
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+ <!-- Methods -->
144
+
145
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
146
+ <h3 class="section-header">Public Instance Methods</h3>
147
+
148
+
149
+ <div id="method-i-setup" class="method-detail ">
150
+
151
+ <div class="method-heading">
152
+ <span class="method-name">setup</span><span
153
+ class="method-args">()</span>
154
+ <span class="method-click-advice">click to toggle source</span>
155
+ </div>
156
+
157
+
158
+ <div class="method-description">
159
+
160
+ <p>Intializes the input, valid, invalid and history file</p>
161
+
162
+
163
+
164
+ <div class="method-source-code" id="setup-source">
165
+ <pre><span class="ruby-comment"># File test/test_options.rb, line 32</span>
166
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">setup</span>
167
+ <span class="ruby-identifier">puts</span> <span class="ruby-string">&quot;in startup&quot;</span>
168
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-string">'existing'</span>, <span class="ruby-string">'w'</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span>
169
+ <span class="ruby-identifier">file</span>.<span class="ruby-identifier">puts</span> <span class="ruby-string">&quot;pierre@thesugars.de&quot;</span>
170
+ <span class="ruby-identifier">file</span>.<span class="ruby-identifier">puts</span> <span class="ruby-string">&quot;amanda@thesugars.de und pierre@thesugars.de&quot;</span>
171
+ <span class="ruby-keyword">end</span>
172
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-string">'.sycspector.data'</span>, <span class="ruby-string">'w'</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span>
173
+ <span class="ruby-identifier">file</span>.<span class="ruby-identifier">puts</span> <span class="ruby-string">&quot;20130113-121212_valid_values&quot;</span>
174
+ <span class="ruby-identifier">file</span>.<span class="ruby-identifier">puts</span> <span class="ruby-string">&quot;20130113-121212_invalid_values&quot;</span>
175
+ <span class="ruby-identifier">file</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;(?-mix:\A[\w!#\$%&amp;'*+\/=?`{|}~^-]+&quot;</span> <span class="ruby-operator">+</span>
176
+ <span class="ruby-node">&quot;(?:\.[\w!#\$%&amp;'*+\/=?`{|}~^-]+)*@(?:[a-zA-Z0-9-]+\.)+&quot;</span> <span class="ruby-operator">+</span>
177
+ <span class="ruby-string">&quot;[a-zA-Z]{2,6}\Z)&quot;</span>
178
+ <span class="ruby-identifier">file</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;(?-mix:[\w!#\$%&amp;'*+\/=?`{|}~^-]+&quot;</span> <span class="ruby-operator">+</span>
179
+ <span class="ruby-node">&quot;(?:\.[\w!#\$%&amp;'*+\/=?`{|}~^-]+)*@(?:[a-zA-Z0-9-]+\.)+&quot;</span> <span class="ruby-operator">+</span>
180
+ <span class="ruby-string">&quot;[a-zA-Z]{2,6})&quot;</span>
181
+ <span class="ruby-keyword">end</span>
182
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-string">'20130113-121212_valid_values'</span>, <span class="ruby-string">'w'</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span>
183
+ <span class="ruby-identifier">file</span>.<span class="ruby-identifier">puts</span> <span class="ruby-string">&quot;pierre@thesugars.de&quot;</span>
184
+ <span class="ruby-identifier">file</span>.<span class="ruby-identifier">puts</span> <span class="ruby-string">&quot;amanda@thesugars.de&quot;</span>
185
+ <span class="ruby-identifier">file</span>.<span class="ruby-identifier">puts</span> <span class="ruby-string">&quot;pierre@thesugars.de&quot;</span>
186
+ <span class="ruby-keyword">end</span>
187
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-string">'20130113-121212_invalid_values'</span>, <span class="ruby-string">'w'</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span>
188
+ <span class="ruby-identifier">file</span>.<span class="ruby-identifier">puts</span> <span class="ruby-string">&quot;amanda@thesugars und pierre@thesugars&quot;</span>
189
+ <span class="ruby-keyword">end</span>
190
+ <span class="ruby-keyword">end</span></pre>
191
+ </div><!-- setup-source -->
192
+
193
+ </div>
194
+
195
+
196
+
197
+
198
+ </div><!-- setup-method -->
199
+
200
+
201
+ <div id="method-i-teardown" class="method-detail ">
202
+
203
+ <div class="method-heading">
204
+ <span class="method-name">teardown</span><span
205
+ class="method-args">()</span>
206
+ <span class="method-click-advice">click to toggle source</span>
207
+ </div>
208
+
209
+
210
+ <div class="method-description">
211
+
212
+ <p>Cleans up the test directory by deleting the files created in setup</p>
213
+
214
+
215
+
216
+ <div class="method-source-code" id="teardown-source">
217
+ <pre><span class="ruby-comment"># File test/test_options.rb, line 59</span>
218
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">teardown</span>
219
+ <span class="ruby-identifier">puts</span> <span class="ruby-string">&quot;in shutdown&quot;</span>
220
+ <span class="ruby-value">%xrm existing`</span>
221
+ <span class="ruby-value">%xrm 20130113-*`</span>
222
+ <span class="ruby-value">%xrm .sycspector.data`</span>
223
+ <span class="ruby-keyword">end</span></pre>
224
+ </div><!-- teardown-source -->
225
+
226
+ </div>
227
+
228
+
229
+
230
+
231
+ </div><!-- teardown-method -->
232
+
233
+
234
+ </section><!-- public-instance-method-details -->
235
+
236
+ </section><!-- 5Buntitled-5D -->
237
+
238
+ </div><!-- documentation -->
239
+
240
+
241
+ <footer id="validator-badges">
242
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
243
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
244
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
245
+ </footer>
246
+