devdnsd 3.0.2 → 3.0.3

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: f7181b9de9c66dbd783e6f96e28aa8bac2717d2a
4
- data.tar.gz: 8767af25d8f6635147b7a7dc0c2d4b895bc39936
3
+ metadata.gz: 108d95a0a70a90633016a1916b37bd66e78a614b
4
+ data.tar.gz: bf2a346a72342551898f0570f1f09af5d963cecf
5
5
  SHA512:
6
- metadata.gz: b0a42e94d45be28beaf9cf29091fafe3bcb420195743e7418fd4d7d82e4eeeabfe87c002acbcb6e92fa960275e5cb1a62b498d8f7a9708a6b4d35832d911b040
7
- data.tar.gz: ca540536221760edd1623ff11e0cf13b58633e998ea2080ab0dbb0abed86e0d7c6430bf714d1c9147069530fdf9584e7928fe2c66bfe9a7685c6563ed68b54e6
6
+ metadata.gz: 070c7bb2d325e97eff24061b2165d77ea161de2a9b86b99f501c2931c1d8edc80e1cf6f340d9d17a4dd8ac9e970254a92008e640a142da1a559f9789934d98fe
7
+ data.tar.gz: b47fc02cc052d1a0eb548b6b33be3d57a81fcee3d942a528e4ddf913fbd8ccab1ef863e75246a6d9460aca0a08a63f73bba334d760bed51d366938a65e8bdccc
data/Gemfile CHANGED
@@ -17,5 +17,5 @@ gem "simplecov", ">= 0.7.1"
17
17
  gem "coveralls", ">= 0.6.7", require: false
18
18
  gem "pry", ">= 0"
19
19
  gem "yard", ">= 0.8.7"
20
- gem "kramdown", ">= 1.1.0"
20
+ gem "kramdown", ">= 1.2.0"
21
21
  gem "github-markup", ">= 0.7.5"
data/bin/devdnsd CHANGED
@@ -14,16 +14,16 @@ Bovem::Application.create do
14
14
  description localizer.application_description
15
15
  version DevDNSd::Version::STRING
16
16
 
17
- option :configuration, [], {:type => String, :help => localizer.application_help_configuration, :default => "~/.devdnsd_config", :meta => localizer.application_meta_file}
18
- option :tld, [], {:type => String, :help => localizer.application_help_tld, :default => "dev", :meta => localizer.application_meta_domain}
19
- option :port, [], {:type => Integer, :help => localizer.application_help_port, :default => 7771, :meta => localizer.application_meta_port}
20
- option :pid_file, [:P, "pid-file"], {:type => String, :help => localizer.application_help_pid_file, :default => "/var/run/devdnsd.pid", :meta => localizer.application_meta_file}
21
- option :log_file, [:l, "log-file"], {:type => String, :help => localizer.application_help_log_file, :default => "/var/log/devdnsd.log", :meta => localizer.application_meta_file}
22
- option :log_level, [:L, "log-level"], {:type => Integer, :help => localizer.application_help_log_level, :default => 1, :meta => localizer.application_meta_level}
17
+ option :configuration, [], {type: String, help: localizer.application_help_configuration, default: "~/.devdnsd_config", meta: localizer.application_meta_file}
18
+ option :tld, [], {type: String, help: localizer.application_help_tld, default: "dev", meta: localizer.application_meta_domain}
19
+ option :port, [], {type: Integer, help: localizer.application_help_port, default: 7771, meta: localizer.application_meta_port}
20
+ option :pid_file, [:P, "pid-file"], {type: String, help: localizer.application_help_pid_file, default: "/var/run/devdnsd.pid", meta: localizer.application_meta_file}
21
+ option :log_file, [:l, "log-file"], {type: String, help: localizer.application_help_log_file, default: "/var/log/devdnsd.log", meta: localizer.application_meta_file}
22
+ option :log_level, [:L, "log-level"], {type: Integer, help: localizer.application_help_log_level, default: 1, meta: localizer.application_meta_level}
23
23
 
24
24
  command :start do
25
25
  description localizer.command_start
26
- option :foreground, [:n, "foreground"], {:help => localizer.application_help_foreground}
26
+ option :foreground, [:n, "foreground"], {help: localizer.application_help_foreground}
27
27
  action { |command| DevDNSd::Application.instance(command).action_start() }
28
28
  end
29
29
 
data/devdnsd.gemspec CHANGED
@@ -24,9 +24,10 @@ Gem::Specification.new do |gem|
24
24
  gem.required_ruby_version = ">= 1.9.3"
25
25
 
26
26
  gem.add_dependency("bovem", "~> 3.0.2")
27
- gem.add_dependency("rubydns", "~> 0.6.4")
27
+ gem.add_dependency("rubydns", "~> 0.6.5")
28
28
  gem.add_dependency("rexec", "~> 1.5.2")
29
29
  gem.add_dependency("mustache", "~> 0.99.4")
30
+ gem.add_dependency("plist", "~> 3.1.0")
30
31
  end
31
32
 
32
33
 
data/doc/DevDNSd.html CHANGED
@@ -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 Sun Aug 18 21:44:05 2013 by
124
+ Generated on Mon Sep 2 15:11:17 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,6 +579,7 @@
579
579
  <pre class="lines">
580
580
 
581
581
 
582
+ 597
582
583
  598
583
584
  599
584
585
  600
@@ -593,11 +594,10 @@
593
594
  609
594
595
  610
595
596
  611
596
- 612
597
- 613</pre>
597
+ 612</pre>
598
598
  </td>
599
599
  <td>
600
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 598</span>
600
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 597</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,6 +669,7 @@
669
669
  <pre class="lines">
670
670
 
671
671
 
672
+ 576
672
673
  577
673
674
  578
674
675
  579
@@ -774,11 +775,10 @@
774
775
  679
775
776
  680
776
777
  681
777
- 682
778
- 683</pre>
778
+ 682</pre>
779
779
  </td>
780
780
  <td>
781
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 577</span>
781
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 576</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,6 +936,7 @@
936
936
  <pre class="lines">
937
937
 
938
938
 
939
+ 576
939
940
  577
940
941
  578
941
942
  579
@@ -1041,11 +1042,10 @@
1041
1042
  679
1042
1043
  680
1043
1044
  681
1044
- 682
1045
- 683</pre>
1045
+ 682</pre>
1046
1046
  </td>
1047
1047
  <td>
1048
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 577</span>
1048
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 576</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,6 +1203,7 @@
1203
1203
  <pre class="lines">
1204
1204
 
1205
1205
 
1206
+ 576
1206
1207
  577
1207
1208
  578
1208
1209
  579
@@ -1308,11 +1309,10 @@
1308
1309
  679
1309
1310
  680
1310
1311
  681
1311
- 682
1312
- 683</pre>
1312
+ 682</pre>
1313
1313
  </td>
1314
1314
  <td>
1315
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 577</span>
1315
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 576</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,6 +1470,7 @@
1470
1470
  <pre class="lines">
1471
1471
 
1472
1472
 
1473
+ 576
1473
1474
  577
1474
1475
  578
1475
1476
  579
@@ -1575,11 +1576,10 @@
1575
1576
  679
1576
1577
  680
1577
1578
  681
1578
- 682
1579
- 683</pre>
1579
+ 682</pre>
1580
1580
  </td>
1581
1581
  <td>
1582
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 577</span>
1582
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 576</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
1728
1729
  662
1729
1730
  663
1730
1731
  664
1731
1732
  665
1732
- 666
1733
- 667</pre>
1733
+ 666</pre>
1734
1734
  </td>
1735
1735
  <td>
1736
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 662</span>
1736
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 661</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
1846
1847
  640
1847
1848
  641
1848
1849
  642
1849
- 643
1850
- 644</pre>
1850
+ 643</pre>
1851
1851
  </td>
1852
1852
  <td>
1853
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 640</span>
1853
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 639</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
1890
1891
  654
1891
1892
  655
1892
1893
  656
1893
1894
  657
1894
- 658
1895
- 659</pre>
1895
+ 658</pre>
1896
1896
  </td>
