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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3277311573d07ea300bd8b704ecae81eabee2d0c94711550684bb3e82821a95f
4
- data.tar.gz: 70db71e7cf7e4271d7774fcfba8e4cc48810148d5ad5c5ecb41fdc21340e6873
3
+ metadata.gz: 922097629039a53828611718be8672d243b0fcb322ef3639b83275814dbbaf84
4
+ data.tar.gz: f143284ecbd72720cb4f31167c72c120719214af5c4ce02fca8132af007ff7eb
5
5
  SHA512:
6
- metadata.gz: 6eab7cbda8f1111123257e9a588f48d0a94b953c90b76f493b97308ba8496e5eb7a693f0ffe910fd63cbdbd6591991954d41b43f7d33d6a53af40be2763fa259
7
- data.tar.gz: cbd774c5df0d727d0fa8184a938534fb225363b03ce6eda16dddd592f33a2b63c9e14ff33cd4c98f01f3090ba111c2cfb6315ebf3d12c641f254864601b6114f
6
+ metadata.gz: 71f9aaa05c22d33dac78456f8b1f3c7c9124bfef87bb93f27ede5750a242d2b7451b9dad22326ee432c5c7c7f2fbebac6a365dca9c60fc72c284dff9588ff112
7
+ data.tar.gz: ad07ee8f12fcb5b615ae83c334f704005536adc213123de2ea4ea818e8201561d8a3f5c82ad526ce607fb900eafa538056a4ad26d23db07694ab6ffb519239f3
data/Gemfile.lock CHANGED
@@ -11,7 +11,7 @@ GIT
11
11
  PATH
12
12
  remote: .
13
13
  specs:
14
- dpl (2.0.3.beta.5)
14
+ dpl (2.0.4.beta)
15
15
  travis-cl
16
16
  travis-packagecloud-ruby
17
17
 
@@ -86,7 +86,10 @@ module Dpl
86
86
  end
87
87
 
88
88
  def npmrc
89
- if npm_version =~ /^1/ || auth_method == 'auth'
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dpl
4
- VERSION = '2.0.3.beta.5'
4
+ VERSION = '2.0.4.beta'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dpl
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3.beta.5
4
+ version: 2.0.4.beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase