student_mvp 0.1.8 → 0.1.9

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 (44) hide show
  1. checksums.yaml +4 -4
  2. data/doc/App_logger.html +47 -33
  3. data/doc/DB_client.html +20 -10
  4. data/doc/created.rid +10 -44
  5. data/doc/index.html +2 -81
  6. data/doc/js/search_index.js +1 -1
  7. data/doc/js/search_index.js.gz +0 -0
  8. data/doc/table_of_contents.html +9 -697
  9. data/lib/data_access/DB_client/DB_client.rb +20 -1
  10. data/lib/logger/logger.rb +35 -0
  11. data/lib/student_mvp/version.rb +1 -1
  12. metadata +55 -34
  13. data/doc/Binary_tree.html +0 -300
  14. data/doc/Binary_tree_iterator.html +0 -217
  15. data/doc/Contact_sort_decorator.html +0 -219
  16. data/doc/Data_list.html +0 -625
  17. data/doc/Data_list_student_short.html +0 -148
  18. data/doc/Data_storage_strategy.html +0 -178
  19. data/doc/Data_table.html +0 -264
  20. data/doc/Deep_dup.html +0 -152
  21. data/doc/Field_filter_decorator.html +0 -219
  22. data/doc/Filter.html +0 -148
  23. data/doc/Filter_decorator.html +0 -209
  24. data/doc/Full_name_filter_decorator.html +0 -211
  25. data/doc/Full_name_sort_decorator.html +0 -217
  26. data/doc/Gemfile.html +0 -98
  27. data/doc/Git_sort_decorator.html +0 -220
  28. data/doc/Has_not_field_filter_decorator.html +0 -209
  29. data/doc/JSON_storage_strategy.html +0 -183
  30. data/doc/Person.html +0 -511
  31. data/doc/README_md.html +0 -147
  32. data/doc/Rakefile.html +0 -94
  33. data/doc/Sort_decorator.html +0 -214
  34. data/doc/Student.html +0 -755
  35. data/doc/StudentMvp/Error.html +0 -105
  36. data/doc/StudentMvp.html +0 -111
  37. data/doc/Student_short.html +0 -398
  38. data/doc/Students_list.html +0 -341
  39. data/doc/Students_list_DB.html +0 -361
  40. data/doc/Students_list_file.html +0 -460
  41. data/doc/Students_list_file_adapter.html +0 -341
  42. data/doc/Students_list_interface.html +0 -298
  43. data/doc/YAML_storage_strategy.html +0 -183
  44. data/doc/bin/setup.html +0 -96