1897
1897
  <td>
1898
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 654</span>
1898
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 653</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
1943
1944
  649
1944
- 650
1945
- 651</pre>
1945
+ 650</pre>
1946
1946
  </td>
1947
1947
  <td>
1948
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 649</span>
1948
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 648</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
2006
2007
  618
2007
- 619
2008
- 620</pre>
2008
+ 619</pre>
2009
2009
  </td>
2010
2010
  <td>
2011
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 618</span>
2011
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 617</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
- 625
2064
- 626</pre>
2063
+ 624
2064
+ 625</pre>
2065
2065
  </td>
2066
2066
  <td>
2067
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 625</span>
2067
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 624</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
- 631
2119
- 632</pre>
2118
+ 630
2119
+ 631</pre>
2120
2120
  </td>
2121
2121
  <td>
2122
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 631</span>
2122
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 630</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 Sun Aug 18 21:44:06 2013 by
2136
+ Generated on Mon Sep 2 15:11:18 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 Sun Aug 18 21:44:05 2013 by
119
+ Generated on Mon Sep 2 15:11:17 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
308
309
  340
309
310
  341
310
- 342
311
- 343</pre>
311
+ 342</pre>
312
312
  </td>
313
313
  <td>
314
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 340</span>
314
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 339</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
386
387
  349
387
388
  350
388
389
  351
389
390
  352
390
- 353
391
- 354</pre>
391
+ 353</pre>
392
392
  </td>
393
393
  <td>
394
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 349</span>
394
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 348</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,6 +465,7 @@
465
465
  <pre class="lines">
466
466
 
467
467
 
468
+ 359
468
469
  360
469
470
  361
470
471
  362
@@ -479,11 +480,10 @@
479
480
  371
480
481
  372
481
482
  373
482
- 374
483
- 375</pre>
483
+ 374</pre>
484
484
  </td>
485
485
  <td>
486
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 360</span>
486
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 359</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,6 +599,7 @@
599
599
  <pre class="lines">
600
600
 
601
601
 
602
+ 319
602
603
  320
603
604
  321
604
605
  322
@@ -612,11 +613,10 @@
612
613
  330
613
614
  331
614
615
  332
615
- 333
616
- 334</pre>
616
+ 333</pre>
617
617
  </td>
618
618
  <td>
619
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 320</span>
619
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 319</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,6 +729,7 @@
729
729
  <pre class="lines">
730
730
 
731
731
 
732
+ 298
732
733
  299
733
734
  300
734
735
  301
@@ -741,11 +742,10 @@
741
742
  308
742
743
  309
743
744
  310
744
- 311
745
- 312</pre>
745
+ 311</pre>
746
746
  </td>
747
747
  <td>
748
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 299</span>
748
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 298</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 Sun Aug 18 21:44:06 2013 by
774
+ Generated on Mon Sep 2 15:11:18 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,6 +233,7 @@
233
233
  <pre class="lines">
234
234
 
235
235
 
236
+ 470
236
237
  471
237
238
  472
238
239
  473
@@ -247,11 +248,10 @@
247
248
  482
248
249
  483
249
250
  484
250
- 485
251
- 486</pre>
251
+ 485</pre>
252
252
  </td>
253
253
  <td>
254
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 471</span>
254
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 470</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,6 +363,7 @@
363
363
  <pre class="lines">
364
364
 
365
365
 
366
+ 493
366
367
  494
367
368
  495
368
369
  496
@@ -373,11 +374,10 @@
373
374
  501
374
375
  502
375
376
  503
376
- 504
377
- 505</pre>
377
+ 504</pre>
378
378
  </td>
379
379
  <td>
380
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 494</span>
380
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 493</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,6 +470,7 @@
470
470
  <pre class="lines">
471
471
 
472
472
 
473
+ 511
473
474
  512
474
475
  513
475
476
  514
@@ -480,11 +481,10 @@
480
481
  519
481
482
  520
482
483
  521
483
- 522
484
- 523</pre>
484
+ 522</pre>
485
485
  </td>
486
486
  <td>
487
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 512</span>
487
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 511</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 Sun Aug 18 21:44:06 2013 by
511
+ Generated on Mon Sep 2 15:11:18 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 Sun Aug 18 21:44:05 2013 by
1152
+ Generated on Mon Sep 2 15:11:17 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 Sun Aug 18 21:44:05 2013 by
366
+ Generated on Mon Sep 2 15:11:17 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 Sun Aug 18 21:44:07 2013 by
414
+ Generated on Mon Sep 2 15:11:19 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 Sun Aug 18 21:44:05 2013 by
119
+ Generated on Mon Sep 2 15:11:17 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 Sun Aug 18 21:44:06 2013 by
127
+ Generated on Mon Sep 2 15:11:18 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 Sun Aug 18 21:44:06 2013 by
2930
+ Generated on Mon Sep 2 15:11:18 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'>2</span></pre></dd>
152
+ <dd><pre class="code"><span class='int'>3</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 Sun Aug 18 21:44:05 2013 by
183
+ Generated on Mon Sep 2 15:11:17 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>
data/doc/_index.html CHANGED
@@ -237,7 +237,7 @@
237
237
  </div>
238
238
 
239
239
  <div id="footer">
240
- Generated on Sun Aug 18 21:44:05 2013 by
240
+ Generated on Mon Sep 2 15:11:17 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>
data/doc/file.README.html CHANGED
@@ -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 Sun Aug 18 21:44:05 2013 by
168
+ Generated on Mon Sep 2 15:11:17 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>
data/doc/index.html CHANGED
@@ -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 Sun Aug 18 21:44:05 2013 by
168
+ Generated on Mon Sep 2 15:11:17 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 Sun Aug 18 21:44:05 2013 by
106
+ Generated on Mon Sep 2 15:11:17 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>
data/lib/devdnsd.rb CHANGED
@@ -11,6 +11,7 @@ require "rexec/daemon"
11
11
  require "mustache"
12
12
  require "ipaddr"
13
13
  require "fiber"
14
+ require "plist"
14
15
 
15
16
  Lazier.load!(:object)
16
17
 
@@ -224,7 +224,6 @@ module DevDNSd
224
224
  begin
225
225
  logger.info(i18n.agent_creating(launch_agent))
226
226
  write_agent(launch_agent)
227
- execute_command("plutil -convert binary1 \"#{launch_agent}\"")
228
227
  true
229
228
  rescue
230
229
  logger.error(i18n.agent_creating_error)
@@ -237,7 +236,7 @@ module DevDNSd
237
236
  # @param launch_agent [String] The agent path.
238
237
  def write_agent(launch_agent)
239
238
  ::File.open(launch_agent, "w") {|f|
240
- 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_json)
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)
241
240
  f.flush
242
241
  }
243
242
  end
@@ -411,7 +410,7 @@ module DevDNSd
411
410
  ip = IPAddr.new(config.start_address.ensure_string)
412
411
  raise ArgumentError if type != :all && !ip.send("#{type}?")
413
412
 
414
- [config.aliases, 1].max.times.collect {|_|
413
+ [config.aliases, 1].max.times.map {|_|
415
414
  current = ip
416
415
  ip = ip.succ
417
416
  current
@@ -16,7 +16,7 @@ module DevDNSd
16
16
  MINOR = 0
17
17
 
18
18
  # The patch version.
19
- PATCH = 2
19
+ PATCH = 3
20
20
 
21
21
  # The current version number of DevDNSd.
22
22
  STRING = [MAJOR, MINOR, PATCH].compact.join(".")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devdnsd
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shogun
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-19 00:00:00.000000000 Z
11
+ date: 2013-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bovem
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 0.6.4
33
+ version: 0.6.5
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: 0.6.4
40
+ version: 0.6.5
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rexec
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - ~>
67
67
  - !ruby/object:Gem::Version
68
68
  version: 0.99.4
69
+ - !ruby/object:Gem::Dependency
70
+ name: plist
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: 3.1.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: 3.1.0
69
83
  description: A small DNS server to enable local domain resolution.
70
84
  email:
71
85
  - shogun@cowtech.it