devdnsd 3.0.8 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis-gemfile +7 -1
- data/.travis.yml +2 -2
- data/CHANGELOG.md +6 -0
- data/README.md +9 -0
- data/bin/devdnsd +23 -0
- data/doc/DevDNSd.html +1 -1
- data/doc/DevDNSd/Application.html +273 -209
- data/doc/DevDNSd/ApplicationMethods.html +1 -1
- data/doc/DevDNSd/ApplicationMethods/Aliases.html +61 -61
- data/doc/DevDNSd/ApplicationMethods/Server.html +46 -44
- data/doc/DevDNSd/ApplicationMethods/System.html +199 -17
- data/doc/DevDNSd/ApplicationMethods/System/ClassMethods.html +1 -1
- data/doc/DevDNSd/Configuration.html +1 -1
- data/doc/DevDNSd/Errors.html +1 -1
- data/doc/DevDNSd/Errors/InvalidRule.html +1 -1
- data/doc/DevDNSd/Rule.html +1 -1
- data/doc/DevDNSd/Version.html +3 -3
- data/doc/_index.html +1 -1
- data/doc/file.README.html +10 -1
- data/doc/index.html +10 -1
- data/doc/method_list.html +12 -0
- data/doc/top-level-namespace.html +1 -1
- data/lib/devdnsd/application.rb +48 -7
- data/lib/devdnsd/configuration.rb +2 -2
- data/lib/devdnsd/version.rb +2 -2
- data/locales/en.yml +8 -1
- data/locales/it.yml +8 -1
- data/spec/devdnsd/application_spec.rb +44 -2
- data/spec/devdnsd/configuration_spec.rb +1 -1
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 08a79752fa5924ccd8ffea09cadaeb8281ca69a3
         | 
| 4 | 
            +
              data.tar.gz: ab7ecd64b9067b0e88c2e4c83663f8d32a711d17
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 098f5cea2d11e258860203883004720752bbd3ad9bfccc138fad58179fda17a4dfb0557a5fa108570dad2681c71efef2c8e2c8d6e241eeb3da8bd7101937eb46
         | 
| 7 | 
            +
              data.tar.gz: fe2db95171863e6f73c1f52160a2035832f67fd7af2ace0b65583e8e50efad3ab4558eddfe40a290d8de23fb302e2512276cdfdb438dbb569df47622c9cb6078
         | 
    
        data/.travis-gemfile
    CHANGED
    
    | @@ -12,4 +12,10 @@ gemspec | |
| 12 12 | 
             
            gem "rspec", "~> 2.14.1"
         | 
| 13 13 | 
             
            gem "rake", "~> 10.1.1"
         | 
| 14 14 | 
             
            gem "simplecov", ">= 0.8.2"
         | 
| 15 | 
            -
            gem "coveralls", ">= 0.7.0", require: false
         | 
| 15 | 
            +
            gem "coveralls", ">= 0.7.0", require: false
         | 
| 16 | 
            +
             | 
| 17 | 
            +
            platforms :rbx do
         | 
| 18 | 
            +
              gem 'racc'
         | 
| 19 | 
            +
              gem 'rubysl', '~> 2.0'
         | 
| 20 | 
            +
              gem 'psych'
         | 
| 21 | 
            +
            end
         | 
    
        data/.travis.yml
    CHANGED
    
    
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -1,3 +1,9 @@ | |
| 1 | 
            +
            ### 3.1.0 / 2014-03-09
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            * Added `restart`, `clean` and `status` commands.
         | 
| 4 | 
            +
            * The `address` configuration option is now `bind_addresses` and it supports multiple values.
         | 
| 5 | 
            +
            * Start dropping support for Ruby <2.1 - For now only in the Travis build.
         | 
| 6 | 
            +
             | 
| 1 7 | 
             
            ### 3.0.8 / 2014-03-08
         | 
