artifactory 2.1.2 → 2.1.3

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: cebccbe5005de8daa87ddb5c2cff9e7fd3a47d28
4
- data.tar.gz: 8a616316ec8cbcf35a53fb49646273fad0e8ac09
3
+ metadata.gz: 9ccfaa5ca0cc4863850ec3838804360dbeab5680
4
+ data.tar.gz: f1a22d50c6a7ebecedb5f2f6bd1d2b73778b2a0a
5
5
  SHA512:
6
- metadata.gz: 3e66007bc0e0c3a17bf27df588bd10ef21b7f60b39581c464254723f57d18d44d6299cd52deacf8a735b59fdf1e5d9d136799b57d00ae41fca11cc215c28b049
7
- data.tar.gz: dac023ee6fea73f52003e52840b018996ad77b0fe425522bd03457798e2558b94599ae6376a36ffe7dd67886821f458306e0543e2e9230ce690f98ed33e1a4bf
6
+ metadata.gz: 03c8645b02635c10d936e5b2f8b96dbd77355facda716164f1495efd3eb6955e3fd7f33338243518b4ac08ded41cc025cc0471ca0d54bfbcc392f8f9536b3c6f
7
+ data.tar.gz: f87b952b9e0f0e282d8bcf9fcef3888a0fecf7d7c21dd341deb864bbf60783f1f6d0f7bc84c1163ac81cdeedd0857072ea8d7f574ce292b5cb87659ef99851a1
@@ -3,6 +3,10 @@ Artifactory Client CHANGELOG
3
3
  This file is used to document the changes between releases of the Artifactory
4
4
  Ruby client.
5
5
 
6
+ v2.1.3 (08-29-2014)
7
+ -------------------
8
+ - CGI escape matrix properties
9
+
6
10
  v2.1.2 (08-26-2014)
7
11
  -------------------
8
12
  - Use the proper REST verbs on various resources to prevent a bug
@@ -1,3 +1,19 @@
1
+ #
2
+ # Copyright 2014 Chef Software, Inc.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
1
17
  require 'pathname'
2
18
  require 'artifactory/version'
3
19
 
@@ -1,3 +1,19 @@
1
+ #
2
+ # Copyright 2014 Chef Software, Inc.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
1
17
  require 'json'
2
18
  require 'net/http'
3
19
  require 'uri'
@@ -1,3 +1,19 @@
1
+ #
2
+ # Copyright 2014 Chef Software, Inc.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
1
17
  module Artifactory
2
18
  class Collection::Artifact < Collection::Base
3
19
  #
@@ -1,3 +1,19 @@
1
+ #
2
+ # Copyright 2014 Chef Software, Inc.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
1
17
  module Artifactory
2
18
  class Collection::Base
3
19
  #
@@ -1,3 +1,19 @@
1
+ #
2
+ # Copyright 2014 Chef Software, Inc.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
1
17
  module Artifactory
2
18
  #
3
19
  # A re-usable class containing configuration information for the {Client}. See
@@ -1,3 +1,19 @@
1
+ #
2
+ # Copyright 2014 Chef Software, Inc.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
1
17
  require 'artifactory/version'
2
18
 
3
19
  module Artifactory
@@ -1,3 +1,19 @@
1
+ #
2
+ # Copyright 2014 Chef Software, Inc.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
1
17
  module Artifactory
2
18
  module Error
3
19
  # Base class for all errors
@@ -1,3 +1,21 @@
1
+ #
2
+ # Copyright 2014 Chef Software, Inc.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
+ require 'tempfile'
18
+
1
19
  module Artifactory
2
20
  class Resource::Artifact < Resource::Base
3
21
  class << self
@@ -1,3 +1,19 @@
1
+ #
2
+ # Copyright 2014 Chef Software, Inc.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
1
17
  require 'rexml/document'
2
18
 
3
19
  module Artifactory
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright 2014 Chef Software, Inc.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
+ require 'cgi'
1
18
  require 'json'
2
19
 
3
20
  module Artifactory
@@ -305,8 +322,8 @@ module Artifactory
305
322
  #
306
323
  def to_matrix_properties(hash = {})
