devdnsd 3.0.3 → 3.0.4

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: 108d95a0a70a90633016a1916b37bd66e78a614b
4
- data.tar.gz: bf2a346a72342551898f0570f1f09af5d963cecf
3
+ metadata.gz: 600020a9ffe32ad259e99e7cab6fbd838aa73414
4
+ data.tar.gz: 405e8519bf27a5be4448336c612c4c0cc8689d9d
5
5
  SHA512:
6
- metadata.gz: 070c7bb2d325e97eff24061b2165d77ea161de2a9b86b99f501c2931c1d8edc80e1cf6f340d9d17a4dd8ac9e970254a92008e640a142da1a559f9789934d98fe
7
- data.tar.gz: b47fc02cc052d1a0eb548b6b33be3d57a81fcee3d942a528e4ddf913fbd8ccab1ef863e75246a6d9460aca0a08a63f73bba334d760bed51d366938a65e8bdccc
6
+ metadata.gz: 5a9f800550a4c9c2e50734592da2cf0960a9ef23e5bdd727730f7c3b1aa19b4f6f1166b9a7a90b9acf47ee23f0e0176b2779859da5639f4710fcd4d1d0adfc55
7
+ data.tar.gz: 947afb928658fe41ed4bd483dce619133332ba68f96c0352ee5e4a5e6b1b77ddf9626eaeac079ad6f01dd3fe4adb161afd1dccd968d47ae541213480d8d1c8c8
@@ -121,7 +121,7 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
121
121
  </div>
122
122
 
123
123
  <div id="footer">
124
- Generated on Mon Sep 2 15:11:17 2013 by
124
+ Generated on Mon Sep 2 15:43:19 2013 by
125
125
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
126
126
  0.8.7 (ruby-2.0.0).
127
127
  </div>
@@ -579,13 +579,6 @@
579
579
  <pre class="lines">
580
580
 
581
581
 
582
- 597
583
- 598
584
- 599
585
- 600
586
- 601
587
- 602
588
- 603
589
582
  604
590
583
  605
591
584
  606
@@ -594,10 +587,17 @@
594
587
  609
595
588
  610
596
589
  611
597
- 612</pre>
590
+ 612
591
+ 613
592
+ 614
593
+ 615
594
+ 616
595
+ 617
596
+ 618
597
+ 619</pre>
598
598
  </td>
599
599
  <td>
600
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 597</span>
600
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 604</span>
601
601
 
602
602
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='comma'>,</span> <span class='id identifier rubyid_locale'>locale</span><span class='rparen'>)</span>
603
603
  <span class='id identifier rubyid_i18n_setup'>i18n_setup</span><span class='lparen'>(</span><span class='symbol'>:devdnsd</span><span class='comma'>,</span> <span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_absolute_path'>absolute_path</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Pathname</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/../../locales/</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
@@ -669,13 +669,6 @@
669
669
  <pre class="lines">
670
670
 
671
671
 
672
- 576
673
- 577
674
- 578
675
- 579
676
- 580
677
- 581
678
- 582
679
672
  583
680
673
  584
681
674
  585
@@ -775,10 +768,17 @@
775
768
  679
776
769
  680
777
770
  681
778
- 682</pre>
771
+ 682
772
+ 683
773
+ 684
774
+ 685
775
+ 686
776
+ 687
777
+ 688
778
+ 689</pre>
779
779
  </td>
780
780
  <td>
781
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 576</span>
781
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 583</span>
782
782
 
783
783
  <span class='kw'>class</span> <span class='const'>Application</span> <span class='op'>&lt;</span> <span class='const'>RExec</span><span class='op'>::</span><span class='const'>Daemon</span><span class='op'>::</span><span class='const'>Base</span>
784
784
  <span class='comment'># Class for ANY DNS request.
@@ -936,13 +936,6 @@
936
936
  <pre class="lines">
937
937
 
938
938
 
939
- 576
940
- 577
941
- 578
942
- 579
943
- 580
944
- 581
945
- 582
946
939
  583
947
940
  584
948
941
  585
@@ -1042,10 +1035,17 @@
1042
1035
  679
1043
1036
  680
1044
1037
  681
1045
- 682</pre>
1038
+ 682
1039
+ 683
1040
+ 684
1041
+ 685
1042
+ 686
1043
+ 687
1044
+ 688
1045
+ 689</pre>
1046
1046
  </td>
1047
1047
  <td>
1048
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 576</span>
1048
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 583</span>
1049
1049
 
1050
1050
  <span class='kw'>class</span> <span class='const'>Application</span> <span class='op'>&lt;</span> <span class='const'>RExec</span><span class='op'>::</span><span class='const'>Daemon</span><span class='op'>::</span><span class='const'>Base</span>
1051
1051
  <span class='comment'># Class for ANY DNS request.
@@ -1203,13 +1203,6 @@
1203
1203
  <pre class="lines">
1204
1204
 
1205
1205
 
1206
- 576
1207
- 577
1208
- 578
1209
- 579
1210
- 580
1211
- 581
1212
- 582
1213
1206
  583
1214
1207
  584
1215
1208
  585
@@ -1309,10 +1302,17 @@
1309
1302
  679
1310
1303
  680
1311
1304
  681
1312
- 682</pre>
1305
+ 682
1306
+ 683
1307
+ 684
1308
+ 685
1309
+ 686
1310
+ 687
1311
+ 688
1312
+ 689</pre>
1313
1313
  </td>
1314
1314
  <td>
1315
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 576</span>
1315
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 583</span>
1316
1316
 
1317
1317
  <span class='kw'>class</span> <span class='const'>Application</span> <span class='op'>&lt;</span> <span class='const'>RExec</span><span class='op'>::</span><span class='const'>Daemon</span><span class='op'>::</span><span class='const'>Base</span>
1318
1318
  <span class='comment'># Class for ANY DNS request.
@@ -1470,13 +1470,6 @@
1470
1470
  <pre class="lines">
1471
1471
 
1472
1472
 
1473
- 576
1474
- 577
1475
- 578
1476
- 579
1477
- 580
1478
- 581
1479
- 582
1480
1473
  583
1481
1474
  584
1482
1475
  585
@@ -1576,10 +1569,17 @@
1576
1569
  679
1577
1570
  680
1578
1571
  681
1579
- 682</pre>
1572
+ 682
1573
+ 683
1574
+ 684
1575
+ 685
1576
+ 686
1577
+ 687
1578
+ 688
1579
+ 689</pre>
1580
1580
  </td>
1581
1581
  <td>
1582
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 576</span>
1582
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 583</span>
1583
1583
 
1584
1584
  <span class='kw'>class</span> <span class='const'>Application</span> <span class='op'>&lt;</span> <span class='const'>RExec</span><span class='op'>::</span><span class='const'>Daemon</span><span class='op'>::</span><span class='const'>Base</span>
1585
1585
  <span class='comment'># Class for ANY DNS request.
@@ -1725,15 +1725,15 @@
1725
1725
  <pre class="lines">
1726
1726
 
1727
1727
 
1728
- 661
1729
- 662
1730
- 663
1731
- 664
1732
- 665
1733
- 666</pre>
1728
+ 668
1729
+ 669
1730
+ 670
1731
+ 671
1732
+ 672
1733
+ 673</pre>
1734
1734
  </td>
1735
1735
  <td>
1736
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 661</span>
1736
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 668</span>
1737
1737
 
1738
1738
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_check_ruby_implementation'>check_ruby_implementation</span>
1739
1739
  <span class='kw'>if</span> <span class='kw'>defined?</span><span class='lparen'>(</span><span class='const'>JRuby</span><span class='rparen'>)</span> <span class='kw'>then</span>
@@ -1843,14 +1843,14 @@
1843
1843
  <pre class="lines">
1844
1844
 
1845
1845
 
1846
- 639
1847
- 640
1848
- 641
1849
- 642
1850
- 643</pre>
1846
+ 646
1847
+ 647
1848
+ 648
1849
+ 649
1850
+ 650</pre>
1851
1851
  </td>
1852
1852
  <td>
1853
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 639</span>
1853
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 646</span>
1854
1854
 
1855
1855
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_locale'>locale</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_force'>force</span> <span class='op'>=</span> <span class='kw'>false</span><span class='rparen'>)</span>
1856
1856
  <span class='ivar'>@instance</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='kw'>if</span> <span class='id identifier rubyid_force'>force</span>
