Skip to content

Commit

Permalink
Merge branch 'release/1.0.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
Drew committed Jan 5, 2020
2 parents b134736 + 6cc5081 commit 17e044b
Show file tree
Hide file tree
Showing 13 changed files with 15,141 additions and 11,064 deletions.
8,039 changes: 5,179 additions & 2,860 deletions docs/ast/source/factory/long-count.js.json

Large diffs are not rendered by default.

17,554 changes: 9,559 additions & 7,995 deletions docs/ast/source/lc/long-count.js.json

Large diffs are not rendered by default.

155 changes: 128 additions & 27 deletions docs/class/src/lc/long-count.js~LongCount.html
Original file line number Diff line number Diff line change
Expand Up @@ -837,6 +837,35 @@ <h1 data-ice="name">LongCount</h1>



<span class="override" data-ice="override"></span>
</td>
<td>
<div>
<p>



<span class="code" data-ice="name"><span><a href="class/src/lc/long-count.js~LongCount.html#instance-method-equal">equal</a></span></span><span class="code" data-ice="signature">(other: <span><a href="class/src/lc/long-count.js~LongCount.html">LongCount</a></span>): <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></span></span>
</p>
</div>
<div>


<div data-ice="description"><p>Given two long count dates, check if they are equal</p>
</div>
</div>
</td>
<td>


</td>
</tr>
<tr data-ice="target">
<td>
<span class="access" data-ice="access">public</span>



<span class="override" data-ice="override"></span>
</td>
<td>
Expand Down Expand Up @@ -1097,7 +1126,7 @@ <h3 data-ice="anchor" id="instance-set-bak_tun">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber147">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber156">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -1153,7 +1182,7 @@ <h3 data-ice="anchor" id="instance-get-bak_tun">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber155">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber164">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -1253,7 +1282,7 @@ <h3 data-ice="anchor" id="instance-set-k_atun">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber131">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber140">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -1309,7 +1338,7 @@ <h3 data-ice="anchor" id="instance-get-k_atun">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber139">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber148">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -1365,7 +1394,7 @@ <h3 data-ice="anchor" id="instance-get-k_in">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber91">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber100">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -1421,7 +1450,7 @@ <h3 data-ice="anchor" id="instance-set-k_in">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber83">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber92">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -1477,7 +1506,7 @@ <h3 data-ice="anchor" id="instance-set-kalabtun">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber179">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber188">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -1533,7 +1562,7 @@ <h3 data-ice="anchor" id="instance-get-kalabtun">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber187">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber196">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -1589,7 +1618,7 @@ <h3 data-ice="anchor" id="instance-set-kinchiltun">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber195">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber204">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -1645,7 +1674,7 @@ <h3 data-ice="anchor" id="instance-get-kinchiltun">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber203">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber212">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -1701,7 +1730,7 @@ <h3 data-ice="anchor" id="instance-get-length">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber75">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber84">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -1757,7 +1786,7 @@ <h3 data-ice="anchor" id="instance-get-lord_of_night">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber211">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber220">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -1856,7 +1885,7 @@ <h3 data-ice="anchor" id="instance-set-piktun">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber163">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber172">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -1912,7 +1941,7 @@ <h3 data-ice="anchor" id="instance-get-piktun">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber171">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber180">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2012,7 +2041,7 @@ <h3 data-ice="anchor" id="instance-get-tun">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber123">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber132">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2068,7 +2097,7 @@ <h3 data-ice="anchor" id="instance-set-tun">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber115">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber124">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2124,7 +2153,7 @@ <h3 data-ice="anchor" id="instance-get-winal">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber107">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber116">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2180,7 +2209,7 @@ <h3 data-ice="anchor" id="instance-set-winal">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber99">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber108">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2239,7 +2268,7 @@ <h3 data-ice="anchor" id="instance-method-build_calendar_round">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber261">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber270">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2294,7 +2323,7 @@ <h3 data-ice="anchor" id="instance-method-build_full_date">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber271">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber280">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2349,7 +2378,7 @@ <h3 data-ice="anchor" id="instance-method-clone">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber41">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber50">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2392,6 +2421,78 @@ <h4>Return:</h4>