| 2 8 |  | 
| 3 9 | 
             
            * Installation fixes.
         | 
    
        data/README.md
    CHANGED
    
    | @@ -31,6 +31,15 @@ Of course, DevDNSd is inspired by [pow](https://github.com/37signals/pow), but i | |
| 31 31 |  | 
| 32 32 | 
             
            **You're done!**
         | 
| 33 33 |  | 
| 34 | 
            +
            ## Dual stack (IPv4/IPv6) usage
         | 
| 35 | 
            +
             | 
| 36 | 
            +
            If you experience slowness in resolving host from clients (Chrome, curl etc.) when you don't specify the address type, make sure you have both a `A` and `AAAA` rules set for the same host, like this:
         | 
| 37 | 
            +
             | 
| 38 | 
            +
            ```ruby
         | 
| 39 | 
            +
            config.add_rule(/\.dev$/, "127.0.0.1")
         | 
| 40 | 
            +
            config.add_rule(/\.dev$/, "::1", :AAAA)
         | 
| 41 | 
            +
            ```
         | 
| 42 | 
            +
             | 
| 34 43 | 
             
            ## Advanced usage
         | 
| 35 44 |  | 
| 36 45 | 
             
            Just type `devdnsd help` and you'll see all available options.
         | 
    
        data/bin/devdnsd
    CHANGED
    
    | @@ -27,11 +27,24 @@ Bovem::Application.create do | |
| 27 27 | 
             
                action { |command| DevDNSd::Application.instance(command).action_start }
         | 
| 28 28 | 
             
              end
         | 
| 29 29 |  | 
| 30 | 
            +
              command :status do
         | 
| 31 | 
            +
                description localizer.command_status
         | 
| 32 | 
            +
                action { |command|
         | 
| 33 | 
            +
                  command.application.options[:log_file].set("STDOUT")
         | 
| 34 | 
            +
                  DevDNSd::Application.instance(command).action_status
         | 
| 35 | 
            +
                }
         | 
| 36 | 
            +
              end
         | 
| 37 | 
            +
             | 
| 30 38 | 
             
              command :stop do
         | 
| 31 39 | 
             
                description localizer.command_stop
         | 
| 32 40 | 
             
                action { |command| DevDNSd::Application.instance(command).action_stop }
         | 
| 33 41 | 
             
              end
         | 
| 34 42 |  | 
| 43 | 
            +
              command :restart do
         | 
| 44 | 
            +
                description localizer.command_restart
         | 
| 45 | 
            +
                action { |command| DevDNSd::Application.instance(command).action_restart }
         | 
| 46 | 
            +
              end
         | 
| 47 | 
            +
             | 
| 35 48 | 
             
              command :install do
         | 
| 36 49 | 
             
                description localizer.command_install
         | 
| 37 50 | 
             
                action { |command|
         | 
| @@ -48,6 +61,16 @@ Bovem::Application.create do | |
| 48 61 | 
             
                }
         | 
| 49 62 | 
             
              end
         | 
| 50 63 |  | 
| 64 | 
            +
              command :clean do
         | 
| 65 | 
            +
                description localizer.command_clean
         | 
| 66 | 
            +
                action { |command|
         | 
| 67 | 
            +
                  command.application.options[:log_file].set("STDOUT")
         | 
| 68 | 
            +
                  app = DevDNSd::Application.instance(command)
         | 
| 69 | 
            +
                  app.logger.warn(app.i18n.admin_privileges_warning)
         | 
| 70 | 
            +
                  app.dns_update
         | 
| 71 | 
            +
                }
         | 
| 72 | 
            +
              end
         | 
| 73 | 
            +
             | 
| 51 74 | 
             
              command :aliases do
         | 
| 52 75 | 
             
                description localizer.command_aliases
         | 
| 53 76 | 
             
                option :interface, [], {type: String, help: localizer.application_help_interface, default: "lo0", meta: localizer.application_meta_interface}
         | 
    
        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  | 
| 124 | 
            +
              Generated on Sun Mar  9 19:54:07 2014 by
         | 
| 125 125 | 
             
              <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         | 
| 126 126 | 
             
              0.8.7.3 (ruby-2.1.0).
         | 
| 127 127 | 
             
            </div>
         | 
| @@ -513,7 +513,7 @@ | |
| 513 513 |  | 
| 514 514 |  | 
| 515 515 | 
             
              <h3 class="inherited">Methods included from <span class='object_link'><a href="ApplicationMethods/System.html" title="DevDNSd::ApplicationMethods::System (module)">DevDNSd::ApplicationMethods::System</a></span></h3>
         | 
| 516 | 
            -
              <p class="inherited"><span class='object_link'><a href="ApplicationMethods/System.html#action_add-instance_method" title="DevDNSd::ApplicationMethods::System#action_add (method)">#action_add</a></span>, <span class='object_link'><a href="ApplicationMethods/System.html#action_install-instance_method" title="DevDNSd::ApplicationMethods::System#action_install (method)">#action_install</a></span>, <span class='object_link'><a href="ApplicationMethods/System.html#action_remove-instance_method" title="DevDNSd::ApplicationMethods::System#action_remove (method)">#action_remove</a></span>, <span class='object_link'><a href="ApplicationMethods/System.html#action_start-instance_method" title="DevDNSd::ApplicationMethods::System#action_start (method)">#action_start</a></span>, <span class='object_link'><a href="ApplicationMethods/System.html#action_stop-instance_method" title="DevDNSd::ApplicationMethods::System#action_stop (method)">#action_stop</a></span>, <span class='object_link'><a href="ApplicationMethods/System.html#action_uninstall-instance_method" title="DevDNSd::ApplicationMethods::System#action_uninstall (method)">#action_uninstall</a></span>, <span class='object_link'><a href="ApplicationMethods/System.html#dns_update-instance_method" title="DevDNSd::ApplicationMethods::System#dns_update (method)">#dns_update</a></span>, <span class='object_link'><a href="ApplicationMethods/System.html#execute_command-instance_method" title="DevDNSd::ApplicationMethods::System#execute_command (method)">#execute_command</a></span>, <span class='object_link'><a href="ApplicationMethods/System.html#is_osx%3F-instance_method" title="DevDNSd::ApplicationMethods::System#is_osx? (method)">#is_osx?</a></span>, <span class='object_link'><a href="ApplicationMethods/System.html#launch_agent_path-instance_method" title="DevDNSd::ApplicationMethods::System#launch_agent_path (method)">#launch_agent_path</a></span>, <span class='object_link'><a href="ApplicationMethods/System.html#resolver_path-instance_method" title="DevDNSd::ApplicationMethods::System#resolver_path (method)">#resolver_path</a></span></p>
         | 
| 516 | 
            +
              <p class="inherited"><span class='object_link'><a href="ApplicationMethods/System.html#action_add-instance_method" title="DevDNSd::ApplicationMethods::System#action_add (method)">#action_add</a></span>, <span class='object_link'><a href="ApplicationMethods/System.html#action_install-instance_method" title="DevDNSd::ApplicationMethods::System#action_install (method)">#action_install</a></span>, <span class='object_link'><a href="ApplicationMethods/System.html#action_remove-instance_method" title="DevDNSd::ApplicationMethods::System#action_remove (method)">#action_remove</a></span>, <span class='object_link'><a href="ApplicationMethods/System.html#action_restart-instance_method" title="DevDNSd::ApplicationMethods::System#action_restart (method)">#action_restart</a></span>, <span class='object_link'><a href="ApplicationMethods/System.html#action_start-instance_method" title="DevDNSd::ApplicationMethods::System#action_start (method)">#action_start</a></span>, <span class='object_link'><a href="ApplicationMethods/System.html#action_status-instance_method" title="DevDNSd::ApplicationMethods::System#action_status (method)">#action_status</a></span>, <span class='object_link'><a href="ApplicationMethods/System.html#action_stop-instance_method" title="DevDNSd::ApplicationMethods::System#action_stop (method)">#action_stop</a></span>, <span class='object_link'><a href="ApplicationMethods/System.html#action_uninstall-instance_method" title="DevDNSd::ApplicationMethods::System#action_uninstall (method)">#action_uninstall</a></span>, <span class='object_link'><a href="ApplicationMethods/System.html#dns_update-instance_method" title="DevDNSd::ApplicationMethods::System#dns_update (method)">#dns_update</a></span>, <span class='object_link'><a href="ApplicationMethods/System.html#execute_command-instance_method" title="DevDNSd::ApplicationMethods::System#execute_command (method)">#execute_command</a></span>, <span class='object_link'><a href="ApplicationMethods/System.html#is_osx%3F-instance_method" title="DevDNSd::ApplicationMethods::System#is_osx? (method)">#is_osx?</a></span>, <span class='object_link'><a href="ApplicationMethods/System.html#launch_agent_path-instance_method" title="DevDNSd::ApplicationMethods::System#launch_agent_path (method)">#launch_agent_path</a></span>, <span class='object_link'><a href="ApplicationMethods/System.html#resolver_path-instance_method" title="DevDNSd::ApplicationMethods::System#resolver_path (method)">#resolver_path</a></span></p>
         | 
| 517 517 |  | 
| 518 518 |  | 
| 519 519 |  | 
| @@ -579,25 +579,25 @@ | |
| 579 579 | 
             
                  <pre class="lines">
         | 
| 580 580 |  | 
| 581 581 |  | 
| 582 | 
            -
             | 
| 583 | 
            -
             | 
| 584 | 
            -
             | 
| 585 | 
            -
             | 
| 586 | 
            -
             | 
| 587 | 
            -
             | 
| 588 | 
            -
             | 
| 589 | 
            -
             | 
| 590 | 
            -
             | 
| 591 | 
            -
             | 
| 592 | 
            -
             | 
| 593 | 
            -
             | 
| 594 | 
            -
             | 
| 595 | 
            -
             | 
| 596 | 
            -
             | 
| 597 | 
            -
             | 
| 582 | 
            +
            672
         | 
| 583 | 
            +
            673
         | 
| 584 | 
            +
            674
         | 
| 585 | 
            +
            675
         | 
| 586 | 
            +
            676
         | 
| 587 | 
            +
            677
         | 
| 588 | 
            +
            678
         | 
| 589 | 
            +
            679
         | 
| 590 | 
            +
            680
         | 
| 591 | 
            +
            681
         | 
| 592 | 
            +
            682
         | 
| 593 | 
            +
            683
         | 
| 594 | 
            +
            684
         | 
| 595 | 
            +
            685
         | 
| 596 | 
            +
            686
         | 
| 597 | 
            +
            687</pre>
         | 
| 598 598 | 
             
                </td>
         | 
| 599 599 | 
             
                <td>
         | 
| 600 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line  | 
| 600 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 672</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'>"</span><span class='tstring_content'>/../../locales/</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
         | 
| @@ -669,39 +669,6 @@ | |
| 669 669 | 
             
                  <pre class="lines">
         | 
| 670 670 |  | 
| 671 671 |  | 
| 672 | 
            -
            618
         | 
| 673 | 
            -
            619
         | 
| 674 | 
            -
            620
         | 
| 675 | 
            -
            621
         | 
| 676 | 
            -
            622
         | 
| 677 | 
            -
            623
         | 
| 678 | 
            -
            624
         | 
| 679 | 
            -
            625
         | 
| 680 | 
            -
            626
         | 
| 681 | 
            -
            627
         | 
| 682 | 
            -
            628
         | 
| 683 | 
            -
            629
         | 
| 684 | 
            -
            630
         | 
| 685 | 
            -
            631
         | 
| 686 | 
            -
            632
         | 
| 687 | 
            -
            633
         | 
| 688 | 
            -
            634
         | 
| 689 | 
            -
            635
         | 
| 690 | 
            -
            636
         | 
| 691 | 
            -
            637
         | 
| 692 | 
            -
            638
         | 
| 693 | 
            -
            639
         | 
| 694 | 
            -
            640
         | 
| 695 | 
            -
            641
         | 
| 696 | 
            -
            642
         | 
| 697 | 
            -
            643
         | 
| 698 | 
            -
            644
         | 
| 699 | 
            -
            645
         | 
| 700 | 
            -
            646
         | 
| 701 | 
            -
            647
         | 
| 702 | 
            -
            648
         | 
| 703 | 
            -
            649
         | 
| 704 | 
            -
            650
         | 
| 705 672 | 
             
            651
         | 
| 706 673 | 
             
            652
         | 
| 707 674 | 
             
            653
         | 
| @@ -818,10 +785,51 @@ | |
| 818 785 | 
             
            764
         | 
| 819 786 | 
             
            765
         | 
| 820 787 | 
             
            766
         | 
| 821 | 
            -
            767 | 
| 788 | 
            +
            767
         | 
| 789 | 
            +
            768
         | 
| 790 | 
            +
            769
         | 
| 791 | 
            +
            770
         | 
| 792 | 
            +
            771
         | 
| 793 | 
            +
            772
         | 
| 794 | 
            +
            773
         | 
| 795 | 
            +
            774
         | 
| 796 | 
            +
            775
         | 
| 797 | 
            +
            776
         | 
| 798 | 
            +
            777
         | 
| 799 | 
            +
            778
         | 
| 800 | 
            +
            779
         | 
| 801 | 
            +
            780
         | 
| 802 | 
            +
            781
         | 
| 803 | 
            +
            782
         | 
| 804 | 
            +
            783
         | 
| 805 | 
            +
            784
         | 
| 806 | 
            +
            785
         | 
| 807 | 
            +
            786
         | 
| 808 | 
            +
            787
         | 
| 809 | 
            +
            788
         | 
| 810 | 
            +
            789
         | 
| 811 | 
            +
            790
         | 
| 812 | 
            +
            791
         | 
| 813 | 
            +
            792
         | 
| 814 | 
            +
            793
         | 
| 815 | 
            +
            794
         | 
| 816 | 
            +
            795
         | 
| 817 | 
            +
            796
         | 
| 818 | 
            +
            797
         | 
| 819 | 
            +
            798
         | 
| 820 | 
            +
            799
         | 
| 821 | 
            +
            800
         | 
| 822 | 
            +
            801
         | 
| 823 | 
            +
            802
         | 
| 824 | 
            +
            803
         | 
| 825 | 
            +
            804
         | 
| 826 | 
            +
            805
         | 
| 827 | 
            +
            806
         | 
| 828 | 
            +
            807
         | 
| 829 | 
            +
            808</pre>
         | 
| 822 830 | 
             
                </td>
         | 
| 823 831 | 
             
                <td>
         | 
| 824 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line  | 
| 832 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 651</span>
         | 
| 825 833 |  | 
| 826 834 | 
             
            <span class='kw'>class</span> <span class='const'>Application</span> <span class='op'><</span> <span class='const'>RExec</span><span class='op'>::</span><span class='const'>Daemon</span><span class='op'>::</span><span class='const'>Base</span>
         | 
| 827 835 | 
             
              <span class='comment'># Class for ANY DNS request.
         | 
| @@ -954,16 +962,14 @@ | |
| 954 962 | 
             
                    <span class='ivar'>@logger</span> <span class='op'>=</span> <span class='kw'>nil</span>
         | 
| 955 963 | 
             
                    <span class='ivar'>@logger</span> <span class='op'>=</span> <span class='id identifier rubyid_get_logger'>get_logger</span>
         | 
| 956 964 | 
             
                  <span class='kw'>rescue</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Errors</span><span class='op'>::</span><span class='const'>InvalidConfiguration</span> <span class='op'>=></span> <span class='id identifier rubyid_e'>e</span>
         | 
| 957 | 
            -
                    <span class='id identifier  | 
| 958 | 
            -
                    <span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_fatal'>fatal</span><span class='lparen'>(</span><span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
         | 
| 959 | 
            -
                    <span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_warn'>warn</span><span class='lparen'>(</span><span class='id identifier rubyid_replace_markers'>replace_markers</span><span class='lparen'>(</span><span class='id identifier rubyid_i18n'>i18n</span><span class='period'>.</span><span class='id identifier rubyid_application_create_config'>application_create_config</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='rparen'>)</span>
         | 
| 965 | 
            +
                    <span class='id identifier rubyid_log_failed_configuration'>log_failed_configuration</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_e'>e</span><span class='rparen'>)</span>
         | 
| 960 966 | 
             
                    <span class='id identifier rubyid_raise'>raise</span> <span class='op'>::</span><span class='const'>SystemExit</span>
         | 
| 961 967 | 
             
                  <span class='kw'>end</span>
         | 
| 962 968 | 
             
                <span class='kw'>end</span>
         | 
| 963 969 |  | 
| 964 970 | 
             
                <span class='comment'># Creates a folder for a file.
         | 
| 965 971 | 
             
            </span>    <span class='comment'>#
         | 
| 966 | 
            -
            </span>    <span class='comment'># @param [String] The path of the file.
         | 
| 972 | 
            +
            </span>    <span class='comment'># @param path [String] The path of the file.
         | 
| 967 973 | 
             
            </span>    <span class='kw'>def</span> <span class='id identifier rubyid_ensure_directory_for'>ensure_directory_for</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
         | 
| 968 974 | 
             
                  <span class='kw'>begin</span>
         | 
| 969 975 | 
             
                    <span class='const'>FileUtils</span><span class='period'>.</span><span class='id identifier rubyid_mkdir_p'>mkdir_p</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span><span class='rparen'>)</span>
         | 
