dotenv-android 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/dotenv-android/cli.rb +4 -4
- data/lib/dotenv-android/generator.rb +2 -2
- data/lib/dotenv-android/version.rb +1 -1
- 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: 1f4fa7863ff0607361fa2a8966c6700a259ecfeed0cf0154619b3509853c5eaa
|
4
|
+
data.tar.gz: 808da8e19dfbf4ec5cc0ddb31d461d2acd43af820d6f36353da37449146e061b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3047eb600f3c3e6180067a357878d411d77544a874d53decb7936c27da58bdfe4a547ddfdebd5aa0ef722558a427631ec6df7d7d0c5808cb1a759824f294bb21
|
7
|
+
data.tar.gz: 93182d4ce2a59349b3ea1f01b8852419c58a33326b52f79b36b313e112fa0813e23e415086b1f1ab047fed004f86d143f8e5d445092aabe938f179c06b8828f2
|
data/CHANGELOG.md
CHANGED
data/lib/dotenv-android/cli.rb
CHANGED
@@ -68,11 +68,11 @@ module DotEnvAndroid
|
|
68
68
|
|
69
69
|
opt_parser.parse!(ARGV)
|
70
70
|
|
71
|
-
if options.package_name.nil?
|
72
|
-
options.package_name = ENV[
|
71
|
+
if options.package_name.nil?
|
72
|
+
options.package_name = ENV['PACKAGE_NAME']
|
73
73
|
|
74
|
-
@ui.fail(
|
75
|
-
end
|
74
|
+
@ui.fail('Cannot find package name in .env file with key, PACKAGE_NAME, or as a CLI argument') if options.package_name.nil?
|
75
|
+
end
|
76
76
|
|
77
77
|
options
|
78
78
|
end
|
@@ -69,7 +69,7 @@ module DotEnvAndroid
|
|
69
69
|
requests.each do |request|
|
70
70
|
@ui.warning("Environment variable #{request} not found in .env") unless ENV[request]
|
71
71
|
|
72
|
-
values[request] = ENV[request]
|
72
|
+
values[request] = ENV[request] if ENV[request]
|
73
73
|
end
|
74
74
|
|
75
75
|
@ui.debug("Values: #{values}")
|
@@ -77,7 +77,7 @@ module DotEnvAndroid
|
|
77
77
|
end
|
78
78
|
|
79
79
|
def package_header
|
80
|
-
|
80
|
+
"package #{@options.package_name}"
|
81
81
|
end
|
82
82
|
|
83
83
|
def generate_output(env_variables)
|