jg_piawe 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -3
  3. data/README.md +8 -1
  4. data/coverage/.last_run.json +5 -0
  5. data/coverage/.resultset.json +835 -0
  6. data/coverage/.resultset.json.lock +0 -0
  7. data/coverage/assets/0.10.0/application.css +799 -0
  8. data/coverage/assets/0.10.0/application.js +1707 -0
  9. data/coverage/assets/0.10.0/colorbox/border.png +0 -0
  10. data/coverage/assets/0.10.0/colorbox/controls.png +0 -0
  11. data/coverage/assets/0.10.0/colorbox/loading.gif +0 -0
  12. data/coverage/assets/0.10.0/colorbox/loading_background.png +0 -0
  13. data/coverage/assets/0.10.0/favicon_green.png +0 -0
  14. data/coverage/assets/0.10.0/favicon_red.png +0 -0
  15. data/coverage/assets/0.10.0/favicon_yellow.png +0 -0
  16. data/coverage/assets/0.10.0/loading.gif +0 -0
  17. data/coverage/assets/0.10.0/magnify.png +0 -0
  18. data/coverage/assets/0.10.0/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  19. data/coverage/assets/0.10.0/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  20. data/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  21. data/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  22. data/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  23. data/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  24. data/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  25. data/coverage/assets/0.10.0/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  26. data/coverage/assets/0.10.0/smoothness/images/ui-icons_222222_256x240.png +0 -0
  27. data/coverage/assets/0.10.0/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  28. data/coverage/assets/0.10.0/smoothness/images/ui-icons_454545_256x240.png +0 -0
  29. data/coverage/assets/0.10.0/smoothness/images/ui-icons_888888_256x240.png +0 -0
  30. data/coverage/assets/0.10.0/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  31. data/coverage/index.html +5270 -0
  32. data/doc/Piawe/FileParser.html +210 -0
  33. data/doc/Piawe/RuleSet.html +265 -0
  34. data/doc/Piawe.html +302 -0
  35. data/doc/created.rid +5 -0
  36. data/doc/css/fonts.css +167 -0
  37. data/doc/css/rdoc.css +590 -0
  38. data/doc/fonts/Lato-Light.ttf +0 -0
  39. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  40. data/doc/fonts/Lato-Regular.ttf +0 -0
  41. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  42. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  43. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  44. data/doc/images/add.png +0 -0
  45. data/doc/images/arrow_up.png +0 -0
  46. data/doc/images/brick.png +0 -0
  47. data/doc/images/brick_link.png +0 -0
  48. data/doc/images/bug.png +0 -0
  49. data/doc/images/bullet_black.png +0 -0
  50. data/doc/images/bullet_toggle_minus.png +0 -0
  51. data/doc/images/bullet_toggle_plus.png +0 -0
  52. data/doc/images/date.png +0 -0
  53. data/doc/images/delete.png +0 -0
  54. data/doc/images/find.png +0 -0
  55. data/doc/images/loadingAnimation.gif +0 -0
  56. data/doc/images/macFFBgHack.png +0 -0
  57. data/doc/images/package.png +0 -0
  58. data/doc/images/page_green.png +0 -0
  59. data/doc/images/page_white_text.png +0 -0
  60. data/doc/images/page_white_width.png +0 -0
  61. data/doc/images/plugin.png +0 -0
  62. data/doc/images/ruby.png +0 -0
  63. data/doc/images/tag_blue.png +0 -0
  64. data/doc/images/tag_green.png +0 -0
  65. data/doc/images/transparent.png +0 -0
  66. data/doc/images/wrench.png +0 -0
  67. data/doc/images/wrench_orange.png +0 -0
  68. data/doc/images/zoom.png +0 -0
  69. data/doc/index.html +84 -0
  70. data/doc/js/darkfish.js +161 -0
  71. data/doc/js/jquery.js +4 -0
  72. data/doc/js/navigation.js +142 -0
  73. data/doc/js/navigation.js.gz +0 -0
  74. data/doc/js/search.js +109 -0
  75. data/doc/js/search_index.js +1 -0
  76. data/doc/js/search_index.js.gz +0 -0
  77. data/doc/js/searcher.js +228 -0
  78. data/doc/js/searcher.js.gz +0 -0
  79. data/doc/table_of_contents.html +80 -0
  80. data/lib/piawe/rule_set.rb +4 -3
  81. data/lib/piawe/version.rb +1 -1
  82. data/lib/piawe.rb +90 -90
  83. metadata +77 -1
data/doc/Piawe.html ADDED
@@ -0,0 +1,302 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Piawe - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "./";
11
+ </script>
12
+
13
+ <script src="./js/jquery.js"></script>
14
+ <script src="./js/darkfish.js"></script>
15
+
16
+ <link href="./css/fonts.css" rel="stylesheet">
17
+ <link href="./css/rdoc.css" rel="stylesheet">
18
+
19
+
20
+
21
+ <body id="top" role="document" class="class">
22
+ <nav role="navigation">
23
+ <div id="project-navigation">
24
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
25
+ <h2>
26
+ <a href="./index.html" rel="home">Home</a>
27
+ </h2>
28
+
29
+ <div id="table-of-contents-navigation">
30
+ <a href="./table_of_contents.html#pages">Pages</a>
31
+ <a href="./table_of_contents.html#classes">Classes</a>
32
+ <a href="./table_of_contents.html#methods">Methods</a>
33
+ </div>
34
+ </div>
35
+
36
+ <div id="search-section" role="search" class="project-section initially-hidden">
37
+ <form action="#" method="get" accept-charset="utf-8">
38
+ <div id="search-field-wrapper">
39
+ <input id="search-field" role="combobox" aria-label="Search"
40
+ aria-autocomplete="list" aria-controls="search-results"
41
+ type="text" name="search" placeholder="Search" spellcheck="false"
42
+ title="Type to search, Up and Down to navigate, Enter to load">
43
+ </div>
44
+
45
+ <ul id="search-results" aria-label="Search Results"
46
+ aria-busy="false" aria-expanded="false"
47
+ aria-atomic="false" class="initially-hidden"></ul>
48
+ </form>
49
+ </div>
50
+
51
+ </div>
52
+
53
+
54
+
55
+ <div id="class-metadata">
56
+
57
+ <div id="parent-class-section" class="nav-section">
58
+ <h3>Parent</h3>
59
+
60
+
61
+ <p class="link">Object
62
+
63
+ </div>
64
+
65
+ <div id="includes-section" class="nav-section">
66
+ <h3>Included Modules</h3>
67
+
68
+ <ul class="link-list">
69
+
70
+
71
+ <li><span class="include">RolePlaying::Context</span>
72
+
73
+
74
+ </ul>
75
+ </div>
76
+
77
+
78
+ <!-- Method Quickref -->
79
+ <div id="method-list-section" class="nav-section">
80
+ <h3>Methods</h3>
81
+
82
+ <ul class="link-list" role="directory">
83
+
84
+ <li ><a href="#method-c-new">::new</a>
85
+
86
+ <li ><a href="#method-i-report">#report</a>
87
+
88
+ </ul>
89
+ </div>
90
+
91
+ </div>
92
+ </nav>
93
+
94
+ <main role="main" aria-labelledby="class-Piawe">
95
+ <h1 id="class-Piawe" class="class">
96
+ class Piawe
97
+ </h1>
98
+
99
+ <section class="description">
100
+
101
+ <p>Class to encapsulate PIAWE report generation</p>
102
+
103
+ </section>
104
+
105
+
106
+
107
+
108
+ <section id="5Buntitled-5D" class="documentation-section">
109
+
110
+
111
+
112
+
113
+
114
+ <section class="constants-list">
115
+ <header>
116
+ <h3>Constants</h3>
117
+ </header>
118
+ <dl>
119
+
120
+ <dt id="VERSION">VERSION
121
+
122
+ <dd>
123
+
124
+
125
+ </dl>
126
+ </section>
127
+
128
+
129
+
130
+
131
+
132
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
133
+ <header>
134
+ <h3>Public Class Methods</h3>
135
+ </header>
136
+
137
+
138
+ <div id="method-c-new" class="method-detail ">
139
+
140
+ <div class="method-heading">
141
+ <span class="method-name">new</span><span
142
+ class="method-args">( people_array, rules_array )</span>
143
+
144
+ <span class="method-click-advice">click to toggle source</span>
145
+
146
+ </div>
147
+
148
+
149
+ <div class="method-description">
150
+
151
+ <p>Create a new <a href="Piawe.html">Piawe</a> instance to generate reports at
152
+ varying dates for a particular set of people and rules</p>
153
+
154
+ <h4 id="method-c-new-label-Parameters">Parameters<span><a href="#method-c-new-label-Parameters">&para;</a> <a href="#top">&uarr;</a></span></h4>
155
+ <ul><li>
156
+ <p><code>people_array</code> - An array of people hashes</p>
157
+ </li><li>
158
+ <p><code>rules_array</code> - An array of rule hashes</p>
159
+ </li></ul>
160
+
161
+ <h4 id="method-c-new-label-People+Hash">People Hash<span><a href="#method-c-new-label-People+Hash">&para;</a> <a href="#top">&uarr;</a></span></h4>
162
+
163
+ <p>A people hash it a Ruby hash that has has the following format:</p>
164
+
165
+ <pre class="ruby">{<span class="ruby-string">&quot;people&quot;</span><span class="ruby-operator">:</span> [
166
+ {<span class="ruby-string">&quot;name&quot;</span><span class="ruby-operator">:</span> <span class="ruby-string">&quot;Ebony Boycott&quot;</span>, <span class="ruby-string">&quot;hourlyRate&quot;</span><span class="ruby-operator">:</span> <span class="ruby-value">75.0030</span>, <span class="ruby-string">&quot;overtimeRate&quot;</span><span class="ruby-operator">:</span> <span class="ruby-value">150.0000</span>, <span class="ruby-string">&quot;normalHours&quot;</span><span class="ruby-operator">:</span> <span class="ruby-value">35.0</span>, <span class="ruby-string">&quot;overtimeHours&quot;</span><span class="ruby-operator">:</span> <span class="ruby-value">7.3</span>, <span class="ruby-string">&quot;injuryDate&quot;</span><span class="ruby-operator">:</span> <span class="ruby-string">&quot;2016/05/01&quot;</span> },
167
+ {<span class="ruby-string">&quot;name&quot;</span><span class="ruby-operator">:</span> <span class="ruby-string">&quot;Geoff Rainford-Brent&quot;</span>, <span class="ruby-string">&quot;hourlyRate&quot;</span><span class="ruby-operator">:</span> <span class="ruby-value">30.1234</span>, <span class="ruby-string">&quot;overtimeRate&quot;</span><span class="ruby-operator">:</span> <span class="ruby-value">60.3456</span>, <span class="ruby-string">&quot;normalHours&quot;</span><span class="ruby-operator">:</span> <span class="ruby-value">25.0</span>, <span class="ruby-string">&quot;overtimeHours&quot;</span><span class="ruby-operator">:</span> <span class="ruby-value">10.7</span>, <span class="ruby-string">&quot;injuryDate&quot;</span><span class="ruby-operator">:</span> <span class="ruby-string">&quot;2016/08/04&quot;</span> },
168
+ {<span class="ruby-string">&quot;name&quot;</span><span class="ruby-operator">:</span> <span class="ruby-string">&quot;Meg Gillespie&quot;</span>, <span class="ruby-string">&quot;hourlyRate&quot;</span><span class="ruby-operator">:</span> <span class="ruby-value">50.0000</span>, <span class="ruby-string">&quot;overtimeRate&quot;</span><span class="ruby-operator">:</span> <span class="ruby-value">100.0000</span>, <span class="ruby-string">&quot;normalHours&quot;</span><span class="ruby-operator">:</span> <span class="ruby-value">37.5</span>, <span class="ruby-string">&quot;overtimeHours&quot;</span><span class="ruby-operator">:</span> <span class="ruby-value">0.0</span>, <span class="ruby-string">&quot;injuryDate&quot;</span><span class="ruby-operator">:</span> <span class="ruby-string">&quot;2015/12/31&quot;</span> },
169
+ {<span class="ruby-string">&quot;name&quot;</span><span class="ruby-operator">:</span> <span class="ruby-string">&quot;Jason Lanning&quot;</span>, <span class="ruby-string">&quot;hourlyRate&quot;</span><span class="ruby-operator">:</span> <span class="ruby-value">40.0055</span>, <span class="ruby-string">&quot;overtimeRate&quot;</span><span class="ruby-operator">:</span> <span class="ruby-value">90.9876</span>, <span class="ruby-string">&quot;normalHours&quot;</span><span class="ruby-operator">:</span> <span class="ruby-value">40.0</span>, <span class="ruby-string">&quot;overtimeHours&quot;</span><span class="ruby-operator">:</span> <span class="ruby-value">12.4</span>, <span class="ruby-string">&quot;injuryDate&quot;</span><span class="ruby-operator">:</span> <span class="ruby-string">&quot;2013/01/01&quot;</span> }
170
+ ]}
171
+ </pre>
172
+ <ul><li>
173
+ <p>name - The person&#39;s name.</p>
174
+ </li><li>
175
+ <p>hourlyRate - The person&#39;s hourly rate of pay, calculated according to
176
+ PIAWE rules.</p>
177
+ </li><li>
178
+ <p>overtimeRate - The person&#39;s overtime rate of pay, calculated according
179
+ to PIAWE rules.</p>
180
+ </li><li>
181
+ <p>normalHours - The person&#39;s normal weekly hours, calculated according to
182
+ PIAWE rules.</p>
183
+ </li><li>
184
+ <p>overtimeHours - The person&#39;s normal weekly overtime hours, calculated
185
+ according to PIAWE rules.</p>
186
+ </li><li>
187
+ <p>injuryDate - The date of the injury that caused the person to cease work.</p>
188
+ </li></ul>
189
+
190
+ <h4 id="method-c-new-label-Rule+Hash">Rule Hash<span><a href="#method-c-new-label-Rule+Hash">&para;</a> <a href="#top">&uarr;</a></span></h4>
191
+
192
+ <p>A rule hash it a Ruby hash that has has the following format:</p>
193
+
194
+ <pre class="ruby">{<span class="ruby-string">&quot;rules&quot;</span><span class="ruby-operator">:</span>[
195
+ {<span class="ruby-string">&quot;applicableWeeks&quot;</span><span class="ruby-operator">:</span> <span class="ruby-string">&quot;1-26&quot;</span>, <span class="ruby-string">&quot;percentagePayable&quot;</span><span class="ruby-operator">:</span> <span class="ruby-value">90</span>, <span class="ruby-string">&quot;overtimeIncluded&quot;</span><span class="ruby-operator">:</span> <span class="ruby-keyword">true</span>},
196
+ {<span class="ruby-string">&quot;applicableWeeks&quot;</span><span class="ruby-operator">:</span> <span class="ruby-string">&quot;27-52&quot;</span>, <span class="ruby-string">&quot;percentagePayable&quot;</span><span class="ruby-operator">:</span> <span class="ruby-value">80</span>, <span class="ruby-string">&quot;overtimeIncluded&quot;</span><span class="ruby-operator">:</span> <span class="ruby-keyword">true</span>},
197
+ {<span class="ruby-string">&quot;applicableWeeks&quot;</span><span class="ruby-operator">:</span> <span class="ruby-string">&quot;53-79&quot;</span>, <span class="ruby-string">&quot;percentagePayable&quot;</span><span class="ruby-operator">:</span> <span class="ruby-value">70</span>, <span class="ruby-string">&quot;overtimeIncluded&quot;</span><span class="ruby-operator">:</span> <span class="ruby-keyword">true</span>},
198
+ {<span class="ruby-string">&quot;applicableWeeks&quot;</span><span class="ruby-operator">:</span> <span class="ruby-string">&quot;80-104&quot;</span>, <span class="ruby-string">&quot;percentagePayable&quot;</span><span class="ruby-operator">:</span> <span class="ruby-value">60</span>, <span class="ruby-string">&quot;overtimeIncluded&quot;</span><span class="ruby-operator">:</span> <span class="ruby-keyword">false</span>},
199
+ {<span class="ruby-string">&quot;applicableWeeks&quot;</span><span class="ruby-operator">:</span> <span class="ruby-string">&quot;105+&quot;</span>, <span class="ruby-string">&quot;percentagePayable&quot;</span><span class="ruby-operator">:</span> <span class="ruby-value">10</span>, <span class="ruby-string">&quot;overtimeIncluded&quot;</span><span class="ruby-operator">:</span> <span class="ruby-keyword">false</span>}
200
+ ]}
201
+ </pre>
202
+ <ul><li>
203
+ <p>applicableWeeks - A String that indicates the range of injury weeks during
204
+ which the rule applies - Week 1 starts at the day of the injury, and Week 2
205
+ starts on the 7th day after the injury, and so on. It can have two
206
+ formats: either a start week and end week joined by a dash, or a start week
207
+ followed by a plus sign, which indicates the rule should apply to all later
208
+ weeks as well. The first rule must have a start week of 1, the last rule
209
+ must use the plus sign syntax, and all intervening rules must have a start
210
+ week that is one greater than the end week of the preceeding rule.</p>
211
+ </li><li>
212
+ <p>percentagePayable - A Numeric that indicates the percentage of Average
213
+ Weekly Earnings that are paid when this rule applies.</p>
214
+ </li><li>
215
+ <p>overtimeIncluded - A TrueClass or FalseClass that indicates whether
216
+ overtime earnings should be considered part of Average Weekly Earnings when
217
+ this rule applies.</p>
218
+ </li></ul>
219
+
220
+
221
+
222
+
223
+ <div class="method-source-code" id="new-source">
224
+ <pre><span class="ruby-comment"># File lib/piawe.rb, line 61</span>
225
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>( <span class="ruby-identifier">people_array</span>, <span class="ruby-identifier">rules_array</span> )
226
+ <span class="ruby-ivar">@rules</span> = <span class="ruby-constant">Piawe</span><span class="ruby-operator">::</span><span class="ruby-constant">RuleSet</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">rules_array</span>
227
+ <span class="ruby-ivar">@people</span> = <span class="ruby-identifier">people_array</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">person_hash</span><span class="ruby-operator">|</span> <span class="ruby-constant">Person</span>.<span class="ruby-identifier">played_by</span>(<span class="ruby-identifier">person_hash</span>) }
228
+ <span class="ruby-keyword">end</span></pre>
229
+ </div>
230
+
231
+ </div>
232
+
233
+
234
+
235
+
236
+ </div>
237
+
238
+
239
+ </section>
240
+
241
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
242
+ <header>
243
+ <h3>Public Instance Methods</h3>
244
+ </header>
245
+
246
+
247
+ <div id="method-i-report" class="method-detail ">
248
+
249
+ <div class="method-heading">
250
+ <span class="method-name">report</span><span
251
+ class="method-args">( report_date=Date.today )</span>
252
+
253
+ <span class="method-click-advice">click to toggle source</span>
254
+
255
+ </div>
256
+
257
+
258
+ <div class="method-description">
259
+
260
+ <p>Generate a PIAWE report (Ruby Hash format) for the people and rules this <a
261
+ href="Piawe.html">Piawe</a> instance encapsulates, as at the specified
262
+ report date.</p>
263
+
264
+ <h4 id="method-i-report-label-Parameters">Parameters<span><a href="#method-i-report-label-Parameters">&para;</a> <a href="#top">&uarr;</a></span></h4>
265
+ <ul><li>
266
+ <p><code>report_date</code> - The date for which the report should be
267
+ generated. Defaults to the current date</p>
268
+ </li></ul>
269
+
270
+
271
+
272
+
273
+ <div class="method-source-code" id="report-source">
274
+ <pre><span class="ruby-comment"># File lib/piawe.rb, line 73</span>
275
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">report</span>( <span class="ruby-identifier">report_date</span>=<span class="ruby-constant">Date</span>.<span class="ruby-identifier">today</span> )
276
+ {
277
+ <span class="ruby-identifier">report_date</span><span class="ruby-operator">:</span> <span class="ruby-identifier">report_date</span>.<span class="ruby-identifier">strftime</span>(<span class="ruby-string">&quot;%Y/%m/%d&quot;</span>),
278
+ <span class="ruby-identifier">report_lines</span><span class="ruby-operator">:</span> <span class="ruby-ivar">@people</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">person</span><span class="ruby-operator">|</span> <span class="ruby-ivar">@rules</span>.<span class="ruby-identifier">report_line</span>(<span class="ruby-identifier">person</span>, <span class="ruby-identifier">report_date</span>) }
279
+ }
280
+ <span class="ruby-keyword">end</span></pre>
281
+ </div>
282
+
283
+ </div>
284
+
285
+
286
+
287
+
288
+ </div>
289
+
290
+
291
+ </section>
292
+
293
+ </section>
294
+ </main>
295
+
296
+
297
+ <footer id="validator-badges" role="contentinfo">
298
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
299
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
300
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
301
+ </footer>
302
+
data/doc/created.rid ADDED
@@ -0,0 +1,5 @@
1
+ Tue, 14 Mar 2017 09:47:18 +1100
2
+ lib/piawe/rule_set.rb Tue, 14 Mar 2017 09:42:16 +1100
3
+ lib/piawe/version.rb Mon, 13 Mar 2017 22:48:47 +1100
4
+ lib/piawe/file_parser.rb Mon, 13 Mar 2017 23:20:39 +1100
5
+ lib/piawe.rb Tue, 14 Mar 2017 09:45:13 +1100
data/doc/css/fonts.css ADDED
@@ -0,0 +1,167 @@
1
+ /*
2
+ * Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/),
3
+ * with Reserved Font Name "Source". All Rights Reserved. Source is a
4
+ * trademark of Adobe Systems Incorporated in the United States and/or other
5
+ * countries.
6
+ *
7
+ * This Font Software is licensed under the SIL Open Font License, Version
8
+ * 1.1.
9
+ *
10
+ * This license is copied below, and is also available with a FAQ at:
11
+ * http://scripts.sil.org/OFL
12
+ */
13
+
14
+ @font-face {
15
+ font-family: "Source Code Pro";
16
+ font-style: normal;
17
+ font-weight: 400;
18
+ src: local("Source Code Pro"),
19
+ local("SourceCodePro-Regular"),
20
+ url("fonts/SourceCodePro-Regular.ttf") format("truetype");
21
+ }
22
+
23
+ @font-face {
24
+ font-family: "Source Code Pro";
25
+ font-style: normal;
26
+ font-weight: 700;
27
+ src: local("Source Code Pro Bold"),
28
+ local("SourceCodePro-Bold"),
29
+ url("fonts/SourceCodePro-Bold.ttf") format("truetype");
30
+ }
31
+
32
+ /*
33
+ * Copyright (c) 2010, Łukasz Dziedzic (dziedzic@typoland.com),
34
+ * with Reserved Font Name Lato.
35
+ *
36
+ * This Font Software is licensed under the SIL Open Font License, Version
37
+ * 1.1.
38
+ *
39
+ * This license is copied below, and is also available with a FAQ at:
40
+ * http://scripts.sil.org/OFL
41
+ */
42
+
43
+ @font-face {
44
+ font-family: "Lato";
45
+ font-style: normal;
46
+ font-weight: 300;
47
+ src: local("Lato Light"),
48
+ local("Lato-Light"),
49
+ url("fonts/Lato-Light.ttf") format("truetype");
50
+ }
51
+
52
+ @font-face {
53
+ font-family: "Lato";
54
+ font-style: italic;
55
+ font-weight: 300;
56
+ src: local("Lato Light Italic"),
57
+ local("Lato-LightItalic"),
58
+ url("fonts/Lato-LightItalic.ttf") format("truetype");
59
+ }
60
+
61
+ @font-face {
62
+ font-family: "Lato";
63
+ font-style: normal;
64
+ font-weight: 700;
65
+ src: local("Lato Regular"),
66
+ local("Lato-Regular"),
67
+ url("fonts/Lato-Regular.ttf") format("truetype");
68
+ }
69
+
70
+ @font-face {
71
+ font-family: "Lato";
72
+ font-style: italic;
73
+ font-weight: 700;
74
+ src: local("Lato Italic"),
75
+ local("Lato-Italic"),
76
+ url("fonts/Lato-RegularItalic.ttf") format("truetype");
77
+ }
78
+
79
+ /*
80
+ * -----------------------------------------------------------
81
+ * SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
82
+ * -----------------------------------------------------------
83
+ *
84
+ * PREAMBLE
85
+ * The goals of the Open Font License (OFL) are to stimulate worldwide
86
+ * development of collaborative font projects, to support the font creation
87
+ * efforts of academic and linguistic communities, and to provide a free and
88
+ * open framework in which fonts may be shared and improved in partnership
89
+ * with others.
90
+ *
91
+ * The OFL allows the licensed fonts to be used, studied, modified and
92
+ * redistributed freely as long as they are not sold by themselves. The
93
+ * fonts, including any derivative works, can be bundled, embedded,
94
+ * redistributed and/or sold with any software provided that any reserved
95
+ * names are not used by derivative works. The fonts and derivatives,
96
+ * however, cannot be released under any other type of license. The
97
+ * requirement for fonts to remain under this license does not apply
98
+ * to any document created using the fonts or their derivatives.
99
+ *
100
+ * DEFINITIONS
101
+ * "Font Software" refers to the set of files released by the Copyright
102
+ * Holder(s) under this license and clearly marked as such. This may
103
+ * include source files, build scripts and documentation.
104
+ *
105
+ * "Reserved Font Name" refers to any names specified as such after the
106
+ * copyright statement(s).
107
+ *
108
+ * "Original Version" refers to the collection of Font Software components as
109
+ * distributed by the Copyright Holder(s).
110
+ *
111
+ * "Modified Version" refers to any derivative made by adding to, deleting,
112
+ * or substituting -- in part or in whole -- any of the components of the
113
+ * Original Version, by changing formats or by porting the Font Software to a
114
+ * new environment.
115
+ *
116
+ * "Author" refers to any designer, engineer, programmer, technical
117
+ * writer or other person who contributed to the Font Software.
118
+ *
119
+ * PERMISSION & CONDITIONS
120
+ * Permission is hereby granted, free of charge, to any person obtaining
121
+ * a copy of the Font Software, to use, study, copy, merge, embed, modify,
122
+ * redistribute, and sell modified and unmodified copies of the Font
123
+ * Software, subject to the following conditions:
124
+ *
125
+ * 1) Neither the Font Software nor any of its individual components,
126
+ * in Original or Modified Versions, may be sold by itself.
127
+ *
128
+ * 2) Original or Modified Versions of the Font Software may be bundled,
129
+ * redistributed and/or sold with any software, provided that each copy
130
+ * contains the above copyright notice and this license. These can be
131
+ * included either as stand-alone text files, human-readable headers or
132
+ * in the appropriate machine-readable metadata fields within text or
133
+ * binary files as long as those fields can be easily viewed by the user.
134
+ *
135
+ * 3) No Modified Version of the Font Software may use the Reserved Font
136
+ * Name(s) unless explicit written permission is granted by the corresponding
137
+ * Copyright Holder. This restriction only applies to the primary font name as
138
+ * presented to the users.
139
+ *
140
+ * 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
141
+ * Software shall not be used to promote, endorse or advertise any
142
+ * Modified Version, except to acknowledge the contribution(s) of the
143
+ * Copyright Holder(s) and the Author(s) or with their explicit written
144
+ * permission.
145
+ *
146
+ * 5) The Font Software, modified or unmodified, in part or in whole,
147
+ * must be distributed entirely under this license, and must not be
148
+ * distributed under any other license. The requirement for fonts to
149
+ * remain under this license does not apply to any document created
150
+ * using the Font Software.
151
+ *
152
+ * TERMINATION
153
+ * This license becomes null and void if any of the above conditions are
154
+ * not met.
155
+ *
156
+ * DISCLAIMER
157
+ * THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
158
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
159
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
160
+ * OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
161
+ * COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
162
+ * INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
163
+ * DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
164
+ * FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
165
+ * OTHER DEALINGS IN THE FONT SOFTWARE.
166
+ */
167
+