stickler 2.0.0a → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.bnsignore +14 -0
- data/.gitignore +17 -0
- data/HISTORY.asciidoc +20 -0
- data/README.asciidoc +126 -0
- data/Rakefile +22 -3
- data/bin/stickler +50 -0
- data/bin/stickler-passenger-config +112 -0
- data/bin/stickler-server +109 -0
- data/examples/config.ru +6 -3
- data/examples/gemcutter_repo.ru +2 -0
- data/examples/index_repo.ru +2 -0
- data/examples/local_repo.ru +6 -3
- data/examples/mirror_repo.ru +2 -0
- data/examples/not_found.ru +2 -0
- data/lib/stickler.rb +12 -0
- data/lib/stickler/client.rb +47 -0
- data/lib/stickler/client/config.rb +35 -0
- data/lib/stickler/client/config_file.rb +58 -0
- data/lib/stickler/client/mirror.rb +61 -0
- data/lib/stickler/client/push.rb +50 -0
- data/lib/stickler/client/yank.rb +51 -0
- data/lib/stickler/logable.rb +35 -0
- data/lib/stickler/middleware/gemcutter.rb +5 -0
- data/lib/stickler/middleware/helpers.rb +32 -0
- data/lib/stickler/middleware/index.rb +30 -4
- data/lib/stickler/middleware/mirror.rb +8 -3
- data/lib/stickler/middleware/not_found.rb +4 -2
- data/lib/stickler/paths.rb +53 -0
- data/lib/stickler/repository/local.rb +12 -12
- data/lib/stickler/repository/mirror.rb +13 -6
- data/lib/stickler/repository/null.rb +1 -0
- data/lib/stickler/repository/remote.rb +10 -4
- data/lib/stickler/repository/rubygems_authenticator.rb +32 -0
- data/lib/stickler/server.rb +34 -0
- data/lib/stickler/server/public/css/blueprint/LICENSE +22 -0
- data/lib/stickler/server/public/css/blueprint/ie.css +35 -0
- data/lib/stickler/server/public/css/blueprint/screen.css +266 -0
- data/lib/stickler/server/public/css/style.css +19 -0
- data/lib/stickler/server/public/images/apple-touch-icon.png +0 -0
- data/lib/stickler/server/public/images/favicon.ico +0 -0
- data/lib/stickler/server/public/js/modernizr-1.5.min.js +28 -0
- data/lib/stickler/server/views/index.erb +35 -0
- data/lib/stickler/server/views/layout.erb +42 -0
- data/lib/stickler/spec_lite.rb +16 -6
- data/lib/stickler/version.rb +1 -1
- data/man/asciidoc.conf +25 -0
- data/man/stickler-passenger-config.asciidoc +74 -0
- data/man/stickler-server.asciidoc +87 -0
- data/man/stickler.asciidoc +148 -0
- data/spec/middleware/common_gem_server_helpers.rb +4 -2
- data/spec/middleware/index_spec.rb +3 -3
- data/spec/middleware/legacy_gem_server_behavior.rb +0 -2
- data/spec/middleware/local_spec.rb +3 -3
- data/spec/middleware/modern_gem_server_behavior.rb +2 -0
- data/spec/paths_spec.rb +13 -0
- data/spec/spec_lite_spec.rb +14 -0
- data/tasks/man.rake +19 -0
- metadata +183 -56
- data/HISTORY.rdoc +0 -12
- data/README.rdoc +0 -88
- data/lib/stickler/web.rb +0 -19
- data/stickler.gemspec +0 -60
- data/views/index.erb +0 -19
- data/views/layout.erb +0 -39
@@ -0,0 +1,266 @@
|
|
1
|
+
/* -----------------------------------------------------------------------
|
2
|
+
|
3
|
+
|
4
|
+
Blueprint CSS Framework 0.9
|
5
|
+
http://blueprintcss.org
|
6
|
+
|
7
|
+
* Copyright (c) 2007-Present. See LICENSE for more info.
|
8
|
+
* See README for instructions on how to use Blueprint.
|
9
|
+
* For credits and origins, see AUTHORS.
|
10
|
+
* This is a compressed file. See the sources in the 'src' directory.
|
11
|
+
|
12
|
+
----------------------------------------------------------------------- */
|
13
|
+
|
14
|
+
/* reset.css */
|
15
|
+
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, dialog, figure, footer, header, hgroup, nav, section {margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;}
|
16
|
+
article, aside, dialog, figure, footer, header, hgroup, nav, section {display:block;}
|
17
|
+
body {line-height:1.5;}
|
18
|
+
table {border-collapse:separate;border-spacing:0;}
|
19
|
+
caption, th, td {text-align:left;font-weight:normal;}
|
20
|
+
table, td, th {vertical-align:middle;}
|
21
|
+
blockquote:before, blockquote:after, q:before, q:after {content:"";}
|
22
|
+
blockquote, q {quotes:"" "";}
|
23
|
+
a img {border:none;}
|
24
|
+
|
25
|
+
/* typography.css */
|
26
|
+
html {font-size:100.01%;}
|
27
|
+
body {font-size:75%;color:#222;background:#fff;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;}
|
28
|
+
h1, h2, h3, h4, h5, h6 {font-weight:normal;color:#111;}
|
29
|
+
h1 {font-size:3em;line-height:1;margin-bottom:0.5em;}
|
30
|
+
h2 {font-size:2em;margin-bottom:0.75em;}
|
31
|
+
h3 {font-size:1.5em;line-height:1;margin-bottom:1em;}
|
32
|
+
h4 {font-size:1.2em;line-height:1.25;margin-bottom:1.25em;}
|
33
|
+
h5 {font-size:1em;font-weight:bold;margin-bottom:1.5em;}
|
34
|
+
h6 {font-size:1em;font-weight:bold;}
|
35
|
+
h1 img, h2 img, h3 img, h4 img, h5 img, h6 img {margin:0;}
|
36
|
+
p {margin:0 0 1.5em;}
|
37
|
+
p img.left {float:left;margin:1.5em 1.5em 1.5em 0;padding:0;}
|
38
|
+
p img.right {float:right;margin:1.5em 0 1.5em 1.5em;}
|
39
|
+
a:focus, a:hover {color:#08d;}
|
40
|
+
a {color:#009;text-decoration:underline;}
|
41
|
+
blockquote {margin:1.5em;color:#666;font-style:italic;}
|
42
|
+
strong {font-weight:bold;}
|
43
|
+
em, dfn {font-style:italic;}
|
44
|
+
dfn {font-weight:bold;}
|
45
|
+
sup, sub {line-height:0;}
|
46
|
+
abbr, acronym {border-bottom:1px dotted #666;}
|
47
|
+
address {margin:0 0 1.5em;font-style:italic;}
|
48
|
+
del {color:#666;}
|
49
|
+
pre {margin:1.5em 0;white-space:pre;}
|
50
|
+
pre, code, tt {font:1em 'andale mono', 'lucida console', monospace;line-height:1.5;}
|
51
|
+
li ul, li ol {margin:0;}
|
52
|
+
ul, ol {margin:0 1.5em 1.5em 0;padding-left:3.333em;}
|
53
|
+
ul {list-style-type:disc;}
|
54
|
+
ol {list-style-type:decimal;}
|
55
|
+
dl {margin:0 0 1.5em 0;}
|
56
|
+
dl dt {font-weight:bold;}
|
57
|
+
dd {margin-left:1.5em;}
|
58
|
+
table {margin-bottom:1.4em;width:100%;}
|
59
|
+
th {font-weight:bold;}
|
60
|
+
thead th {background:#c3d9ff;}
|
61
|
+
th, td, caption {padding:4px 10px 4px 5px;}
|
62
|
+
tr.even td {background:#e5ecf9;}
|
63
|
+
tfoot {font-style:italic;}
|
64
|
+
caption {background:#eee;}
|
65
|
+
.small {font-size:.8em;margin-bottom:1.875em;line-height:1.875em;}
|
66
|
+
.large {font-size:1.2em;line-height:2.5em;margin-bottom:1.25em;}
|
67
|
+
.hide {display:none;}
|
68
|
+
.quiet {color:#666;}
|
69
|
+
.loud {color:#000;}
|
70
|
+
.highlight {background:#ff0;}
|
71
|
+
.added {background:#060;color:#fff;}
|
72
|
+
.removed {background:#900;color:#fff;}
|
73
|
+
.first {margin-left:0;padding-left:0;}
|
74
|
+
.last {margin-right:0;padding-right:0;}
|
75
|
+
.top {margin-top:0;padding-top:0;}
|
76
|
+
.bottom {margin-bottom:0;padding-bottom:0;}
|
77
|
+
|
78
|
+
/* forms.css */
|
79
|
+
label {font-weight:bold;}
|
80
|
+
fieldset {padding:1.4em;margin:0 0 1.5em 0;border:1px solid #ccc;}
|
81
|
+
legend {font-weight:bold;font-size:1.2em;}
|
82
|
+
input[type=text], input[type=password], input.text, input.title, textarea, select {background-color:#fff;border:1px solid #bbb;}
|
83
|
+
input[type=text]:focus, input[type=password]:focus, input.text:focus, input.title:focus, textarea:focus, select:focus {border-color:#666;}
|
84
|
+
input[type=text], input[type=password], input.text, input.title, textarea, select {margin:0.5em 0;}
|
85
|
+
input.text, input.title {width:300px;padding:5px;}
|
86
|
+
input.title {font-size:1.5em;}
|
87
|
+
textarea {width:390px;height:250px;padding:5px;}
|
88
|
+
input[type=checkbox], input[type=radio], input.checkbox, input.radio {position:relative;top:.25em;}
|
89
|
+
form.inline {line-height:3;}
|
90
|
+
form.inline p {margin-bottom:0;}
|
91
|
+
.error, .notice, .success, .info {padding:0.8em;margin-bottom:1em;border:2px solid #ddd;}
|
92
|
+
.error {background:#fbe3e4;color:#8a1f11;border-color:#fbc2c4;}
|
93
|
+
.notice {background:#fff6bf;color:#514721;border-color:#ffd324;}
|
94
|
+
.success {background:#e6efc2;color:#264409;border-color:#c6d880;}
|
95
|
+
.info {background:#d5edf8;color:#205791;border-color:#92cae4;}
|
96
|
+
.error a {color:#8a1f11;}
|
97
|
+
.notice a {color:#514721;}
|
98
|
+
.success a {color:#264409;}
|
99
|
+
.info a {color:#205791;}
|
100
|
+
|
101
|
+
/* grid.css */
|
102
|
+
.container {width:740px;margin:0 auto;}
|
103
|
+
.showgrid {background:url(src/grid.png);}
|
104
|
+
.column, .span-1, .span-2, .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-9, .span-10, .span-11, .span-12, .span-13, .span-14, .span-15, .span-16, .span-17, .span-18, .span-19, .span-20, .span-21, .span-22, .span-23, .span-24, .span-25 {float:left;margin-right:10px;}
|
105
|
+
.last {margin-right:0;}
|
106
|
+
.span-1 {width:20px;}
|
107
|
+
.span-2 {width:50px;}
|
108
|
+
.span-3 {width:80px;}
|
109
|
+
.span-4 {width:110px;}
|
110
|
+
.span-5 {width:140px;}
|
111
|
+
.span-6 {width:170px;}
|
112
|
+
.span-7 {width:200px;}
|
113
|
+
.span-8 {width:230px;}
|
114
|
+
.span-9 {width:260px;}
|
115
|
+
.span-10 {width:290px;}
|
116
|
+
.span-11 {width:320px;}
|
117
|
+
.span-12 {width:350px;}
|
118
|
+
.span-13 {width:380px;}
|
119
|
+
.span-14 {width:410px;}
|
120
|
+
.span-15 {width:440px;}
|
121
|
+
.span-16 {width:470px;}
|
122
|
+
.span-17 {width:500px;}
|
123
|
+
.span-18 {width:530px;}
|
124
|
+
.span-19 {width:560px;}
|
125
|
+
.span-20 {width:590px;}
|
126
|
+
.span-21 {width:620px;}
|
127
|
+
.span-22 {width:650px;}
|
128
|
+
.span-23 {width:680px;}
|
129
|
+
.span-24 {width:710px;}
|
130
|
+
.span-25 {width:740px;margin-right:0;}
|
131
|
+
input.span-1, textarea.span-1, input.span-2, textarea.span-2, input.span-3, textarea.span-3, input.span-4, textarea.span-4, input.span-5, textarea.span-5, input.span-6, textarea.span-6, input.span-7, textarea.span-7, input.span-8, textarea.span-8, input.span-9, textarea.span-9, input.span-10, textarea.span-10, input.span-11, textarea.span-11, input.span-12, textarea.span-12, input.span-13, textarea.span-13, input.span-14, textarea.span-14, input.span-15, textarea.span-15, input.span-16, textarea.span-16, input.span-17, textarea.span-17, input.span-18, textarea.span-18, input.span-19, textarea.span-19, input.span-20, textarea.span-20, input.span-21, textarea.span-21, input.span-22, textarea.span-22, input.span-23, textarea.span-23, input.span-24, textarea.span-24, input.span-25, textarea.span-25 {border-left-width:1px;border-right-width:1px;padding-left:5px;padding-right:5px;}
|
132
|
+
input.span-1, textarea.span-1 {width:8px;}
|
133
|
+
input.span-2, textarea.span-2 {width:38px;}
|
134
|
+
input.span-3, textarea.span-3 {width:68px;}
|
135
|
+
input.span-4, textarea.span-4 {width:98px;}
|
136
|
+
input.span-5, textarea.span-5 {width:128px;}
|
137
|
+
input.span-6, textarea.span-6 {width:158px;}
|
138
|
+
input.span-7, textarea.span-7 {width:188px;}
|
139
|
+
input.span-8, textarea.span-8 {width:218px;}
|
140
|
+
input.span-9, textarea.span-9 {width:248px;}
|
141
|
+
input.span-10, textarea.span-10 {width:278px;}
|
142
|
+
input.span-11, textarea.span-11 {width:308px;}
|
143
|
+
input.span-12, textarea.span-12 {width:338px;}
|
144
|
+
input.span-13, textarea.span-13 {width:368px;}
|
145
|
+
input.span-14, textarea.span-14 {width:398px;}
|
146
|
+
input.span-15, textarea.span-15 {width:428px;}
|
147
|
+
input.span-16, textarea.span-16 {width:458px;}
|
148
|
+
input.span-17, textarea.span-17 {width:488px;}
|
149
|
+
input.span-18, textarea.span-18 {width:518px;}
|
150
|
+
input.span-19, textarea.span-19 {width:548px;}
|
151
|
+
input.span-20, textarea.span-20 {width:578px;}
|
152
|
+
input.span-21, textarea.span-21 {width:608px;}
|
153
|
+
input.span-22, textarea.span-22 {width:638px;}
|
154
|
+
input.span-23, textarea.span-23 {width:668px;}
|
155
|
+
input.span-24, textarea.span-24 {width:698px;}
|
156
|
+
input.span-25, textarea.span-25 {width:728px;}
|
157
|
+
.append-1 {padding-right:30px;}
|
158
|
+
.append-2 {padding-right:60px;}
|
159
|
+
.append-3 {padding-right:90px;}
|
160
|
+
.append-4 {padding-right:120px;}
|
161
|
+
.append-5 {padding-right:150px;}
|
162
|
+
.append-6 {padding-right:180px;}
|
163
|
+
.append-7 {padding-right:210px;}
|
164
|
+
.append-8 {padding-right:240px;}
|
165
|
+
.append-9 {padding-right:270px;}
|
166
|
+
.append-10 {padding-right:300px;}
|
167
|
+
.append-11 {padding-right:330px;}
|
168
|
+
.append-12 {padding-right:360px;}
|
169
|
+
.append-13 {padding-right:390px;}
|
170
|
+
.append-14 {padding-right:420px;}
|
171
|
+
.append-15 {padding-right:450px;}
|
172
|
+
.append-16 {padding-right:480px;}
|
173
|
+
.append-17 {padding-right:510px;}
|
174
|
+
.append-18 {padding-right:540px;}
|
175
|
+
.append-19 {padding-right:570px;}
|
176
|
+
.append-20 {padding-right:600px;}
|
177
|
+
.append-21 {padding-right:630px;}
|
178
|
+
.append-22 {padding-right:660px;}
|
179
|
+
.append-23 {padding-right:690px;}
|
180
|
+
.append-24 {padding-right:720px;}
|
181
|
+
.prepend-1 {padding-left:30px;}
|
182
|
+
.prepend-2 {padding-left:60px;}
|
183
|
+
.prepend-3 {padding-left:90px;}
|
184
|
+
.prepend-4 {padding-left:120px;}
|
185
|
+
.prepend-5 {padding-left:150px;}
|
186
|
+
.prepend-6 {padding-left:180px;}
|
187
|
+
.prepend-7 {padding-left:210px;}
|
188
|
+
.prepend-8 {padding-left:240px;}
|
189
|
+
.prepend-9 {padding-left:270px;}
|
190
|
+
.prepend-10 {padding-left:300px;}
|
191
|
+
.prepend-11 {padding-left:330px;}
|
192
|
+
.prepend-12 {padding-left:360px;}
|
193
|
+
.prepend-13 {padding-left:390px;}
|
194
|
+
.prepend-14 {padding-left:420px;}
|
195
|
+
.prepend-15 {padding-left:450px;}
|
196
|
+
.prepend-16 {padding-left:480px;}
|
197
|
+
.prepend-17 {padding-left:510px;}
|
198
|
+
.prepend-18 {padding-left:540px;}
|
199
|
+
.prepend-19 {padding-left:570px;}
|
200
|
+
.prepend-20 {padding-left:600px;}
|
201
|
+
.prepend-21 {padding-left:630px;}
|
202
|
+
.prepend-22 {padding-left:660px;}
|
203
|
+
.prepend-23 {padding-left:690px;}
|
204
|
+
.prepend-24 {padding-left:720px;}
|
205
|
+
.border {padding-right:4px;margin-right:5px;border-right:1px solid #ddd;}
|
206
|
+
.colborder {padding-right:19px;margin-right:20px;border-right:1px solid #ddd;}
|
207
|
+
.pull-1 {margin-left:-30px;}
|
208
|
+
.pull-2 {margin-left:-60px;}
|
209
|
+
.pull-3 {margin-left:-90px;}
|
210
|
+
.pull-4 {margin-left:-120px;}
|
211
|
+
.pull-5 {margin-left:-150px;}
|
212
|
+
.pull-6 {margin-left:-180px;}
|
213
|
+
.pull-7 {margin-left:-210px;}
|
214
|
+
.pull-8 {margin-left:-240px;}
|
215
|
+
.pull-9 {margin-left:-270px;}
|
216
|
+
.pull-10 {margin-left:-300px;}
|
217
|
+
.pull-11 {margin-left:-330px;}
|
218
|
+
.pull-12 {margin-left:-360px;}
|
219
|
+
.pull-13 {margin-left:-390px;}
|
220
|
+
.pull-14 {margin-left:-420px;}
|
221
|
+
.pull-15 {margin-left:-450px;}
|
222
|
+
.pull-16 {margin-left:-480px;}
|
223
|
+
.pull-17 {margin-left:-510px;}
|
224
|
+
.pull-18 {margin-left:-540px;}
|
225
|
+
.pull-19 {margin-left:-570px;}
|
226
|
+
.pull-20 {margin-left:-600px;}
|
227
|
+
.pull-21 {margin-left:-630px;}
|
228
|
+
.pull-22 {margin-left:-660px;}
|
229
|
+
.pull-23 {margin-left:-690px;}
|
230
|
+
.pull-24 {margin-left:-720px;}
|
231
|
+
.pull-25 {margin-left:-750px;}
|
232
|
+
.pull-1, .pull-2, .pull-3, .pull-4, .pull-5, .pull-6, .pull-7, .pull-8, .pull-9, .pull-10, .pull-11, .pull-12, .pull-13, .pull-14, .pull-15, .pull-16, .pull-17, .pull-18, .pull-19, .pull-20, .pull-21, .pull-22, .pull-23, .pull-24, .pull-25 {float:left;position:relative;}
|
233
|
+
.push-1 {margin:0 -30px 1.5em 30px;}
|
234
|
+
.push-2 {margin:0 -60px 1.5em 60px;}
|
235
|
+
.push-3 {margin:0 -90px 1.5em 90px;}
|
236
|
+
.push-4 {margin:0 -120px 1.5em 120px;}
|
237
|
+
.push-5 {margin:0 -150px 1.5em 150px;}
|
238
|
+
.push-6 {margin:0 -180px 1.5em 180px;}
|
239
|
+
.push-7 {margin:0 -210px 1.5em 210px;}
|
240
|
+
.push-8 {margin:0 -240px 1.5em 240px;}
|
241
|
+
.push-9 {margin:0 -270px 1.5em 270px;}
|
242
|
+
.push-10 {margin:0 -300px 1.5em 300px;}
|
243
|
+
.push-11 {margin:0 -330px 1.5em 330px;}
|
244
|
+
.push-12 {margin:0 -360px 1.5em 360px;}
|
245
|
+
.push-13 {margin:0 -390px 1.5em 390px;}
|
246
|
+
.push-14 {margin:0 -420px 1.5em 420px;}
|
247
|
+
.push-15 {margin:0 -450px 1.5em 450px;}
|
248
|
+
.push-16 {margin:0 -480px 1.5em 480px;}
|
249
|
+
.push-17 {margin:0 -510px 1.5em 510px;}
|
250
|
+
.push-18 {margin:0 -540px 1.5em 540px;}
|
251
|
+
.push-19 {margin:0 -570px 1.5em 570px;}
|
252
|
+
.push-20 {margin:0 -600px 1.5em 600px;}
|
253
|
+
.push-21 {margin:0 -630px 1.5em 630px;}
|
254
|
+
.push-22 {margin:0 -660px 1.5em 660px;}
|
255
|
+
.push-23 {margin:0 -690px 1.5em 690px;}
|
256
|
+
.push-24 {margin:0 -720px 1.5em 720px;}
|
257
|
+
.push-25 {margin:0 -750px 1.5em 750px;}
|
258
|
+
.push-1, .push-2, .push-3, .push-4, .push-5, .push-6, .push-7, .push-8, .push-9, .push-10, .push-11, .push-12, .push-13, .push-14, .push-15, .push-16, .push-17, .push-18, .push-19, .push-20, .push-21, .push-22, .push-23, .push-24, .push-25 {float:right;position:relative;}
|
259
|
+
div.prepend-top, .prepend-top {margin-top:1.5em;}
|
260
|
+
div.append-bottom, .append-bottom {margin-bottom:1.5em;}
|
261
|
+
.box {padding:1.5em;margin-bottom:1.5em;background:#E5ECF9;}
|
262
|
+
hr {background:#ddd;color:#ddd;clear:both;float:none;width:100%;height:1px;margin:0 0 1.45em;border:none;}
|
263
|
+
hr.space {background:#fff;color:#fff;visibility:hidden;}
|
264
|
+
.clearfix:after, .container:after {content:"\0020";display:block;height:0;clear:both;visibility:hidden;overflow:hidden;}
|
265
|
+
.clearfix, .container {display:block;}
|
266
|
+
.clear {clear:both;}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
body { background-color: #fcfcfc}
|
2
|
+
.container { background-color: #ffffff; border-left: 2px solid #e9e9e9; border-right: 2px solid #e9e9e9; }
|
3
|
+
header h1 { font-weight: bold; text-align: center; color: #A11A00; padding: 1em; }
|
4
|
+
header samp { text-align: center; padding: 1em; }
|
5
|
+
|
6
|
+
nav { background-color: #ededed; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd;}
|
7
|
+
nav ol { text-align: center; margin-bottom: 0; list-style: none;}
|
8
|
+
nav ol li { display: inline-block; padding: 0px 3px 0px 3px; }
|
9
|
+
nav ol li a { text-decoration: none; color: #393939;}
|
10
|
+
nav ol li a:hover { font-weight: bold; background-color: #fff; color: #333333; }
|
11
|
+
|
12
|
+
.gemlist ol { list-style: none; }
|
13
|
+
.gemlist li.stripe { background-color: #e9e9e9; }
|
14
|
+
.gem { padding: 10px; border-bottom: 2px solid #ddd; }
|
15
|
+
.gem .name { text-align: left; vertical-align: top; display: inline-block; width: 50%; letter-spacing: 0.2em; font-weight: 900;}
|
16
|
+
.gem .version { text-align: right; vertical-align: top; display: inline-block; width: 49%; color: #939393;}
|
17
|
+
|
18
|
+
.letter-start a { text-decoration: none; }
|
19
|
+
.letter-start h2 { font-weight: 900; color: #A11A00; text-align: center; }
|
File without changes
|
File without changes
|
@@ -0,0 +1,28 @@
|
|
1
|
+
/*!
|
2
|
+
* Modernizr JavaScript library 1.5
|
3
|
+
* http://www.modernizr.com/
|
4
|
+
*
|
5
|
+
* Copyright (c) 2009-2010 Faruk Ates - http://farukat.es/
|
6
|
+
* Dual-licensed under the BSD and MIT licenses.
|
7
|
+
* http://www.modernizr.com/license/
|
8
|
+
*
|
9
|
+
* Featuring major contributions by
|
10
|
+
* Paul Irish - http://paulirish.com
|
11
|
+
*/
|
12
|
+
window.Modernizr=function(i,e,I){function C(a,b){for(var c in a)if(m[a[c]]!==I&&(!b||b(a[c],D)))return true}function r(a,b){var c=a.charAt(0).toUpperCase()+a.substr(1);return!!C([a,"Webkit"+c,"Moz"+c,"O"+c,"ms"+c,"Khtml"+c],b)}function P(){j[E]=function(a){for(var b=0,c=a.length;b<c;b++)J[a[b]]=!!(a[b]in n);return J}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));j[Q]=function(a){for(var b=0,c,h=a.length;b<h;b++){n.setAttribute("type",a[b]);if(c=n.type!==
|
13
|
+
"text"){n.value=K;/tel|search/.test(n.type)||(c=/url|email/.test(n.type)?n.checkValidity&&n.checkValidity()===false:n.value!=K)}L[a[b]]=!!c}return L}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var j={},s=e.documentElement,D=e.createElement("modernizr"),m=D.style,n=e.createElement("input"),E="input",Q=E+"types",K=":)",M=Object.prototype.toString,y=" -o- -moz- -ms- -webkit- -khtml- ".split(" "),d={},L={},J={},N=[],u=function(){var a={select:"input",
|
14
|
+
change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},b={};return function(c,h){var t=arguments.length==1;if(t&&b[c])return b[c];h=h||document.createElement(a[c]||"div");c="on"+c;var g=c in h;if(!g&&h.setAttribute){h.setAttribute(c,"return;");g=typeof h[c]=="function"}h=null;return t?(b[c]=g):g}}(),F={}.hasOwnProperty,O;O=typeof F!=="undefined"&&typeof F.call!=="undefined"?function(a,b){return F.call(a,b)}:function(a,b){return b in a&&typeof a.constructor.prototype[b]==="undefined"};
|
15
|
+
d.canvas=function(){return!!e.createElement("canvas").getContext};d.canvastext=function(){return!!(d.canvas()&&typeof e.createElement("canvas").getContext("2d").fillText=="function")};d.geolocation=function(){return!!navigator.geolocation};d.crosswindowmessaging=function(){return!!i.postMessage};d.websqldatabase=function(){var a=!!i.openDatabase;if(a)try{a=!!openDatabase("testdb","1.0","html5 test db",2E5)}catch(b){a=false}return a};d.indexedDB=function(){return!!i.indexedDB};d.hashchange=function(){return u("hashchange",
|
16
|
+
i)&&(document.documentMode===I||document.documentMode>7)};d.historymanagement=function(){return!!(i.history&&history.pushState)};d.draganddrop=function(){return u("drag")&&u("dragstart")&&u("dragenter")&&u("dragover")&&u("dragleave")&&u("dragend")&&u("drop")};d.websockets=function(){return"WebSocket"in i};d.rgba=function(){m.cssText="background-color:rgba(150,255,150,.5)";return(""+m.backgroundColor).indexOf("rgba")!==-1};d.hsla=function(){m.cssText="background-color:hsla(120,40%,100%,.5)";return(""+
|
17
|
+
m.backgroundColor).indexOf("rgba")!==-1};d.multiplebgs=function(){m.cssText="background:url(//:),url(//:),red url(//:)";return/(url\s*\(.*?){3}/.test(m.background)};d.backgroundsize=function(){return r("backgroundSize")};d.borderimage=function(){return r("borderImage")};d.borderradius=function(){return r("borderRadius","",function(a){return(""+a).indexOf("orderRadius")!==-1})};d.boxshadow=function(){return r("boxShadow")};d.opacity=function(){var a=y.join("opacity:.5;")+"";m.cssText=a;return(""+m.opacity).indexOf("0.5")!==
|
18
|
+
-1};d.cssanimations=function(){return r("animationName")};d.csscolumns=function(){return r("columnCount")};d.cssgradients=function(){var a=("background-image:"+y.join("gradient(linear,left top,right bottom,from(#9f9),to(white));background-image:")+y.join("linear-gradient(left top,#9f9, white);background-image:")).slice(0,-17);m.cssText=a;return(""+m.backgroundImage).indexOf("gradient")!==-1};d.cssreflections=function(){return r("boxReflect")};d.csstransforms=function(){return!!C(["transformProperty",
|
19
|
+
"WebkitTransform","MozTransform","OTransform","msTransform"])};d.csstransforms3d=function(){var a=!!C(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);if(a){var b=document.createElement("style"),c=e.createElement("div");b.textContent="@media ("+y.join("transform-3d),(")+"modernizr){#modernizr{height:3px}}";e.getElementsByTagName("head")[0].appendChild(b);c.id="modernizr";s.appendChild(c);a=c.offsetHeight===3;b.parentNode.removeChild(b);c.parentNode.removeChild(c)}return a};
|
20
|
+
d.csstransitions=function(){return r("transitionProperty")};d.fontface=function(){var a;if(/*@cc_on@if(@_jscript_version>=5)!@end@*/0)a=true;else{var b=e.createElement("style"),c=e.createElement("span"),h,t=false,g=e.body,o,w;b.textContent="@font-face{font-family:testfont;src:url('data:font/ttf;base64,AAEAAAAMAIAAAwBAT1MvMliohmwAAADMAAAAVmNtYXCp5qrBAAABJAAAANhjdnQgACICiAAAAfwAAAAEZ2FzcP//AAMAAAIAAAAACGdseWYv5OZoAAACCAAAANxoZWFk69bnvwAAAuQAAAA2aGhlYQUJAt8AAAMcAAAAJGhtdHgGDgC4AAADQAAAABRsb2NhAIQAwgAAA1QAAAAMbWF4cABVANgAAANgAAAAIG5hbWUgXduAAAADgAAABPVwb3N03NkzmgAACHgAAAA4AAECBAEsAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAACAAMDAAAAAAAAgAACbwAAAAoAAAAAAAAAAFBmRWQAAAAgqS8DM/8zAFwDMwDNAAAABQAAAAAAAAAAAAMAAAADAAAAHAABAAAAAABGAAMAAQAAAK4ABAAqAAAABgAEAAEAAgAuqQD//wAAAC6pAP///9ZXAwAAAAAAAAACAAAABgBoAAAAAAAvAAEAAAAAAAAAAAAAAAAAAAABAAIAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEACoAAAAGAAQAAQACAC6pAP//AAAALqkA////1lcDAAAAAAAAAAIAAAAiAogAAAAB//8AAgACACIAAAEyAqoAAwAHAC6xAQAvPLIHBADtMrEGBdw8sgMCAO0yALEDAC88sgUEAO0ysgcGAfw8sgECAO0yMxEhESczESMiARDuzMwCqv1WIgJmAAACAFUAAAIRAc0ADwAfAAATFRQWOwEyNj0BNCYrASIGARQGKwEiJj0BNDY7ATIWFX8aIvAiGhoi8CIaAZIoN/43KCg3/jcoAWD0JB4eJPQkHh7++EY2NkbVRjY2RgAAAAABAEH/+QCdAEEACQAANjQ2MzIWFAYjIkEeEA8fHw8QDxwWFhwWAAAAAQAAAAIAAIuYbWpfDzz1AAsEAAAAAADFn9IuAAAAAMWf0i797/8zA4gDMwAAAAgAAgAAAAAAAAABAAADM/8zAFwDx/3v/98DiAABAAAAAAAAAAAAAAAAAAAABQF2ACIAAAAAAVUAAAJmAFUA3QBBAAAAKgAqACoAWgBuAAEAAAAFAFAABwBUAAQAAgAAAAEAAQAAAEAALgADAAMAAAAQAMYAAQAAAAAAAACLAAAAAQAAAAAAAQAhAIsAAQAAAAAAAgAFAKwAAQAAAAAAAwBDALEAAQAAAAAABAAnAPQAAQAAAAAABQAKARsAAQAAAAAABgAmASUAAQAAAAAADgAaAUsAAwABBAkAAAEWAWUAAwABBAkAAQBCAnsAAwABBAkAAgAKAr0AAwABBAkAAwCGAscAAwABBAkABABOA00AAwABBAkABQAUA5sAAwABBAkABgBMA68AAwABBAkADgA0A/tDb3B5cmlnaHQgMjAwOSBieSBEYW5pZWwgSm9obnNvbi4gIFJlbGVhc2VkIHVuZGVyIHRoZSB0ZXJtcyBvZiB0aGUgT3BlbiBGb250IExpY2Vuc2UuIEtheWFoIExpIGdseXBocyBhcmUgcmVsZWFzZWQgdW5kZXIgdGhlIEdQTCB2ZXJzaW9uIDMuYmFlYzJhOTJiZmZlNTAzMiAtIHN1YnNldCBvZiBKdXJhTGlnaHRiYWVjMmE5MmJmZmU1MDMyIC0gc3Vic2V0IG9mIEZvbnRGb3JnZSAyLjAgOiBKdXJhIExpZ2h0IDogMjMtMS0yMDA5YmFlYzJhOTJiZmZlNTAzMiAtIHN1YnNldCBvZiBKdXJhIExpZ2h0VmVyc2lvbiAyIGJhZWMyYTkyYmZmZTUwMzIgLSBzdWJzZXQgb2YgSnVyYUxpZ2h0aHR0cDovL3NjcmlwdHMuc2lsLm9yZy9PRkwAQwBvAHAAeQByAGkAZwBoAHQAIAAyADAAMAA5ACAAYgB5ACAARABhAG4AaQBlAGwAIABKAG8AaABuAHMAbwBuAC4AIAAgAFIAZQBsAGUAYQBzAGUAZAAgAHUAbgBkAGUAcgAgAHQAaABlACAAdABlAHIAbQBzACAAbwBmACAAdABoAGUAIABPAHAAZQBuACAARgBvAG4AdAAgAEwAaQBjAGUAbgBzAGUALgAgAEsAYQB5AGEAaAAgAEwAaQAgAGcAbAB5AHAAaABzACAAYQByAGUAIAByAGUAbABlAGEAcwBlAGQAIAB1AG4AZABlAHIAIAB0AGgAZQAgAEcAUABMACAAdgBlAHIAcwBpAG8AbgAgADMALgBiAGEAZQBjADIAYQA5ADIAYgBmAGYAZQA1ADAAMwAyACAALQAgAHMAdQBiAHMAZQB0ACAAbwBmACAASgB1AHIAYQBMAGkAZwBoAHQAYgBhAGUAYwAyAGEAOQAyAGIAZgBmAGUANQAwADMAMgAgAC0AIABzAHUAYgBzAGUAdAAgAG8AZgAgAEYAbwBuAHQARgBvAHIAZwBlACAAMgAuADAAIAA6ACAASgB1AHIAYQAgAEwAaQBnAGgAdAAgADoAIAAyADMALQAxAC0AMgAwADAAOQBiAGEAZQBjADIAYQA5ADIAYgBmAGYAZQA1ADAAMwAyACAALQAgAHMAdQBiAHMAZQB0ACAAbwBmACAASgB1AHIAYQAgAEwAaQBnAGgAdABWAGUAcgBzAGkAbwBuACAAMgAgAGIAYQBlAGMAMgBhADkAMgBiAGYAZgBlADUAMAAzADIAIAAtACAAcwB1AGIAcwBlAHQAIABvAGYAIABKAHUAcgBhAEwAaQBnAGgAdABoAHQAdABwADoALwAvAHMAYwByAGkAcAB0AHMALgBzAGkAbAAuAG8AcgBnAC8ATwBGAEwAAAAAAgAAAAAAAP+BADMAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAQACAQIAEQt6ZXJva2F5YWhsaQ==')}";
|
21
|
+
e.getElementsByTagName("head")[0].appendChild(b);c.setAttribute("style","font:99px _,arial,helvetica;position:absolute;visibility:hidden");if(!g){g=s.appendChild(e.createElement("fontface"));t=true}c.innerHTML="........";c.id="fonttest";g.appendChild(c);h=c.offsetWidth*c.offsetHeight;c.style.font="99px testfont,_,arial,helvetica";a=h!==c.offsetWidth*c.offsetHeight;var v=function(){if(g.parentNode){a=j.fontface=h!==c.offsetWidth*c.offsetHeight;s.className=s.className.replace(/(no-)?fontface\b/,"")+
|
22
|
+
(a?" ":" no-")+"fontface"}};setTimeout(v,75);setTimeout(v,150);addEventListener("load",function(){v();(w=true)&&o&&o(a);setTimeout(function(){t||(g=c);g.parentNode.removeChild(g);b.parentNode.removeChild(b)},50)},false)}j._fontfaceready=function(p){w||a?p(a):(o=p)};return a||h!==c.offsetWidth};d.video=function(){var a=e.createElement("video"),b=!!a.canPlayType;if(b){b=new Boolean(b);b.ogg=a.canPlayType('video/ogg; codecs="theora"');b.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"');b.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"')}return b};
|
23
|
+
d.audio=function(){var a=e.createElement("audio"),b=!!a.canPlayType;if(b){b=new Boolean(b);b.ogg=a.canPlayType('audio/ogg; codecs="vorbis"');b.mp3=a.canPlayType("audio/mpeg;");b.wav=a.canPlayType('audio/wav; codecs="1"');b.m4a=a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")}return b};d.localStorage=function(){return"localStorage"in i&&i.localStorage!==null};d.sessionStorage=function(){try{return"sessionStorage"in i&&i.sessionStorage!==null}catch(a){return false}};d.webworkers=function(){return!!i.Worker};
|
24
|
+
d.applicationCache=function(){var a=i.applicationCache;return!!(a&&typeof a.status!="undefined"&&typeof a.update=="function"&&typeof a.swapCache=="function")};d.svg=function(){return!!e.createElementNS&&!!e.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect};d.smil=function(){return!!e.createElementNS&&/SVG/.test(M.call(e.createElementNS("http://www.w3.org/2000/svg","animate")))};d.svgclippaths=function(){return!!e.createElementNS&&/SVG/.test(M.call(e.createElementNS("http://www.w3.org/2000/svg",
|
25
|
+
"clipPath")))};for(var z in d)if(O(d,z))N.push(((j[z.toLowerCase()]=d[z]())?"":"no-")+z.toLowerCase());j[E]||P();j.addTest=function(a,b){a=a.toLowerCase();if(!j[a]){b=!!b();s.className+=" "+(b?"":"no-")+a;j[a]=b;return j}};m.cssText="";D=n=null;(function(){var a=e.createElement("div");a.innerHTML="<elem></elem>";return a.childNodes.length!==1})()&&function(a,b){function c(f,k){if(o[f])o[f].styleSheet.cssText+=k;else{var l=t[G],q=b[A]("style");q.media=f;l.insertBefore(q,l[G]);o[f]=q;c(f,k)}}function h(f,
|
26
|
+
k){for(var l=new RegExp("\\b("+w+")\\b(?!.*[;}])","gi"),q=function(B){return".iepp_"+B},x=-1;++x<f.length;){k=f[x].media||k;h(f[x].imports,k);c(k,f[x].cssText.replace(l,q))}}for(var t=b.documentElement,g=b.createDocumentFragment(),o={},w="abbr|article|aside|audio|canvas|command|datalist|details|figure|figcaption|footer|header|hgroup|keygen|mark|meter|nav|output|progress|section|source|summary|time|video",v=w.split("|"),p=[],H=-1,G="firstChild",A="createElement";++H<v.length;){b[A](v[H]);g[A](v[H])}g=
|
27
|
+
g.appendChild(b[A]("div"));a.attachEvent("onbeforeprint",function(){for(var f,k=b.getElementsByTagName("*"),l,q,x=new RegExp("^"+w+"$","i"),B=-1;++B<k.length;)if((f=k[B])&&(q=f.nodeName.match(x))){l=new RegExp("^\\s*<"+q+"(.*)\\/"+q+">\\s*$","i");g.innerHTML=f.outerHTML.replace(/\r|\n/g," ").replace(l,f.currentStyle.display=="block"?"<div$1/div>":"<span$1/span>");l=g.childNodes[0];l.className+=" iepp_"+q;l=p[p.length]=[f,l];f.parentNode.replaceChild(l[1],l[0])}h(b.styleSheets,"all")});a.attachEvent("onafterprint",
|
28
|
+
function(){for(var f=-1,k;++f<p.length;)p[f][1].parentNode.replaceChild(p[f][0],p[f][1]);for(k in o)t[G].removeChild(o[k]);o={};p=[]})}(this,e);j._enableHTML5=true;j._version="1.5";s.className=s.className.replace(/\bno-js\b/,"")+" js";s.className+=" "+N.join(" ");return j}(this,this.document);
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<header class="prepend-4 span-17 last">
|
2
|
+
<h1><a name="top"></a>Stickler</h1>
|
3
|
+
</header>
|
4
|
+
|
5
|
+
<div id="main" class="prepend-4 span-17 last">
|
6
|
+
<nav class="large">
|
7
|
+
<ol>
|
8
|
+
<%= specs_by_first_upcase_char.keys.sort.collect{ |k| "<li><strong><a href=\"##{k}\">#{k}</a></strong></li>" }.join("") %>
|
9
|
+
</ol>
|
10
|
+
</nav>
|
11
|
+
|
12
|
+
<hr class="space"/>
|
13
|
+
|
14
|
+
<section class="span-17 last">
|
15
|
+
<div class="gemlist" >
|
16
|
+
<% specs_by_first_upcase_char.keys.sort.each do |char| %>
|
17
|
+
<div class="letterlist">
|
18
|
+
<div class="letter-start"><a name="<%= char %>" href="#top" ><h2><%= char %></h2></a></div>
|
19
|
+
<ol>
|
20
|
+
<% specs_by_first_upcase_char[char].keys.sort.each_with_index do |name, idx|
|
21
|
+
spec_group = specs_by_first_upcase_char[char][name] %>
|
22
|
+
<li <%= 'class="stripe"' if 1 == (idx % 2 )%> >
|
23
|
+
<div class="gem">
|
24
|
+
<div class="name"><h3><%= spec_group.first.name %></h3></div>
|
25
|
+
<div class="version"><strong>Version(s):</strong><br /><%= spec_group.sort_by{ |spec| spec.full_name }.collect{ |spec| "<a href=\"/gems/#{spec.file_name}\">#{spec.version_platform}</a>" }.reverse.join(" ") %></strong></div>
|
26
|
+
</div>
|
27
|
+
</li>
|
28
|
+
<% end %>
|
29
|
+
</ol>
|
30
|
+
</div>
|
31
|
+
<% end %>
|
32
|
+
</div>
|
33
|
+
</section>
|
34
|
+
|
35
|
+
</div>
|
@@ -0,0 +1,42 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<!--[if IE]><![endif]-->
|
6
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
7
|
+
<meta name="description" content="Stickler Gem Server">
|
8
|
+
|
9
|
+
<title>Stickler</title>
|
10
|
+
|
11
|
+
<meta name="author" content="Jeremy Hinegardner">
|
12
|
+
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">
|
13
|
+
|
14
|
+
<link rel="shortcut icon" href="images/favicon.ico">
|
15
|
+
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
|
16
|
+
|
17
|
+
<link rel="stylesheet" href="css/blueprint/screen.css" type="text/css" media="screen, projection" />
|
18
|
+
<!--[if lt IE 8]>
|
19
|
+
<link rel="stylesheet" href="css/blueprint/ie.css" type="text/css" media="screen, projection" />
|
20
|
+
<![endif]-->
|
21
|
+
|
22
|
+
<link rel="stylesheet" href="css/style.css?v=1">
|
23
|
+
<script src="js/modernizr-1.5.min.js"></script>
|
24
|
+
<!--
|
25
|
+
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
|
26
|
+
<script>!window.jQuery && document.write('<script src="js/jquery-1.4.2.min.js"><\/script>')</script>
|
27
|
+
-->
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<!--[if lt IE 7 ]> <body class="ie6"> <![endif]-->
|
31
|
+
<!--[if IE 7 ]> <body class="ie7"> <![endif]-->
|
32
|
+
<!--[if IE 8 ]> <body class="ie8"> <![endif]-->
|
33
|
+
<!--[if IE 9 ]> <body class="ie9"> <![endif]-->
|
34
|
+
<!--[if (gt IE 9)|!(IE)]><!--> <body> <!--<![endif]-->
|
35
|
+
|
36
|
+
<div class="container">
|
37
|
+
<%= yield %>
|
38
|
+
</div>
|
39
|
+
</div> <!--! end of #container -->
|
40
|
+
|
41
|
+
</body>
|
42
|
+
</html>
|
data/lib/stickler/spec_lite.rb
CHANGED
@@ -22,11 +22,7 @@ module Stickler
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def full_name
|
25
|
-
|
26
|
-
name_version
|
27
|
-
else
|
28
|
-
"#{name_version}-#{platform}"
|
29
|
-
end
|
25
|
+
"#{name}-#{version_platform}"
|
30
26
|
end
|
31
27
|
alias :to_s :full_name
|
32
28
|
|
@@ -42,6 +38,14 @@ module Stickler
|
|
42
38
|
"#{name}-#{version}"
|
43
39
|
end
|
44
40
|
|
41
|
+
def version_platform
|
42
|
+
if platform == Gem::Platform::RUBY or platform.nil? then
|
43
|
+
version.to_s
|
44
|
+
else
|
45
|
+
"#{version}-#{platform}"
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
45
49
|
def to_a
|
46
50
|
[ name, version.to_s, platform.to_s ]
|
47
51
|
end
|
@@ -59,10 +63,16 @@ module Stickler
|
|
59
63
|
def <=>(other)
|
60
64
|
return 0 if other.object_id == self.object_id
|
61
65
|
other = coerce( other )
|
66
|
+
|
62
67
|
[ :name, :version, :platform ].each do |method|
|
63
|
-
|
68
|
+
us, them = self.send( method ), other.send( method )
|
69
|
+
if us.instance_of?( Gem::Platform ) || them.instance_of?( Gem::Platform ) then
|
70
|
+
us, them = us.to_s, them.to_s
|
71
|
+
end
|
72
|
+
result = us.<=>( them )
|
64
73
|
return result unless 0 == result
|
65
74
|
end
|
75
|
+
|
66
76
|
return 0
|
67
77
|
end
|
68
78
|
|