dpl 2.0.3.beta.5 → 2.0.4.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/dpl/providers/npm.rb +4 -1
- data/lib/dpl/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: 922097629039a53828611718be8672d243b0fcb322ef3639b83275814dbbaf84
|
4
|
+
data.tar.gz: f143284ecbd72720cb4f31167c72c120719214af5c4ce02fca8132af007ff7eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71f9aaa05c22d33dac78456f8b1f3c7c9124bfef87bb93f27ede5750a242d2b7451b9dad22326ee432c5c7c7f2fbebac6a365dca9c60fc72c284dff9588ff112
|
7
|
+
data.tar.gz: ad07ee8f12fcb5b615ae83c334f704005536adc213123de2ea4ea818e8201561d8a3f5c82ad526ce607fb900eafa538056a4ad26d23db07694ab6ffb519239f3
|
data/Gemfile.lock
CHANGED
data/lib/dpl/providers/npm.rb
CHANGED
@@ -86,7 +86,10 @@ module Dpl
|
|
86
86
|
end
|
87
87
|
|
88
88
|
def npmrc
|
89
|
-
|
89
|
+
npm_version_major = npm_version.split('.').first.to_i
|
90
|
+
if npm_version_major >= 10
|
91
|
+
"//#{auth_endpoint}/:_auth=#{api_token}\nemail = #{email}"
|
92
|
+
elsif npm_version =~ /^1/ || auth_method == 'auth'
|
90
93
|
"_auth = #{api_token}\nemail = #{email}"
|
91
94
|
else
|
92
95
|
"//#{auth_endpoint}/:_authToken=#{api_token}"
|
data/lib/dpl/version.rb
CHANGED