s7n 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. data/.gitignore +7 -0
  2. data/Gemfile +4 -0
  3. data/Gemfile.lock +28 -0
  4. data/LICENCE +24 -0
  5. data/README.rdoc +54 -0
  6. data/Rakefile +67 -0
  7. data/bin/s7ncli +23 -0
  8. data/lib/s7n.rb +12 -0
  9. data/lib/s7n/action.rb +7 -0
  10. data/lib/s7n/attribute.rb +226 -0
  11. data/lib/s7n/cipher.rb +110 -0
  12. data/lib/s7n/configuration.rb +41 -0
  13. data/lib/s7n/entry.rb +106 -0
  14. data/lib/s7n/entry_collection.rb +44 -0
  15. data/lib/s7n/entry_template.rb +10 -0
  16. data/lib/s7n/exception.rb +116 -0
  17. data/lib/s7n/file.rb +77 -0
  18. data/lib/s7n/gpass_file.rb +203 -0
  19. data/lib/s7n/key.rb +83 -0
  20. data/lib/s7n/message_catalog.rb +5 -0
  21. data/lib/s7n/s7n_file.rb +47 -0
  22. data/lib/s7n/s7ncli.rb +226 -0
  23. data/lib/s7n/s7ncli/attribute_command.rb +83 -0
  24. data/lib/s7n/s7ncli/command.rb +215 -0
  25. data/lib/s7n/s7ncli/entry_collection_command.rb +63 -0
  26. data/lib/s7n/s7ncli/entry_command.rb +728 -0
  27. data/lib/s7n/s7ncli/option.rb +101 -0
  28. data/lib/s7n/secret_generator.rb +30 -0
  29. data/lib/s7n/undo_stack.rb +7 -0
  30. data/lib/s7n/unicode_data.rb +29 -0
  31. data/lib/s7n/utils.rb +37 -0
  32. data/lib/s7n/version.rb +3 -0
  33. data/lib/s7n/world.rb +158 -0
  34. data/po/ja/s7n.po +533 -0
  35. data/po/s7n.pot +533 -0
  36. data/s7n.gemspec +30 -0
  37. data/test/s7n/attribute_test.rb +50 -0
  38. data/test/s7n/gpass_file_test.rb +169 -0
  39. data/test/s7n/gpass_file_test/passwords.gps.empty +1 -0
  40. data/test/s7n/gpass_file_test/passwords.gps.one_entry +2 -0
  41. data/test/s7n/gpass_file_test/passwords.gps.three_entries +3 -0
  42. data/test/s7n/gpass_file_test/passwords.gps.with_folders +0 -0
  43. data/test/s7n/secret_generator_test.rb +29 -0
  44. data/test/s7n/unicode_data_test.rb +28 -0
  45. data/test/s7n/world_test.rb +35 -0
  46. data/test/test_helper.rb +11 -0
  47. metadata +153 -0
