nexus 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/commands/abstract_command.rb +26 -7
- data/lib/nexus/version.rb +1 -1
- metadata +10 -41
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4aaa8e6fe12f2cb99e05e36d30645510e975dc2e
|
4
|
+
data.tar.gz: cd62a2759cc1528fba9995e073eabd0c6e6b1d8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6481887bcbf1800d0bfe5e4524906f73bf37bec4073fd94b28e7c46fb7ea11cb5fef360399ae3ac1d5a0c2bc1d4c86e457b68fc9ab70729d3f435caa236ecefc
|
7
|
+
data.tar.gz: b4bae96a5fcfbe925f01e3e630aab2daccbb7d6e13f16adddd8939525e05173a2fed37eb658d6cc50ea536a1663ba8e734f2b4006d15c015ebaed017b0bb9692
|
@@ -19,6 +19,16 @@ class Gem::AbstractCommand < Gem::Command
|
|
19
19
|
options[ :nexus_clear ] = value
|
20
20
|
end
|
21
21
|
|
22
|
+
add_option( '--url URL',
|
23
|
+
'URL of the rubygems repository on a Nexus server' ) do |value, options|
|
24
|
+
options[ :nexus_url ] = value
|
25
|
+
end
|
26
|
+
|
27
|
+
add_option( '--credential USER:PASS',
|
28
|
+
'Enter your Nexus credentials in "Username:Password" format' ) do |value, options|
|
29
|
+
options[ :nexus_credential ] = value
|
30
|
+
end
|
31
|
+
|
22
32
|
add_option( '--nexus-config FILE',
|
23
33
|
"File location of nexus config to use.\n default #{Nexus::Config.default_file}" ) do |value, options|
|
24
34
|
options[ :nexus_config ] = File.expand_path( value )
|
@@ -38,9 +48,13 @@ class Gem::AbstractCommand < Gem::Command
|
|
38
48
|
end
|
39
49
|
|
40
50
|
def configure_url
|
41
|
-
|
42
|
-
|
43
|
-
|
51
|
+
url =
|
52
|
+
if options[ :nexus_url ]
|
53
|
+
options[ :nexus_url ]
|
54
|
+
else
|
55
|
+
say "Enter the URL of the rubygems repository on a Nexus server"
|
56
|
+
ask("URL: ")
|
57
|
+
end
|
44
58
|
|
45
59
|
if URI.parse( "#{url}" ).host != nil
|
46
60
|
config.url = url
|
@@ -70,12 +84,17 @@ class Gem::AbstractCommand < Gem::Command
|
|
70
84
|
end
|
71
85
|
|
72
86
|
def sign_in
|
73
|
-
|
74
|
-
|
75
|
-
|
87
|
+
token =
|
88
|
+
if options[ :nexus_credential ]
|
89
|
+
options[ :nexus_credential ]
|
90
|
+
else
|
91
|
+
say "Enter your Nexus credentials"
|
92
|
+
username = ask("Username: ")
|
93
|
+
password = ask_for_password("Password: ")
|
94
|
+
"#{username}:#{password}"
|
95
|
+
end
|
76
96
|
|
77
97
|
# mimic strict_encode64 which is not there on ruby1.8
|
78
|
-
token = "#{username}:#{password}"
|
79
98
|
auth = "Basic #{Base64.encode64(token).gsub(/\s+/, '')}"
|
80
99
|
@authorization = token == ':' ? nil : auth
|
81
100
|
|
data/lib/nexus/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nexus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Quaranto
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-03
|
12
|
+
date: 2017-07-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -25,20 +25,6 @@ dependencies:
|
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '10.1'
|
28
|
-
- !ruby/object:Gem::Dependency
|
29
|
-
name: ruby-maven
|
30
|
-
requirement: !ruby/object:Gem::Requirement
|
31
|
-
requirements:
|
32
|
-
- - "~>"
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version: 3.1.0.0.0
|
35
|
-
type: :development
|
36
|
-
prerelease: false
|
37
|
-
version_requirements: !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - "~>"
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: 3.1.0.0.0
|
42
28
|
- !ruby/object:Gem::Dependency
|
43
29
|
name: shoulda
|
44
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -71,16 +57,16 @@ dependencies:
|
|
71
57
|
name: activesupport
|
72
58
|
requirement: !ruby/object:Gem::Requirement
|
73
59
|
requirements:
|
74
|
-
- -
|
60
|
+
- - '='
|
75
61
|
- !ruby/object:Gem::Version
|
76
|
-
version: 4.0.
|
62
|
+
version: 4.0.13
|
77
63
|
type: :development
|
78
64
|
prerelease: false
|
79
65
|
version_requirements: !ruby/object:Gem::Requirement
|
80
66
|
requirements:
|
81
|
-
- -
|
67
|
+
- - '='
|
82
68
|
- !ruby/object:Gem::Version
|
83
|
-
version: 4.0.
|
69
|
+
version: 4.0.13
|
84
70
|
- !ruby/object:Gem::Dependency
|
85
71
|
name: webmock
|
86
72
|
requirement: !ruby/object:Gem::Requirement
|
@@ -107,14 +93,14 @@ dependencies:
|
|
107
93
|
requirements:
|
108
94
|
- - "~>"
|
109
95
|
- !ruby/object:Gem::Version
|
110
|
-
version: 2.4
|
96
|
+
version: '2.4'
|
111
97
|
type: :development
|
112
98
|
prerelease: false
|
113
99
|
version_requirements: !ruby/object:Gem::Requirement
|
114
100
|
requirements:
|
115
101
|
- - "~>"
|
116
102
|
- !ruby/object:Gem::Version
|
117
|
-
version: 2.4
|
103
|
+
version: '2.4'
|
118
104
|
description: Adds a command to RubyGems for uploading gems to a nexus server.
|
119
105
|
email:
|
120
106
|
- nick@quaran.to
|
@@ -142,26 +128,9 @@ files:
|
|
142
128
|
- test/nexus_command_test.rb
|
143
129
|
homepage: https://github.com/sonatype/nexus-gem
|
144
130
|
licenses:
|
145
|
-
- MIT
|
131
|
+
- MIT
|
146
132
|
metadata: {}
|
147
|
-
post_install_message:
|
148
|
-
|
149
|
-
========================================================================
|
150
|
-
|
151
|
-
Thanks for installing Nexus gem! You can now run:
|
152
|
-
|
153
|
-
gem nexus publish your gems onto Nexus server
|
154
|
-
|
155
|
-
nbundle a bundler fork with mirror support. for bundler before 1.5.0
|
156
|
-
|
157
|
-
add a mirror with:
|
158
|
-
|
159
|
-
bundle config mirror.http://rubygems.org http://localhost:8081/nexus/content/repositories/rubygems.org
|
160
|
-
|
161
|
-
for bundler before 1.5.0 use 'nbundle' instead of 'bundle' to use the mirror
|
162
|
-
|
163
|
-
========================================================================
|
164
|
-
|
133
|
+
post_install_message:
|
165
134
|
rdoc_options: []
|
166
135
|
require_paths:
|
167
136
|
- lib
|