roma-client 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +22 -15
- data/Gemfile +2 -0
- data/Gemfile.lock +34 -18
- data/README.md +4 -0
- data/lib/roma/client/client_pool.rb +15 -25
- data/lib/roma/client/client_rttable.rb +1 -2
- data/lib/roma/client/tools/showbalance.rb +0 -1
- data/lib/roma/client/version.rb +1 -1
- data/spec/roma/client/client_pool_spec.rb +133 -173
- data/spec/spec_helper.rb +9 -0
- metadata +3 -79
- data/doc/CHANGELOG_md.html +0 -119
- data/doc/README_md.html +0 -161
- data/doc/Roma.html +0 -95
- data/doc/Roma/Client.html +0 -95
- data/doc/Roma/Client/ClientPool.html +0 -716
- data/doc/Roma/Client/ClientRoutingTable.html +0 -495
- data/doc/Roma/Client/ConPool.html +0 -484
- data/doc/Roma/Client/Plugin.html +0 -95
- data/doc/Roma/Client/Plugin/Alist.html +0 -1276
- data/doc/Roma/Client/Plugin/Map.html +0 -531
- data/doc/Roma/Client/Plugin/MapCount.html +0 -401
- data/doc/Roma/Client/Proxy.html +0 -95
- data/doc/Roma/Client/Proxy/ClientHandler.html +0 -273
- data/doc/Roma/Client/Proxy/Conpool.html +0 -394
- data/doc/Roma/Client/Proxy/Daemon.html +0 -305
- data/doc/Roma/Client/Proxy/RomaHandler.html +0 -217
- data/doc/Roma/Client/RomaClient.html +0 -1339
- data/doc/Roma/Client/Sender.html +0 -482
- data/doc/Roma/Client/Stats.html +0 -162
- data/doc/Roma/Client/VERSION.html +0 -141
- data/doc/Roma/Logging.html +0 -95
- data/doc/Roma/Logging/RLogger.html +0 -786
- data/doc/Roma/Logging/RLogger/ExtLogDev.html +0 -159
- data/doc/Roma/Logging/RLogger/ExtShiftAge.html +0 -95
- data/doc/Roma/Logging/RLogger/ExtTrace.html +0 -109
- data/doc/Roma/Logging/RLogger/Severity.html +0 -139
- data/doc/Roma/Routing.html +0 -95
- data/doc/Roma/Routing/RoutingData.html +0 -912
- data/doc/Roma/Routing/RoutingData/RandomNodeListMaker.html +0 -311
- data/doc/created.rid +0 -20
- data/doc/css/fonts.css +0 -167
- data/doc/css/rdoc.css +0 -590
- data/doc/fonts/Lato-Light.ttf +0 -0
- data/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/fonts/Lato-Regular.ttf +0 -0
- data/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +0 -210
- data/doc/js/darkfish.js +0 -161
- data/doc/js/jquery.js +0 -4
- data/doc/js/navigation.js +0 -142
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search.js +0 -109
- data/doc/js/search_index.js +0 -1
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js +0 -228
- data/doc/js/searcher.js.gz +0 -0
- data/doc/table_of_contents.html +0 -972
- data/lib/roma/client/routing/routing_data.rb +0 -241
@@ -1,311 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta charset=" UTF-8">
|
6
|
-
|
7
|
-
<title>class Roma::Routing::RoutingData::RandomNodeListMaker - ROMA documents</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
|
-
|
66
|
-
|
67
|
-
<!-- Method Quickref -->
|
68
|
-
<div id="method-list-section" class="nav-section">
|
69
|
-
<h3>Methods</h3>
|
70
|
-
|
71
|
-
<ul class="link-list" role="directory">
|
72
|
-
|
73
|
-
<li ><a href="#method-c-new">::new</a>
|
74
|
-
|
75
|
-
<li ><a href="#method-i-get_other_one">#get_other_one</a>
|
76
|
-
|
77
|
-
<li ><a href="#method-i-get_other_one_repethost">#get_other_one_repethost</a>
|
78
|
-
|
79
|
-
<li ><a href="#method-i-list">#list</a>
|
80
|
-
|
81
|
-
</ul>
|
82
|
-
</div>
|
83
|
-
|
84
|
-
</div>
|
85
|
-
</nav>
|
86
|
-
|
87
|
-
<main role="main" aria-labelledby="class-Roma::Routing::RoutingData::RandomNodeListMaker">
|
88
|
-
<h1 id="class-Roma::Routing::RoutingData::RandomNodeListMaker" class="class">
|
89
|
-
class Roma::Routing::RoutingData::RandomNodeListMaker
|
90
|
-
</h1>
|
91
|
-
|
92
|
-
<section class="description">
|
93
|
-
|
94
|
-
</section>
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
110
|
-
<header>
|
111
|
-
<h3>Public Class Methods</h3>
|
112
|
-
</header>
|
113
|
-
|
114
|
-
|
115
|
-
<div id="method-c-new" class="method-detail ">
|
116
|
-
|
117
|
-
<div class="method-heading">
|
118
|
-
<span class="method-name">new</span><span
|
119
|
-
class="method-args">(nodes,repethost)</span>
|
120
|
-
|
121
|
-
<span class="method-click-advice">click to toggle source</span>
|
122
|
-
|
123
|
-
</div>
|
124
|
-
|
125
|
-
|
126
|
-
<div class="method-description">
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
<div class="method-source-code" id="new-source">
|
134
|
-
<pre><span class="ruby-comment"># File lib/roma/client/routing/routing_data.rb, line 186</span>
|
135
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">nodes</span>,<span class="ruby-identifier">repethost</span>)
|
136
|
-
<span class="ruby-ivar">@repethost</span>=<span class="ruby-identifier">repethost</span>
|
137
|
-
<span class="ruby-ivar">@nodes</span>=<span class="ruby-identifier">nodes</span>
|
138
|
-
<span class="ruby-ivar">@host_idx</span>={}
|
139
|
-
<span class="ruby-identifier">nodes</span>.<span class="ruby-identifier">each</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">nid</span><span class="ruby-operator">|</span>
|
140
|
-
<span class="ruby-identifier">h</span>,<span class="ruby-identifier">p</span>=<span class="ruby-identifier">nid</span>.<span class="ruby-identifier">split</span>(<span class="ruby-string">'_'</span>)
|
141
|
-
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@host_idx</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-identifier">h</span>)
|
142
|
-
<span class="ruby-ivar">@host_idx</span>[<span class="ruby-identifier">h</span>] <span class="ruby-operator"><<</span> <span class="ruby-identifier">nid</span>
|
143
|
-
<span class="ruby-keyword">else</span>
|
144
|
-
<span class="ruby-ivar">@host_idx</span>[<span class="ruby-identifier">h</span>]=[<span class="ruby-identifier">nid</span>]
|
145
|
-
<span class="ruby-keyword">end</span>
|
146
|
-
}
|
147
|
-
<span class="ruby-keyword">end</span></pre>
|
148
|
-
</div>
|
149
|
-
|
150
|
-
</div>
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
</div>
|
156
|
-
|
157
|
-
|
158
|
-
</section>
|
159
|
-
|
160
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
161
|
-
<header>
|
162
|
-
<h3>Public Instance Methods</h3>
|
163
|
-
</header>
|
164
|
-
|
165
|
-
|
166
|
-
<div id="method-i-get_other_one" class="method-detail ">
|
167
|
-
|
168
|
-
<div class="method-heading">
|
169
|
-
<span class="method-name">get_other_one</span><span
|
170
|
-
class="method-args">(exp_hosts,exp_nodes)</span>
|
171
|
-
|
172
|
-
<span class="method-click-advice">click to toggle source</span>
|
173
|
-
|
174
|
-
</div>
|
175
|
-
|
176
|
-
|
177
|
-
<div class="method-description">
|
178
|
-
|
179
|
-
<dl class="rdoc-list note-list"><dt><code>exp_hosts</code>
|
180
|
-
<dd>
|
181
|
-
<p>exceptional <a href="'roma0','roma1'">hosts(ex.</a>)</p>
|
182
|
-
</dd><dt><code>exp_nodes</code>
|
183
|
-
<dd>
|
184
|
-
<p>ignore</p>
|
185
|
-
</dd></dl>
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
<div class="method-source-code" id="get_other_one-source">
|
191
|
-
<pre><span class="ruby-comment"># File lib/roma/client/routing/routing_data.rb, line 227</span>
|
192
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_other_one</span>(<span class="ruby-identifier">exp_hosts</span>,<span class="ruby-identifier">exp_nodes</span>)
|
193
|
-
<span class="ruby-identifier">hidx</span>=<span class="ruby-ivar">@host_idx</span>.<span class="ruby-identifier">clone</span>
|
194
|
-
<span class="ruby-identifier">exp_hosts</span>.<span class="ruby-identifier">each</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">h</span><span class="ruby-operator">|</span> <span class="ruby-identifier">hidx</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">h</span>) }
|
195
|
-
<span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">hidx</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
196
|
-
|
197
|
-
<span class="ruby-identifier">rh</span>=<span class="ruby-identifier">hidx</span>.<span class="ruby-identifier">keys</span>[<span class="ruby-identifier">rand</span>(<span class="ruby-identifier">hidx</span>.<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">length</span>)]
|
198
|
-
<span class="ruby-identifier">nodes</span>=<span class="ruby-identifier">hidx</span>[<span class="ruby-identifier">rh</span>]
|
199
|
-
<span class="ruby-identifier">nodes</span>[<span class="ruby-identifier">rand</span>(<span class="ruby-identifier">nodes</span>.<span class="ruby-identifier">length</span>)]
|
200
|
-
<span class="ruby-keyword">end</span></pre>
|
201
|
-
</div>
|
202
|
-
|
203
|
-
</div>
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
</div>
|
209
|
-
|
210
|
-
|
211
|
-
<div id="method-i-get_other_one_repethost" class="method-detail ">
|
212
|
-
|
213
|
-
<div class="method-heading">
|
214
|
-
<span class="method-name">get_other_one_repethost</span><span
|
215
|
-
class="method-args">(exp_hosts,exp_nodes)</span>
|
216
|
-
|
217
|
-
<span class="method-click-advice">click to toggle source</span>
|
218
|
-
|
219
|
-
</div>
|
220
|
-
|
221
|
-
|
222
|
-
<div class="method-description">
|
223
|
-
|
224
|
-
<dl class="rdoc-list note-list"><dt><code>exp_hosts</code>
|
225
|
-
<dd>
|
226
|
-
<p>ignore</p>
|
227
|
-
</dd><dt><code>exp_nodes</code>
|
228
|
-
<dd>
|
229
|
-
<p>exceptional <a href="'roma0_11211'">nodes(ex.</a>)</p>
|
230
|
-
</dd></dl>
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
<div class="method-source-code" id="get_other_one_repethost-source">
|
236
|
-
<pre><span class="ruby-comment"># File lib/roma/client/routing/routing_data.rb, line 219</span>
|
237
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_other_one_repethost</span>(<span class="ruby-identifier">exp_hosts</span>,<span class="ruby-identifier">exp_nodes</span>)
|
238
|
-
<span class="ruby-identifier">buf</span>=<span class="ruby-ivar">@nodes</span>.<span class="ruby-identifier">clone</span>
|
239
|
-
<span class="ruby-identifier">buf</span>.<span class="ruby-identifier">delete_if</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">nid</span><span class="ruby-operator">|</span> <span class="ruby-identifier">exp_nodes</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">nid</span>)}
|
240
|
-
<span class="ruby-identifier">buf</span>[<span class="ruby-identifier">rand</span>(<span class="ruby-identifier">buf</span>.<span class="ruby-identifier">length</span>)]
|
241
|
-
<span class="ruby-keyword">end</span></pre>
|
242
|
-
</div>
|
243
|
-
|
244
|
-
</div>
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
</div>
|
250
|
-
|
251
|
-
|
252
|
-
<div id="method-i-list" class="method-detail ">
|
253
|
-
|
254
|
-
<div class="method-heading">
|
255
|
-
<span class="method-name">list</span><span
|
256
|
-
class="method-args">(n)</span>
|
257
|
-
|
258
|
-
<span class="method-click-advice">click to toggle source</span>
|
259
|
-
|
260
|
-
</div>
|
261
|
-
|
262
|
-
|
263
|
-
<div class="method-description">
|
264
|
-
|
265
|
-
<p>Returns the random node-list without repetition.</p>
|
266
|
-
<dl class="rdoc-list note-list"><dt><code>n</code>
|
267
|
-
<dd>
|
268
|
-
<p>list length</p>
|
269
|
-
</dd></dl>
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
<div class="method-source-code" id="list-source">
|
275
|
-
<pre><span class="ruby-comment"># File lib/roma/client/routing/routing_data.rb, line 202</span>
|
276
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">list</span>(<span class="ruby-identifier">n</span>)
|
277
|
-
<span class="ruby-identifier">ret</span>=[]
|
278
|
-
<span class="ruby-identifier">hosts</span>=[]
|
279
|
-
<span class="ruby-identifier">proc_other_one</span> = <span class="ruby-value">:get_other_one</span>
|
280
|
-
<span class="ruby-identifier">proc_other_one</span> = <span class="ruby-value">:get_other_one_repethost</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@repethost</span>
|
281
|
-
<span class="ruby-identifier">n</span>.<span class="ruby-identifier">times</span>{
|
282
|
-
<span class="ruby-identifier">nid</span>=<span class="ruby-keyword">nil</span>
|
283
|
-
<span class="ruby-identifier">nid</span>=<span class="ruby-identifier">send</span>(<span class="ruby-identifier">proc_other_one</span>,<span class="ruby-identifier">hosts</span>,<span class="ruby-identifier">ret</span>)
|
284
|
-
<span class="ruby-keyword">break</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">nid</span>
|
285
|
-
<span class="ruby-identifier">hosts</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">nid</span>.<span class="ruby-identifier">split</span>(<span class="ruby-string">'_'</span>)[<span class="ruby-value">0</span>]
|
286
|
-
<span class="ruby-identifier">ret</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">nid</span>
|
287
|
-
}
|
288
|
-
<span class="ruby-identifier">ret</span>
|
289
|
-
<span class="ruby-keyword">end</span></pre>
|
290
|
-
</div>
|
291
|
-
|
292
|
-
</div>
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
</div>
|
298
|
-
|
299
|
-
|
300
|
-
</section>
|
301
|
-
|
302
|
-
</section>
|
303
|
-
</main>
|
304
|
-
|
305
|
-
|
306
|
-
<footer id="validator-badges" role="contentinfo">
|
307
|
-
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
308
|
-
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
|
309
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
310
|
-
</footer>
|
311
|
-
|
data/doc/created.rid
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
Tue, 23 Aug 2016 17:13:07 +0900
|
2
|
-
lib/roma-client.rb Tue, 09 Aug 2016 20:23:09 +0900
|
3
|
-
lib/roma/client.rb Tue, 09 Aug 2016 20:23:09 +0900
|
4
|
-
lib/roma/client/client_pool.rb Tue, 09 Aug 2016 20:23:09 +0900
|
5
|
-
lib/roma/client/client_rttable.rb Tue, 09 Aug 2016 20:23:09 +0900
|
6
|
-
lib/roma/client/con_pool.rb Tue, 09 Aug 2016 20:23:09 +0900
|
7
|
-
lib/roma/client/plugin/alist.rb Tue, 09 Aug 2016 20:23:09 +0900
|
8
|
-
lib/roma/client/plugin/map.rb Tue, 09 Aug 2016 20:23:09 +0900
|
9
|
-
lib/roma/client/plugin/mapcount.rb Tue, 09 Aug 2016 20:23:09 +0900
|
10
|
-
lib/roma/client/proxy/daemon.rb Tue, 09 Aug 2016 20:23:09 +0900
|
11
|
-
lib/roma/client/proxy/version.rb Tue, 09 Aug 2016 20:23:09 +0900
|
12
|
-
lib/roma/client/rclient.rb Tue, 09 Aug 2016 20:23:09 +0900
|
13
|
-
lib/roma/client/rlogger.rb Tue, 09 Aug 2016 20:23:09 +0900
|
14
|
-
lib/roma/client/routing/routing_data.rb Tue, 09 Aug 2016 20:23:09 +0900
|
15
|
-
lib/roma/client/sender.rb Tue, 09 Aug 2016 20:23:09 +0900
|
16
|
-
lib/roma/client/stats.rb Tue, 09 Aug 2016 20:23:09 +0900
|
17
|
-
lib/roma/client/tools/showbalance.rb Tue, 09 Aug 2016 20:23:09 +0900
|
18
|
-
lib/roma/client/version.rb Tue, 23 Aug 2016 17:12:11 +0900
|
19
|
-
README.md Tue, 09 Aug 2016 20:23:09 +0900
|
20
|
-
CHANGELOG.md Tue, 09 Aug 2016 20:23:09 +0900
|
data/doc/css/fonts.css
DELETED
@@ -1,167 +0,0 @@
|
|
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
|
-
|