@@ -1887,15 +1887,15 @@
1887
1887
  <pre class="lines">
1888
1888
 
1889
1889
 
1890
- 653
1891
- 654
1892
- 655
1893
- 656
1894
- 657
1895
- 658</pre>
1890
+ 660
1891
+ 661
1892
+ 662
1893
+ 663
1894
+ 664
1895
+ 665</pre>
1896
1896
  </td>
1897
1897
  <td>
1898
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 653</span>
1898
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 660</span>
1899
1899
 
1900
1900
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_quit'>quit</span>
1901
1901
  <span class='kw'>begin</span>
@@ -1940,12 +1940,12 @@
1940
1940
  <pre class="lines">
1941
1941
 
1942
1942
 
1943
- 648
1944
- 649
1945
- 650</pre>
1943
+ 655
1944
+ 656
1945
+ 657</pre>
1946
1946
  </td>
1947
1947
  <td>
1948
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 648</span>
1948
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 655</span>
1949
1949
 
1950
1950
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span>
1951
1951
  <span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_perform_server'>perform_server</span>
@@ -2003,12 +2003,12 @@
2003
2003
  <pre class="lines">
2004
2004
 
2005
2005
 
2006
- 617
2007
- 618
2008
- 619</pre>
2006
+ 624
2007
+ 625
2008
+ 626</pre>
2009
2009
  </td>
2010
2010
  <td>
2011
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 617</span>
2011
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 624</span>
2012
2012
 
2013
2013
  <span class='kw'>def</span> <span class='id identifier rubyid_get_logger'>get_logger</span>
2014
2014
  <span class='ivar'>@logger</span> <span class='op'>||=</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='ivar'>@config</span><span class='period'>.</span><span class='id identifier rubyid_foreground'>foreground</span> <span class='op'>?</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_default_file'>default_file</span> <span class='op'>:</span> <span class='ivar'>@config</span><span class='period'>.</span><span class='id identifier rubyid_log_file'>log_file</span><span class='comma'>,</span> <span class='ivar'>@config</span><span class='period'>.</span><span class='id identifier rubyid_log_level'>log_level</span><span class='comma'>,</span> <span class='ivar'>@log_formatter</span><span class='rparen'>)</span>
@@ -2060,11 +2060,11 @@
2060
2060
  <pre class="lines">
2061
2061
 
2062
2062
 
2063
- 624
2064
- 625</pre>
2063
+ 631
2064
+ 632</pre>
2065
2065
  </td>
2066
2066
  <td>
2067
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 624</span>
2067
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 631</span>
2068
2068
 
2069
2069
  <span class='kw'>def</span> <span class='id identifier rubyid_on_start'>on_start</span>
2070
2070
  <span class='kw'>end</span></pre>
@@ -2115,11 +2115,11 @@
2115
2115
  <pre class="lines">
2116
2116
 
2117
2117
 
2118
- 630
2119
- 631</pre>
2118
+ 637
2119
+ 638</pre>
2120
2120
  </td>
2121
2121
  <td>
2122
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 630</span>
2122
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 637</span>
2123
2123
 
2124
2124
  <span class='kw'>def</span> <span class='id identifier rubyid_on_stop'>on_stop</span>
2125
2125
  <span class='kw'>end</span></pre>
@@ -2133,7 +2133,7 @@
2133
2133
  </div>
2134
2134
 
2135
2135
  <div id="footer">
2136
- Generated on Mon Sep 2 15:11:18 2013 by
2136
+ Generated on Mon Sep 2 15:43:20 2013 by
2137
2137
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2138
2138
  0.8.7 (ruby-2.0.0).