| @@ -972,6 +978,16 @@ | |
| 972 978 | 
             
                    <span class='id identifier rubyid_raise'>raise</span> <span class='op'>::</span><span class='const'>SystemExit</span>
         | 
| 973 979 | 
             
                  <span class='kw'>end</span>
         | 
| 974 980 | 
             
                <span class='kw'>end</span>
         | 
| 981 | 
            +
             | 
| 982 | 
            +
                <span class='comment'># Logs a failed configuration
         | 
| 983 | 
            +
            </span>    <span class='comment'>#
         | 
| 984 | 
            +
            </span>    <span class='comment'># @param path [String] The path of the invalid file.
         | 
| 985 | 
            +
            </span>    <span class='comment'># @param exception [Exception] The occurred exception.
         | 
| 986 | 
            +
            </span>    <span class='kw'>def</span> <span class='id identifier rubyid_log_failed_configuration'>log_failed_configuration</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_exception'>exception</span><span class='rparen'>)</span>
         | 
| 987 | 
            +
                  <span class='id identifier rubyid_logger'>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='gvar'>$stderr</span><span class='rparen'>)</span>
         | 
| 988 | 
            +
                  <span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_fatal'>fatal</span><span class='lparen'>(</span><span class='id identifier rubyid_exception'>exception</span><span class='period'>.</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
         | 
| 989 | 
            +
                  <span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_warn'>warn</span><span class='lparen'>(</span><span class='id identifier rubyid_replace_markers'>replace_markers</span><span class='lparen'>(</span><span class='id identifier rubyid_i18n'>i18n</span><span class='period'>.</span><span class='id identifier rubyid_application_create_config'>application_create_config</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='rparen'>)</span>
         | 
| 990 | 
            +
                <span class='kw'>end</span>
         | 
| 975 991 | 
             
            <span class='kw'>end</span></pre>
         | 
| 976 992 | 
             
                </td>
         | 
| 977 993 | 
             
              </tr>
         | 
| @@ -1022,39 +1038,6 @@ | |
| 1022 1038 | 
             
                  <pre class="lines">
         | 
| 1023 1039 |  | 
| 1024 1040 |  | 
| 1025 | 
            -
            618
         | 
| 1026 | 
            -
            619
         | 
| 1027 | 
            -
            620
         | 
| 1028 | 
            -
            621
         | 
| 1029 | 
            -
            622
         | 
| 1030 | 
            -
            623
         | 
| 1031 | 
            -
            624
         | 
| 1032 | 
            -
            625
         | 
| 1033 | 
            -
            626
         | 
| 1034 | 
            -
            627
         | 
| 1035 | 
            -
            628
         | 
| 1036 | 
            -
            629
         | 
| 1037 | 
            -
            630
         | 
| 1038 | 
            -
            631
         | 
| 1039 | 
            -
            632
         | 
| 1040 | 
            -
            633
         | 
| 1041 | 
            -
            634
         | 
| 1042 | 
            -
            635
         | 
| 1043 | 
            -
            636
         | 
| 1044 | 
            -
            637
         | 
| 1045 | 
            -
            638
         | 
| 1046 | 
            -
            639
         | 
| 1047 | 
            -
            640
         | 
| 1048 | 
            -
            641
         | 
| 1049 | 
            -
            642
         | 
| 1050 | 
            -
            643
         | 
| 1051 | 
            -
            644
         | 
| 1052 | 
            -
            645
         | 
| 1053 | 
            -
            646
         | 
| 1054 | 
            -
            647
         | 
| 1055 | 
            -
            648
         | 
| 1056 | 
            -
            649
         | 
| 1057 | 
            -
            650
         | 
| 1058 1041 | 
             
            651
         | 
| 1059 1042 | 
             
            652
         | 
| 1060 1043 | 
             
            653
         | 
| @@ -1171,10 +1154,51 @@ | |
| 1171 1154 | 
             
            764
         | 
| 1172 1155 | 
             
            765
         | 
| 1173 1156 | 
             
            766
         | 
| 1174 | 
            -
            767 | 
| 1157 | 
            +
            767
         | 
| 1158 | 
            +
            768
         | 
| 1159 | 
            +
            769
         | 
| 1160 | 
            +
            770
         | 
| 1161 | 
            +
            771
         | 
| 1162 | 
            +
            772
         | 
| 1163 | 
            +
            773
         | 
| 1164 | 
            +
            774
         | 
| 1165 | 
            +
            775
         | 
| 1166 | 
            +
            776
         | 
| 1167 | 
            +
            777
         | 
| 1168 | 
            +
            778
         | 
| 1169 | 
            +
            779
         | 
| 1170 | 
            +
            780
         | 
| 1171 | 
            +
            781
         | 
| 1172 | 
            +
            782
         | 
| 1173 | 
            +
            783
         | 
| 1174 | 
            +
            784
         | 
| 1175 | 
            +
            785
         | 
| 1176 | 
            +
            786
         | 
| 1177 | 
            +
            787
         | 
| 1178 | 
            +
            788
         | 
| 1179 | 
            +
            789
         | 
| 1180 | 
            +
            790
         | 
| 1181 | 
            +
            791
         | 
| 1182 | 
            +
            792
         | 
| 1183 | 
            +
            793
         | 
| 1184 | 
            +
            794
         | 
| 1185 | 
            +
            795
         | 
| 1186 | 
            +
            796
         | 
| 1187 | 
            +
            797
         | 
| 1188 | 
            +
            798
         | 
| 1189 | 
            +
            799
         | 
| 1190 | 
            +
            800
         | 
| 1191 | 
            +
            801
         | 
| 1192 | 
            +
            802
         | 
| 1193 | 
            +
            803
         | 
| 1194 | 
            +
            804
         | 
| 1195 | 
            +
            805
         | 
| 1196 | 
            +
            806
         | 
| 1197 | 
            +
            807
         | 
| 1198 | 
            +
            808</pre>
         | 
| 1175 1199 | 
             
                </td>
         | 
| 1176 1200 | 
             
                <td>
         | 
| 1177 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line  | 
| 1201 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 651</span>
         | 
| 1178 1202 |  | 
| 1179 1203 | 
             
            <span class='kw'>class</span> <span class='const'>Application</span> <span class='op'><</span> <span class='const'>RExec</span><span class='op'>::</span><span class='const'>Daemon</span><span class='op'>::</span><span class='const'>Base</span>
         | 
| 1180 1204 | 
             
              <span class='comment'># Class for ANY DNS request.
         | 
| @@ -1307,16 +1331,14 @@ | |
| 1307 1331 | 
             
                    <span class='ivar'>@logger</span> <span class='op'>=</span> <span class='kw'>nil</span>
         | 
| 1308 1332 | 
             
                    <span class='ivar'>@logger</span> <span class='op'>=</span> <span class='id identifier rubyid_get_logger'>get_logger</span>
         | 
| 1309 1333 | 
             
                  <span class='kw'>rescue</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Errors</span><span class='op'>::</span><span class='const'>InvalidConfiguration</span> <span class='op'>=></span> <span class='id identifier rubyid_e'>e</span>
         | 
| 1310 | 
            -
                    <span class='id identifier  | 
| 1311 | 
            -
                    <span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_fatal'>fatal</span><span class='lparen'>(</span><span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
         | 
