nikki 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 85460eb9bdca5b6596634ee5f5434474f7363ca1
4
- data.tar.gz: 8c7eea3c8ef4b46b4418e1036bf5764f5a259118
3
+ metadata.gz: ea6c3fbdef3033405967dbb776f8e7ccee6e1d66
4
+ data.tar.gz: 5cd97d3694bb90b344c32f587a90a5588f4f30c6
5
5
  SHA512:
6
- metadata.gz: f1621ef6b8f701cfecbbd5ebe06644cdb3cb943036edb161be6703654b1be1a8b39e62e2da9a2448bd2c530036895e79ffed668a6f1df872786140c9c80a544a
7
- data.tar.gz: dfb82f63953ac0591418c3ac1631a283eb6ee097ce6171a76bb345515507b04e6d1610243b276fe4ac59f2d22a911d56015158ad0314ce349af1878f22c2de5d
6
+ metadata.gz: 0ed300ecd2c51e4c51320fd04c93c943dcf358c3a3db304d82bd5838dfea24017b79dd8564120d1bb265f154a8d99782271c7fa920ba9f925703c6b75c1bd3fc
7
+ data.tar.gz: 79fb38bed057c4af7f44e40f668803a3d6c8db91569e3962f24a9bfa0ed4ccb9c467d9d4356fbba53544775a7f5324d4b3cbb815b67c5df0656f0a2479a6a251
data/doc/Generator.html CHANGED
@@ -119,7 +119,7 @@
119
119
  <div class="discussion">
120
120
 
121
121
  <p>This is the main class that interfaces with Thor&#39;s methods and does all
122
- the heavy lifting for Nikki. It&#39;s a bit of a “God” object. Sorries.</p>
122
+ the heavy lifting for Nikki. It&#39;s a bit of a “God” object. Sorries.</p>
123
123
 
124
124
 
125
125
  </div>
@@ -185,7 +185,31 @@ the heavy lifting for Nikki. It&#39;s a bit of a “God” object. Sorries.</p>
185
185
  <li class="public ">
186
186
  <span class="summary_signature">
187
187
 
188
- <a href="#new-instance_method" title="#new (instance method)">- (Object) <strong>new</strong>(*args) </a>
188
+ <a href="#ls-instance_method" title="#ls (instance method)">- (String) <strong>ls</strong> </a>
189
+
190
+
191
+
192
+ </span>
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+ <span class="summary_desc"><div class='inline'>
203
+ <p>Display Nikki&#39;s latest entires.</p>
204
+ </div></span>
205
+
206
+ </li>
207
+
208
+
209
+ <li class="public ">
210
+ <span class="summary_signature">
211
+
212
+ <a href="#new-instance_method" title="#new (instance method)">- (Hash) <strong>new</strong>(*entry) </a>
189
213
 
190
214
 
191
215
 
@@ -228,6 +252,31 @@ didn&#39;t update the journal the previous day.</p>
228
252
  <p>Open Nikki journal in configured text editor.</p>
229
253
  </div></span>
230
254
 
255
+ </li>
256
+
257
+
258
+ <li class="public ">
259
+ <span class="summary_signature">
260
+
261
+ <a href="#publish-instance_method" title="#publish (instance method)">- (Object) <strong>publish</strong>(year) </a>
262
+
263
+
264
+
265
+ </span>
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+ <span class="summary_desc"><div class='inline'>
276
+ <p>method calls the `markdown` method and creates a MultiMarkdown document
277
+ with one big description list.</p>
278
+ </div></span>
279
+
231
280
  </li>
232
281
 
233
282
 
@@ -288,115 +337,106 @@ didn&#39;t update the journal the previous day.</p>
288
337
 
289
338
  <li>
290
339
 
291
- <span class='name'>--editor</span>
340
+ <span class='name'>options</span>
292
341
 
293
342
 
294
- <span class='type'>(<tt>String</tt>)</span>
343
+ <span class='type'>(<tt>Hash</tt>)</span>
295
344
 
296
345
 
297
346
 
298
347
  &mdash;
299
348
  <div class='inline'>
300
- <p>(<a href=":editor">read_config</a>) Sets Nikki&#39;s editor to open journal
301
- file</p>
349
+ <p>The options for configuring Nikki</p>
302
350
  </div>