2139
2139
  </div>
@@ -116,7 +116,7 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Mon Sep 2 15:11:17 2013 by
119
+ Generated on Mon Sep 2 15:43:19 2013 by
120
120
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
121
  0.8.7 (ruby-2.0.0).
122
122
  </div>
@@ -305,13 +305,13 @@
305
305
  <pre class="lines">
306
306
 
307
307
 
308
- 339
309
- 340
310
- 341
311
- 342</pre>
308
+ 346
309
+ 347
310
+ 348
311
+ 349</pre>
312
312
  </td>
313
313
  <td>
314
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 339</span>
314
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 346</span>
315
315
 
316
316
  <span class='kw'>def</span> <span class='id identifier rubyid_compute_addresses'>compute_addresses</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span> <span class='op'>=</span> <span class='symbol'>:all</span><span class='rparen'>)</span>
317
317
  <span class='id identifier rubyid_config'>config</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span>
@@ -383,15 +383,15 @@
383
383
  <pre class="lines">
384
384
 
385
385
 
386
- 348
387
- 349
388
- 350
389
- 351
390
- 352
391
- 353</pre>
386
+ 355
387
+ 356
388
+ 357
389
+ 358
390
+ 359
391
+ 360</pre>
392
392
  </td>
393
393
  <td>
394
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 348</span>
394
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 355</span>
395
395
 
396
396
  <span class='kw'>def</span> <span class='id identifier rubyid_is_ipv4?'>is_ipv4?</span><span class='lparen'>(</span><span class='id identifier rubyid_address'>address</span><span class='rparen'>)</span>
397
397
  <span class='id identifier rubyid_address'>address</span> <span class='op'>=</span> <span class='id identifier rubyid_address'>address</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span>
@@ -465,13 +465,6 @@
465
465
  <pre class="lines">
466
466
 
467
467
 
468
- 359
469
- 360
470
- 361
471
- 362
472
- 363
473
- 364
474
- 365
475
468
  366
476
469
  367
477
470
  368
@@ -480,10 +473,17 @@
480
473
  371
481
474
  372
482
475
  373
483
- 374</pre>
476
+ 374
477
+ 375
478
+ 376
479
+ 377
480
+ 378
481
+ 379
482
+ 380
483
+ 381</pre>
484
484
  </td>
485
485
  <td>
486
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 359</span>
486
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 366</span>
487
487
 
488
488
  <span class='kw'>def</span> <span class='id identifier rubyid_is_ipv6?'>is_ipv6?</span><span class='lparen'>(</span><span class='id identifier rubyid_address'>address</span><span class='rparen'>)</span>
489
489
  <span class='id identifier rubyid_address'>address</span> <span class='op'>=</span> <span class='id identifier rubyid_address'>address</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span>
@@ -599,13 +599,6 @@
599
599
  <pre class="lines">
600
600
 
601
601
 
602
- 319
603
- 320
604
- 321
605
- 322
606
- 323
607
- 324
608
- 325
609
602
  326
610
603
  327
611
604
  328
@@ -613,10 +606,17 @@
613
606
  330
614
607
  331
615
608
  332
616
- 333</pre>
609
+ 333
610
+ 334
611
+ 335
612
+ 336
613
+ 337
614
+ 338
615
+ 339
616
+ 340</pre>
617
617
  </td>
618
618
  <td>
619
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 319</span>
619
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 326</span>
620
620
 
621
621
  <span class='kw'>def</span> <span class='id identifier rubyid_manage_address'>manage_address</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_address'>address</span><span class='comma'>,</span> <span class='id identifier rubyid_dry_run'>dry_run</span> <span class='op'>=</span> <span class='kw'>false</span><span class='rparen'>)</span>
622
622
  <span class='id identifier rubyid_locale'>locale</span> <span class='op'>=</span> <span class='id identifier rubyid_i18n'>i18n</span>
@@ -729,23 +729,23 @@
729
729
  <pre class="lines">
730
730
 
731
731
 
732
- 298
733
- 299
734
- 300
735
- 301
736
- 302
737
- 303
738
- 304
739
732
  305