| 1312 | 
            -
                    <span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_warn'>warn</span><span class='lparen'>(</span><span class='id identifier rubyid_replace_markers'>replace_markers</span><span class='lparen'>(</span><span class='id identifier rubyid_i18n'>i18n</span><span class='period'>.</span><span class='id identifier rubyid_application_create_config'>application_create_config</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='rparen'>)</span>
         | 
| 1334 | 
            +
                    <span class='id identifier rubyid_log_failed_configuration'>log_failed_configuration</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_e'>e</span><span class='rparen'>)</span>
         | 
| 1313 1335 | 
             
                    <span class='id identifier rubyid_raise'>raise</span> <span class='op'>::</span><span class='const'>SystemExit</span>
         | 
| 1314 1336 | 
             
                  <span class='kw'>end</span>
         | 
| 1315 1337 | 
             
                <span class='kw'>end</span>
         | 
| 1316 1338 |  | 
| 1317 1339 | 
             
                <span class='comment'># Creates a folder for a file.
         | 
| 1318 1340 | 
             
            </span>    <span class='comment'>#
         | 
| 1319 | 
            -
            </span>    <span class='comment'># @param [String] The path of the file.
         | 
| 1341 | 
            +
            </span>    <span class='comment'># @param path [String] The path of the file.
         | 
| 1320 1342 | 
             
            </span>    <span class='kw'>def</span> <span class='id identifier rubyid_ensure_directory_for'>ensure_directory_for</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
         | 
| 1321 1343 | 
             
                  <span class='kw'>begin</span>
         | 
| 1322 1344 | 
             
                    <span class='const'>FileUtils</span><span class='period'>.</span><span class='id identifier rubyid_mkdir_p'>mkdir_p</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span><span class='rparen'>)</span>
         | 
| @@ -1325,6 +1347,16 @@ | |
| 1325 1347 | 
             
                    <span class='id identifier rubyid_raise'>raise</span> <span class='op'>::</span><span class='const'>SystemExit</span>
         | 
| 1326 1348 | 
             
                  <span class='kw'>end</span>
         | 
| 1327 1349 | 
             
                <span class='kw'>end</span>
         | 
| 1350 | 
            +
             | 
| 1351 | 
            +
                <span class='comment'># Logs a failed configuration
         | 
| 1352 | 
            +
            </span>    <span class='comment'>#
         | 
| 1353 | 
            +
            </span>    <span class='comment'># @param path [String] The path of the invalid file.
         | 
| 1354 | 
            +
            </span>    <span class='comment'># @param exception [Exception] The occurred exception.
         | 
| 1355 | 
            +
            </span>    <span class='kw'>def</span> <span class='id identifier rubyid_log_failed_configuration'>log_failed_configuration</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_exception'>exception</span><span class='rparen'>)</span>
         | 
| 1356 | 
            +
                  <span class='id identifier rubyid_logger'>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='gvar'>$stderr</span><span class='rparen'>)</span>
         | 
| 1357 | 
            +
                  <span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_fatal'>fatal</span><span class='lparen'>(</span><span class='id identifier rubyid_exception'>exception</span><span class='period'>.</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
         | 
| 1358 | 
            +
                  <span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_warn'>warn</span><span class='lparen'>(</span><span class='id identifier rubyid_replace_markers'>replace_markers</span><span class='lparen'>(</span><span class='id identifier rubyid_i18n'>i18n</span><span class='period'>.</span><span class='id identifier rubyid_application_create_config'>application_create_config</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='rparen'>)</span>
         | 
| 1359 | 
            +
                <span class='kw'>end</span>
         | 
| 1328 1360 | 
             
            <span class='kw'>end</span></pre>
         | 
| 1329 1361 | 
             
                </td>
         | 
| 1330 1362 | 
             
              </tr>
         | 
| @@ -1375,39 +1407,6 @@ | |
| 1375 1407 | 
             
                  <pre class="lines">
         | 
| 1376 1408 |  | 
| 1377 1409 |  | 
| 1378 | 
            -
            618
         | 
| 1379 | 
            -
            619
         | 
| 1380 | 
            -
            620
         | 
| 1381 | 
            -
            621
         | 
| 1382 | 
            -
            622
         | 
| 1383 | 
            -
            623
         | 
| 1384 | 
            -
            624
         | 
| 1385 | 
            -
            625
         | 
| 1386 | 
            -
            626
         | 
| 1387 | 
            -
            627
         | 
| 1388 | 
            -
            628
         | 
| 1389 | 
            -
            629
         | 
| 1390 | 
            -
            630
         | 
| 1391 | 
            -
            631
         | 
| 1392 | 
            -
            632
         | 
| 1393 | 
            -
            633
         | 
| 1394 | 
            -
            634
         | 
| 1395 | 
            -
            635
         | 
| 1396 | 
            -
            636
         | 
| 1397 | 
            -
            637
         | 
| 1398 | 
            -
            638
         | 
| 1399 | 
            -
            639
         | 
| 1400 | 
            -
            640
         | 
| 1401 | 
            -
            641
         | 
| 1402 | 
            -
            642
         | 
| 1403 | 
            -
            643
         | 
| 1404 | 
            -
            644
         | 
| 1405 | 
            -
            645
         | 
| 1406 | 
            -
            646
         | 
| 1407 | 
            -
            647
         | 
| 1408 | 
            -
            648
         | 
| 1409 | 
            -
            649
         | 
| 1410 | 
            -
            650
         | 
| 1411 1410 | 
             
            651
         | 
| 1412 1411 | 
             
            652
         | 
| 1413 1412 | 
             
            653
         | 
| @@ -1524,10 +1523,51 @@ | |
| 1524 1523 | 
             
            764
         | 
| 1525 1524 | 
             
            765
         | 
| 1526 1525 | 
             
            766
         | 
| 1527 | 
            -
            767 | 
| 1526 | 
            +
            767
         | 
| 1527 | 
            +
            768
         | 
| 1528 | 
            +
            769
         | 
| 1529 | 
            +
            770
         | 
| 1530 | 
            +
            771
         | 
| 1531 | 
            +
            772
         | 
| 1532 | 
            +
            773
         | 
| 1533 | 
            +
            774
         | 
| 1534 | 
            +
            775
         | 
| 1535 | 
            +
            776
         | 
| 1536 | 
            +
            777
         | 
| 1537 | 
            +
            778
         | 
| 1538 | 
            +
            779
         | 
| 1539 | 
            +
            780
         | 
| 1540 | 
            +
            781
         | 
| 1541 | 
            +
            782
         | 
| 1542 | 
            +
            783
         | 
| 1543 | 
            +
            784
         | 
| 1544 | 
            +
            785
         | 
| 1545 | 
            +
            786
         | 
| 1546 | 
            +
            787
         | 
| 1547 | 
            +
            788
         | 
| 1548 | 
            +
            789
         | 
| 1549 | 
            +
            790
         | 
| 1550 | 
            +
            791
         | 
| 1551 | 
            +
            792
         | 
| 1552 | 
            +
            793
         | 
| 1553 | 
            +
            794
         | 
| 1554 | 
            +
            795
         | 
| 1555 | 
            +
            796
         | 
| 1556 | 
            +
            797
         | 
| 1557 | 
            +
            798
         | 
| 1558 | 
            +
            799
         | 
| 1559 | 
            +
            800
         | 
| 1560 | 
            +
            801
         | 
| 1561 | 
            +
            802
         | 
| 1562 | 
            +
            803
         | 
| 1563 | 
            +
            804
         | 
| 1564 | 
            +
            805
         | 
| 1565 | 
            +
            806
         | 
| 1566 | 
            +
            807
         | 
| 1567 | 
            +
            808</pre>
         | 
| 1528 1568 | 
             
                </td>
         | 
| 1529 1569 | 
             
                <td>
         | 
| 1530 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line  | 
| 1570 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 651</span>
         | 
| 1531 1571 |  | 
| 1532 1572 | 
             
            <span class='kw'>class</span> <span class='const'>Application</span> <span class='op'><</span> <span class='const'>RExec</span><span class='op'>::</span><span class='const'>Daemon</span><span class='op'>::</span><span class='const'>Base</span>
         | 
| 1533 1573 | 
             
              <span class='comment'># Class for ANY DNS request.
         | 
| @@ -1660,16 +1700,14 @@ | |
| 1660 1700 | 
             
                    <span class='ivar'>@logger</span> <span class='op'>=</span> <span class='kw'>nil</span>
         | 
| 1661 1701 | 
             
                    <span class='ivar'>@logger</span> <span class='op'>=</span> <span class='id identifier rubyid_get_logger'>get_logger</span>
         | 
| 1662 1702 | 
             
                  <span class='kw'>rescue</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Errors</span><span class='op'>::</span><span class='const'>InvalidConfiguration</span> <span class='op'>=></span> <span class='id identifier rubyid_e'>e</span>
         | 
| 1663 | 
            -
                    <span class='id identifier  | 
| 1664 | 
            -
                    <span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_fatal'>fatal</span><span class='lparen'>(</span><span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
         | 
| 1665 | 
            -
                    <span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_warn'>warn</span><span class='lparen'>(</span><span class='id identifier rubyid_replace_markers'>replace_markers</span><span class='lparen'>(</span><span class='id identifier rubyid_i18n'>i18n</span><span class='period'>.</span><span class='id identifier rubyid_application_create_config'>application_create_config</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='rparen'>)</span>
         | 
| 1703 | 
            +
                    <span class='id identifier rubyid_log_failed_configuration'>log_failed_configuration</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_e'>e</span><span class='rparen'>)</span>
         | 
| 1666 1704 | 
             
                    <span class='id identifier rubyid_raise'>raise</span> <span class='op'>::</span><span class='const'>SystemExit</span>
         | 
| 1667 1705 | 
             
                  <span class='kw'>end</span>
         | 
| 1668 1706 | 
             
                <span class='kw'>end</span>
         | 
| 1669 1707 |  | 
| 1670 1708 | 
             
                <span class='comment'># Creates a folder for a file.
         | 
| 1671 1709 | 
             
            </span>    <span class='comment'>#
         | 
| 1672 | 
            -
            </span>    <span class='comment'># @param [String] The path of the file.
         | 
| 1710 | 
            +
            </span>    <span class='comment'># @param path [String] The path of the file.
         | 
| 1673 1711 | 
             
            </span>    <span class='kw'>def</span> <span class='id identifier rubyid_ensure_directory_for'>ensure_directory_for</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
         | 
| 1674 1712 | 
             
                  <span class='kw'>begin</span>
         | 
| 1675 1713 | 
             
                    <span class='const'>FileUtils</span><span class='period'>.</span><span class='id identifier rubyid_mkdir_p'>mkdir_p</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span><span class='rparen'>)</span>
         | 
| @@ -1678,6 +1716,16 @@ | |
| 1678 1716 | 
             
                    <span class='id identifier rubyid_raise'>raise</span> <span class='op'>::</span><span class='const'>SystemExit</span>
         | 
| 1679 1717 | 
             
                  <span class='kw'>end</span>
         | 
| 1680 1718 | 
             
                <span class='kw'>end</span>
         | 
| 1719 | 
            +
             | 
| 1720 | 
            +
                <span class='comment'># Logs a failed configuration
         | 
| 1721 | 
            +
            </span>    <span class='comment'>#
         | 
| 1722 | 
            +
            </span>    <span class='comment'># @param path [String] The path of the invalid file.
         | 
| 1723 | 
            +
            </span>    <span class='comment'># @param exception [Exception] The occurred exception.
         | 
| 1724 | 
            +
            </span>    <span class='kw'>def</span> <span class='id identifier rubyid_log_failed_configuration'>log_failed_configuration</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_exception'>exception</span><span class='rparen'>)</span>
         | 
| 1725 | 
            +
                  <span class='id identifier rubyid_logger'>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='gvar'>$stderr</span><span class='rparen'>)</span>
         | 
| 1726 | 
            +
                  <span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_fatal'>fatal</span><span class='lparen'>(</span><span class='id identifier rubyid_exception'>exception</span><span class='period'>.</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
         | 
| 1727 | 
            +
                  <span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_warn'>warn</span><span class='lparen'>(</span><span class='id identifier rubyid_replace_markers'>replace_markers</span><span class='lparen'>(</span><span class='id identifier rubyid_i18n'>i18n</span><span class='period'>.</span><span class='id identifier rubyid_application_create_config'>application_create_config</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='rparen'>)</span>
         | 
| 1728 | 
            +
                <span class='kw'>end</span>
         | 
| 1681 1729 | 
             
            <span class='kw'>end</span></pre>
         | 
| 1682 1730 | 
             
                </td>
         | 
| 1683 1731 | 
             
              </tr>
         | 
| @@ -1728,39 +1776,6 @@ | |
| 1728 1776 | 
             
                  <pre class="lines">
         | 
| 1729 1777 |  | 
| 1730 1778 |  | 
| 1731 | 
            -
            618
         | 
| 1732 | 
            -
            619
         | 
| 1733 | 
            -
            620
         | 
| 1734 | 
            -
            621
         | 
| 1735 | 
            -
            622
         | 
| 1736 | 
            -
            623
         | 
| 1737 | 
            -
            624
         | 
| 1738 | 
            -
            625
         | 
| 1739 | 
            -
            626
         | 
| 1740 | 
            -
            627
         | 
| 1741 | 
            -
            628
         | 
| 1742 | 
            -
            629
         | 
| 1743 | 
            -
            630
         | 
| 1744 | 
            -
            631
         | 
| 1745 | 
            -
            632
         | 
| 1746 | 
            -
            633
         | 
| 1747 | 
            -
            634
         | 
| 1748 | 
            -
            635
         | 
| 1749 | 
            -
            636
         | 
| 1750 | 
            -
            637
         | 
| 1751 | 
            -
            638
         | 
| 1752 | 
            -
            639
         | 
| 1753 | 
            -
            640
         | 
| 1754 | 
            -
            641
         | 
| 1755 | 
            -
            642
         | 
| 1756 | 
            -
            643
         | 
| 1757 | 
            -
            644
         | 
| 1758 | 
            -
            645
         | 
| 1759 | 
            -
            646
         | 
| 1760 | 
            -
            647
         | 
| 1761 | 
            -
            648
         | 
| 1762 | 
            -
            649
         | 
| 1763 | 
            -
            650
         | 
| 1764 1779 | 
             
            651
         | 
| 1765 1780 | 
             
            652
         | 
| 1766 1781 | 
             
            653
         | 
| @@ -1877,10 +1892,51 @@ | |
| 1877 1892 | 
             
            764
         | 
| 1878 1893 | 
             
            765
         | 
| 1879 1894 | 
             
            766
         | 
| 1880 | 
            -
            767 | 
| 1895 | 
            +
            767
         | 
| 1896 | 
            +
            768
         | 
| 1897 | 
            +
            769
         | 
| 1898 | 
            +
            770
         | 
| 1899 | 
            +
            771
         | 
| 1900 | 
            +
            772
         | 
| 1901 | 
            +
            773
         | 
| 1902 | 
            +
            774
         | 
| 1903 | 
            +
            775
         | 
| 1904 | 
            +
            776
         | 
| 1905 | 
            +
            777
         | 
| 1906 | 
            +
            778
         | 
| 1907 | 
            +
            779
         | 
| 1908 | 
            +
            780
         | 
| 1909 | 
            +
            781
         | 
| 1910 | 
            +
            782
         | 
| 1911 | 
            +
            783
         | 
| 1912 | 
            +
            784
         | 
| 1913 | 
            +
            785
         | 
| 1914 | 
            +
            786
         | 
| 1915 | 
            +
            787
         | 
| 1916 | 
            +
            788
         | 
| 1917 | 
            +
            789
         | 
| 1918 | 
            +
            790
         | 
| 1919 | 
            +
            791
         | 
| 1920 | 
            +
            792
         | 
| 1921 | 
            +
            793
         | 
| 1922 | 
            +
            794
         | 
| 1923 | 
            +
            795
         | 
| 1924 | 
            +
            796
         | 
| 1925 | 
            +
            797
         | 
| 1926 | 
            +
            798
         | 
| 1927 | 
            +
            799
         | 
| 1928 | 
            +
            800
         | 
| 1929 | 
            +
            801
         | 
| 1930 | 
            +
            802
         | 
| 1931 | 
            +
            803
         | 
| 1932 | 
            +
            804
         | 
| 1933 | 
            +
            805
         | 
| 1934 | 
            +
            806
         | 
| 1935 | 
            +
            807
         | 
| 1936 | 
            +
            808</pre>
         | 
| 1881 1937 | 
             
                </td>
         | 
| 1882 1938 | 
             
                <td>
         | 
| 1883 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line  | 
| 1939 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 651</span>
         | 
| 1884 1940 |  | 
| 1885 1941 | 
             
            <span class='kw'>class</span> <span class='const'>Application</span> <span class='op'><</span> <span class='const'>RExec</span><span class='op'>::</span><span class='const'>Daemon</span><span class='op'>::</span><span class='const'>Base</span>
         | 
| 1886 1942 | 
             
              <span class='comment'># Class for ANY DNS request.
         | 
| @@ -2013,16 +2069,14 @@ | |
| 2013 2069 | 
             
                    <span class='ivar'>@logger</span> <span class='op'>=</span> <span class='kw'>nil</span>
         | 
| 2014 2070 | 
             
                    <span class='ivar'>@logger</span> <span class='op'>=</span> <span class='id identifier rubyid_get_logger'>get_logger</span>
         | 
| 2015 2071 | 
             
                  <span class='kw'>rescue</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Errors</span><span class='op'>::</span><span class='const'>InvalidConfiguration</span> <span class='op'>=></span> <span class='id identifier rubyid_e'>e</span>
         | 
| 2016 | 
            -
                    <span class='id identifier  | 
| 2017 | 
            -
                    <span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_fatal'>fatal</span><span class='lparen'>(</span><span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
         | 
| 2018 | 
            -
                    <span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_warn'>warn</span><span class='lparen'>(</span><span class='id identifier rubyid_replace_markers'>replace_markers</span><span class='lparen'>(</span><span class='id identifier rubyid_i18n'>i18n</span><span class='period'>.</span><span class='id identifier rubyid_application_create_config'>application_create_config</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='rparen'>)</span>
         | 
| 2072 | 
            +
                    <span class='id identifier rubyid_log_failed_configuration'>log_failed_configuration</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_e'>e</span><span class='rparen'>)</span>
         | 
| 2019 2073 | 
             
                    <span class='id identifier rubyid_raise'>raise</span> <span class='op'>::</span><span class='const'>SystemExit</span>
         | 
| 2020 2074 | 
             
                  <span class='kw'>end</span>
         | 
| 2021 2075 | 
             
                <span class='kw'>end</span>
         | 
| 2022 2076 |  | 
| 2023 2077 | 
             
                <span class='comment'># Creates a folder for a file.
         | 
| 2024 2078 | 
             
            </span>    <span class='comment'>#
         | 
| 2025 | 
            -
            </span>    <span class='comment'># @param [String] The path of the file.
         | 
| 2079 | 
            +
            </span>    <span class='comment'># @param path [String] The path of the file.
         | 
| 2026 2080 | 
             
            </span>    <span class='kw'>def</span> <span class='id identifier rubyid_ensure_directory_for'>ensure_directory_for</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
         | 
| 2027 2081 | 
             
                  <span class='kw'>begin</span>
         | 
| 2028 2082 | 
             
                    <span class='const'>FileUtils</span><span class='period'>.</span><span class='id identifier rubyid_mkdir_p'>mkdir_p</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span><span class='rparen'>)</span>
         | 
| @@ -2031,6 +2085,16 @@ | |
| 2031 2085 | 
             
                    <span class='id identifier rubyid_raise'>raise</span> <span class='op'>::</span><span class='const'>SystemExit</span>
         | 
| 2032 2086 | 
             
                  <span class='kw'>end</span>
         | 
| 2033 2087 | 
             
                <span class='kw'>end</span>
         | 
| 2088 | 
            +
             | 
| 2089 | 
            +
                <span class='comment'># Logs a failed configuration
         | 
| 2090 | 
            +
            </span>    <span class='comment'>#
         | 
| 2091 | 
            +
            </span>    <span class='comment'># @param path [String] The path of the invalid file.
         | 
| 2092 | 
            +
            </span>    <span class='comment'># @param exception [Exception] The occurred exception.
         | 
| 2093 | 
            +
            </span>    <span class='kw'>def</span> <span class='id identifier rubyid_log_failed_configuration'>log_failed_configuration</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_exception'>exception</span><span class='rparen'>)</span>
         | 
| 2094 | 
            +
                  <span class='id identifier rubyid_logger'>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='gvar'>$stderr</span><span class='rparen'>)</span>
         | 
| 2095 | 
            +
                  <span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_fatal'>fatal</span><span class='lparen'>(</span><span class='id identifier rubyid_exception'>exception</span><span class='period'>.</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
         | 
| 2096 | 
            +
                  <span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_warn'>warn</span><span class='lparen'>(</span><span class='id identifier rubyid_replace_markers'>replace_markers</span><span class='lparen'>(</span><span class='id identifier rubyid_i18n'>i18n</span><span class='period'>.</span><span class='id identifier rubyid_application_create_config'>application_create_config</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='rparen'>)</span>
         | 
