Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
#353 - decimal speed
Browse files Browse the repository at this point in the history
  • Loading branch information
g4s8 committed Jun 20, 2018
1 parent f6ec909 commit 535c337
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 3 deletions.
2 changes: 1 addition & 1 deletion upgrades/pmo/people/0.61.1-speed.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ SOFTWARE.
<xsl:template match="person[not(speed)]">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
<speed>0</speed>
<speed>0.0</speed>
</xsl:copy>
</xsl:template>
<xsl:template match="@*|node()">
Expand Down
2 changes: 1 addition & 1 deletion xml/pmo/people/simple.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ SOFTWARE.
<jobs>12</jobs>
<projects>256</projects>
<rate>£30.50</rate>
<speed>1024</speed>
<speed>1024.1</speed>
<wallet bank="paypal">yegor256@gmail.com</wallet>
<details>YEGOR BUGAYENKO yegor256@gmail.com</details>
<links>
Expand Down
31 changes: 31 additions & 0 deletions xml/pmo/speed/-invalid-speed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2016-2018 Zerocracy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to read
the Software only. Permissions is hereby NOT GRANTED to use, copy, modify,
merge, publish, distribute, sublicense, and/or sell copies of the Software.
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 NON-INFRINGEMENT. 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.
-->
<people version="1" updated="2016-12-29T09:03:21.684Z">
<person id="yegor256">
<reputation>9140</reputation>
<jobs>12</jobs>
<projects>256</projects>
<speed>-1</speed>
<rate>£30.50</rate>
<wallet bank="paypal">yegor256@gmail.com</wallet>
<details>YEGOR BUGAYENKO yegor256@gmail.com</details>
<links>
<link rel="slack" href="7YYZZT99S"/>
</links>
</person>
</people>
2 changes: 1 addition & 1 deletion xsd/pmo/people.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ SOFTWARE.
<xs:element name="reputation" type="xs:integer"/>
<xs:element name="jobs" type="xs:integer"/>
<xs:element name="projects" type="xs:integer"/>
<xs:element name="speed" type="xs:integer"/>
<xs:element name="speed" type="speed"/>
<xs:element name="rate" type="cash" minOccurs="0"/>
<xs:element name="wallet" type="wallet" minOccurs="0"/>
<xs:element name="details" minOccurs="0" type="xs:string"/>
Expand Down
5 changes: 5 additions & 0 deletions xsd/pmo/types.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,9 @@ SOFTWARE.
<xs:pattern value="[IE][NS][TF][PJ]-[AT]"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="speed">
<xs:restriction base="xs:decimal">
<xs:minInclusive value="0"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>

0 comments on commit 535c337

Please sign in to comment.