303
351
 
304
352
  </li>
305
353
 
306
- <li>
307
-
308
- <span class='name'>--yesterday</span>
309
-
310
-
311
- <span class='type'></span>
312
-
313
-
314
-
315
- &mdash;
316
- <div class='inline'>
317
- <p>Set `<a href=":updated">settings</a>` to yesterday</p>
318
- </div>
319
-
320
- </li>
354
+ </ul>
355
+
321
356
 
322
- <li>
323
-
324
- <span class='name'>--today</span>
325
-
326
-
327
- <span class='type'></span>
328
-
329
-
330
-
331
- &mdash;
332
- <div class='inline'>
333
- <p>Set `<a href=":updated">settings</a>` to today</p>
357
+
358
+
359
+ </div><table class="source_code">
360
+ <tr>
361
+ <td>
362
+ <pre class="lines">
363
+
364
+
365
+ 72
366
+ 73
367
+ 74
368
+ 75
369
+ 76
370
+ 77
371
+ 78
372
+ 79
373
+ 80</pre>
374
+ </td>
375
+ <td>
376
+ <pre class="code"><span class="info file"># File 'lib/nikki.rb', line 72</span>
377
+
378
+ <span class='kw'>def</span> <span class='id identifier rubyid_config'>config</span>
379
+ <span class='id identifier rubyid_settings'>settings</span> <span class='op'>=</span> <span class='id identifier rubyid_read_config'>read_config</span>
380
+ <span class='id identifier rubyid_settings'>settings</span><span class='lbracket'>[</span><span class='symbol'>:editor</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:editor</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_read_config'>read_config</span><span class='lbracket'>[</span><span class='symbol'>:editor</span><span class='rbracket'>]</span>
381
+ <span class='id identifier rubyid_settings'>settings</span><span class='lbracket'>[</span><span class='symbol'>:updated</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_today'>today</span><span class='op'>-</span><span class='int'>1</span> <span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:yesterday</span><span class='rbracket'>]</span>
382
+ <span class='id identifier rubyid_settings'>settings</span><span class='lbracket'>[</span><span class='symbol'>:updated</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_today'>today</span> <span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:today</span><span class='rbracket'>]</span>
383
+ <span class='id identifier rubyid_write_config'>write_config</span><span class='lparen'>(</span><span class='id identifier rubyid_settings'>settings</span><span class='rparen'>)</span>
384
+ <span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_settings'>settings</span><span class='period'>.</span><span class='id identifier rubyid_to_yaml'>to_yaml</span> <span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:print</span><span class='rbracket'>]</span>
385
+ <span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_latest'>latest</span> <span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:latest</span><span class='rbracket'>]</span>
386
+ <span class='kw'>end</span></pre>
387
+ </td>
388
+ </tr>
389
+ </table>
334
390
  </div>
335
-
336
- </li>
391
+
392
+ <div class="method_details ">
393
+ <h3 class="signature " id="ls-instance_method">
337
394
 
338
- <li>
339
-
340
- <span class='name'>--print</span>
341
-
342
-
343
- <span class='type'></span>
344
-
345
-
346
-
347
- &mdash;
348
- <div class='inline'>
349
- <p>Prints Nikki&#39;s configuration settings to STDOUT</p>
395
+ - (<tt>String</tt>) <strong>ls</strong>
396
+
397
+
398
+
399
+
400
+
401
+ </h3><div class="docstring">
402
+ <div class="discussion">
403
+
404
+ <p>Display Nikki&#39;s latest entires</p>
405
+
406
+
407
+ </div>
350
408
  </div>
351
-
352
- </li>
409
+ <div class="tags">
410
+
411
+ <p class="tag_title">Returns:</p>
412
+ <ul class="return">
353
413
 
354
414
  <li>
355
415
 
356
- <span class='name'>--latest</span>
357
-
358
416
 
359
- <span class='type'></span>
417
+ <span class='type'>(<tt>String</tt>)</span>
360
418
 
361
419
 
362
420
 
363
- &mdash;
364
- <div class='inline'>
365
- <p>Prints Nikki&#39;s latest entries to STDOUT</p>
366
- </div>
367
-
368
421
  </li>
369
422
 
370
423
  </ul>
371
424
 
372
-
373
425
  </div><table class="source_code">
374
426
  <tr>
375
427
  <td>
376
428
  <pre class="lines">
377
429
 
378
430
 
379
- 64
380
- 65
381
- 66
382
- 67
383
- 68
384
- 69
385
- 70
386
- 71
387
- 72</pre>
431
+ 55
432
+ 56
433
+ 57</pre>
388
434
  </td>
389
435
  <td>
390
- <pre class="code"><span class="info file"># File 'lib/nikki.rb', line 64</span>
436
+ <pre class="code"><span class="info file"># File 'lib/nikki.rb', line 55</span>
391
437
 
392
- <span class='kw'>def</span> <span class='id identifier rubyid_config'>config</span>
393
- <span class='id identifier rubyid_settings'>settings</span> <span class='op'>=</span> <span class='id identifier rubyid_read_config'>read_config</span>
394
- <span class='id identifier rubyid_settings'>settings</span><span class='lbracket'>[</span><span class='symbol'>:editor</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:editor</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_read_config'>read_config</span><span class='lbracket'>[</span><span class='symbol'>:editor</span><span class='rbracket'>]</span>
395
- <span class='id identifier rubyid_settings'>settings</span><span class='lbracket'>[</span><span class='symbol'>:updated</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_today'>today</span><span class='op'>-</span><span class='int'>1</span> <span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:yesterday</span><span class='rbracket'>]</span>
396
- <span class='id identifier rubyid_settings'>settings</span><span class='lbracket'>[</span><span class='symbol'>:updated</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_today'>today</span> <span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:today</span><span class='rbracket'>]</span>
397
- <span class='id identifier rubyid_write_config'>write_config</span><span class='lparen'>(</span><span class='id identifier rubyid_settings'>settings</span><span class='rparen'>)</span>
398
- <span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_settings'>settings</span><span class='period'>.</span><span class='id identifier rubyid_to_yaml'>to_yaml</span> <span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:print</span><span class='rbracket'>]</span>
399
- <span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_latest'>latest</span> <span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:latest</span><span class='rbracket'>]</span>
438
+ <span class='kw'>def</span> <span class='id identifier rubyid_ls'>ls</span>
439
+ <span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_latest'>latest</span>
400
440
  <span class='kw'>end</span></pre>
401
441
  </td>
402
442
  </tr>
@@ -406,7 +446,7 @@ file</p>
406
446
  <div class="method_details ">
407
447
  <h3 class="signature " id="new-instance_method">
408
448
 
409
- - (<tt>Object</tt>) <strong>new</strong>(*args)
449
+ - (<tt>Hash</tt>) <strong>new</strong>(*entry)
410
450
 
411
451
 
412
452
 
@@ -416,9 +456,9 @@ file</p>
416
456
  <div class="discussion">
417
457
 
418
458
  <p>Add entry to journal Will open your configured text editor on OS X if you
419
- didn&#39;t update the journal the previous day. This will allow you to add
420
- missing entries in bulk. It reads the settings in from the config YAML file
421
- and changes the date updated. It does the same with the journal file,
459
+ didn&#39;t update the journal the previous day. This will allow you to add
460
+ missing entries in bulk. It reads the settings in from the config YAML
461
+ file and changes the date updated. It does the same with the journal file,
422
462
  reading in the YAML and merging the hash of entries, and then saves the
423
463
  YAML back again. There&#39;s also a method to check off a corresponding
424
464
  task in OmniFocus at the end.</p>
@@ -427,12 +467,20 @@ task in OmniFocus at the end.</p>
427
467
  </div>
428
468
  </div>
429
469
  <div class="tags">
430
- <p class="tag_title">Parameters:</p>
470
+
471
+ <div class="examples">
472
+ <p class="tag_title">Examples:</p>
473
+
474
+
475
+ <pre class="example code"><code><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>nikki new &#39;This is a thing I learned today!&#39;</span><span class='tstring_end'>&quot;</span></span></code></pre>
476
+
477
+ </div>
478
+ <p class="tag_title">Parameters:</p>
431
479
  <ul class="param">
432
480
 
433
481
  <li>
434
482
 
435
- <span class='name'>entry</span>
483
+ <span class='name'>--entry</span>
436
484
 
437
485
 
438
486
  <span class='type'>(<tt>String</tt>)</span>
@@ -448,6 +496,24 @@ task in OmniFocus at the end.</p>
448
496
 
449
497
  </ul>
450
498
 
499
+ <p class="tag_title">Returns:</p>
500
+ <ul class="return">
501
+
502
+ <li>
503
+
504
+
505
+ <span class='type'>(<tt>Hash</tt>)</span>
506
+
507
+
508
+
509
+ &mdash;
510
+ <div class='inline'>
511
+ <p>Returns a Hash which is then saved in a YAML file.</p>
512
+ </div>
513
+
514
+ </li>
515
+
516
+ </ul>
451
517
 
452
518
  </div><table class="source_code">
453
519
  <tr>
@@ -455,26 +521,26 @@ task in OmniFocus at the end.</p>
455
521
  <pre class="lines">
456
522
 
457
523
 
458
- 28
459
- 29
460
- 30
461
- 31
462
- 32
463
524
  33
464
525
  34
465
526
  35
466
527
  36
467
528
  37
468
529
  38
469
- 39</pre>
530
+ 39
531
+ 40
532
+ 41
533
+ 42
534
+ 43
535
+ 44</pre>
470
536
  </td>
471
537
  <td>
472
- <pre class="code"><span class="info file"># File 'lib/nikki.rb', line 28</span>
538
+ <pre class="code"><span class="info file"># File 'lib/nikki.rb', line 33</span>
473
539
 
474
- <span class='kw'>def</span> <span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
540
+ <span class='kw'>def</span> <span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_entry'>entry</span><span class='rparen'>)</span>
475
541
  <span class='id identifier rubyid_settings'>settings</span> <span class='op'>=</span> <span class='id identifier rubyid_read_config'>read_config</span>
476
542
  <span class='id identifier rubyid_settings'>settings</span><span class='lbracket'>[</span><span class='symbol'>:updated</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_today'>today</span>
477
- <span class='id identifier rubyid_entry'>entry</span> <span class='op'>=</span> <span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'> </span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
543
+ <span class='id identifier rubyid_entry'>entry</span> <span class='op'>=</span> <span class='id identifier rubyid_entry'>entry</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'> </span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
478
544
  <span class='id identifier rubyid_entry_hash'>entry_hash</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_today'>today</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_entry'>entry</span> <span class='rbrace'>}</span>
479
545
  <span class='id identifier rubyid_journal'>journal</span> <span class='op'>=</span> <span class='id identifier rubyid_read_file'>read_file</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_entry_hash'>entry_hash</span><span class='rparen'>)</span>
480
546
  <span class='id identifier rubyid_write_file'>write_file</span><span class='lparen'>(</span><span class='id identifier rubyid_journal'>journal</span><span class='rparen'>)</span>
@@ -514,23 +580,82 @@ task in OmniFocus at the end.</p>
514
580
  <pre class="lines">
515
581
 
516
582
 
517
- 44
518
- 45
519
- 46
520
- 47
521
583
  48
522
584
  49
523
585
  50</pre>
524
586
  </td>
525
587
  <td>
526
- <pre class="code"><span class="info file"># File 'lib/nikki.rb', line 44</span>
588
+ <pre class="code"><span class="info file"># File 'lib/nikki.rb', line 48</span>
527
589
 
528
590
  <span class='kw'>def</span> <span class='id identifier rubyid_open'>open</span>
529
- <span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:marked</span><span class='rbracket'>]</span>
530
- <span class='backtick'>%x{</span><span class='tstring_content'>open -a Marked </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_file'>file</span><span class='embexpr_end'>}</span><span class='tstring_end'>}</span></span>
531
- <span class='kw'>else</span>
532
- <span class='backtick'>%x{</span><span class='tstring_content'>open -a &quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_editor'>editor</span><span class='embexpr_end'>}</span><span class='tstring_content'>&quot; </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_file'>file</span><span class='embexpr_end'>}</span><span class='tstring_end'>}</span></span>
533
- <span class='kw'>end</span>
591
+ <span class='backtick'>%x{</span><span class='tstring_content'>open -a &quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_editor'>editor</span><span class='embexpr_end'>}</span><span class='tstring_content'>&quot; </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_file'>file</span><span class='embexpr_end'>}</span><span class='tstring_end'>}</span></span>
592
+ <span class='kw'>end</span></pre>
593
+ </td>
594
+ </tr>
595
+ </table>
596
+ </div>
597
+
598
+ <div class="method_details ">
599
+ <h3 class="signature " id="publish-instance_method">
600
+
601
+ - (<tt>Object</tt>) <strong>publish</strong>(year)
602
+
603
+
604
+
605
+
606
+
607
+ </h3><div class="docstring">
608
+ <div class="discussion">
609
+
610
+ <p>method calls the `markdown` method and creates a MultiMarkdown document
611
+ with one big description list. This format is subject to change, but for
612
+ now, it seems good enough.</p>
613
+
614
+
615
+ </div>
616
+ </div>
617
+ <div class="tags">
618
+ <p class="tag_title">Parameters:</p>
619
+ <ul class="param">
620
+
621
+ <li>
622
+
623
+ <span class='name'>year</span>
624
+
625
+
626
+ <span class='type'>(<tt>String</tt>)</span>
627
+
628
+
629
+
630
+ &mdash;
631
+ <div class='inline'>
632
+ <p>of journal entries you wish to pubish as Markdown This</p>
633
+ </div>
634
+
635
+ </li>
636
+
637
+ </ul>
638
+
639
+
640
+ </div><table class="source_code">
641
+ <tr>
642
+ <td>
643
+ <pre class="lines">
644
+
645
+
646
+ 87
647
+ 88
648
+ 89
649
+ 90
650
+ 91</pre>
651
+ </td>
652
+ <td>
653
+ <pre class="code"><span class="info file"># File 'lib/nikki.rb', line 87</span>
654
+
655
+ <span class='kw'>def</span> <span class='id identifier rubyid_publish'>publish</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span><span class='rparen'>)</span>
656
+ <span class='id identifier rubyid_md_path'>md_path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_path'>path</span><span class='embexpr_end'>}</span><span class='tstring_content'>nikki_markdown_</span><span class='embexpr_beg'>#{</span><span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_today'>today</span><span class='embexpr_end'>}</span><span class='tstring_content'>.md</span><span class='tstring_end'>&quot;</span></span>
657
+ <span class='const'>IO</span><span class='period'>.</span><span class='id identifier rubyid_write'>write</span><span class='lparen'>(</span><span class='id identifier rubyid_md_path'>md_path</span><span class='comma'>,</span> <span class='id identifier rubyid_markdown'>markdown</span><span class='lparen'>(</span><span class='id identifier rubyid_read_file'>read_file</span><span class='comma'>,</span> <span class='id identifier rubyid_year'>year</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='rparen'>)</span><span class='rparen'>)</span>
658
+ <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Markdown saved to \&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_md_path'>md_path</span><span class='embexpr_end'>}</span><span class='tstring_content'>\&quot;.</span><span class='tstring_end'>&quot;</span></span>
534
659
  <span class='kw'>end</span></pre>
535
660
  </td>
536
661
  </tr>
@@ -587,7 +712,7 @@ task in OmniFocus at the end.</p>
587
712
  </div>
588
713
 
589
714
  <div id="footer">
590
- Generated on Fri May 30 11:37:52 2014 by
715
+ Generated on Tue Sep 9 16:01:49 2014 by
591
716
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
592
717
  0.8.7.4 (ruby-2.1.2).
593
718
  </div>
data/doc/Nikki.html CHANGED
@@ -128,7 +128,7 @@
128
128
 
129
129
  </div>
130
130
  </dt>
131
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0.4.3</span><span class='tstring_end'>&quot;</span></span></pre></dd>
131
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0.5.1</span><span class='tstring_end'>&quot;</span></span></pre></dd>
132
132
 
133
133
  </dl>
134
134
 
@@ -144,7 +144,7 @@
144
144
  </div>
145
145
 
146
146
  <div id="footer">
147
- Generated on Fri May 30 11:37:52 2014 by
147
+ Generated on Tue Sep 9 16:01:49 2014 by
148
148
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
149
149
  0.8.7.4 (ruby-2.1.2).
150
150
  </div>
data/doc/_index.html CHANGED
@@ -128,7 +128,7 @@
128
128
  </div>
129
129
 
130
130
  <div id="footer">
131
- Generated on Fri May 30 11:37:52 2014 by
131
+ Generated on Tue Sep 9 16:01:49 2014 by
132
132
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
133
133
  0.8.7.4 (ruby-2.1.2).
134
134
  </div>
data/doc/file.README.html CHANGED
@@ -76,7 +76,7 @@
76
76
  <iframe id="search_frame"></iframe>
77
77
 
78
78
  <div id="content"><div id='filecontents'><p><a href="http://badge.fury.io/rb/nikki"><img src="https://badge.fury.io/rb/nikki.png" alt="Gem Version"></a>
79
- <a href="http://inch-pages.github.io/github/brandonpittman/nikki"><img src="http://inch-pages.github.io/github/brandonpittman/nikki.png" alt="Inline docs"></a></p>
79
+ <a href="http://inch-ci.org/github/brandonpittman/nikki"><img src="http://inch-ci.org/github/brandonpittman/nikki.png" alt="Inline docs"></a></p>
80
80
 
81
81
  <h1>nikki</h1>
82
82
 
@@ -114,6 +114,19 @@
114
114
  </span><span class='id identifier rubyid_nikki'>nikki</span> <span class='id identifier rubyid_setup'>setup</span> <span class='comment'># Creates new Nikki and config files.
115
115
  </span></code></pre>
116
116
 
117
+ <h2>Examples</h2>
118
+
119
+ <h3>New entry</h3>
120
+
121
+ <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_nikki'>nikki</span> <span class='id identifier rubyid_new'>new</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Brandon Pittman is a super cool guy.</span><span class='tstring_end'>&quot;</span></span>
122
+ </code></pre>
123
+
124
+ <h3>Configure Nikki</h3>
125
+
126
+ <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_nikki'>nikki</span> <span class='id identifier rubyid_config'>config</span> <span class='op'>-</span><span class='op'>-</span><span class='id identifier rubyid_yesterday'>yesterday</span> <span class='comment'># Reset last updated `datetime`
127
+ </span><span class='id identifier rubyid_nikki'>nikki</span> <span class='id identifier rubyid_config'>config</span> <span class='op'>-</span><span class='op'>-</span><span class='id identifier rubyid_list'>list</span> <span class='comment'># Prints latest entries
128
+ </span></code></pre>
129
+
117
130
  <h2>Contributing</h2>
118
131
 
119
132
  <ol>
@@ -126,7 +139,7 @@
126
139
  </div></div>
127
140
 
128
141
  <div id="footer">
129
- Generated on Fri May 30 11:37:52 2014 by
142
+ Generated on Tue Sep 9 16:01:49 2014 by
130
143
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
131
144
  0.8.7.4 (ruby-2.1.2).
132
145
  </div>
data/doc/index.html CHANGED
@@ -76,7 +76,7 @@
76
76
  <iframe id="search_frame"></iframe>
77
77
 
78
78
  <div id="content"><div id='filecontents'><p><a href="http://badge.fury.io/rb/nikki"><img src="https://badge.fury.io/rb/nikki.png" alt="Gem Version"></a>
79
- <a href="http://inch-pages.github.io/github/brandonpittman/nikki"><img src="http://inch-pages.github.io/github/brandonpittman/nikki.png" alt="Inline docs"></a></p>
79
+ <a href="http://inch-ci.org/github/brandonpittman/nikki"><img src="http://inch-ci.org/github/brandonpittman/nikki.png" alt="Inline docs"></a></p>
80
80
 
81
81
  <h1>nikki</h1>
82
82
 
@@ -114,6 +114,19 @@
114
114
  </span><span class='id identifier rubyid_nikki'>nikki</span> <span class='id identifier rubyid_setup'>setup</span> <span class='comment'># Creates new Nikki and config files.
115
115
  </span></code></pre>
116
116
 
117
+ <h2>Examples</h2>
118
+
119
+ <h3>New entry</h3>
120
+
121
+ <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_nikki'>nikki</span> <span class='id identifier rubyid_new'>new</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Brandon Pittman is a super cool guy.</span><span class='tstring_end'>&quot;</span></span>
122
+ </code></pre>
123
+
124
+ <h3>Configure Nikki</h3>
125
+
126
+ <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_nikki'>nikki</span> <span class='id identifier rubyid_config'>config</span> <span class='op'>-</span><span class='op'>-</span><span class='id identifier rubyid_yesterday'>yesterday</span> <span class='comment'># Reset last updated `datetime`
127
+ </span><span class='id identifier rubyid_nikki'>nikki</span> <span class='id identifier rubyid_config'>config</span> <span class='op'>-</span><span class='op'>-</span><span class='id identifier rubyid_list'>list</span> <span class='comment'># Prints latest entries
128
+ </span></code></pre>
129
+
117
130
  <h2>Contributing</h2>
118
131
 
119
132
  <ol>
@@ -126,7 +139,7 @@
126
139
  </div></div>
127
140
 
128
141
  <div id="footer">
129
- Generated on Fri May 30 11:37:52 2014 by
142
+ Generated on Tue Sep 9 16:01:49 2014 by
130
143
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
131
144
  0.8.7.4 (ruby-2.1.2).
132
145
  </div>
data/doc/method_list.html CHANGED
@@ -62,17 +62,29 @@
62
62
 
63
63
 
64
64
  <li class="r2 ">
65
- <span class='object_link'><a href="Generator.html#new-instance_method" title="Generator#new (method)">#new</a></span>
65
+ <span class='object_link'><a href="Generator.html#ls-instance_method" title="Generator#ls (method)">#ls</a></span>
66
66
  <small>Generator</small>
67
67
  </li>
68
68
 
69
69
 
70
70
  <li class="r1 ">
71
+ <span class='object_link'><a href="Generator.html#new-instance_method" title="Generator#new (method)">#new</a></span>
72
+ <small>Generator</small>
73
+ </li>
74
+
75
+
76
+ <li class="r2 ">
71
77
  <span class='object_link'><a href="Generator.html#open-instance_method" title="Generator#open (method)">#open</a></span>
72
78
  <small>Generator</small>
73
79
  </li>
74
80
 
75
81
 
82
+ <li class="r1 ">
83
+ <span class='object_link'><a href="Generator.html#publish-instance_method" title="Generator#publish (method)">#publish</a></span>
84
+ <small>Generator</small>
85
+ </li>
86
+
87
+
76
88
  <li class="r2 ">
77
89
  <span class='object_link'><a href="Generator.html#setup-instance_method" title="Generator#setup (method)">#setup</a></span>
78
90
  <small>Generator</small>
@@ -131,7 +131,7 @@
131
131
  </div>
132
132
 
133
133
  <div id="footer">
134
- Generated on Fri May 30 11:37:52 2014 by
134
+ Generated on Tue Sep 9 16:01:49 2014 by
135
135
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
136
136
  0.8.7.4 (ruby-2.1.2).
137
137
  </div>
@@ -184,7 +184,7 @@
184
184
  </div>
185
185
 
186
186
  <div id="footer">
187
- Generated on Fri May 30 11:37:52 2014 by
187
+ Generated on Tue Sep 9 16:01:49 2014 by
188
188
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
189
189
  0.8.7.4 (ruby-2.1.2).
190
190
  </div>
@@ -123,7 +123,7 @@
123
123
  </div>
124
124
 
125
125
  <div id="footer">
126
- Generated on Fri May 30 11:37:52 2014 by
126
+ Generated on Tue Sep 9 16:01:49 2014 by
127
127
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
128
128
  0.8.7.4 (ruby-2.1.2).
129
129
  </div>
@@ -119,7 +119,7 @@
119
119
  </div>
120
120
 
121
121
  <div id="footer">
122
- Generated on Fri May 30 11:37:52 2014 by
122
+ Generated on Tue Sep 9 16:01:49 2014 by
123
123
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
124
124
  0.8.7.4 (ruby-2.1.2).
125
125
  </div>
data/lib/nikki/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # Sets version for RubyGems
2
2
  module Nikki
3
3
  # Sets version for RubyGems
4
- VERSION = "0.5.1"
4
+ VERSION = "0.5.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nikki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Pittman