740
733
  306
741
734
  307
742
735
  308
743
736
  309
744
737
  310
745
- 311</pre>
738
+ 311
739
+ 312
740
+ 313
741
+ 314
742
+ 315
743
+ 316
744
+ 317
745
+ 318</pre>
746
746
  </td>
747
747
  <td>
748
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 298</span>
748
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 305</span>
749
749
 
750
750
  <span class='kw'>def</span> <span class='id identifier rubyid_manage_aliases'>manage_aliases</span><span class='lparen'>(</span><span class='id identifier rubyid_operation'>operation</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
751
751
  <span class='id identifier rubyid_config'>config</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span>
@@ -771,7 +771,7 @@
771
771
  </div>
772
772
 
773
773
  <div id="footer">
774
- Generated on Mon Sep 2 15:11:18 2013 by
774
+ Generated on Mon Sep 2 15:43:19 2013 by
775
775
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
776
776
  0.8.7 (ruby-2.0.0).
777
777
  </div>
@@ -233,13 +233,6 @@
233
233
  <pre class="lines">
234
234
 
235
235
 
236
- 470
237
- 471
238
- 472
239
- 473
240
- 474
241
- 475
242
- 476
243
236
  477
244
237
  478
245
238
  479
@@ -248,10 +241,17 @@
248
241
  482
249
242
  483
250
243
  484
251
- 485</pre>
244
+ 485
245
+ 486
246
+ 487
247
+ 488
248
+ 489
249
+ 490
250
+ 491
251
+ 492</pre>
252
252
  </td>
253
253
  <td>
254
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 470</span>
254
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 477</span>
255
255
 
256
256
  <span class='kw'>def</span> <span class='id identifier rubyid_perform_server'>perform_server</span>
257
257
  <span class='id identifier rubyid_application'>application</span> <span class='op'>=</span> <span class='kw'>self</span>
@@ -363,21 +363,21 @@
363
363
  <pre class="lines">
364
364
 
365
365
 
366
- 493
367
- 494
368
- 495
369
- 496
370
- 497
371
- 498
372
- 499
373
366
  500
374
367
  501
375
368
  502
376
369
  503
377
- 504</pre>
370
+ 504
371
+ 505
372
+ 506
373
+ 507
374
+ 508
375
+ 509
376
+ 510
377
+ 511</pre>
378
378
  </td>
379
379
  <td>
380
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 493</span>
380
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 500</span>
381
381
 
382
382
  <span class='kw'>def</span> <span class='id identifier rubyid_process_rule'>process_rule</span><span class='lparen'>(</span><span class='id identifier rubyid_rule'>rule</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_match_data'>match_data</span><span class='comma'>,</span> <span class='id identifier rubyid_transaction'>transaction</span><span class='rparen'>)</span>
383
383
  <span class='id identifier rubyid_reply'>reply</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span> <span class='op'>=</span> <span class='id identifier rubyid_perform_process_rule'>perform_process_rule</span><span class='lparen'>(</span><span class='id identifier rubyid_rule'>rule</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_match_data'>match_data</span><span class='comma'>,</span> <span class='id identifier rubyid_transaction'>transaction</span><span class='rparen'>)</span>
@@ -470,21 +470,21 @@
470
470
  <pre class="lines">
471
471
 
472
472
 
473
- 511
474
- 512
475
- 513
476
- 514
477
- 515
478
- 516
479
- 517
480
473
  518
481
474
  519
482
475
  520
483
476
  521
484
- 522</pre>
477
+ 522
478
+ 523
479
+ 524
480
+ 525
481
+ 526
482
+ 527
483
+ 528
484
+ 529</pre>
485
485
  </td>
486
486
  <td>
487
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 511</span>
487
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 518</span>
488
488
 
489
489
  <span class='kw'>def</span> <span class='id identifier rubyid_process_rule_in_classes'>process_rule_in_classes</span><span class='lparen'>(</span><span class='id identifier rubyid_rule'>rule</span><span class='comma'>,</span> <span class='id identifier rubyid_match_data'>match_data</span><span class='comma'>,</span> <span class='id identifier rubyid_transaction'>transaction</span><span class='rparen'>)</span>
490
490
  <span class='comment'># Get the subset of handled class that is valid for the rule
@@ -508,7 +508,7 @@
508
508
  </div>
509
509
 
510
510
  <div id="footer">
511
- Generated on Mon Sep 2 15:11:18 2013 by
511
+ Generated on Mon Sep 2 15:43:19 2013 by
512
512
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
513
513
  0.8.7 (ruby-2.0.0).
514
514
  </div>
@@ -1149,7 +1149,7 @@
1149
1149
  </div>
1150
1150
 
1151
1151
  <div id="footer">
1152
- Generated on Mon Sep 2 15:11:17 2013 by
1152
+ Generated on Mon Sep 2 15:43:19 2013 by
1153
1153
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1154
1154
  0.8.7 (ruby-2.0.0).
1155
1155
  </div>
@@ -363,7 +363,7 @@
363
363
  </div>
364
364
 
365
365
  <div id="footer">
366
- Generated on Mon Sep 2 15:11:17 2013 by
366
+ Generated on Mon Sep 2 15:43:19 2013 by
367
367
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
368
368
  0.8.7 (ruby-2.0.0).
369
369
  </div>
@@ -411,7 +411,7 @@ config.add_rule("match.dev", "10.0.0.1")
411
411
  </div>
412
412
 
413
413
  <div id="footer">
414
- Generated on Mon Sep 2 15:11:19 2013 by
414
+ Generated on Mon Sep 2 15:43:21 2013 by
415
415
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
416
416
  0.8.7 (ruby-2.0.0).
417
417
  </div>
@@ -116,7 +116,7 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Mon Sep 2 15:11:17 2013 by
119
+ Generated on Mon Sep 2 15:43:19 2013 by
120
120
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
121
  0.8.7 (ruby-2.0.0).
122
122
  </div>
@@ -124,7 +124,7 @@
124
124
  </div>
125
125
 
126
126
  <div id="footer">
127
- Generated on Mon Sep 2 15:11:18 2013 by
127
+ Generated on Mon Sep 2 15:43:20 2013 by
128
128
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
129
129
  0.8.7 (ruby-2.0.0).
130
130
  </div>
@@ -2927,7 +2927,7 @@
2927
2927
  </div>
2928
2928
 
2929
2929
  <div id="footer">
2930
- Generated on Mon Sep 2 15:11:18 2013 by
2930
+ Generated on Mon Sep 2 15:43:20 2013 by
2931
2931
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2932
2932
  0.8.7 (ruby-2.0.0).
2933
2933
  </div>
@@ -149,7 +149,7 @@
149
149
 
150
150
  </div>
151
151
  </dt>
152
- <dd><pre class="code"><span class='int'>3</span></pre></dd>
152
+ <dd><pre class="code"><span class='int'>4</span></pre></dd>
153
153
 
154
154
  <dt id="STRING-constant" class="">STRING =
155
155
  <div class="docstring">
@@ -180,7 +180,7 @@
180
180
  </div>
181
181
 
182
182
  <div id="footer">
183
- Generated on Mon Sep 2 15:11:17 2013 by
183
+ Generated on Mon Sep 2 15:43:19 2013 by
184
184
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
185
185
  0.8.7 (ruby-2.0.0).
186
186
  </div>
@@ -237,7 +237,7 @@
237
237
  </div>
238
238
 
239
239
  <div id="footer">
240
- Generated on Mon Sep 2 15:11:17 2013 by
240
+ Generated on Mon Sep 2 15:43:19 2013 by
241
241
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
242
242
  0.8.7 (ruby-2.0.0).
243
243
  </div>
@@ -165,7 +165,7 @@ This argument is ignored if you pass the block, as it assumes that the second ar
165
165
  </div></div>
166
166
 
167
167
  <div id="footer">
168
- Generated on Mon Sep 2 15:11:17 2013 by
168
+ Generated on Mon Sep 2 15:43:19 2013 by
169
169
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
170
170
  0.8.7 (ruby-2.0.0).
171
171
  </div>
@@ -165,7 +165,7 @@ This argument is ignored if you pass the block, as it assumes that the second ar
165
165
  </div></div>
166
166
 
167
167
  <div id="footer">
168
- Generated on Mon Sep 2 15:11:17 2013 by
168
+ Generated on Mon Sep 2 15:43:19 2013 by
169
169
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
170
170
  0.8.7 (ruby-2.0.0).
171
171
  </div>
@@ -103,7 +103,7 @@
103
103
  </div>
104
104
 
105
105
  <div id="footer">
106
- Generated on Mon Sep 2 15:11:17 2013 by
106
+ Generated on Mon Sep 2 15:43:19 2013 by
107
107
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
108
108
  0.8.7 (ruby-2.0.0).
109
109
  </div>
@@ -189,7 +189,13 @@ module DevDNSd
189
189
  def create_resolver(_, resolver_path)
190
190
  begin
191
191
  logger.info(i18n.resolver_creating(resolver_path))
192
- write_resolver(resolver_path)
192
+
193
+ ::File.open(resolver_path, "w") {|f|
194
+ f.write("nameserver 127.0.0.1\n")
195
+ f.write("port #{@config.port}")
196
+ f.flush
197
+ }
198
+
193
199
  true
194
200
  rescue
195
201
  logger.error(i18n.resolver_creating_error)
@@ -201,11 +207,6 @@ module DevDNSd
201
207
  #
202
208
  # @param resolver_path [String] The resolver path.
203
209
  def write_resolver(resolver_path)
204
- ::File.open(resolver_path, "w") {|f|
205
- f.write("nameserver 127.0.0.1\n")
206
- f.write("port #{@config.port}")
207
- f.flush
208
- }
209
210
  end
210
211
 
211
212
  # Deletes a OSX resolver.
@@ -223,7 +224,13 @@ module DevDNSd
223
224
  def create_agent(launch_agent, _)
224
225
  begin
225
226
  logger.info(i18n.agent_creating(launch_agent))
226
- write_agent(launch_agent)
227
+ program, args = prepare_agent
228
+
229
+ ::File.open(launch_agent, "w") {|f|
230
+ f.write({"KeepAlive" => true, "Label" => "it.cowtech.devdnsd", "Program" => program, "ProgramArguments" => args, "RunAtLoad" => true}.to_plist)
231
+ f.flush
232
+ }
233
+
227
234
  true
228
235
  rescue
229
236
  logger.error(i18n.agent_creating_error)
@@ -231,14 +238,14 @@ module DevDNSd
231
238
  end
232
239
  end
233
240
 
234
- # Writes a OSX system agent.
241
+ # Prepares arguments for an agent.
235
242
  #
236
- # @param launch_agent [String] The agent path.
237
- def write_agent(launch_agent)
238
- ::File.open(launch_agent, "w") {|f|
239
- f.write({"KeepAlive" => true, "Label" => "it.cowtech.devdnsd", "Program" => (::Pathname.new(Dir.pwd) + $0).to_s, "ProgramArguments" => (ARGV ? ARGV[0, ARGV.length - 1] : []), "RunAtLoad" => true}.to_plist)
240
- f.flush
241
- }
243
+ # @return [Array] The arguments for an agent.
244
+ def prepare_agent
245
+ [
246
+ (::Pathname.new(Dir.pwd) + $0).to_s,
247
+ (ARGV ? ARGV[0, ARGV.length - 1] : [])
248
+ ]
242
249
  end
243
250
 
244
251
  # Deletes a OSX system agent.
@@ -16,7 +16,7 @@ module DevDNSd
16
16
  MINOR = 0
17
17
 
18
18
  # The patch version.
19
- PATCH = 3
19
+ PATCH = 4
20
20
 
21
21
  # The current version number of DevDNSd.
22
22
  STRING = [MAJOR, MINOR, PATCH].compact.join(".")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devdnsd
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shogun