@@ -0,0 +1,533 @@
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
+ # This file is distributed under the same license as the PACKAGE package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ #, fuzzy
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: s7n 0.1.0\n"
10
+ "POT-Creation-Date: 2012-03-18 14:35+0900\n"
11
+ "PO-Revision-Date: 2012-03-17 17:57+0900\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+ "Language: \n"
15
+ "MIME-Version: 1.0\n"
16
+ "Content-Type: text/plain; charset=UTF-8\n"
17
+ "Content-Transfer-Encoding: 8bit\n"
18
+ "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
19
+
20
+ #: lib/s7n/attribute.rb:161
21
+ msgid "Yes"
22
+ msgstr ""
23
+
24
+ #: lib/s7n/attribute.rb:161
25
+ msgid "No"
26
+ msgstr ""
27
+
28
+ #: lib/s7n/entry.rb:59
29
+ msgid "not same attribute type: name=<%s> expected=<%s> actual=<%s>"
30
+ msgstr ""
31
+
32
+ #: lib/s7n/exception.rb:14
33
+ msgid "Invlaid passphrase."
34
+ msgstr ""
35
+
36
+ #: lib/s7n/exception.rb:25
37
+ msgid "Invalid path: path=<%s>"
38
+ msgstr ""
39
+
40
+ #: lib/s7n/exception.rb:36
41
+ msgid "Does not exit: path=<%s>"
42
+ msgstr ""
43
+
44
+ #: lib/s7n/exception.rb:54
45
+ msgid "No such entry."
46
+ msgstr ""
47
+
48
+ #: lib/s7n/exception.rb:56
49
+ msgid "No such entry:%s"
50
+ msgstr ""
51
+
52
+ #: lib/s7n/exception.rb:75
53
+ msgid "No such attribute."
54
+ msgstr ""
55
+
56
+ #: lib/s7n/exception.rb:77
57
+ msgid "No such attribute:%s"
58
+ msgstr ""
59
+
60
+ #: lib/s7n/exception.rb:90
61
+ msgid "Invalid data length: actual=<%s> needed=<%s>"
62
+ msgstr ""
63
+
64
+ #: lib/s7n/exception.rb:96
65
+ msgid "Canceled."
66
+ msgstr ""
67
+
68
+ #: lib/s7n/exception.rb:113
69
+ msgid "Failed the command: command=<%s> status=<%d>"
70
+ msgstr ""
71
+
72
+ #: lib/s7n/gpass_file.rb:26
73
+ msgid "name"
74
+ msgstr ""
75
+
76
+ #: lib/s7n/gpass_file.rb:27
77
+ msgid "description"
78
+ msgstr ""
79
+
80
+ #: lib/s7n/gpass_file.rb:28
81
+ msgid "created_at"
82
+ msgstr ""
83
+
84
+ #: lib/s7n/gpass_file.rb:29
85
+ msgid "updated_at"
86
+ msgstr ""
87
+
88
+ #: lib/s7n/gpass_file.rb:30
89
+ msgid "expiration"
90
+ msgstr ""
91
+
92
+ #: lib/s7n/gpass_file.rb:31
93
+ msgid "expire_at"
94
+ msgstr ""
95
+
96
+ #: lib/s7n/gpass_file.rb:34
97
+ msgid "username"
98
+ msgstr ""
99
+
100
+ #: lib/s7n/gpass_file.rb:35
101
+ msgid "password"
102
+ msgstr ""
103
+
104
+ #: lib/s7n/gpass_file.rb:38
105
+ msgid "hostname"
106
+ msgstr ""
107
+
108
+ #: lib/s7n/gpass_file.rb:41
109
+ msgid "url"
110
+ msgstr ""
111
+
112
+ #: lib/s7n/gpass_file.rb:86
113
+ msgid "not supported version: %s"
114
+ msgstr ""
115
+
116
+ #: lib/s7n/gpass_file.rb:94
117
+ msgid "duplicated entry id: %s"
118
+ msgstr ""
119
+
120
+ #: lib/s7n/gpass_file.rb:130
121
+ msgid "invalid entry type: type=<%s>"
122
+ msgstr ""
123
+
124
+ #: lib/s7n/s7ncli/attribute_command.rb:14
125
+ #: lib/s7n/s7ncli/attribute_command.rb:51
126
+ msgid "Copy the attribute value to the clipboard."
127
+ msgstr ""
128
+
129
+ #: lib/s7n/s7ncli/attribute_command.rb:15
130
+ msgid "usage: copy [ID] [ATTRIBUTE NAME] [OPTIONS]"
131
+ msgstr ""
132
+
133
+ #: lib/s7n/s7ncli/attribute_command.rb:26 lib/s7n/s7ncli/entry_command.rb:406
134
+ #: lib/s7n/s7ncli/entry_command.rb:454
135
+ msgid "Entry ID."
136
+ msgstr ""
137
+
138
+ #: lib/s7n/s7ncli/attribute_command.rb:27
139
+ msgid "Attribute name."
140
+ msgstr ""
141
+
142
+ #: lib/s7n/s7ncli/attribute_command.rb:29
143
+ msgid "Inclement the entry's rate after copied."
144
+ msgstr ""
145
+
146
+ #: lib/s7n/s7ncli/attribute_command.rb:31
147
+ msgid "Lock screen after copied."
148
+ msgstr ""
149
+
150
+ #: lib/s7n/s7ncli/attribute_command.rb:32
151
+ msgid "Copy command."
152
+ msgstr ""
153
+
154
+ #: lib/s7n/s7ncli/attribute_command.rb:47 lib/s7n/s7ncli/entry_command.rb:422
155
+ #: lib/s7n/s7ncli/entry_command.rb:466 lib/s7n/s7ncli/entry_command.rb:707
156
+ msgid "Too few arguments."
157
+ msgstr ""
158
+
159
+ #: lib/s7n/s7ncli/attribute_command.rb:71 lib/s7n/s7ncli/entry_command.rb:481
160
+ msgid "Changed rate to %d."
161
+ msgstr ""
162
+
163
+ #: lib/s7n/s7ncli/command.rb:119
164
+ msgid "Describe the commands."
165
+ msgstr ""
166
+
167
+ #: lib/s7n/s7ncli/command.rb:120
168
+ msgid "usage: help [COMMAND]"
169
+ msgstr ""
170
+
171
+ #: lib/s7n/s7ncli/command.rb:129 lib/s7n/s7ncli/entry_command.rb:284
172
+ #: lib/s7n/s7ncli.rb:182
173
+ msgid "Unknown command: %s"
174
+ msgstr ""
175
+
176
+ #: lib/s7n/s7ncli/command.rb:132
177
+ msgid "Type 'help <command>' for help on a specific command."
178
+ msgstr ""
179
+
180
+ #: lib/s7n/s7ncli/command.rb:134
181
+ msgid "Available commands:"
182
+ msgstr ""
183
+
184
+ #: lib/s7n/s7ncli/command.rb:153
185
+ msgid "Save."
186
+ msgstr ""
187
+
188
+ #: lib/s7n/s7ncli/command.rb:153
189
+ msgid "usage: save"
190
+ msgstr ""
191
+
192
+ #: lib/s7n/s7ncli/command.rb:157
193
+ msgid "Force."
194
+ msgstr ""
195
+
196
+ #: lib/s7n/s7ncli/command.rb:163
197
+ msgid "Saved."
198
+ msgstr ""
199
+
200
+ #: lib/s7n/s7ncli/command.rb:171
201
+ msgid "Lock screen after saved."
202
+ msgstr ""
203
+
204
+ #: lib/s7n/s7ncli/command.rb:171
205
+ msgid "usage: lock"
206
+ msgstr ""
207
+
208
+ #: lib/s7n/s7ncli/command.rb:175
209
+ msgid "Locked screen."
210
+ msgstr ""
211
+
212
+ #: lib/s7n/s7ncli/command.rb:177 lib/s7n/s7ncli.rb:120 lib/s7n/s7ncli.rb:132
213
+ msgid "Enter the master key for s7n: "
214
+ msgstr ""
215
+
216
+ #: lib/s7n/s7ncli/command.rb:183
217
+ msgid "Unlocked."
218
+ msgstr ""
219
+
220
+ #: lib/s7n/s7ncli/command.rb:187 lib/s7n/s7ncli/entry_command.rb:77
221
+ #: lib/s7n/s7ncli/entry_command.rb:129
222
+ msgid "Try again."
223
+ msgstr ""
224
+
225
+ #: lib/s7n/s7ncli/command.rb:192 lib/s7n/s7ncli.rb:190 lib/s7n/s7ncli.rb:219
226
+ msgid "----- back trace -----"
227
+ msgstr ""
228
+
229
+ #: lib/s7n/s7ncli/command.rb:198 lib/s7n/s7ncli/command.rb:207
230
+ msgid "Quit."
231
+ msgstr ""
232
+
233
+ #: lib/s7n/s7ncli/command.rb:208
234
+ msgid "usage: quit"
235
+ msgstr ""
236
+
237
+ #: lib/s7n/s7ncli/entry_collection_command.rb:15
238
+ msgid "Import the entry colleciton from file."
239
+ msgstr ""
240
+
241
+ #: lib/s7n/s7ncli/entry_collection_command.rb:16
242
+ msgid "usage: import [PATH] [OPTIONS]"
243
+ msgstr ""
244
+
245
+ #: lib/s7n/s7ncli/entry_collection_command.rb:22
246
+ msgid "type"
247
+ msgstr ""
248
+
249
+ #: lib/s7n/s7ncli/entry_collection_command.rb:23
250
+ msgid "path"
251
+ msgstr ""
252
+
253
+ #: lib/s7n/s7ncli/entry_collection_command.rb:38
254
+ msgid "Import the entry collection in the GPass file: %s"
255
+ msgstr ""
256
+
257
+ #: lib/s7n/s7ncli/entry_collection_command.rb:41
258
+ msgid "Enter the master passphrase for GPass(^D is cancel): "
259
+ msgstr ""
260
+
261
+ #: lib/s7n/s7ncli/entry_collection_command.rb:48
262
+ msgid "Imported %d entries."
263
+ msgstr ""
264
+
265
+ #: lib/s7n/s7ncli/entry_collection_command.rb:57
266
+ msgid "not supported type: %s"
267
+ msgstr ""
268
+
269
+ #: lib/s7n/s7ncli/entry_command.rb:15
270
+ msgid "<n>,e<n>:edit attribute a:add attribute d<n>:delete attribute"
271
+ msgstr ""
272
+
273
+ #: lib/s7n/s7ncli/entry_command.rb:16
274
+ msgid "t:edit tags s:save"
275
+ msgstr ""
276
+
277
+ #: lib/s7n/s7ncli/entry_command.rb:27
278
+ msgid "Attribute name%s: "
279
+ msgstr ""
280
+
281
+ #: lib/s7n/s7ncli/entry_command.rb:34
282
+ msgid "Already exist: %s"
283
+ msgstr ""
284
+
285
+ #: lib/s7n/s7ncli/entry_command.rb:49
286
+ msgid " (%s)"
287
+ msgstr ""
288
+
289
+ #: lib/s7n/s7ncli/entry_command.rb:53
290
+ msgid "Value%s: "
291
+ msgstr ""
292
+
293
+ #: lib/s7n/s7ncli/entry_command.rb:58
294
+ msgid "Comfirm value: "
295
+ msgstr ""
296
+
297
+ #: lib/s7n/s7ncli/entry_command.rb:60
298
+ msgid "Mismatched."
299
+ msgstr ""
300
+
301
+ #: lib/s7n/s7ncli/entry_command.rb:73
302
+ msgid "The value is empty."
303
+ msgstr ""
304
+
305
+ #: lib/s7n/s7ncli/entry_command.rb:91
306
+ msgid "Edit tags%s: "
307
+ msgstr ""
308
+
309
+ #: lib/s7n/s7ncli/entry_command.rb:101
310
+ msgid "Is this a secret? (%s): "
311
+ msgstr ""
312
+
313
+ #: lib/s7n/s7ncli/entry_command.rb:107
314
+ msgid "Attribute type: "
315
+ msgstr ""
316
+
317
+ #: lib/s7n/s7ncli/entry_command.rb:123
318
+ msgid "Unknown type: %s"
319
+ msgstr ""
320
+
321
+ #: lib/s7n/s7ncli/entry_command.rb:149
322
+ msgid "tags"
323
+ msgstr ""
324
+
325
+ #: lib/s7n/s7ncli/entry_command.rb:151
326
+ msgid "Command (h:help, s:save, ^C:cancel): "
327
+ msgstr ""
328
+
329
+ #: lib/s7n/s7ncli/entry_command.rb:179 lib/s7n/s7ncli/entry_command.rb:257
330
+ msgid "Invalid index: %d"
331
+ msgstr ""
332
+
333
+ #: lib/s7n/s7ncli/entry_command.rb:181 lib/s7n/s7ncli/entry_command.rb:375
334
+ msgid "Edit attribute: %s"
335
+ msgstr ""
336
+
337
+ #: lib/s7n/s7ncli/entry_command.rb:193 lib/s7n/s7ncli/entry_command.rb:227
338
+ msgid "Generate value? (no): "
339
+ msgstr ""
340
+
341
+ #: lib/s7n/s7ncli/entry_command.rb:195 lib/s7n/s7ncli/entry_command.rb:230
342
+ msgid "Length (8): "
343
+ msgstr ""
344
+
345
+ #: lib/s7n/s7ncli/entry_command.rb:214
346
+ msgid "Updated '%s'."
347
+ msgstr ""
348
+
349
+ #: lib/s7n/s7ncli/entry_command.rb:216
350
+ msgid "Add attribute."
351
+ msgstr ""
352
+
353
+ #: lib/s7n/s7ncli/entry_command.rb:252
354
+ msgid "Added attribute: '%s'"
355
+ msgstr ""
356
+
357
+ #: lib/s7n/s7ncli/entry_command.rb:260
358
+ msgid "Can't delete attribute: %s"
359
+ msgstr ""
360
+
361
+ #: lib/s7n/s7ncli/entry_command.rb:263
362
+ msgid "Delete attribute '%s'? (no): "
363
+ msgstr ""
364
+
365
+ #: lib/s7n/s7ncli/entry_command.rb:268
366
+ msgid "Deleted attribute: '%s'"
367
+ msgstr ""
368
+
369
+ #: lib/s7n/s7ncli/entry_command.rb:275
370
+ msgid "Updated tags."
371
+ msgstr ""
372
+
373
+ #: lib/s7n/s7ncli/entry_command.rb:279
374
+ msgid "Saved: %d"
375
+ msgstr ""
376
+
377
+ #: lib/s7n/s7ncli/entry_command.rb:312
378
+ msgid "tag"
379
+ msgstr ""
380
+
381
+ #: lib/s7n/s7ncli/entry_command.rb:327 lib/s7n/s7ncli/entry_command.rb:362
382
+ msgid "Add the entry."
383
+ msgstr ""
384
+
385
+ #: lib/s7n/s7ncli/entry_command.rb:328
386
+ msgid "usage: add [NAME] [TAGS] [OPTIONS]"
387
+ msgstr ""
388
+
389
+ #: lib/s7n/s7ncli/entry_command.rb:334
390
+ msgid "Name."
391
+ msgstr ""
392
+
393
+ #: lib/s7n/s7ncli/entry_command.rb:335 lib/s7n/s7ncli/entry_command.rb:508
394
+ msgid "Tags."
395
+ msgstr ""
396
+
397
+ #: lib/s7n/s7ncli/entry_command.rb:337
398
+ msgid "Entry ID that is copied."
399
+ msgstr ""
400
+
401
+ #: lib/s7n/s7ncli/entry_command.rb:401 lib/s7n/s7ncli/entry_command.rb:430
402
+ msgid "Edit the entry."
403
+ msgstr ""
404
+
405
+ #: lib/s7n/s7ncli/entry_command.rb:402
406
+ msgid "usage: edit <ID> [OPTIONS]"
407
+ msgstr ""
408
+
409
+ #: lib/s7n/s7ncli/entry_command.rb:448
410
+ msgid "Show the entry."
411
+ msgstr ""
412
+
413
+ #: lib/s7n/s7ncli/entry_command.rb:449
414
+ msgid "usage: show <ID> [OPTIONS]"
415
+ msgstr ""
416
+
417
+ #: lib/s7n/s7ncli/entry_command.rb:456
418
+ msgid "Show value of secret attributes."
419
+ msgstr ""
420
+
421
+ #: lib/s7n/s7ncli/entry_command.rb:498
422
+ msgid "Search the entry."
423
+ msgstr ""
424
+
425
+ #: lib/s7n/s7ncli/entry_command.rb:499
426
+ msgid "usage: search [QUERY] [OPTIONS]"
427
+ msgstr ""
428
+
429
+ #: lib/s7n/s7ncli/entry_command.rb:507
430
+ msgid "Query."
431
+ msgstr ""
432
+
433
+ #: lib/s7n/s7ncli/entry_command.rb:509
434
+ msgid "Number of entries."
435
+ msgstr ""
436
+
437
+ #: lib/s7n/s7ncli/entry_command.rb:510
438
+ msgid "Ignore case."
439
+ msgstr ""
440
+
441
+ #: lib/s7n/s7ncli/entry_command.rb:553
442
+ msgid "No entry."
443
+ msgstr ""
444
+
445
+ #: lib/s7n/s7ncli/entry_command.rb:569
446
+ msgid "Search result of '%s', %d entries."
447
+ msgstr ""
448
+
449
+ #: lib/s7n/s7ncli/entry_command.rb:572
450
+ msgid "List of %d entries."
451
+ msgstr ""
452
+
453
+ #: lib/s7n/s7ncli/entry_command.rb:575
454
+ msgid " [page %d/%d]"
455
+ msgstr ""
456
+
457
+ #: lib/s7n/s7ncli/entry_command.rb:583
458
+ msgid "Command (p:prev, n:next, s:sort, q:quit): "
459
+ msgstr ""
460
+
461
+ #: lib/s7n/s7ncli/entry_command.rb:674
462
+ msgid ""
463
+ "%sID |%sName |%sTags(s) "
464
+ "|%sRate"
465
+ msgstr ""
466
+
467
+ #: lib/s7n/s7ncli/entry_command.rb:698
468
+ msgid "Delete the entry."
469
+ msgstr ""
470
+
471
+ #: lib/s7n/s7ncli/entry_command.rb:699
472
+ msgid "usage: delete <ID>"
473
+ msgstr ""
474
+
475
+ #: lib/s7n/s7ncli/entry_command.rb:717
476
+ msgid "Delete? (no): "
477
+ msgstr ""
478
+
479
+ #: lib/s7n/s7ncli/entry_command.rb:720
480
+ msgid "Deleted: %d"
481
+ msgstr ""
482
+
483
+ #: lib/s7n/s7ncli.rb:85
484
+ msgid "usage: s7ncli [options]"
485
+ msgstr ""
486
+
487
+ #: lib/s7n/s7ncli.rb:87
488
+ msgid "options:"
489
+ msgstr ""
490
+
491
+ #: lib/s7n/s7ncli.rb:89
492
+ msgid "Specify the base directory. Default is '%s'."
493
+ msgstr ""
494
+
495
+ #: lib/s7n/s7ncli.rb:93
496
+ msgid "Turn on debug mode. Default is '%s'."
497
+ msgstr ""
498
+
499
+ #: lib/s7n/s7ncli.rb:96
500
+ msgid "Show version."
501
+ msgstr ""
502
+
503
+ #: lib/s7n/s7ncli.rb:97
504
+ msgid "s7ncli, version %s"
505
+ msgstr ""
506
+
507
+ #: lib/s7n/s7ncli.rb:101
508
+ msgid "Show help and exit."
509
+ msgstr ""
510
+
511
+ #: lib/s7n/s7ncli.rb:137
512
+ msgid "Comfirm the master key for s7n: "
513
+ msgstr ""
514
+
515
+ #: lib/s7n/s7ncli.rb:147
516
+ msgid "created base directory: %s"
517
+ msgstr ""
518
+
519
+ #: lib/s7n/s7ncli.rb:160
520
+ msgid "could not read: %s"
521
+ msgstr ""
522
+
523
+ #: lib/s7n/s7ncli.rb:209
524
+ msgid "could not write: %s"
525
+ msgstr ""
526
+
527
+ #: lib/s7n/utils.rb:32
528
+ msgid "failed execute: command=<%s>"
529
+ msgstr ""
530
+
531
+ #: lib/s7n/world.rb:81 lib/s7n/world.rb:98
532
+ msgid "running other s7n: pid=<%d>"
533
+ msgstr ""