pueri 0.11.4 → 0.11.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e6ba46055aa80656a2d982c5a80dd70a38f51706bc7eb7d6cf53f327e4695522
4
- data.tar.gz: 27d0d365013582129131ae72f3b40f77300c31ed897f89669618b5411e282e0a
3
+ metadata.gz: 1f3b838662bb2bf14a7a8ed7127507791b2b2c2d4b9f8fcc7e54fc9cfb9f5b11
4
+ data.tar.gz: 4449e5224c079ea1581c218b68a029ed216e05b0edb5c785584d89c505f8174d
5
5
  SHA512:
6
- metadata.gz: 3485877c8725ba9632fc168f919a44794cce1859413f65ea2fdec8018d767f99e52a1d1236baf285aa9973f36cfedf76e95773de4f1bc621bf061f0a0266acfc
7
- data.tar.gz: 584bf81e59ab7b87d7ba7496adfdf3e2b961a5129d0fc0d3ecfc1e6561ce0492f39d191b096c5ce2d5ff3399aa250eff341184aabf78b8c660ce836c1a897765
6
+ metadata.gz: c2b42d09f8c722e250169168159130368f4cd219e92d258257322f8057a0666f37030750e95f7204bf89fefb6d800611ff4f24fee620967d9dd9d1427b6817de
7
+ data.tar.gz: 693f8a4f4ed833ed291bc0e41a7b3e190e9362747b0c7fa407c71b3394f1a4240341bbef3f3a23060a55f7428aebc8f16696f67cbda6fe0dbb7c175f87c8e7ff
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.11.5] - `2019-11-02`
11
+
12
+ ### Changed
13
+ * Update Hippocratic License to `v1.2`.
14
+ * Update `Gemspec` license to `Hippocratic`.
15
+
10
16
  ## [0.11.4] - `2019-10-28`
11
17
 
12
18
  ### Changed
@@ -43,7 +49,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
43
49
  [PNI]: http://www.saude.gov.br/saude-de-a-z/vacinacao/calendario-vacinacao
44
50
  [DNPM]: https://www.fcm.unicamp.br/fcm/neuropediatria-conteudo-didatico/desenvolvimento-neuropsicomotor
45
51
 
46
- [Unreleased]: https://github.com/Nereare/pueri/compare/v0.11.4...HEAD
52
+ [Unreleased]: https://github.com/Nereare/pueri/compare/v0.11.5...HEAD
53
+ [0.11.5]: https://github.com/Nereare/pueri/compare/v0.11.4...v0.11.5
47
54
  [0.11.4]: https://github.com/Nereare/pueri/compare/v0.11.2...v0.11.4
48
55
  [0.11.2]: https://github.com/Nereare/pueri/compare/v0.7.0...v0.11.2
49
56
  [0.7.0]: https://github.com/Nereare/pueri/releases/tag/v0.7.0
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pueri (0.11.4)
4
+ pueri (0.11.5)
5
5
  pastel (~> 0.7.3)
6
6
  tty-table (~> 0.11.0)
7
7
 
data/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- # The Hippocratic License v1.1
1
+ # Hippocratic License v1.2
2
2
 
3
3
  Copyright `2019` `Igor Padoim`
4
4
 
@@ -6,8 +6,12 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
6
 
7
7
  * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
8
 
