student_mvp 0.1.7 → 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 +36 -1
  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
@@ -1,183 +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 YAML_storage_strategy - RDoc Documentation</title>
9
-
10
- <meta name="keywords" content="ruby,class,YAML_storage_strategy">
11
-
12
- <meta name="description" content="Documentation for the YAML_storage_strategy 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="Data_storage_strategy.html">Data_storage_strategy</a><ul><li>Object</li></ul></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-read">read</a></li>
82
- <li ><a href="#method-i-write">write</a></li>
83
- </ul>
84
- </div>
85
-
86
-
87
-
88
- <footer id="validator-badges" role="contentinfo">
89
- <p><a href="https://validator.w3.org/check/referer">Validate</a>
90
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.8.1.
91
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
92
- </footer>
93
-
94
- </nav>
95
-
96
- <main role="main" aria-labelledby="class-YAML_storage_strategy">
97
- <h1 id="class-YAML_storage_strategy" class="anchor-link class">
98
- class YAML_storage_strategy
99
- </h1>
100
-
101
- <section class="description">
102
-
103
- </section>
104
-
105
- <section id="5Buntitled-5D" class="documentation-section anchor-link">
106
-
107
-
108
-
109
-
110
-
111
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section anchor-link">
112
- <header>
113
- <h3>Public Instance Methods</h3>
114
- </header>
115
-
116
- <div id="method-i-read" class="method-detail anchor-link ">
117
- <div class="method-header">
118
- <div class="method-heading">
119
- <a href="#method-i-read" title="Link to this method">
120
- <span class="method-name">read</span>
121
- <span class="method-args">(file_path)</span>
122
- </a>
123
- </div>
124
- </div>
125
-
126
- <div class="method-controls">
127
- <details class="method-source-toggle">
128
- <summary>Source</summary>
129
- </details>
130
- </div>
131
-
132
- <div class="method-description">
133
- <div class="method-source-code" id="read-source">
134
- <pre><span class="ruby-comment"># File lib/models/data_storage_strategy/YAML_storage_strategy.rb, line 7</span>
135
- <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">read</span>(<span class="ruby-identifier">file_path</span>)
136
- <span class="ruby-keyword">return</span> [] <span class="ruby-keyword">unless</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">file_path</span>)
137
- <span class="ruby-identifier">data</span> = <span class="ruby-constant">YAML</span>.<span class="ruby-identifier">safe_load</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">file_path</span>), <span class="ruby-value">permitted_classes:</span> [<span class="ruby-constant">Date</span>, <span class="ruby-constant">Symbol</span>]) <span class="ruby-operator">||</span> []
138
- <span class="ruby-identifier">data</span>.<span class="ruby-identifier">map</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">student</span><span class="ruby-operator">|</span>
139
- <span class="ruby-constant">Student</span>.<span class="ruby-identifier">new_from_hash</span>(<span class="ruby-identifier">student</span>)
140
- <span class="ruby-keyword">end</span>
141
- <span class="ruby-keyword">end</span></pre>
142
- </div>
143
- <p>read from yaml file</p>
144
- </div>
145
-
146
-
147
- </div>
148
-
149
- <div id="method-i-write" class="method-detail anchor-link ">
150
- <div class="method-header">
151
- <div class="method-heading">
152
- <a href="#method-i-write" title="Link to this method">
153
- <span class="method-name">write</span>
154
- <span class="method-args">(file_path, students)</span>
155
- </a>
156
- </div>
157
- </div>
158
-
159
- <div class="method-controls">
160
- <details class="method-source-toggle">
161
- <summary>Source</summary>
162
- </details>
163
- </div>
164
-
165
- <div class="method-description">
166
- <div class="method-source-code" id="write-source">
167
- <pre><span class="ruby-comment"># File lib/models/data_storage_strategy/YAML_storage_strategy.rb, line 16</span>
168
- <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">write</span>(<span class="ruby-identifier">file_path</span>, <span class="ruby-identifier">students</span>)
169
- <span class="ruby-identifier">data</span> = <span class="ruby-identifier">students</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">student</span><span class="ruby-operator">|</span> <span class="ruby-identifier">student</span>.<span class="ruby-identifier">to_h</span> }
170
- <span class="ruby-constant">File</span>.<span class="ruby-identifier">write</span>(<span class="ruby-identifier">file_path</span>, <span class="ruby-identifier">data</span>.<span class="ruby-identifier">to_yaml</span>)
171
- <span class="ruby-keyword">end</span></pre>
172
- </div>
173
- <p>read to yaml file</p>
174
- </div>
175
-
176
-
177
- </div>
178
-
179
- </section>
180
-
181
- </section>
182
- </main>
183
-
data/doc/bin/setup.html DELETED
@@ -1,96 +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>setup - RDoc Documentation</title>
9
-
10
- <meta name="keywords" content="ruby,documentation,setup">
11
- <meta name="description" content="setup: #!/usr/bin/env bash set -euo pipefail IFS=$&#39;\n\t&#39; set -vx bundle install # Do any other automated setup that you need to do here">
12
-
13
- <script type="text/javascript">
14
- var rdoc_rel_prefix = "../";
15
- var index_rel_prefix = "../";
16
- </script>
17
-
18
- <script src="../js/navigation.js" defer></script>
19
- <script src="../js/search.js" defer></script>
20
- <script src="../js/search_index.js" defer></script>
21
- <script src="../js/searcher.js" defer></script>
22
- <script src="../js/darkfish.js" defer></script>
23
-
24
- <link href="../css/fonts.css" rel="stylesheet">
25
- <link href="../css/rdoc.css" rel="stylesheet">
26
-
27
-
28
- <body id="top" role="document" class="file">
29
- <div id="navigation-toggle" role="button" tabindex="0" aria-label="Toggle sidebar" aria-expanded="true" aria-controls="navigation">
30
- <span aria-hidden="true">&#9776;</span>
31
- </div>
32
-
33
-
34
- <nav id="navigation" role="navigation">
35
- <div id="project-navigation">
36
- <div id="home-section" role="region" title="Quick navigation" class="nav-section">
37
- <h2>
38
- <a href="../index.html" rel="home">Home</a>
39
- </h2>
40
-
41
- <div id="table-of-contents-navigation">
42
- <a href="../table_of_contents.html#pages">Pages</a>
43
- <a href="../table_of_contents.html#classes">Classes</a>
44
- <a href="../table_of_contents.html#methods">Methods</a>
45
- </div>
46
- </div>
47
-
48
- <div id="search-section" role="search" class="project-section initially-hidden">
49
- <form action="#" method="get" accept-charset="utf-8">
50
- <div id="search-field-wrapper">
51
- <input id="search-field" role="combobox" aria-label="Search"
52
- aria-autocomplete="list" aria-controls="search-results"
53
- type="text" name="search" placeholder="Search (/) for a class, method, ..." spellcheck="false"
54
- title="Type to search, Up and Down to navigate, Enter to load">
55
- </div>
56
-
57
- <ul id="search-results" aria-label="Search Results"
58
- aria-busy="false" aria-expanded="false"
59
- aria-atomic="false" class="initially-hidden"></ul>
60
- </form>
61
- </div>
62
-
63
- </div>
64
-
65
-
66
-
67
- <div id="fileindex-section" class="nav-section">
68
- <h3>Pages</h3>
69
-
70
- <ul class="link-list">
71
- <li><a href="../Gemfile.html">Gemfile</a>
72
- <li><a href="../README_md.html">README</a>
73
- <li><a href="../Rakefile.html">Rakefile</a>
74
- <li><a href="../bin/setup.html">setup</a>
75
- </ul>
76
- </div>
77
-
78
-
79
- <footer id="validator-badges" role="contentinfo">
80
- <p><a href="https://validator.w3.org/check/referer">Validate</a>
81
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.8.1.
82
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
83
- </footer>
84
-
85
- </nav>
86
-
87
- <main role="main" aria-label="Page bin/setup">
88
-
89
- <p>!/usr/bin/env bash set -euo pipefail IFS=$‘nt’ set -vx</p>
90
-
91
- <p>bundle install</p>
92
-
93
- <p># Do any other automated setup that you need to do here</p>
94
-
95
- </main>
96
-