nexus 1.2.0 → 1.2.1
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 +4 -4
- data/lib/commands/abstract_command.rb +0 -6
- data/lib/commands/nexus.rb +1 -1
- data/lib/nexus/version.rb +1 -1
- data/test/nexus_command_test.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 56b4f36d9da9a2df188aa8f2dd1895d40108b519
|
|
4
|
+
data.tar.gz: 0f65760a232f5814af0ae34a8a9e5d63b1c0c67b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9173d988135621d5f0533268bb29e0ccbe9bc2297b1f70843b5eb805468d83cd1b548a4fe20802ca3ce1bc894056e87f11eefe450eea61ace3390c5534446b5d
|
|
7
|
+
data.tar.gz: c4609b7a105199cbe673a014c95508c4042716165c8667d8162d4461b96e7530d27f413b6b1c63e2e20e3424d240606760b8a9e2668844864b3e86af482c61d7
|
|
@@ -67,12 +67,6 @@ class Gem::AbstractCommand < Gem::Command
|
|
|
67
67
|
|
|
68
68
|
# recreate config with password
|
|
69
69
|
config.password = password
|
|
70
|
-
|
|
71
|
-
# if options[ :nexus_encrypt ] && !config.encrypted?
|
|
72
|
-
# config.encrypt_credentials
|
|
73
|
-
# elsif options[ :nexus_encrypt ] == false && config.encrypted?
|
|
74
|
-
# config.decrypt_credentials
|
|
75
|
-
# end
|
|
76
70
|
end
|
|
77
71
|
|
|
78
72
|
def sign_in
|
data/lib/commands/nexus.rb
CHANGED
|
@@ -108,7 +108,7 @@ class Gem::Commands::NexusCommand < Gem::AbstractCommand
|
|
|
108
108
|
|
|
109
109
|
path = get_one_gem_name
|
|
110
110
|
|
|
111
|
-
response = make_request(:
|
|
111
|
+
response = make_request(:put, "gems/#{File.basename(path)}") do |request|
|
|
112
112
|
request.body = Gem.read_binary(path)
|
|
113
113
|
request.add_field("Content-Length", request.body.size)
|
|
114
114
|
request.add_field("Content-Type", "application/octet-stream")
|
data/lib/nexus/version.rb
CHANGED
data/test/nexus_command_test.rb
CHANGED
|
@@ -303,7 +303,7 @@ class NexusCommandTest < CommandTest
|
|
|
303
303
|
def obj.url; 'http://localhost:8081/nexus/content/repositories/localgems'; end
|
|
304
304
|
obj
|
|
305
305
|
end
|
|
306
|
-
stub_request(:
|
|
306
|
+
stub_request(:put, @url).to_return(:status => 201)
|
|
307
307
|
|
|
308
308
|
@command.send_gem
|
|
309
309
|
end
|
|
@@ -314,11 +314,11 @@ class NexusCommandTest < CommandTest
|
|
|
314
314
|
assert_received(@command) { |command| command.say("") }
|
|
315
315
|
end
|
|
316
316
|
|
|
317
|
-
should "
|
|
317
|
+
should "put to api" do
|
|
318
318
|
# webmock doesn't pass body params on correctly :[
|
|
319
|
-
assert_requested(:
|
|
319
|
+
assert_requested(:put, @url,
|
|
320
320
|
:times => 1)
|
|
321
|
-
assert_requested(:
|
|
321
|
+
assert_requested(:put, @url,
|
|
322
322
|
:body => @gem_binary,
|
|
323
323
|
:headers => {
|
|
324
324
|
'Authorization' => 'key',
|
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.2.
|
|
4
|
+
version: 1.2.1
|
|
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: 2013-12-
|
|
12
|
+
date: 2013-12-18 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rake
|