plover 1.1.1 → 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 -4
- 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
|
|
@@ -129,6 +129,7 @@ module Plover
|
|
129
129
|
|
130
130
|
def common_include_all
|
131
131
|
configuration[:options][:common_include] = :all
|
132
|
+
auto_include_common
|
132
133
|
end
|
133
134
|
|
134
135
|
def common_include_none
|
@@ -147,6 +148,7 @@ module Plover
|
|
147
148
|
configuration[:options][:common_include] = [] unless configuration[:options][:common_include].is_a?(Array)
|
148
149
|
|
149
150
|
configuration[:options][:common_include].concat(modules)
|
151
|
+
auto_include_common
|
150
152
|
end
|
151
153
|
|
152
154
|
def env_flags
|
@@ -193,8 +195,8 @@ module Plover
|
|
193
195
|
def initialize(flags = {}, use_env_flags: true)
|
194
196
|
@configuration = self.class.configuration
|
195
197
|
|
196
|
-
@configuration[:options][:log][:level] =
|
197
|
-
@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
|
198
200
|
|
199
201
|
@configuration[:options][:flags] = @configuration[:options][:flags].merge(flags).merge(use_env_flags ? self.class.env_flags : {})
|
200
202
|
|
@@ -280,7 +282,7 @@ module Plover
|
|
280
282
|
|
281
283
|
def run
|
282
284
|
run_phase(:setup)
|
283
|
-
Dir.chdir(flag(:build_root) || ".") do
|
285
|
+
Dir.chdir(ENV["PLOVER_BUILD_ROOT"] || flag(:build_root) || ".") do
|
284
286
|
run_phase(:before_build)
|
285
287
|
run_phase(:build)
|
286
288
|
run_phase(:after_build)
|