9
- * The Software may not be used by individuals, corporations, governments, or other groups for systems or activities that actively and knowingly endanger, harm, or otherwise threaten the physical, mental, economic, or general well-being of individuals or groups in violation of the United Nations Universal Declaration of Human Rights (https://www.un.org/en/universal-declaration-human-rights/).
9
+ * **No Harm:** The software may not be used by anyone for systems or activities that actively and knowingly endanger, harm, or otherwise threaten the physical, mental, economic, or general well-being of other individuals or groups, in violation of the United Nations Universal Declaration of Human Rights (https://www.un.org/en/universal-declaration-human-rights/).
10
+
11
+ * **Services:** If the Software is used to provide a service to others, the licensee shall, as a condition of use, require those others not to use the service in any way that violates the No Harm clause above.
12
+
13
+ * **Enforceability:** If any portion or provision of this License shall to any extent be declared illegal or unenforceable by a court of competent jurisdiction, then the remainder of this License, or the application of such portion or provision in circumstances other than those as to which it is so declared illegal or unenforceable, shall not be affected thereby, and each portion and provision of this Agreement shall be valid and enforceable to the fullest extent permitted by law.
10
14
 
11
15
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12
16
 
13
- This license is derived from the MIT License, as amended to limit the impact of the unethical use of open source software.
17
+ This Hippocratic License is an Ethical Source license (https://ethicalsource.dev) derived from the MIT License, amended to limit the impact of the unethical use of open source software.
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  [![GitHub package.json version](https://img.shields.io/github/package-json/v/Nereare/pueri)](https://github.com/Nereare/pueri/releases)
8
8
  [![Gem](https://img.shields.io/gem/v/pueri)](https://rubygems.org/gems/pueri)
9
- [![License](https://img.shields.io/badge/license-Hippocratic%20License%20v1.1-red)](LICENSE.md)
9
+ [![License](https://img.shields.io/badge/license-Hippocratic%20License%20v1.2-red)](LICENSE.md)
10
10
  [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v1.4%20adopted-ff69b4.svg)](CODE-OF-CONDUCT.md)
11
11
 
12
12
  [![Travis (.org)](https://img.shields.io/travis/Nereare/pueri)](https://travis-ci.org/Nereare/pueri)
@@ -221,7 +221,7 @@ National Program of Immunization (PNI), using the 2019 uptade.</p>
221
221
  </div>
222
222
 
223
223
  <div id="footer">
224
- Generated on Mon Oct 28 17:34:32 2019 by
224
+ Generated on Sat Nov 2 09:15:28 2019 by
225
225
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
226
226
  0.9.20 (ruby-2.5.5).
227
227
  </div>
@@ -590,7 +590,7 @@ given day.</p>
590
590
  </div>
591
591
 
592
592
  <div id="footer">
593
- Generated on Mon Oct 28 17:34:32 2019 by
593
+ Generated on Sat Nov 2 09:15:28 2019 by
594
594
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
595
595
  0.9.20 (ruby-2.5.5).
596
596
  </div>
@@ -442,7 +442,7 @@ presentation and the periodicity of takes in hours.</p>
442
442
  <li class="public ">
443
443
  <span class="summary_signature">
444
444
 
445
- <a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong> &#x21d2; String </a>
445
+ <a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong>(pretty = false) &#x21d2; String </a>
446
446
 
447
447
 
448
448
 
@@ -1002,12 +1002,12 @@ output the final dosage-per-taking:</p>
1002
1002
  <pre class="lines">
1003
1003
 
1004
1004
 
1005
- 42
1006
- 43
1007
- 44</pre>
1005
+ 48
1006
+ 49
1007
+ 50</pre>
1008
1008
  </td>
1009
1009
  <td>
1010
- <pre class="code"><span class="info file"># File 'lib/pueri/dosecalc.rb', line 42</span>
1010
+ <pre class="code"><span class="info file"># File 'lib/pueri/dosecalc.rb', line 48</span>
1011
1011
 
1012
1012
  <span class='kw'>def</span> <span class='id identifier rubyid_to_f'>to_f</span>
1013
1013
  <span class='ivar'>@result</span>
@@ -1020,7 +1020,7 @@ output the final dosage-per-taking:</p>
1020
1020
  <div class="method_details ">
1021
1021
  <h3 class="signature " id="to_s-instance_method">
1022
1022
 
1023
- #<strong>to_s</strong> &#x21d2; <tt>String</tt>
1023
+ #<strong>to_s</strong>(pretty = false) &#x21d2; <tt>String</tt>
1024
1024
 
1025
1025
 
1026
1026
 
@@ -1035,7 +1035,29 @@ output the final dosage-per-taking:</p>
1035
1035
  </div>
1036
1036
  </div>
1037
1037
  <div class="tags">
1038
+ <p class="tag_title">Parameters:</p>
1039
+ <ul class="param">
1038
1040
 
1041
+ <li>
1042
+
1043
+ <span class='name'>pretty</span>
1044
+
1045
+
1046
+ <span class='type'>(<tt>Boolean</tt>)</span>
1047
+
1048
+
1049
+ <em class="default">(defaults to: <tt>false</tt>)</em>
1050
+
1051
+
1052
+ &mdash;
1053
+ <div class='inline'>
1054
+ <p>Whether to output a colored result or not.</p>
1055
+ </div>
1056
+
1057
+ </li>
1058
+
1059
+ </ul>
1060
+
1039
1061
  <p class="tag_title">Returns:</p>
1040
1062
  <ul class="return">
1041
1063
 
@@ -1061,21 +1083,31 @@ output the final dosage-per-taking:</p>
1061
1083
  <pre class="lines">
1062
1084
 
1063
1085
 
1064
- 31
1065
1086
  32
1066
1087
  33
1067
1088
  34
1068
1089
  35
1069
- 36</pre>
1090
+ 36
1091
+ 37
1092
+ 38
1093
+ 39
1094
+ 40
1095
+ 41
1096
+ 42</pre>
1070
1097
  </td>
1071
1098
  <td>
1072
- <pre class="code"><span class="info file"># File 'lib/pueri/dosecalc.rb', line 31</span>
1073
-
1074
- <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
1075
- <span class='lbracket'>[</span>
1076
- <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>- </span><span class='embexpr_beg'>#{</span><span class='ivar'>@name</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='ivar'>@concentration</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='ivar'>@conc_unit</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/</span><span class='tstring_end'>&#39;</span></span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
1077
- <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Tomar </span><span class='embexpr_beg'>#{</span><span class='ivar'>@result</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='ivar'>@conc_unit</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_time_to_s'>time_to_s</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_days_to_s'>days_to_s</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='tstring_end'>&quot;</span></span>
1078
- <span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</span></span>
1099
+ <pre class="code"><span class="info file"># File 'lib/pueri/dosecalc.rb', line 32</span>
1100
+
1101
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span><span class='lparen'>(</span><span class='id identifier rubyid_pretty'>pretty</span> <span class='op'>=</span> <span class='kw'>false</span><span class='rparen'>)</span>
1102
+ <span class='kw'>if</span> <span class='id identifier rubyid_pretty'>pretty</span>
1103
+ <span class='id identifier rubyid_pretty_to_s'>pretty_to_s</span>
1104
+ <span class='kw'>else</span>
1105
+ <span class='lbracket'>[</span>
1106
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
1107
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>- </span><span class='embexpr_beg'>#{</span><span class='ivar'>@name</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='ivar'>@concentration</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='ivar'>@conc_unit</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/</span><span class='tstring_end'>&#39;</span></span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
1108
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Tomar </span><span class='embexpr_beg'>#{</span><span class='ivar'>@result</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='ivar'>@conc_unit</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_time_to_s'>time_to_s</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_days_to_s'>days_to_s</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='tstring_end'>&quot;</span></span>
1109
+ <span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</span></span>
1110
+ <span class='kw'>end</span>
1079
1111
  <span class='kw'>end</span></pre>
1080
1112
  </td>
1081
1113
  </tr>
@@ -1087,7 +1119,7 @@ output the final dosage-per-taking:</p>
1087
1119
  </div>
1088
1120
 
1089
1121
  <div id="footer">
1090
- Generated on Mon Oct 28 17:34:32 2019 by
1122
+ Generated on Sat Nov 2 09:15:28 2019 by
1091
1123
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1092
1124
  0.9.20 (ruby-2.5.5).
1093
1125
  </div>
@@ -440,7 +440,7 @@ presentation and the periodicity of takes in hours.</p>
440
440
  <li class="public ">
441
441
  <span class="summary_signature">
442
442
 
443
- <a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong> &#x21d2; String </a>
443
+ <a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong>(pretty = false) &#x21d2; String </a>
444
444
 
445
445
 
446
446
 
@@ -999,12 +999,12 @@ output the final dosage-per-weight-day:</p>
999
999
  <pre class="lines">
1000
1000
 
1001
1001
 
1002
- 41
1003
- 42
1004
- 43</pre>
1002
+ 47
1003
+ 48
1004
+ 49</pre>
1005
1005
  </td>
1006
1006
  <td>
1007
- <pre class="code"><span class="info file"># File 'lib/pueri/dosecheck.rb', line 41</span>
1007
+ <pre class="code"><span class="info file"># File 'lib/pueri/dosecheck.rb', line 47</span>
1008
1008
 
1009
1009
  <span class='kw'>def</span> <span class='id identifier rubyid_to_f'>to_f</span>
1010
1010
  <span class='ivar'>@result</span>
@@ -1017,7 +1017,7 @@ output the final dosage-per-weight-day:</p>
1017
1017
  <div class="method_details ">
1018
1018
  <h3 class="signature " id="to_s-instance_method">
1019
1019
 
1020
- #<strong>to_s</strong> &#x21d2; <tt>String</tt>
1020
+ #<strong>to_s</strong>(pretty = false) &#x21d2; <tt>String</tt>
1021
1021
 
1022
1022
 
1023
1023
 
@@ -1032,7 +1032,29 @@ output the final dosage-per-weight-day:</p>
1032
1032
  </div>
1033
1033
  </div>
1034
1034
  <div class="tags">
1035
+ <p class="tag_title">Parameters:</p>
1036
+ <ul class="param">
1035
1037
 
1038
+ <li>
1039
+
1040
+ <span class='name'>pretty</span>
1041
+
1042
+
1043
+ <span class='type'>(<tt>Boolean</tt>)</span>
1044
+
1045
+
1046
+ <em class="default">(defaults to: <tt>false</tt>)</em>
1047
+
1048
+
1049
+ &mdash;
1050
+ <div class='inline'>
1051
+ <p>Whether to output a colored result or not.</p>
1052
+ </div>
1053
+
1054
+ </li>
1055
+
1056
+ </ul>
1057
+
1036
1058
  <p class="tag_title">Returns:</p>
1037
1059
  <ul class="return">
1038
1060
 
@@ -1058,21 +1080,31 @@ output the final dosage-per-weight-day:</p>
1058
1080
  <pre class="lines">
1059
1081
 
1060
1082
 
1061
- 31
1062
1083
  32
1063
1084
  33
1064
1085
  34
1065
1086
  35
1066
- 36</pre>
1087
+ 36
1088
+ 37
1089
+ 38
1090
+ 39
1091
+ 40
1092
+ 41
1093
+ 42</pre>
1067
1094
  </td>
1068
1095
  <td>
1069
- <pre class="code"><span class="info file"># File 'lib/pueri/dosecheck.rb', line 31</span>
1070
-
1071
- <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
1072
- <span class='lbracket'>[</span>
1073
- <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='ivar'>@name</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='ivar'>@concentration</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='ivar'>@conc_unit</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/</span><span class='tstring_end'>&#39;</span></span><span class='embexpr_end'>}</span><span class='tstring_content'> (</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_usage'>usage</span><span class='embexpr_end'>}</span><span class='tstring_content'>)</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
1074
- <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>-&gt; Dose de </span><span class='embexpr_beg'>#{</span><span class='ivar'>@result</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='ivar'>@conc_unit</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_content'>/kg/d.</span><span class='tstring_end'>&quot;</span></span>
1075
- <span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</span></span>
1096
+ <pre class="code"><span class="info file"># File 'lib/pueri/dosecheck.rb', line 32</span>
1097
+
1098
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span><span class='lparen'>(</span><span class='id identifier rubyid_pretty'>pretty</span> <span class='op'>=</span> <span class='kw'>false</span><span class='rparen'>)</span>
1099
+ <span class='kw'>if</span> <span class='id identifier rubyid_pretty'>pretty</span>
1100
+ <span class='id identifier rubyid_pretty_to_s'>pretty_to_s</span>
1101
+ <span class='kw'>else</span>
1102
+ <span class='lbracket'>[</span>
1103
+ <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
1104
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='ivar'>@name</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='ivar'>@concentration</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='ivar'>@conc_unit</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/</span><span class='tstring_end'>&#39;</span></span><span class='embexpr_end'>}</span><span class='tstring_content'> (</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_usage'>usage</span><span class='embexpr_end'>}</span><span class='tstring_content'>)</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
1105
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'> - Dose de </span><span class='embexpr_beg'>#{</span><span class='ivar'>@result</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='ivar'>@conc_unit</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_content'>/kg/d.</span><span class='tstring_end'>&quot;</span></span>
1106
+ <span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</span></span>
1107
+ <span class='kw'>end</span>
1076
1108
  <span class='kw'>end</span></pre>
1077
1109
  </td>
1078
1110
  </tr>
@@ -1084,7 +1116,7 @@ output the final dosage-per-weight-day:</p>
1084
1116
  </div>
1085
1117
 
1086
1118
  <div id="footer">
1087
- Generated on Mon Oct 28 17:34:33 2019 by
1119
+ Generated on Sat Nov 2 09:15:28 2019 by
1088
1120
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1089
1121
  0.9.20 (ruby-2.5.5).
1090
1122
  </div>
@@ -650,7 +650,7 @@
650
650
  </div>
651
651
 
652
652
  <div id="footer">
653
- Generated on Mon Oct 28 17:34:32 2019 by
653
+ Generated on Sat Nov 2 09:15:28 2019 by
654
654
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
655
655
  0.9.20 (ruby-2.5.5).
656
656
  </div>
@@ -688,7 +688,7 @@ days. With this, process which vaccines are due by that age.</p>
688
688
  </div>
689
689
 
690
690
  <div id="footer">
691
- Generated on Mon Oct 28 17:34:32 2019 by
691
+ Generated on Sat Nov 2 09:15:28 2019 by
692
692
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
693
693
  0.9.20 (ruby-2.5.5).
694
694
  </div>
@@ -164,7 +164,7 @@
164
164
  </div>
165
165
 
166
166
  <div id="footer">
167
- Generated on Mon Oct 28 17:34:31 2019 by
167
+ Generated on Sat Nov 2 09:15:24 2019 by
168
168
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
169
169
  0.9.20 (ruby-2.5.5).
170
170
  </div>
@@ -65,7 +65,7 @@
65
65
 
66
66
  <p><a href="https://github.com/Nereare/pueri/releases"><img src="https://img.shields.io/github/package-json/v/Nereare/pueri" alt="GitHub package.json version" /></a>
67
67
  <a href="https://rubygems.org/gems/pueri"><img src="https://img.shields.io/gem/v/pueri" alt="Gem" /></a>
68
- <a href="LICENSE.md"><img src="https://img.shields.io/badge/license-Hippocratic%20License%20v1.1-red" alt="License" /></a>
68
+ <a href="LICENSE.md"><img src="https://img.shields.io/badge/license-Hippocratic%20License%20v1.2-red" alt="License" /></a>
69
69
  <a href="CODE-OF-CONDUCT.md"><img src="https://img.shields.io/badge/Contributor%20Covenant-v1.4%20adopted-ff69b4.svg" alt="Contributor Covenant" /></a></p>
70
70
 
71
71
  <p><a href="https://travis-ci.org/Nereare/pueri"><img src="https://img.shields.io/travis/Nereare/pueri" alt="Travis (.org)" /></a>
@@ -80,9 +80,20 @@
80
80
  <h2 id="installing">Installing</h2>
81
81
 
82
82
  <ol>
83
- <li>To-do.</li>
83
+ <li>Have both <a href="https://www.ruby-lang.org/">Ruby</a> and <a href="https://bundler.io/">Bundler</a> intalled.</li>
84
+ <li>Add this line to your <code>Gemfile</code>:
85
+ <code>ruby
86
+ gem 'pueri', '~&gt; 0.11.2'
87
+ </code></li>
88
+ <li>Then run:
89
+ <code>shell
90
+ bundle install
91
+ </code></li>
92
+ <li>You are now ready to use the gem!</li>
84
93
  </ol>
85
94
 
95
+ <p>Read <a href="https://nereare.github.io/pueri/">the documentation</a> for how to use it!</p>
96
+
86
97
  <h2 id="contributing">Contributing</h2>
87
98
 
88
99
  <ol>
@@ -113,7 +124,7 @@
113
124
  </div></div>
114
125
 
115
126
  <div id="footer">
116
- Generated on Mon Oct 28 17:34:32 2019 by
127
+ Generated on Sat Nov 2 09:15:27 2019 by
117
128
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
118
129
  0.9.20 (ruby-2.5.5).
119
130
  </div>
@@ -65,7 +65,7 @@
65
65
 
66
66
  <p><a href="https://github.com/Nereare/pueri/releases"><img src="https://img.shields.io/github/package-json/v/Nereare/pueri" alt="GitHub package.json version" /></a>
67
67
  <a href="https://rubygems.org/gems/pueri"><img src="https://img.shields.io/gem/v/pueri" alt="Gem" /></a>
68
- <a href="LICENSE.md"><img src="https://img.shields.io/badge/license-Hippocratic%20License%20v1.1-red" alt="License" /></a>
68
+ <a href="LICENSE.md"><img src="https://img.shields.io/badge/license-Hippocratic%20License%20v1.2-red" alt="License" /></a>
69
69
  <a href="CODE-OF-CONDUCT.md"><img src="https://img.shields.io/badge/Contributor%20Covenant-v1.4%20adopted-ff69b4.svg" alt="Contributor Covenant" /></a></p>
70
70
 
71
71
  <p><a href="https://travis-ci.org/Nereare/pueri"><img src="https://img.shields.io/travis/Nereare/pueri" alt="Travis (.org)" /></a>
@@ -80,9 +80,20 @@
80
80
  <h2 id="installing">Installing</h2>
81
81
 
82
82
  <ol>
83
- <li>To-do.</li>
83
+ <li>Have both <a href="https://www.ruby-lang.org/">Ruby</a> and <a href="https://bundler.io/">Bundler</a> intalled.</li>
84
+ <li>Add this line to your <code>Gemfile</code>:
85
+ <code>ruby
86
+ gem 'pueri', '~&gt; 0.11.2'
87
+ </code></li>
88
+ <li>Then run:
89
+ <code>shell
90
+ bundle install
91
+ </code></li>
92
+ <li>You are now ready to use the gem!</li>
84
93
  </ol>
85
94
 
95
+ <p>Read <a href="https://nereare.github.io/pueri/">the documentation</a> for how to use it!</p>
96
+
86
97
  <h2 id="contributing">Contributing</h2>
87
98
 
88
99
  <ol>
@@ -113,7 +124,7 @@
113
124
  </div></div>
114
125
 
115
126
  <div id="footer">
116
- Generated on Mon Oct 28 17:34:32 2019 by
127
+ Generated on Sat Nov 2 09:15:27 2019 by
117
128
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
118
129
  0.9.20 (ruby-2.5.5).
119
130
  </div>
@@ -100,7 +100,7 @@
100
100
  </div>
101
101
 
102
102
  <div id="footer">
103
- Generated on Mon Oct 28 17:34:32 2019 by
103
+ Generated on Sat Nov 2 09:15:27 2019 by
104
104
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
105
105
  0.9.20 (ruby-2.5.5).
106
106
  </div>
@@ -27,6 +27,7 @@ module Pueri
27
27
 
28
28
  # Outputs the calculated dosage into a prescription string.
29
29
  #
30
+ # @param pretty [Boolean] Whether to output a colored result or not.
30
31
  # @return [String] The prescription string.
31
32
  def to_s(pretty = false)
32
33
  if pretty
@@ -27,6 +27,7 @@ module Pueri
27
27
 
28
28
  # Outputs the calculated dosage as a string.
29
29
  #
30
+ # @param pretty [Boolean] Whether to output a colored result or not.
30
31
  # @return [String] The dosage-per-weight-day string.
31
32
  def to_s(pretty = false)
32
33
  if pretty
@@ -6,7 +6,7 @@
6
6
  # of Immunization (PNI), using the 2019 uptade.
7
7
  module Pueri
8
8
  # Sets the current version of the gem
9
- @version = '0.11.4'
9
+ @version = '0.11.5'
10
10
 
11
11
  # Returns the Gem's current version.
12
12
  #
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "Pueri",
3
3
  "description": "Um script em Ruby para ajudar o dia-a-dia de médicos e enfermeiros de Atenção Básica.",
4
- "version": "0.11.4",
4
+ "version": "0.11.5",
5
5
  "maintainers": [
6
6
  {
7
7
  "name": "Igor Padoim",
@@ -12,5 +12,5 @@
12
12
  "bugs": {
13
13
  "web": "https://github.com/Nereare/pueri/issues"
14
14
  },
15
- "license": "MIT"
15
+ "license": "Hippocratic"
16
16
  }
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.version = Pueri.version
10
10
  spec.authors = ['Igor Padoim']
11
11
  spec.email = ['igorpadoim@gmail.com']
12
- spec.license = 'Nonstandard'
12
+ spec.license = 'Hippocratic'
13
13
 
14
14
  spec.summary = 'Um script em Ruby para ajudar o dia-a-dia de médicos e'\
15
15
  ' enfermeiros de Atenção Básica.'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pueri
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.4
4
+ version: 0.11.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Padoim
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-28 00:00:00.000000000 Z
11
+ date: 2019-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -140,7 +140,7 @@ files:
140
140
  - pueri.gemspec
141
141
  homepage: https://nereare.github.io/pueri/
142
142
  licenses:
143
- - Nonstandard
143
+ - Hippocratic
144
144
  metadata:
145
145
  homepage_uri: https://nereare.github.io/pueri/
146
146
  source_code_uri: https://github.com/Nereare/pueri