| 2097 | 
            +
                <span class='kw'>end</span>
         | 
| 2034 2098 | 
             
            <span class='kw'>end</span></pre>
         | 
| 2035 2099 | 
             
                </td>
         | 
| 2036 2100 | 
             
              </tr>
         | 
| @@ -2069,15 +2133,15 @@ | |
| 2069 2133 | 
             
                  <pre class="lines">
         | 
| 2070 2134 |  | 
| 2071 2135 |  | 
| 2072 | 
            -
             | 
| 2073 | 
            -
             | 
| 2074 | 
            -
             | 
| 2075 | 
            -
             | 
| 2076 | 
            -
             | 
| 2077 | 
            -
             | 
| 2136 | 
            +
            736
         | 
| 2137 | 
            +
            737
         | 
| 2138 | 
            +
            738
         | 
| 2139 | 
            +
            739
         | 
| 2140 | 
            +
            740
         | 
| 2141 | 
            +
            741</pre>
         | 
| 2078 2142 | 
             
                </td>
         | 
| 2079 2143 | 
             
                <td>
         | 
| 2080 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line  | 
| 2144 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 736</span>
         | 
| 2081 2145 |  | 
| 2082 2146 | 
             
            <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>
         | 
| 2083 2147 | 
             
              <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>
         | 
| @@ -2187,14 +2251,14 @@ | |
| 2187 2251 | 
             
                  <pre class="lines">
         | 
| 2188 2252 |  | 
| 2189 2253 |  | 
| 2190 | 
            -
             | 
| 2191 | 
            -
             | 
| 2192 | 
            -
             | 
| 2193 | 
            -
             | 
| 2194 | 
            -
             | 
| 2254 | 
            +
            714
         | 
| 2255 | 
            +
            715
         | 
| 2256 | 
            +
            716
         | 
| 2257 | 
            +
            717
         | 
| 2258 | 
            +
            718</pre>
         | 
| 2195 2259 | 
             
                </td>
         | 
| 2196 2260 | 
             
                <td>
         | 
| 2197 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line  | 
| 2261 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 714</span>
         | 
| 2198 2262 |  | 
| 2199 2263 | 
             
            <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>
         | 
| 2200 2264 | 
             
              <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>
         | 
| @@ -2231,15 +2295,15 @@ | |
| 2231 2295 | 
             
                  <pre class="lines">
         | 
| 2232 2296 |  | 
| 2233 2297 |  | 
| 2234 | 
            -
             | 
| 2235 | 
            -
             | 
| 2236 | 
            -
             | 
| 2237 | 
            -
             | 
| 2238 | 
            -
             | 
| 2239 | 
            -
             | 
| 2298 | 
            +
            728
         | 
| 2299 | 
            +
            729
         | 
| 2300 | 
            +
            730
         | 
| 2301 | 
            +
            731
         | 
| 2302 | 
            +
            732
         | 
| 2303 | 
            +
            733</pre>
         | 
| 2240 2304 | 
             
                </td>
         | 
| 2241 2305 | 
             
                <td>
         | 
| 2242 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line  | 
| 2306 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 728</span>
         | 
| 2243 2307 |  | 
| 2244 2308 | 
             
            <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_quit'>quit</span>
         | 
| 2245 2309 | 
             
              <span class='kw'>begin</span>
         | 
| @@ -2284,12 +2348,12 @@ | |
| 2284 2348 | 
             
                  <pre class="lines">
         | 
| 2285 2349 |  | 
| 2286 2350 |  | 
| 2287 | 
            -
             | 
| 2288 | 
            -
             | 
| 2289 | 
            -
             | 
| 2351 | 
            +
            723
         | 
| 2352 | 
            +
            724
         | 
| 2353 | 
            +
            725</pre>
         | 
| 2290 2354 | 
             
                </td>
         | 
| 2291 2355 | 
             
                <td>
         | 
| 2292 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line  | 
| 2356 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 723</span>
         | 
| 2293 2357 |  | 
| 2294 2358 | 
             
            <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span>
         | 
| 2295 2359 | 
             
              <span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_perform_server'>perform_server</span>
         | 
| @@ -2347,12 +2411,12 @@ | |
| 2347 2411 | 
             
                  <pre class="lines">
         | 
| 2348 2412 |  | 
| 2349 2413 |  | 
| 2350 | 
            -
             | 
| 2351 | 
            -
             | 
| 2352 | 
            -
             | 
| 2414 | 
            +
            692
         | 
| 2415 | 
            +
            693
         | 
| 2416 | 
            +
            694</pre>
         | 
| 2353 2417 | 
             
                </td>
         | 
| 2354 2418 | 
             
                <td>
         | 
| 2355 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line  | 
| 2419 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 692</span>
         | 
| 2356 2420 |  | 
| 2357 2421 | 
             
            <span class='kw'>def</span> <span class='id identifier rubyid_get_logger'>get_logger</span>
         | 
| 2358 2422 | 
             
              <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>
         | 
| @@ -2404,11 +2468,11 @@ | |
| 2404 2468 | 
             
                  <pre class="lines">
         | 
| 2405 2469 |  | 
| 2406 2470 |  | 
| 2407 | 
            -
             | 
| 2408 | 
            -
             | 
| 2471 | 
            +
            699
         | 
| 2472 | 
            +
            700</pre>
         | 
| 2409 2473 | 
             
                </td>
         | 
| 2410 2474 | 
             
                <td>
         | 
| 2411 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line  | 
| 2475 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 699</span>
         | 
| 2412 2476 |  | 
| 2413 2477 | 
             
            <span class='kw'>def</span> <span class='id identifier rubyid_on_start'>on_start</span>
         | 
| 2414 2478 | 
             
            <span class='kw'>end</span></pre>
         | 
| @@ -2459,11 +2523,11 @@ | |
| 2459 2523 | 
             
                  <pre class="lines">
         | 
| 2460 2524 |  | 
| 2461 2525 |  | 
| 2462 | 
            -
             | 
| 2463 | 
            -
             | 
| 2526 | 
            +
            705
         | 
| 2527 | 
            +
            706</pre>
         | 
| 2464 2528 | 
             
                </td>
         | 
| 2465 2529 | 
             
                <td>
         | 
| 2466 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line  | 
| 2530 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 705</span>
         | 
| 2467 2531 |  | 
| 2468 2532 | 
             
            <span class='kw'>def</span> <span class='id identifier rubyid_on_stop'>on_stop</span>
         | 
| 2469 2533 | 
             
            <span class='kw'>end</span></pre>
         | 
| @@ -2477,7 +2541,7 @@ | |
| 2477 2541 | 
             
            </div>
         | 
| 2478 2542 |  | 
| 2479 2543 | 
             
                <div id="footer">
         | 
| 2480 | 
            -
              Generated on  | 
| 2544 | 
            +
              Generated on Sun Mar  9 19:54:08 2014 by
         | 
| 2481 2545 | 
             
              <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         | 
| 2482 2546 | 
             
              0.8.7.3 (ruby-2.1.0).
         | 
| 2483 2547 | 
             
            </div>
         |