</div>
<div class="detail" data-ice="detail">
<h3 data-ice="anchor" id="instance-method-equal">
<span class="access" data-ice="access">public</span>





<span class="code" data-ice="name">equal</span><span class="code" data-ice="signature">(other: <span><a href="class/src/lc/long-count.js~LongCount.html">LongCount</a></span>): <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></span></span>
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber42">source</a></span></span>
</span>
</h3>




<div data-ice="description"><p>Given two long count dates, check if they are equal</p>
</div>



<div data-ice="properties"><div data-ice="properties">
<h4 data-ice="title">Params:</h4>
<table class="params">
<thead>
<tr><td>Name</td><td>Type</td><td>Attribute</td><td>Description</td></tr>
</thead>
<tbody>

<tr data-ice="property" data-depth="0">
<td data-ice="name" class="code" data-depth="0">other</td>
<td data-ice="type" class="code"><span><a href="class/src/lc/long-count.js~LongCount.html">LongCount</a></span></td>
<td data-ice="appendix"></td>
<td data-ice="description"></td>
</tr>
</tbody>
</table>
</div>
</div>

<div class="return-params" data-ice="returnParams">
<h4>Return:</h4>
<table>
<tbody>
<tr>
<td class="return-type code" data-ice="returnType"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></span></td>

</tr>
</tbody>
</table>
<div data-ice="returnProperties">
</div>
</div>















</div>
<div class="detail" data-ice="detail">
<h3 data-ice="anchor" id="instance-method-get_date_sections">
Expand All @@ -2405,7 +2506,7 @@ <h3 data-ice="anchor" id="instance-method-get_date_sections">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber50">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber59">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2477,7 +2578,7 @@ <h3 data-ice="anchor" id="instance-method-get_position">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber243">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber252">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2533,7 +2634,7 @@ <h3 data-ice="anchor" id="instance-method-is_partial">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber230">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber239">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2590,7 +2691,7 @@ <h3 data-ice="anchor" id="instance-method-is_valid">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber221">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber230">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2646,7 +2747,7 @@ <h3 data-ice="anchor" id="instance-method-toString">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber282">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber291">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2704,7 +2805,7 @@ <h3 data-ice="anchor" id="instance-method-set_date_sections">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber65">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lc/long-count.js.html#lineNumber74">source</a></span></span>
</span>
</h3>

Expand Down
8 changes: 4 additions & 4 deletions docs/coverage.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"coverage": "100%",
"expectCount": 155,
"actualCount": 155,
"expectCount": 156,
"actualCount": 156,
"files": {
"src/cr/calendar-round.js": {
"expectCount": 15,
Expand Down Expand Up @@ -49,8 +49,8 @@
"undocumentLines": []
},
"src/lc/long-count.js": {
"expectCount": 36,
"actualCount": 36,
"expectCount": 37,
"actualCount": 37,
"undocumentLines": []
},
"src/lc/night/lord-of-night.js": {
Expand Down
9 changes: 9 additions & 0 deletions docs/file/src/factory/long-count.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@
*/
parse(raw) {
let parts = raw.split(&apos;.&apos;);
if (parts.length &lt; 5) {
parts = parts.reverse();
for (let i = 0; i &lt; 5; i++) {
if (parts[i] === undefined) {
parts[i] = &apos;0&apos;;
}
}
parts = parts.reverse();
}
for (let i = 0; i &lt; parts.length; i++) {
if (i === 0) {
if (parts[i].indexOf(&apos; &apos;) &gt;= 0) {
Expand Down
Loading

0 comments on commit 17e044b

Please sign in to comment.