data/doc/Deep_dup.html DELETED
@@ -1,152 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
- <meta name="viewport" content="width=device-width, initial-scale=1" />
7
-
8
- <title>module Deep_dup - RDoc Documentation</title>
9
-
10
- <meta name="keywords" content="ruby,module,Deep_dup">
11
-
12
- <meta name="description" content="Documentation for the Deep_dup module">
13
-
14
- <script type="text/javascript">
15
- var rdoc_rel_prefix = "./";
16
- var index_rel_prefix = "./";
17
- </script>
18
-
19
- <script src="./js/navigation.js" defer></script>
20
- <script src="./js/search.js" defer></script>
21
- <script src="./js/search_index.js" defer></script>
22
- <script src="./js/searcher.js" defer></script>
23
- <script src="./js/darkfish.js" defer></script>
24
-
25
- <link href="./css/fonts.css" rel="stylesheet">
26
- <link href="./css/rdoc.css" rel="stylesheet">
27
-
28
-
29
- <body id="top" role="document" class="module">
30
- <div id="navigation-toggle" role="button" tabindex="0" aria-label="Toggle sidebar" aria-expanded="true" aria-controls="navigation">
31
- <span aria-hidden="true">&#9776;</span>
32
- </div>
33
-
34
-
35
- <nav id="navigation" role="navigation">
36
- <div id="project-navigation">
37
- <div id="home-section" role="region" title="Quick navigation" class="nav-section">
38
- <h2>
39
- <a href="./index.html" rel="home">Home</a>
40
- </h2>
41
-
42
- <div id="table-of-contents-navigation">
43
- <a href="./table_of_contents.html#pages">Pages</a>
44
- <a href="./table_of_contents.html#classes">Classes</a>
45
- <a href="./table_of_contents.html#methods">Methods</a>
46
- </div>
47
- </div>
48
-
49
- <div id="search-section" role="search" class="project-section initially-hidden">
50
- <form action="#" method="get" accept-charset="utf-8">
51
- <div id="search-field-wrapper">
52
- <input id="search-field" role="combobox" aria-label="Search"
53
- aria-autocomplete="list" aria-controls="search-results"
54
- type="text" name="search" placeholder="Search (/) for a class, method, ..." spellcheck="false"
55
- title="Type to search, Up and Down to navigate, Enter to load">
56
- </div>
57
-
58
- <ul id="search-results" aria-label="Search Results"
59
- aria-busy="false" aria-expanded="false"
60
- aria-atomic="false" class="initially-hidden"></ul>
61
- </form>
62
- </div>
63
-
64
- </div>
65
-
66
-
67
-
68
-
69
-
70
-
71
-
72
-
73
-
74
- <div class="nav-section">
75
- <h3>Instance Methods</h3>
76
- <ul class="link-list" role="directory">
77
- <li ><a href="#method-i-deep_dup">deep_dup</a></li>
78
- </ul>
79
- </div>
80
-
81
-
82
-
83
- <footer id="validator-badges" role="contentinfo">
84
- <p><a href="https://validator.w3.org/check/referer">Validate</a>
85
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.8.1.
86
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
87
- </footer>
88
-
89
- </nav>
90
-
91
- <main role="main" aria-labelledby="module-Deep_dup">
92
- <h1 id="module-Deep_dup" class="anchor-link module">
93
- module Deep_dup
94
- </h1>
95
-
96
- <section class="description">
97
-
98
- </section>
99
-
100
- <section id="5Buntitled-5D" class="documentation-section anchor-link">
101
-
102
-
103
-
104
-
105
-
106
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section anchor-link">
107
- <header>
108
- <h3>Public Instance Methods</h3>
109
- </header>
110
-
111
- <div id="method-i-deep_dup" class="method-detail anchor-link ">
112
- <div class="method-header">
113
- <div class="method-heading">
114
- <a href="#method-i-deep_dup" title="Link to this method">
115
- <span class="method-name">deep_dup</span>
116
- <span class="method-args">(element)</span>
117
- </a>
118
- </div>
119
- </div>
120
-
121
- <div class="method-controls">
122
- <details class="method-source-toggle">
123
- <summary>Source</summary>
124
- </details>
125
- </div>
126
-
127
- <div class="method-description">
128
- <div class="method-source-code" id="deep_dup-source">
129
- <pre><span class="ruby-comment"># File lib/deep_dup/deep_dup.rb, line 3</span>
130
- <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">deep_dup</span>(<span class="ruby-identifier">element</span>)
131
- <span class="ruby-keyword">if</span> <span class="ruby-identifier">element</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
132
- <span class="ruby-identifier">element</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">sub_element</span><span class="ruby-operator">|</span> <span class="ruby-identifier">deep_dup</span>(<span class="ruby-identifier">sub_element</span>) }
133
- <span class="ruby-keyword">else</span>
134
- <span class="ruby-keyword">begin</span>
135
- <span class="ruby-identifier">element</span>.<span class="ruby-identifier">dup</span>
136
- <span class="ruby-keyword">rescue</span>
137
- <span class="ruby-identifier">element</span>
138
- <span class="ruby-keyword">end</span>
139
- <span class="ruby-keyword">end</span>
140
- <span class="ruby-keyword">end</span></pre>
141
- </div>
142
- <p>deep copy</p>
143
- </div>
144
-
145
-
146
- </div>
147
-
148
- </section>
149
-
150
- </section>
151
- </main>
152
-
@@ -1,219 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
- <meta name="viewport" content="width=device-width, initial-scale=1" />
7
-
8
- <title>class Field_filter_decorator - RDoc Documentation</title>
9
-
10
- <meta name="keywords" content="ruby,class,Field_filter_decorator">
11
-
12
- <meta name="description" content="Documentation for the Field_filter_decorator class">
13
-
14
- <script type="text/javascript">
15
- var rdoc_rel_prefix = "./";
16
- var index_rel_prefix = "./";
17
- </script>
18
-
19
- <script src="./js/navigation.js" defer></script>
20
- <script src="./js/search.js" defer></script>
21
- <script src="./js/search_index.js" defer></script>
22
- <script src="./js/searcher.js" defer></script>
23
- <script src="./js/darkfish.js" defer></script>
24
-
25
- <link href="./css/fonts.css" rel="stylesheet">
26
- <link href="./css/rdoc.css" rel="stylesheet">
27
-
28
-
29
- <body id="top" role="document" class="class">
30
- <div id="navigation-toggle" role="button" tabindex="0" aria-label="Toggle sidebar" aria-expanded="true" aria-controls="navigation">
31
- <span aria-hidden="true">&#9776;</span>
32
- </div>
33
-
34
-
35
- <nav id="navigation" role="navigation">
36
- <div id="project-navigation">
37
- <div id="home-section" role="region" title="Quick navigation" class="nav-section">
38
- <h2>
39
- <a href="./index.html" rel="home">Home</a>
40
- </h2>
41
-
42
- <div id="table-of-contents-navigation">
43
- <a href="./table_of_contents.html#pages">Pages</a>
44
- <a href="./table_of_contents.html#classes">Classes</a>
45
- <a href="./table_of_contents.html#methods">Methods</a>
46
- </div>
47
- </div>
48
-
49
- <div id="search-section" role="search" class="project-section initially-hidden">
50
- <form action="#" method="get" accept-charset="utf-8">
51
- <div id="search-field-wrapper">
52
- <input id="search-field" role="combobox" aria-label="Search"
53
- aria-autocomplete="list" aria-controls="search-results"
54
- type="text" name="search" placeholder="Search (/) for a class, method, ..." spellcheck="false"
55
- title="Type to search, Up and Down to navigate, Enter to load">
56
- </div>
57
-
58
- <ul id="search-results" aria-label="Search Results"
59
- aria-busy="false" aria-expanded="false"
60
- aria-atomic="false" class="initially-hidden"></ul>
61
- </form>
62
- </div>
63
-
64
- </div>
65
-
66
-
67
-
68
- <div id="parent-class-section" class="nav-section">
69
- <h3>Ancestors</h3>
70
- <ul><li><a href="Filter_decorator.html">Filter_decorator</a><ul><li><a href="Filter.html">Filter</a><ul><li>Object</li></ul></li></ul></li></ul>
71
- </div>
72
-
73
-
74
-
75
-
76
- <div class="nav-section">
77
- <h3>Class Methods</h3>
78
- <ul class="link-list" role="directory">
79
- <li class="calls-super" ><a href="#method-c-new">new</a></li>
80
- </ul>
81
- </div>
82
-
83
-
84
-
85
- <div class="nav-section">
86
- <h3>Instance Methods</h3>
87
- <ul class="link-list" role="directory">
88
- <li class="calls-super" ><a href="#method-i-apply">apply</a></li>
89
- </ul>
90
- </div>
91
-
92
-
93
-
94
- <footer id="validator-badges" role="contentinfo">
95
- <p><a href="https://validator.w3.org/check/referer">Validate</a>
96
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.8.1.
97
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
98
- </footer>
99
-
100
- </nav>
101
-
102
- <main role="main" aria-labelledby="class-Field_filter_decorator">
103
- <h1 id="class-Field_filter_decorator" class="anchor-link class">
104
- class Field_filter_decorator
105
- </h1>
106
-
107
- <section class="description">
108
-
109
- </section>
110
-
111
- <section id="5Buntitled-5D" class="documentation-section anchor-link">
112
-
113
-
114
-
115
-
116
-
117
- <section id="public-class-5Buntitled-5D-method-details" class="method-section anchor-link">
118
- <header>
119
- <h3>Public Class Methods</h3>
120
- </header>
121
-
122
- <div id="method-c-new" class="method-detail anchor-link ">
123
- <div class="method-header">
124
- <div class="method-heading">
125
- <a href="#method-c-new" title="Link to this method">
126
- <span class="method-name">new</span>
127
- <span class="method-args">(filter, field, value)</span>
128
- </a>
129
- </div>
130
- </div>
131
-
132
- <div class="method-controls">
133
- <details class="method-source-toggle">
134
- <summary>Source</summary>
135
- </details>
136
- </div>
137
-
138
- <div class="method-description">
139
- <div class="method-source-code" id="new-source">
140
- <pre><span class="ruby-comment"># File lib/models/filter/student_filters/field_filter_decorator.rb, line 4</span>
141
- <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">filter</span>, <span class="ruby-identifier">field</span>, <span class="ruby-identifier">value</span>)
142
- <span class="ruby-keyword">super</span>(<span class="ruby-identifier">filter</span>)
143
- <span class="ruby-keyword">self</span>.<span class="ruby-identifier">field</span> = <span class="ruby-identifier">field</span>
144
- <span class="ruby-keyword">self</span>.<span class="ruby-identifier">value</span> = <span class="ruby-identifier">value</span>.<span class="ruby-identifier">strip</span>.<span class="ruby-identifier">downcase</span>
145
- <span class="ruby-keyword">end</span></pre>
146
- </div>
147
-
148
- <div class="method-calls-super">
149
- Calls superclass method
150
- <a href="Filter_decorator.html#method-c-new"><code>Filter_decorator::new</code></a>
151
- </div>
152
- </div>
153
-
154
-
155
- </div>
156
-
157
- </section>
158
-
159
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section anchor-link">
160
- <header>
161
- <h3>Public Instance Methods</h3>
162
- </header>
163
-
164
- <div id="method-i-apply" class="method-detail anchor-link ">
165
- <div class="method-header">
166
- <div class="method-heading">
167
- <a href="#method-i-apply" title="Link to this method">
168
- <span class="method-name">apply</span>
169
- <span class="method-args">(filtering_obj)</span>
170
- </a>
171
- </div>
172
- </div>
173
-
174
- <div class="method-controls">
175
- <details class="method-source-toggle">
176
- <summary>Source</summary>
177
- </details>
178
- </div>
179
-
180
- <div class="method-description">
181
- <div class="method-source-code" id="apply-source">
182
- <pre><span class="ruby-comment"># File lib/models/filter/student_filters/field_filter_decorator.rb, line 10</span>
183
- <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">apply</span>(<span class="ruby-identifier">filtering_obj</span>)
184
- <span class="ruby-keyword">if</span> <span class="ruby-identifier">filtering_obj</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
185
- <span class="ruby-keyword">super</span>(<span class="ruby-identifier">filtering_obj</span>).<span class="ruby-identifier">select</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">student</span><span class="ruby-operator">|</span>
186
- <span class="ruby-identifier">student_value</span> = <span class="ruby-identifier">student</span>.<span class="ruby-identifier">send</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">field</span>).<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">downcase</span>
187
- <span class="ruby-keyword">if</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">value</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">value</span>.<span class="ruby-identifier">empty?</span>
188
- <span class="ruby-operator">!</span><span class="ruby-identifier">student_value</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-operator">!</span><span class="ruby-identifier">student_value</span>.<span class="ruby-identifier">empty?</span>
189
- <span class="ruby-keyword">else</span>
190
- <span class="ruby-identifier">student_value</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">value</span>)
191
- <span class="ruby-keyword">end</span>
192
- <span class="ruby-keyword">end</span>
193
- <span class="ruby-keyword">else</span>
194
- <span class="ruby-identifier">query</span> = <span class="ruby-keyword">super</span>(<span class="ruby-identifier">filtering_obj</span>)
195
- <span class="ruby-identifier">condition</span> = <span class="ruby-identifier">query</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-string">&quot;WHERE&quot;</span>) <span class="ruby-operator">?</span> <span class="ruby-string">&quot;AND&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-string">&quot;WHERE&quot;</span>
196
- <span class="ruby-keyword">if</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">value</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">value</span>.<span class="ruby-identifier">empty?</span>
197
- <span class="ruby-node">&quot;#{query} #{condition} (#{self.field} IS NOT NULL AND #{self.field} != &#39;&#39;)&quot;</span>
198
- <span class="ruby-keyword">else</span>
199
- <span class="ruby-node">&quot;#{query} #{condition} #{self.field} LIKE &#39;%#{self.value}%&#39;&quot;</span>
200
- <span class="ruby-keyword">end</span>
201
-
202
- <span class="ruby-keyword">end</span>
203
- <span class="ruby-keyword">end</span></pre>
204
- </div>
205
-
206
- <div class="method-calls-super">
207
- Calls superclass method
208
- <a href="Filter_decorator.html#method-i-apply"><code>Filter_decorator#apply</code></a>
209
- </div>
210
- </div>
211
-
212
-
213
- </div>
214
-
215
- </section>
216
-
217
- </section>
218
- </main>
219
-
data/doc/Filter.html DELETED
@@ -1,148 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
- <meta name="viewport" content="width=device-width, initial-scale=1" />
7
-
8
- <title>class Filter - RDoc Documentation</title>
9
-
10
- <meta name="keywords" content="ruby,class,Filter">
11
-
12
- <meta name="description" content="Documentation for the Filter class">
13
-
14
- <script type="text/javascript">
15
- var rdoc_rel_prefix = "./";
16
- var index_rel_prefix = "./";
17
- </script>
18
-
19
- <script src="./js/navigation.js" defer></script>
20
- <script src="./js/search.js" defer></script>
21
- <script src="./js/search_index.js" defer></script>
22
- <script src="./js/searcher.js" defer></script>
23
- <script src="./js/darkfish.js" defer></script>
24
-
25
- <link href="./css/fonts.css" rel="stylesheet">
26
- <link href="./css/rdoc.css" rel="stylesheet">
27
-
28
-
29
- <body id="top" role="document" class="class">
30
- <div id="navigation-toggle" role="button" tabindex="0" aria-label="Toggle sidebar" aria-expanded="true" aria-controls="navigation">
31
- <span aria-hidden="true">&#9776;</span>
32
- </div>
33
-
34
-
35
- <nav id="navigation" role="navigation">
36
- <div id="project-navigation">
37
- <div id="home-section" role="region" title="Quick navigation" class="nav-section">
38
- <h2>
39
- <a href="./index.html" rel="home">Home</a>
40
- </h2>
41
-
42
- <div id="table-of-contents-navigation">
43
- <a href="./table_of_contents.html#pages">Pages</a>
44
- <a href="./table_of_contents.html#classes">Classes</a>
45
- <a href="./table_of_contents.html#methods">Methods</a>
46
- </div>
47
- </div>
48
-
49
- <div id="search-section" role="search" class="project-section initially-hidden">
50
- <form action="#" method="get" accept-charset="utf-8">
51
- <div id="search-field-wrapper">
52
- <input id="search-field" role="combobox" aria-label="Search"
53
- aria-autocomplete="list" aria-controls="search-results"
54
- type="text" name="search" placeholder="Search (/) for a class, method, ..." spellcheck="false"
55
- title="Type to search, Up and Down to navigate, Enter to load">
56
- </div>
57
-
58
- <ul id="search-results" aria-label="Search Results"
59
- aria-busy="false" aria-expanded="false"
60
- aria-atomic="false" class="initially-hidden"></ul>
61
- </form>
62
- </div>
63
-
64
- </div>
65
-
66
-
67
-
68
- <div id="parent-class-section" class="nav-section">
69
- <h3>Ancestors</h3>
70
- <ul><li>Object</li></ul>
71
- </div>
72
-
73
-
74
-
75
-
76
-
77
-
78
- <div class="nav-section">
79
- <h3>Instance Methods</h3>
80
- <ul class="link-list" role="directory">
81
- <li ><a href="#method-i-apply">apply</a></li>
82
- </ul>
83
- </div>
84
-
85
-
86
-
87
- <footer id="validator-badges" role="contentinfo">
88
- <p><a href="https://validator.w3.org/check/referer">Validate</a>
89
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.8.1.
90
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
91
- </footer>
92
-
93
- </nav>
94
-
95
- <main role="main" aria-labelledby="class-Filter">
96
- <h1 id="class-Filter" class="anchor-link class">
97
- class Filter
98
- </h1>
99
-
100
- <section class="description">
101
-
102
- </section>
103
-
104
- <section id="5Buntitled-5D" class="documentation-section anchor-link">
105
-
106
-
107
-
108
-
109
-
110
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section anchor-link">
111
- <header>
112
- <h3>Public Instance Methods</h3>
113
- </header>
114
-
115
- <div id="method-i-apply" class="method-detail anchor-link ">
116
- <div class="method-header">
117
- <div class="method-heading">
118
- <a href="#method-i-apply" title="Link to this method">
119
- <span class="method-name">apply</span>
120
- <span class="method-args">(filtering_obj)</span>
121
- </a>
122
- </div>
123
- </div>
124
-
125
- <div class="method-controls">
126
- <details class="method-source-toggle">
127
- <summary>Source</summary>
128
- </details>
129
- </div>
130
-
131
- <div class="method-description">
132
- <div class="method-source-code" id="apply-source">
133
- <pre><span class="ruby-comment"># File lib/models/filter/filter.rb, line 2</span>
134
- <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">apply</span>(<span class="ruby-identifier">filtering_obj</span>)
135
- <span class="ruby-identifier">filtering_obj</span>
136
- <span class="ruby-keyword">end</span></pre>
137
- </div>
138
-
139
- </div>
140
-
141
-
142
- </div>
143
-
144
- </section>
145
-
146
- </section>
147
- </main>
148
-