307
324
  properties = hash.map do |k, v|
308
- key = URI.escape(k.to_s)
309
- value = URI.escape(v.to_s)
325
+ key = CGI.escape(k.to_s)
326
+ value = CGI.escape(v.to_s)
310
327
 
311
328
  "#{key}=#{value}"
312
329
  end
@@ -1,3 +1,19 @@
1
+ #
2
+ # Copyright 2014 Chef Software, Inc.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
1
17
  module Artifactory
2
18
  class Resource::Build < Resource::Base
3
19
  class << self
@@ -1,3 +1,19 @@
1
+ #
2
+ # Copyright 2014 Chef Software, Inc.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
1
17
  module Artifactory
2
18
  class Resource::Group < Resource::Base
3
19
  class << self
@@ -1,3 +1,19 @@
1
+ #
2
+ # Copyright 2014 Chef Software, Inc.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
1
17
  require 'rexml/document'
2
18
 
3
19
  module Artifactory
@@ -1,3 +1,19 @@
1
+ #
2
+ # Copyright 2014 Chef Software, Inc.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
1
17
  require 'rexml/document'
2
18
 
3
19
  module Artifactory
@@ -1,3 +1,19 @@
1
+ #
2
+ # Copyright 2014 Chef Software, Inc.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
1
17
  require 'rexml/document'
2
18
 
3
19
  module Artifactory
@@ -1,3 +1,19 @@
1
+ #
2
+ # Copyright 2014 Chef Software, Inc.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
1
17
  module Artifactory
2
18
  class Resource::Plugin < Resource::Base
3
19
  class << self
@@ -1,3 +1,19 @@
1
+ #
2
+ # Copyright 2014 Chef Software, Inc.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
1
17
  module Artifactory
2
18
  class Resource::Repository < Resource::Base
3
19
  class << self
@@ -1,3 +1,19 @@
1
+ #
2
+ # Copyright 2014 Chef Software, Inc.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
1
17
  module Artifactory
2
18
  class Resource::System < Resource::Base
3
19
  class << self
@@ -1,3 +1,19 @@
1
+ #
2
+ # Copyright 2014 Chef Software, Inc.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
1
17
  require 'rexml/document'
2
18
 
3
19
  module Artifactory
@@ -1,3 +1,19 @@
1
+ #
2
+ # Copyright 2014 Chef Software, Inc.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
1
17
  module Artifactory
2
18
  class Resource::User < Resource::Base
3
19
  class << self
@@ -1,3 +1,19 @@
1
+ #
2
+ # Copyright 2014 Chef Software, Inc.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
1
17
  module Artifactory
2
18
  module Util
3
19
  extend self
@@ -1,3 +1,19 @@
1
+ #
2
+ # Copyright 2014 Chef Software, Inc.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
1
17
  module Artifactory
2
- VERSION = '2.1.2'
18
+ VERSION = '2.1.3'
3
19
  end
@@ -54,13 +54,29 @@ module Artifactory
54
54
 
55
55
  context 'when matrix properties are given' do
56
56
  it 'converts the hash into matrix properties' do
57
- expect(client).to receive(:put).with('libs-release-local;branch=master;user=Seth%20Vargo/remote/path', file, {})
57
+ expect(client).to receive(:put).with('libs-release-local;branch=master;user=Seth/remote/path', file, {})
58
58
 
59
59
  subject.upload('libs-release-local', '/remote/path',
60
60
  branch: 'master',
61
+ user: 'Seth',
62
+ )
63
+ end
64
+
65
+ it 'converts spaces to "+" characters' do
66
+ expect(client).to receive(:put).with('libs-release-local;user=Seth+Vargo/remote/path', file, {})
67
+
68
+ subject.upload('libs-release-local', '/remote/path',
61
69
  user: 'Seth Vargo',
62
70
  )
63
71
  end
72
+
73
+ it 'converts "+" to "%2B"' do
74
+ expect(client).to receive(:put).with('libs-release-local;version=12.0.0-alpha.1%2B20140826080510.git.50.f5ff271/remote/path', file, {})
75
+
76
+ subject.upload('libs-release-local', '/remote/path',
77
+ version: '12.0.0-alpha.1+20140826080510.git.50.f5ff271',
78
+ )
79
+ end
64
80
  end
