dip 3.8.2 → 3.8.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '029585e8c8f0301ca6dbe33357b00c90d1671c58a38615b52715c68c165e8149'
4
- data.tar.gz: 2b9ad0e0da997cdc7983f8bcc2cbaba698cd84f60fbf3c93905927efa51010f0
3
+ metadata.gz: 47956f8a76407c96fe354e73d11fb582d081736b6c83b4b1756e5b514d3f6e59
4
+ data.tar.gz: e1b8a52c7fbcf29c407e562f12647e977429dd6661c41e11705eeee0d1f6e439
5
5
  SHA512:
6
- metadata.gz: 61bed9107e0a9c538d12494701fd90ee5525f55b091fc939d9f39a45a942b4d8da2905bcd1e7ae02b97135cc3333f51d1c756dda40fba42dfef2eab5df311471
7
- data.tar.gz: 7774263ad4e9dccb824936cee6e637f4c6ff23036bd103f9909e0e0433ce79d88f6ced357b59868b812532ad08bd6a34f7918e9207d3f1ea094acc478c029cc6
6
+ metadata.gz: ac05cfd64e35d26919a9291af4dd9b94c30b5fc67c0e292ee2457c67c778c24d28fab485dd5cf8931c073560b302e06a3f4a7a8681ddf8b35ccc6c5cd2965211
7
+ data.tar.gz: e43a7d567dd871f2fa4fc6d88571c9b07c929db2a177b1f2e8faa3c54f8ffb065fabe789bbc5ffde1dab180e07216ab92cb450b118d9204a7fc55ebbe6d0bfc4
data/README.md CHANGED
@@ -64,7 +64,7 @@ It can be found at [releases page](https://github.com/bibendi/dip/releases)
64
64
  or type bellow into your terminal:
65
65
 
66
66
  ```sh
67
- curl -L https://github.com/bibendi/dip/releases/download/3.8.2/dip-`uname -s`-`uname -m` > /usr/local/bin/dip
67
+ curl -L https://github.com/bibendi/dip/releases/download/3.8.3/dip-`uname -s`-`uname -m` > /usr/local/bin/dip
68
68
  chmod +x /usr/local/bin/dip
69
69
  ```
70
70
 
@@ -17,8 +17,6 @@ module Dip
17
17
  def initialize(argv, env = ENV)
18
18
  @argv = argv
19
19
  @env = env
20
-
21
- self.class.env.clear
22
20
  end
23
21
 
24
22
  def call
@@ -32,7 +30,7 @@ module Dip
32
30
  return if early_envs.empty?
33
31
 
34
32
  (env.keys - early_envs).each do |key|
35
- next if env_excluded?(key)
33
+ next if ignore_var?(key)
36
34
 
37
35
  self.class.env[key] = env[key]
38
36
  end
@@ -56,7 +54,7 @@ module Dip
56
54
  @early_envs ||= env["DIP_EARLY_ENVS"].to_s.split(",")
57
55
  end
58
56
 
59
- def env_excluded?(key)
57
+ def ignore_var?(key)
60
58
  key.start_with?("DIP_", "_")
61
59
  end
62
60
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dip
4
- VERSION = "3.8.2"
4
+ VERSION = "3.8.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dip
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.8.2
4
+ version: 3.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - bibendi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-04 00:00:00.000000000 Z
11
+ date: 2019-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor