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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d22e91e44e04625949928ec8e9a0c55612faeca178a4d9cd5461b7fbc7ff0db
4
- data.tar.gz: 7a73cba66ce0b45c73b400e9d382fb908893c2abff44ca1bd74840b53e18aae3
3
+ metadata.gz: 1f4fa7863ff0607361fa2a8966c6700a259ecfeed0cf0154619b3509853c5eaa
4
+ data.tar.gz: 808da8e19dfbf4ec5cc0ddb31d461d2acd43af820d6f36353da37449146e061b
5
5
  SHA512:
6
- metadata.gz: 205123bb2fe02d01e6de518d64200a3c8478f92039d3086368ac4f5666c7b16e1980b61ff4b2bcaeb082a2a185928432628c4f230f93a4e3979788c54624f815
7
- data.tar.gz: 58ec434f9e4069be26933fb7a7f5d9ecf2fe15a46c1366b3ab01324e792c70ad4400992ef81df1e0a652e08940561822a55fd8d77be10c90fe99880fba622978
6
+ metadata.gz: 3047eb600f3c3e6180067a357878d411d77544a874d53decb7936c27da58bdfe4a547ddfdebd5aa0ef722558a427631ec6df7d7d0c5808cb1a759824f294bb21
7
+ data.tar.gz: 93182d4ce2a59349b3ea1f01b8852419c58a33326b52f79b36b313e112fa0813e23e415086b1f1ab047fed004f86d143f8e5d445092aabe938f179c06b8828f2
@@ -1,3 +1,8 @@
1
+ # [0.2.1] - 2020-03-26
2
+
3
+ ## Fixed
4
+ - If env var not found in .env file, do not add it to the generated Env file.
5
+
1
6
  # [0.2.0] - 2020-03-26
2
7
 
3
8
  ## 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["PACKAGE_NAME"]
71
+ if options.package_name.nil?
72
+ options.package_name = ENV['PACKAGE_NAME']
73
73
 
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
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
- return "package #{@options.package_name}"
80
+ "package #{@options.package_name}"
81
81
  end
82
82
 
83
83
  def generate_output(env_variables)
@@ -3,7 +3,7 @@
3
3
  module DotEnvAndroid
4
4
  class Version
5
5
  def self.get
6
- '0.2.0'
6
+ '0.2.1'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dotenv-android
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Levi Bostian