65
81
 
66
82
  context 'when custom headers are given' do
@@ -119,16 +119,16 @@ module Artifactory
119
119
 
120
120
  describe '#upload' do
121
121
  let(:client) { double(put: {}) }
122
+ let(:file) { double(File) }
123
+ let(:path) { '/fake/path' }
122
124
  before do
123
125
  subject.client = client
124
126
  subject.key = 'libs-release-local'
127
+ allow(File).to receive(:new).with('/fake/path').and_return(file)
125
128
  end
126
129
 
127
130
  context 'when the artifact is a file path' do
128
131
  it 'PUTs the file at the path to the server' do
129
- file = double(File)
130
- path = '/fake/path'
131
- allow(File).to receive(:new).with('/fake/path').and_return(file)
132
132
  expect(client).to receive(:put).with('libs-release-local/remote/path', file, {})
133
133
 
134
134
  subject.upload(path, '/remote/path')
@@ -137,24 +137,43 @@ module Artifactory
137
137
 
138
138
  context 'when matrix properties are given' do
139
139
  it 'converts the hash into matrix properties' do
140
- file = double(File)
141
- path = '/fake/path'
142
- allow(File).to receive(:new).with('/fake/path').and_return(file)
143
- expect(client).to receive(:put).with('libs-release-local;branch=master;user=Seth%20Vargo/remote/path', file, {})
140
+ expect(client).to receive(:put).with('libs-release-local;branch=master;user=Seth+Vargo%2B1/remote/path', file, {})
144
141
 
145
142
  subject.upload(path, '/remote/path',
146
143
  branch: 'master',
144
+ user: 'Seth Vargo+1',
145
+ )
146
+ end
147
+
148
+ it 'converts the hash into matrix properties' do
149
+ expect(client).to receive(:put).with('libs-release-local;branch=master;user=Seth/remote/path', file, {})
150
+
151
+ subject.upload(path, '/remote/path',
152
+ branch: 'master',
153
+ user: 'Seth',
154
+ )
155
+ end
156
+
157
+ it 'converts spaces to "+" characters' do
158
+ expect(client).to receive(:put).with('libs-release-local;user=Seth+Vargo/remote/path', file, {})
159
+
160
+ subject.upload(path, '/remote/path',
147
161
  user: 'Seth Vargo',
148
162
  )
149
163
  end
164
+
165
+ it 'converts "+" to "%2B"' do
166
+ expect(client).to receive(:put).with('libs-release-local;version=12.0.0-alpha.1%2B20140826080510.git.50.f5ff271/remote/path', file, {})
167
+
168
+ subject.upload(path, '/remote/path',
169
+ version: '12.0.0-alpha.1+20140826080510.git.50.f5ff271',
170
+ )
171
+ end
150
172
  end
151
173
 
152
174
  context 'when custom headers are given' do
153
175
  it 'passes the headers to the client' do
154
176
  headers = { 'Content-Type' => 'text/plain' }
155
- file = double(File)
156
- path = '/fake/path'
157
- allow(File).to receive(:new).with('/fake/path').and_return(file)
158
177
  expect(client).to receive(:put).with('libs-release-local/remote/path', file, headers)
159
178
 
160
179
  subject.upload(path, '/remote/path', {}, headers)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artifactory
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Vargo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-26 00:00:00.000000000 Z
11
+ date: 2014-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  version: '0'
130
130
  requirements: []
131
131
  rubyforge_project:
132
- rubygems_version: 2.3.0
132
+ rubygems_version: 2.2.2
133
133
  signing_key:
134
134
  specification_version: 4
135
135
  summary: Artifactory is a simple, lightweight Ruby client for interacting with the
@@ -170,4 +170,3 @@ test_files:
170
170
  - spec/unit/resources/system_spec.rb
171
171
  - spec/unit/resources/url_base_spec.rb
172
172
  - spec/unit/resources/user_spec.rb
173
- has_rdoc: