nexus 1.2.0 → 1.2.1

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
  SHA1:
3
- metadata.gz: e11879ab0b9f82568f91c8ce11f044da3956b7ff
4
- data.tar.gz: bc935338806a858d17b87fc5834984bb10d2e64e
3
+ metadata.gz: 56b4f36d9da9a2df188aa8f2dd1895d40108b519
4
+ data.tar.gz: 0f65760a232f5814af0ae34a8a9e5d63b1c0c67b
5
5
  SHA512:
6
- metadata.gz: dd857dc03ad489c39efd1a622868f9600398fc4f2721e581f89448d59b04023dbdf8fe3318894209f0e4a619a51fe960ff1e4923f38183056c9406f3abd2cf63
7
- data.tar.gz: a0d1607d9297577d23af9b649629c460d176ca7e91b9f903b4d66d3b712cd7ec8abcb793ce34f2c7d0cca76ee9b8593b310ab038e56d44a620c4cf894aa63e3b
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
@@ -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(:post, "gems/#{File.basename(path)}") do |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")
@@ -1,3 +1,3 @@
1
1
  module Nexus
2
- VERSION = '1.2.0'
2
+ VERSION = '1.2.1'
3
3
  end
@@ -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(:post, @url).to_return(:status => 201)
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 "post to api" do
317
+ should "put to api" do
318
318
  # webmock doesn't pass body params on correctly :[
319
- assert_requested(:post, @url,
319
+ assert_requested(:put, @url,
320
320
  :times => 1)
321
- assert_requested(:post, @url,
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.0
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-02 00:00:00.000000000 Z
12
+ date: 2013-12-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake