tool_pouch 0.0.34
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +5 -0
- data/README +22 -0
- data/Rakefile +3 -0
- data/data/iso639.yml +412 -0
- data/lib/tool_pouch.rb +43 -0
- data/lib/tool_pouch/babel.rb +225 -0
- data/lib/tool_pouch/krono.rb +153 -0
- data/lib/tool_pouch/locksmith.rb +111 -0
- data/lib/tool_pouch/mathema.rb +27 -0
- data/lib/tool_pouch/trail.rb +279 -0
- data/lib/tool_pouch/transistor.rb +98 -0
- data/lib/tool_pouch/version.rb +3 -0
- data/spec/spec_helper.rb +3 -0
- data/spec/tool_pouch/krono_spec.rb +12 -0
- data/spec/tool_pouch/locksmith/digest_spec.rb +105 -0
- metadata +88 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d3b35e9d5fe03dcdadb0f8352f98b7902c0ada1f
|
4
|
+
data.tar.gz: 91d6af6b5e72e6baa57741e3204f0d208122e5a3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a5e9104e82c051db88dc49cebd2a7d10543549716f9901d672708d0c3952fda1f54fa85e7d73a16c3abe2f9360c08da518a28917a043b81740676b6f6ef3472c
|
7
|
+
data.tar.gz: 5eb4adfb5dc75504ff99d9962bdd1504d982acff9888b3b7e1236d17deb8ab9f81970b8e733cea6c4e1d3763d936709723cfd99f06162fd8c13887897bd6fea4
|
data/Gemfile
ADDED
data/README
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Cocky Bouncer Dependencies
|
2
|
+
- Method current_user in the ApplicationController
|
3
|
+
- User Model
|
4
|
+
- User.authenticate(login, pass) # Valide que le login/pass est bon et retourne l'usager
|
5
|
+
- user.role # Retourne une string qui identifie le role de l'usager
|
6
|
+
- model.owned_by?(user) # Indique si le model est possédé par l'usager
|
7
|
+
|
8
|
+
|
9
|
+
Cocky Bouncer Optional Dependencies
|
10
|
+
- User Model
|
11
|
+
- User.authenticate_with_remember_me_key(cookie_key) # Retourne l'usager associé à la clé du cookie
|
12
|
+
- user.remember_me_key # Génère la clé du cookie pour la fonction remember_me
|
13
|
+
- user.log_last_login! # Set la date du dernier login
|
14
|
+
- model.find_by_identifier(id) # Find par défaut pour retrouver un enregistrement
|
15
|
+
|
16
|
+
|
17
|
+
Cocky Bouncer provides
|
18
|
+
ActionController
|
19
|
+
authenticate! # Authentifie un utilisateur
|
20
|
+
can?(:action, :controller, record) # Indique si le current_user peut accéder à la fonction
|
21
|
+
can_view?(:section) #
|
22
|
+
disconnect! # Déconnecte le current_user
|
data/Rakefile
ADDED
data/data/iso639.yml
ADDED
@@ -0,0 +1,412 @@
|
|
1
|
+
data:
|
2
|
+
iso639_convert:
|
3
|
+
1_to_2b:
|
4
|
+
aa: aar
|
5
|
+
ab: abk
|
6
|
+
af: afr
|
7
|
+
ak: aka
|
8
|
+
sq: alb
|
9
|
+
am: amh
|
10
|
+
ar: ara
|
11
|
+
an: arg
|
12
|
+
hy: arm
|
13
|
+
as: asm
|
14
|
+
av: ava
|
15
|
+
ae: ave
|
16
|
+
ay: aym
|
17
|
+
az: aze
|
18
|
+
ba: bak
|
19
|
+
bm: bam
|
20
|
+
eu: baq
|
21
|
+
be: bel
|
22
|
+
bn: ben
|
23
|
+
bh: bih
|
24
|
+
bi: bis
|
25
|
+
bo: tib
|
26
|
+
bs: bos
|
27
|
+
br: bre
|
28
|
+
bg: bul
|
29
|
+
my: bur
|
30
|
+
ca: cat
|
31
|
+
cs: cze
|
32
|
+
ch: cha
|
33
|
+
ce: che
|
34
|
+
zh: chi
|
35
|
+
cu: chu
|
36
|
+
cv: chv
|
37
|
+
kw: cor
|
38
|
+
co: cos
|
39
|
+
cr: cre
|
40
|
+
cy: wel
|
41
|
+
cs: cze
|
42
|
+
da: dan
|
43
|
+
de: ger
|
44
|
+
dv: div
|
45
|
+
nl: dut
|
46
|
+
dz: dzo
|
47
|
+
el: gre
|
48
|
+
en: eng
|
49
|
+
eo: epo
|
50
|
+
et: est
|
51
|
+
eu: baq
|
52
|
+
ee: ewe
|
53
|
+
fo: fao
|
54
|
+
fa: per
|
55
|
+
fj: fij
|
56
|
+
fi: fin
|
57
|
+
fr: fre
|
58
|
+
fr: fre
|
59
|
+
fy: fry
|
60
|
+
ff: ful
|
61
|
+
ka: geo
|
62
|
+
de: ger
|
63
|
+
gd: gla
|
64
|
+
ga: gle
|
65
|
+
gl: glg
|
66
|
+
gv: glv
|
67
|
+
el: gre
|
68
|
+
gn: grn
|
69
|
+
gu: guj
|
70
|
+
ht: hat
|
71
|
+
ha: hau
|
72
|
+
he: heb
|
73
|
+
hz: her
|
74
|
+
hi: hin
|
75
|
+
ho: hmo
|
76
|
+
hr: hrv
|
77
|
+
hu: hun
|
78
|
+
hy: arm
|
79
|
+
ig: ibo
|
80
|
+
is: ice
|
81
|
+
io: ido
|
82
|
+
ii: iii
|
83
|
+
iu: iku
|
84
|
+
ie: ile
|
85
|
+
ia: ina
|
86
|
+
id: ind
|
87
|
+
ik: ipk
|
88
|
+
is: ice
|
89
|
+
it: ita
|
90
|
+
jv: jav
|
91
|
+
ja: jpn
|
92
|
+
kl: kal
|
93
|
+
kn: kan
|
94
|
+
ks: kas
|
95
|
+
ka: geo
|
96
|
+
kr: kau
|
97
|
+
kk: kaz
|
98
|
+
km: khm
|
99
|
+
ki: kik
|
100
|
+
rw: kin
|
101
|
+
ky: kir
|
102
|
+
kv: kom
|
103
|
+
kg: kon
|
104
|
+
ko: kor
|
105
|
+
kj: kua
|
106
|
+
ku: kur
|
107
|
+
lo: lao
|
108
|
+
la: lat
|
109
|
+
lv: lav
|
110
|
+
li: lim
|
111
|
+
ln: lin
|
112
|
+
lt: lit
|
113
|
+
lb: ltz
|
114
|
+
lu: lub
|
115
|
+
lg: lug
|
116
|
+
mk: mac
|
117
|
+
mh: mah
|
118
|
+
ml: mal
|
119
|
+
mi: mao
|
120
|
+
mr: mar
|
121
|
+
ms: may
|
122
|
+
mk: mac
|
123
|
+
mg: mlg
|
124
|
+
mt: mlt
|
125
|
+
mn: mon
|
126
|
+
mi: mao
|
127
|
+
ms: may
|
128
|
+
my: bur
|
129
|
+
na: nau
|
130
|
+
nv: nav
|
131
|
+
nr: nbl
|
132
|
+
nd: nde
|
133
|
+
ng: ndo
|
134
|
+
ne: nep
|
135
|
+
nl: dut
|
136
|
+
nn: nno
|
137
|
+
nb: nob
|
138
|
+
no: nor
|
139
|
+
ny: nya
|
140
|
+
oc: oci
|
141
|
+
oj: oji
|
142
|
+
or: ori
|
143
|
+
om: orm
|
144
|
+
os: oss
|
145
|
+
pa: pan
|
146
|
+
fa: per
|
147
|
+
pi: pli
|
148
|
+
pl: pol
|
149
|
+
pt: por
|
150
|
+
ps: pus
|
151
|
+
qu: que
|
152
|
+
rm: roh
|
153
|
+
ro: rum
|
154
|
+
ro: rum
|
155
|
+
rn: run
|
156
|
+
ru: rus
|
157
|
+
sg: sag
|
158
|
+
sa: san
|
159
|
+
si: sin
|
160
|
+
sk: slo
|
161
|
+
sk: slo
|
162
|
+
sl: slv
|
163
|
+
se: sme
|
164
|
+
sm: smo
|
165
|
+
sn: sna
|
166
|
+
sd: snd
|
167
|
+
so: som
|
168
|
+
st: sot
|
169
|
+
es: spa
|
170
|
+
sq: alb
|
171
|
+
sc: srd
|
172
|
+
sr: srp
|
173
|
+
ss: ssw
|
174
|
+
su: sun
|
175
|
+
sw: swa
|
176
|
+
sv: swe
|
177
|
+
ty: tah
|
178
|
+
ta: tam
|
179
|
+
tt: tat
|
180
|
+
te: tel
|
181
|
+
tg: tgk
|
182
|
+
tl: tgl
|
183
|
+
th: tha
|
184
|
+
bo: tib
|
185
|
+
ti: tir
|
186
|
+
to: ton
|
187
|
+
tn: tsn
|
188
|
+
ts: tso
|
189
|
+
tk: tuk
|
190
|
+
tr: tur
|
191
|
+
tw: twi
|
192
|
+
ug: uig
|
193
|
+
uk: ukr
|
194
|
+
ur: urd
|
195
|
+
uz: uzb
|
196
|
+
ve: ven
|
197
|
+
vi: vie
|
198
|
+
vo: vol
|
199
|
+
cy: wel
|
200
|
+
wa: wln
|
201
|
+
wo: wol
|
202
|
+
xh: xho
|
203
|
+
yi: yid
|
204
|
+
yo: yor
|
205
|
+
za: zha
|
206
|
+
zh: chi
|
207
|
+
zu: zul
|
208
|
+
2b_to_1:
|
209
|
+
aar: aa
|
210
|
+
abk: ab
|
211
|
+
afr: af
|
212
|
+
aka: ak
|
213
|
+
alb: sq
|
214
|
+
amh: am
|
215
|
+
ara: ar
|
216
|
+
arg: an
|
217
|
+
arm: hy
|
218
|
+
asm: as
|
219
|
+
ava: av
|
220
|
+
ave: ae
|
221
|
+
aym: ay
|
222
|
+
aze: az
|
223
|
+
bak: ba
|
224
|
+
bam: bm
|
225
|
+
baq: eu
|
226
|
+
bel: be
|
227
|
+
ben: bn
|
228
|
+
bih: bh
|
229
|
+
bis: bi
|
230
|
+
tib: bo
|
231
|
+
bos: bs
|
232
|
+
bre: br
|
233
|
+
bul: bg
|
234
|
+
bur: my
|
235
|
+
cat: ca
|
236
|
+
cze: cs
|
237
|
+
cha: ch
|
238
|
+
che: ce
|
239
|
+
chi: zh
|
240
|
+
chu: cu
|
241
|
+
chv: cv
|
242
|
+
cor: kw
|
243
|
+
cos: co
|
244
|
+
cre: cr
|
245
|
+
wel: cy
|
246
|
+
cze: cs
|
247
|
+
dan: da
|
248
|
+
ger: de
|
249
|
+
div: dv
|
250
|
+
dut: nl
|
251
|
+
dzo: dz
|
252
|
+
gre: el
|
253
|
+
eng: en
|
254
|
+
epo: eo
|
255
|
+
est: et
|
256
|
+
baq: eu
|
257
|
+
ewe: ee
|
258
|
+
fao: fo
|
259
|
+
per: fa
|
260
|
+
fij: fj
|
261
|
+
fin: fi
|
262
|
+
fre: fr
|
263
|
+
fre: fr
|
264
|
+
fry: fy
|
265
|
+
ful: ff
|
266
|
+
geo: ka
|
267
|
+
ger: de
|
268
|
+
gla: gd
|
269
|
+
gle: ga
|
270
|
+
glg: gl
|
271
|
+
glv: gv
|
272
|
+
gre: el
|
273
|
+
grn: gn
|
274
|
+
guj: gu
|
275
|
+
hat: ht
|
276
|
+
hau: ha
|
277
|
+
heb: he
|
278
|
+
her: hz
|
279
|
+
hin: hi
|
280
|
+
hmo: ho
|
281
|
+
hrv: hr
|
282
|
+
hun: hu
|
283
|
+
arm: hy
|
284
|
+
ibo: ig
|
285
|
+
ice: is
|
286
|
+
ido: io
|
287
|
+
iii: ii
|
288
|
+
iku: iu
|
289
|
+
ile: ie
|
290
|
+
ina: ia
|
291
|
+
ind: id
|
292
|
+
ipk: ik
|
293
|
+
ice: is
|
294
|
+
ita: it
|
295
|
+
jav: jv
|
296
|
+
jpn: ja
|
297
|
+
kal: kl
|
298
|
+
kan: kn
|
299
|
+
kas: ks
|
300
|
+
geo: ka
|
301
|
+
kau: kr
|
302
|
+
kaz: kk
|
303
|
+
khm: km
|
304
|
+
kik: ki
|
305
|
+
kin: rw
|
306
|
+
kir: ky
|
307
|
+
kom: kv
|
308
|
+
kon: kg
|
309
|
+
kor: ko
|
310
|
+
kua: kj
|
311
|
+
kur: ku
|
312
|
+
lao: lo
|
313
|
+
lat: la
|
314
|
+
lav: lv
|
315
|
+
lim: li
|
316
|
+
lin: ln
|
317
|
+
lit: lt
|
318
|
+
ltz: lb
|
319
|
+
lub: lu
|
320
|
+
lug: lg
|
321
|
+
mac: mk
|
322
|
+
mah: mh
|
323
|
+
mal: ml
|
324
|
+
mao: mi
|
325
|
+
mar: mr
|
326
|
+
may: ms
|
327
|
+
mac: mk
|
328
|
+
mlg: mg
|
329
|
+
mlt: mt
|
330
|
+
mon: mn
|
331
|
+
mao: mi
|
332
|
+
may: ms
|
333
|
+
bur: my
|
334
|
+
nau: na
|
335
|
+
nav: nv
|
336
|
+
nbl: nr
|
337
|
+
nde: nd
|
338
|
+
ndo: ng
|
339
|
+
nep: ne
|
340
|
+
dut: nl
|
341
|
+
nno: nn
|
342
|
+
nob: nb
|
343
|
+
nor: no
|
344
|
+
nya: ny
|
345
|
+
oci: oc
|
346
|
+
oji: oj
|
347
|
+
ori: or
|
348
|
+
orm: om
|
349
|
+
oss: os
|
350
|
+
pan: pa
|
351
|
+
per: fa
|
352
|
+
pli: pi
|
353
|
+
pol: pl
|
354
|
+
por: pt
|
355
|
+
pus: ps
|
356
|
+
que: qu
|
357
|
+
roh: rm
|
358
|
+
rum: ro
|
359
|
+
rum: ro
|
360
|
+
run: rn
|
361
|
+
rus: ru
|
362
|
+
sag: sg
|
363
|
+
san: sa
|
364
|
+
sin: si
|
365
|
+
slo: sk
|
366
|
+
slo: sk
|
367
|
+
slv: sl
|
368
|
+
sme: se
|
369
|
+
smo: sm
|
370
|
+
sna: sn
|
371
|
+
snd: sd
|
372
|
+
som: so
|
373
|
+
sot: st
|
374
|
+
spa: es
|
375
|
+
alb: sq
|
376
|
+
srd: sc
|
377
|
+
srp: sr
|
378
|
+
ssw: ss
|
379
|
+
sun: su
|
380
|
+
swa: sw
|
381
|
+
swe: sv
|
382
|
+
tah: ty
|
383
|
+
tam: ta
|
384
|
+
tat: tt
|
385
|
+
tel: te
|
386
|
+
tgk: tg
|
387
|
+
tgl: tl
|
388
|
+
tha: th
|
389
|
+
tib: bo
|
390
|
+
tir: ti
|
391
|
+
ton: to
|
392
|
+
tsn: tn
|
393
|
+
tso: ts
|
394
|
+
tuk: tk
|
395
|
+
tur: tr
|
396
|
+
twi: tw
|
397
|
+
uig: ug
|
398
|
+
ukr: uk
|
399
|
+
urd: ur
|
400
|
+
uzb: uz
|
401
|
+
ven: ve
|
402
|
+
vie: vi
|
403
|
+
vol: vo
|
404
|
+
wel: cy
|
405
|
+
wln: wa
|
406
|
+
wol: wo
|
407
|
+
xho: xh
|
408
|
+
yid: yi
|
409
|
+
yor: yo
|
410
|
+
zha: za
|
411
|
+
chi: zh
|
412
|
+
zul: zu
|