plover 1.1.2 → 1.1.3
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/lib/plover.rb +6 -5
- metadata +1 -1
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 7fee0e4269fa1e453dc1c3e4d8303a1157c2d2efdd1f11c58f4f86633a711c4b
         | 
| 4 | 
            +
              data.tar.gz: e52792372ba43e98f11aa59b6db31f88c8c7fcd89f223691c6572107ab32c54b
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: c28b04078fda7ce1aec32ca1137beaeb853c2ad513267f83038c82b60a1c5bd426eecbc9df0a71d176ccab36dc10dc1e52872dd20dbfb89a0aa592642595fdd9
         | 
| 7 | 
            +
              data.tar.gz: dd10712a8268b8606d80c1909ad99181a03496e25cf1ff7c37b2c2a77482acce1ab3a332e33c04b65630cd5ebcb8d046a9656534ccd9da145e657b274b2e194f
         | 
    
        data/lib/plover.rb
    CHANGED
    
    | @@ -4,7 +4,7 @@ module Plover | |
| 4 4 | 
             
              require "shellwords"
         | 
| 5 5 | 
             
              require "fileutils"
         | 
| 6 6 |  | 
| 7 | 
            -
              VERSION = "1.1. | 
| 7 | 
            +
              VERSION = "1.1.3"
         | 
| 8 8 |  | 
| 9 9 | 
             
              class PloverError < StandardError; end
         | 
| 10 10 |  | 
| @@ -115,7 +115,6 @@ module Plover | |
| 115 115 | 
             
                  attr_reader :configuration
         | 
| 116 116 |  | 
| 117 117 | 
             
                  def inherited(subclass)
         | 
| 118 | 
            -
                    auto_include_common
         | 
| 119 118 | 
             
                    subclass.extend(Log)
         | 
| 120 119 | 
             
                    subclass.instance_variable_set(:@configuration, deep_copy(configuration))
         | 
| 121 120 | 
             
                  end
         | 
| @@ -130,6 +129,7 @@ module Plover | |
| 130 129 |  | 
| 131 130 | 
             
                  def common_include_all
         | 
| 132 131 | 
             
                    configuration[:options][:common_include] = :all
         | 
| 132 | 
            +
                    auto_include_common
         | 
| 133 133 | 
             
                  end
         | 
| 134 134 |  | 
| 135 135 | 
             
                  def common_include_none
         | 
| @@ -148,6 +148,7 @@ module Plover | |
| 148 148 | 
             
                    configuration[:options][:common_include] = [] unless configuration[:options][:common_include].is_a?(Array)
         | 
| 149 149 |  | 
| 150 150 | 
             
                    configuration[:options][:common_include].concat(modules)
         | 
| 151 | 
            +
                    auto_include_common
         | 
| 151 152 | 
             
                  end
         | 
| 152 153 |  | 
| 153 154 | 
             
                  def env_flags
         | 
| @@ -194,8 +195,8 @@ module Plover | |
| 194 195 | 
             
                def initialize(flags = {}, use_env_flags: true)
         | 
| 195 196 | 
             
                  @configuration = self.class.configuration
         | 
| 196 197 |  | 
| 197 | 
            -
                  @configuration[:options][:log][:level] =  | 
| 198 | 
            -
                  @configuration[:options][:log][:sink] =  | 
| 198 | 
            +
                  @configuration[:options][:log][:level] = ENV["PLOVER_LOG_LEVEL"]&.to_sym || flags[:log_level] || @configuration[:options][:log][:level] || :info
         | 
| 199 | 
            +
                  @configuration[:options][:log][:sink] = ENV["PLOVER_LOG_SINK"] || flags[:log_sink] || @configuration[:options][:log][:sink] || :stdout
         | 
| 199 200 |  | 
| 200 201 | 
             
                  @configuration[:options][:flags] = @configuration[:options][:flags].merge(flags).merge(use_env_flags ? self.class.env_flags : {})
         | 
| 201 202 |  | 
| @@ -281,7 +282,7 @@ module Plover | |
| 281 282 |  | 
| 282 283 | 
             
                def run
         | 
| 283 284 | 
             
                  run_phase(:setup)
         | 
| 284 | 
            -
                  Dir.chdir(flag(:build_root) || ".") do
         | 
| 285 | 
            +
                  Dir.chdir(ENV["PLOVER_BUILD_ROOT"] || flag(:build_root) || ".") do
         | 
| 285 286 | 
             
                    run_phase(:before_build)
         | 
| 286 287 | 
             
                    run_phase(:build)
         | 
| 287 288 | 
             
                    run_phase(:after_build)
         |