artifactory 2.8.2 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/artifactory.rb +1 -1
- data/lib/artifactory/client.rb +1 -1
- data/lib/artifactory/collections/artifact.rb +1 -1
- data/lib/artifactory/collections/base.rb +1 -1
- data/lib/artifactory/collections/build.rb +1 -1
- data/lib/artifactory/configurable.rb +1 -1
- data/lib/artifactory/defaults.rb +1 -1
- data/lib/artifactory/errors.rb +5 -5
- data/lib/artifactory/resources/artifact.rb +12 -12
- data/lib/artifactory/resources/backup.rb +1 -1
- data/lib/artifactory/resources/base.rb +2 -2
- data/lib/artifactory/resources/build.rb +2 -2
- data/lib/artifactory/resources/group.rb +1 -1
- data/lib/artifactory/resources/layout.rb +1 -1
- data/lib/artifactory/resources/ldap_setting.rb +1 -1
- data/lib/artifactory/resources/mail_server.rb +1 -1
- data/lib/artifactory/resources/permission_target.rb +15 -1
- data/lib/artifactory/resources/plugin.rb +1 -1
- data/lib/artifactory/resources/repository.rb +1 -1
- data/lib/artifactory/resources/system.rb +1 -1
- data/lib/artifactory/resources/url_base.rb +1 -1
- data/lib/artifactory/resources/user.rb +1 -1
- data/lib/artifactory/util.rb +2 -2
- data/lib/artifactory/version.rb +2 -2
- metadata +10 -130
- data/.gitignore +0 -27
- data/.travis.yml +0 -28
- data/CHANGELOG.md +0 -141
- data/Gemfile +0 -14
- data/README.md +0 -288
- data/Rakefile +0 -28
- data/appveyor.yml +0 -30
- data/artifactory.gemspec +0 -25
- data/spec/integration/resources/artifact_spec.rb +0 -99
- data/spec/integration/resources/backup.rb +0 -22
- data/spec/integration/resources/build_component_spec.rb +0 -64
- data/spec/integration/resources/build_spec.rb +0 -38
- data/spec/integration/resources/group_spec.rb +0 -45
- data/spec/integration/resources/layout_spec.rb +0 -22
- data/spec/integration/resources/ldap_setting_spec.rb +0 -22
- data/spec/integration/resources/mail_server_spec.rb +0 -22
- data/spec/integration/resources/permission_target_spec.rb +0 -75
- data/spec/integration/resources/repository_spec.rb +0 -40
- data/spec/integration/resources/system_spec.rb +0 -58
- data/spec/integration/resources/url_base_spec.rb +0 -22
- data/spec/integration/resources/user_spec.rb +0 -45
- data/spec/spec_helper.rb +0 -52
- data/spec/support/api_server.rb +0 -49
- data/spec/support/api_server/artifact_endpoints.rb +0 -186
- data/spec/support/api_server/build_component_endpoints.rb +0 -44
- data/spec/support/api_server/build_endpoints.rb +0 -240
- data/spec/support/api_server/group_endpoints.rb +0 -53
- data/spec/support/api_server/permission_target_endpoints.rb +0 -53
- data/spec/support/api_server/repository_endpoints.rb +0 -114
- data/spec/support/api_server/status_endpoints.rb +0 -11
- data/spec/support/api_server/system_endpoints.rb +0 -104
- data/spec/support/api_server/user_endpoints.rb +0 -59
- data/spec/unit/artifactory_spec.rb +0 -73
- data/spec/unit/client_spec.rb +0 -132
- data/spec/unit/resources/artifact_spec.rb +0 -608
- data/spec/unit/resources/backup_spec.rb +0 -61
- data/spec/unit/resources/base_spec.rb +0 -180
- data/spec/unit/resources/build_component_spec.rb +0 -118
- data/spec/unit/resources/build_spec.rb +0 -347
- data/spec/unit/resources/defaults_spec.rb +0 -27
- data/spec/unit/resources/group_spec.rb +0 -108
- data/spec/unit/resources/layout_spec.rb +0 -61
- data/spec/unit/resources/ldap_setting_spec.rb +0 -65
- data/spec/unit/resources/mail_server_spec.rb +0 -57
- data/spec/unit/resources/permission_target_spec.rb +0 -189
- data/spec/unit/resources/plugin_spec.rb +0 -25
- data/spec/unit/resources/repository_spec.rb +0 -217
- data/spec/unit/resources/system_spec.rb +0 -90
- data/spec/unit/resources/url_base_spec.rb +0 -53
- data/spec/unit/resources/user_spec.rb +0 -115
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 99eec5403c1597dcef5319f77ce0e7cee82fde160004f01057cac828be15f4a0
|
4
|
+
data.tar.gz: 870155468f372f9db56ad829a37bd5e5dfde0df844d4a7867a43f571cd9a3f58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6e566148878151b91e7e008d4e7c534c577e6b2de49377f6b5c1949aaf283e30cd22cb9ff1c7ef75d648ee2ea3437df39dc26b790074b80de505aebec3bfcd1
|
7
|
+
data.tar.gz: dd8470bf9d56565ace72545d5773ae167081ca60df7c2f3969960bd03ddb551cccf3ef50d770b15cbd44216cb4b7262ceaa9d09da1889ae32b1f17468e49ecd5
|
data/lib/artifactory.rb
CHANGED
data/lib/artifactory/client.rb
CHANGED
data/lib/artifactory/defaults.rb
CHANGED
data/lib/artifactory/errors.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Copyright 2014 Chef Software, Inc.
|
2
|
+
# Copyright 2014-2018 Chef Software, Inc.
|
3
3
|
#
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
5
|
# you may not use this file except in compliance with the License.
|
@@ -44,12 +44,12 @@ module Artifactory
|
|
44
44
|
# A general connection error with a more informative message
|
45
45
|
class InvalidBuildType < ArtifactoryError
|
46
46
|
def initialize(given_type)
|
47
|
-
super
|
48
|
-
'#{given_type}' is not a valid build type.
|
47
|
+
super <<~EOH
|
48
|
+
'#{given_type}' is not a valid build type.
|
49
49
|
|
50
|
-
Valid build types include:
|
50
|
+
Valid build types include:
|
51
51
|
|
52
|
-
|
52
|
+
#{Resource::Build::BUILD_TYPES.join("\n ")}"
|
53
53
|
|
54
54
|
EOH
|
55
55
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Copyright 2014 Chef Software, Inc.
|
2
|
+
# Copyright 2014-2018 Chef Software, Inc.
|
3
3
|
#
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
5
|
# you may not use this file except in compliance with the License.
|
@@ -95,10 +95,10 @@ module Artifactory
|
|
95
95
|
def gavc_search(options = {})
|
96
96
|
client = extract_client!(options)
|
97
97
|
options = Util.rename_keys(options,
|
98
|
-
:
|
99
|
-
:
|
100
|
-
:
|
101
|
-
:
|
98
|
+
group: :g,
|
99
|
+
name: :a,
|
100
|
+
version: :v,
|
101
|
+
classifier: :c
|
102
102
|
)
|
103
103
|
params = Util.slice(options, :g, :a, :v, :c, :repos)
|
104
104
|
format_repos!(params)
|
@@ -291,9 +291,9 @@ module Artifactory
|
|
291
291
|
def versions(options = {})
|
292
292
|
client = extract_client!(options)
|
293
293
|
options = Util.rename_keys(options,
|
294
|
-
:
|
295
|
-
:
|
296
|
-
:
|
294
|
+
group: :g,
|
295
|
+
name: :a,
|
296
|
+
version: :v
|
297
297
|
)
|
298
298
|
params = Util.slice(options, :g, :a, :v, :repos)
|
299
299
|
format_repos!(params)
|
@@ -342,9 +342,9 @@ module Artifactory
|
|
342
342
|
def latest_version(options = {})
|
343
343
|
client = extract_client!(options)
|
344
344
|
options = Util.rename_keys(options,
|
345
|
-
:
|
346
|
-
:
|
347
|
-
:
|
345
|
+
group: :g,
|
346
|
+
name: :a,
|
347
|
+
version: :v
|
348
348
|
)
|
349
349
|
params = Util.slice(options, :g, :a, :v, :repos, :remote)
|
350
350
|
format_repos!(params)
|
@@ -493,7 +493,7 @@ module Artifactory
|
|
493
493
|
target = File.expand_path(target)
|
494
494
|
|
495
495
|
# Make the directory if it doesn't yet exist
|
496
|
-
FileUtils.mkdir_p(target) unless File.
|
496
|
+
FileUtils.mkdir_p(target) unless File.exist?(target)
|
497
497
|
|
498
498
|
# Use the server artifact's filename if one wasn't given
|
499
499
|
filename = options[:filename] || File.basename(download_uri)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Copyright 2014 Chef Software, Inc.
|
2
|
+
# Copyright 2014-2018 Chef Software, Inc.
|
3
3
|
#
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
5
|
# you may not use this file except in compliance with the License.
|
@@ -88,7 +88,7 @@ module Artifactory
|
|
88
88
|
# @return [true, false]
|
89
89
|
#
|
90
90
|
def has_attribute?(key)
|
91
|
-
attributes.
|
91
|
+
attributes.key?(key.to_sym)
|
92
92
|
end
|
93
93
|
|
94
94
|
#
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Copyright 2015 Chef Software, Inc.
|
2
|
+
# Copyright 2015-2018 Chef Software, Inc.
|
3
3
|
#
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
5
|
# you may not use this file except in compliance with the License.
|
@@ -20,7 +20,7 @@ module Artifactory
|
|
20
20
|
class Resource::Build < Resource::Base
|
21
21
|
BUILD_SCHEMA_VERSION = "1.0.1".freeze
|
22
22
|
# valid build types as dictated by the Artifactory API
|
23
|
-
BUILD_TYPES = %w{ ANT IVY MAVEN GENERIC GRADLE }
|
23
|
+
BUILD_TYPES = %w{ ANT IVY MAVEN GENERIC GRADLE }.freeze
|
24
24
|
|
25
25
|
class << self
|
26
26
|
#
|
@@ -1,3 +1,17 @@
|
|
1
|
+
#
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
#
|
8
|
+
# Unless required by applicable law or agreed to in writing, software
|
9
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
10
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
11
|
+
# See the License for the specific language governing permissions and
|
12
|
+
# limitations under the License.
|
13
|
+
#
|
14
|
+
|
1
15
|
module Artifactory
|
2
16
|
class Resource::PermissionTarget < Resource::Base
|
3
17
|
VERBOSE_PERMS = {
|
@@ -6,7 +20,7 @@ module Artifactory
|
|
6
20
|
"n" => "annotate",
|
7
21
|
"r" => "read",
|
8
22
|
"w" => "deploy",
|
9
|
-
}
|
23
|
+
}.freeze
|
10
24
|
class << self
|
11
25
|
#
|
12
26
|
# Get a list of all PermissionTargets in the system.
|
data/lib/artifactory/util.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Copyright 2014 Chef Software, Inc.
|
2
|
+
# Copyright 2014-2018 Chef Software, Inc.
|
3
3
|
#
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
5
|
# you may not use this file except in compliance with the License.
|
@@ -144,7 +144,7 @@ module Artifactory
|
|
144
144
|
return true if string.eql?("true")
|
145
145
|
return false if string.eql?("false")
|
146
146
|
return string.to_i if numeric?(string)
|
147
|
-
|
147
|
+
string
|
148
148
|
end
|
149
149
|
|
150
150
|
private
|
data/lib/artifactory/version.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Copyright 2014 Chef Software, Inc.
|
2
|
+
# Copyright 2014-2018 Chef Software, Inc.
|
3
3
|
#
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
5
|
# you may not use this file except in compliance with the License.
|
@@ -15,5 +15,5 @@
|
|
15
15
|
#
|
16
16
|
|
17
17
|
module Artifactory
|
18
|
-
VERSION = "
|
18
|
+
VERSION = "3.0.0".freeze
|
19
19
|
end
|
metadata
CHANGED
@@ -1,58 +1,22 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: artifactory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Chef Release Engineering Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rake
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
11
|
+
date: 2018-12-12 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
41
13
|
description: A Ruby client for Artifactory
|
42
|
-
email:
|
14
|
+
email: releng@chef.io
|
43
15
|
executables: []
|
44
16
|
extensions: []
|
45
17
|
extra_rdoc_files: []
|
46
18
|
files:
|
47
|
-
- ".gitignore"
|
48
|
-
- ".travis.yml"
|
49
|
-
- CHANGELOG.md
|
50
|
-
- Gemfile
|
51
19
|
- LICENSE
|
52
|
-
- README.md
|
53
|
-
- Rakefile
|
54
|
-
- appveyor.yml
|
55
|
-
- artifactory.gemspec
|
56
20
|
- lib/artifactory.rb
|
57
21
|
- lib/artifactory/client.rb
|
58
22
|
- lib/artifactory/collections/artifact.rb
|
@@ -78,51 +42,9 @@ files:
|
|
78
42
|
- lib/artifactory/resources/user.rb
|
79
43
|
- lib/artifactory/util.rb
|
80
44
|
- lib/artifactory/version.rb
|
81
|
-
|
82
|
-
- spec/integration/resources/backup.rb
|
83
|
-
- spec/integration/resources/build_component_spec.rb
|
84
|
-
- spec/integration/resources/build_spec.rb
|
85
|
-
- spec/integration/resources/group_spec.rb
|
86
|
-
- spec/integration/resources/layout_spec.rb
|
87
|
-
- spec/integration/resources/ldap_setting_spec.rb
|
88
|
-
- spec/integration/resources/mail_server_spec.rb
|
89
|
-
- spec/integration/resources/permission_target_spec.rb
|
90
|
-
- spec/integration/resources/repository_spec.rb
|
91
|
-
- spec/integration/resources/system_spec.rb
|
92
|
-
- spec/integration/resources/url_base_spec.rb
|
93
|
-
- spec/integration/resources/user_spec.rb
|
94
|
-
- spec/spec_helper.rb
|
95
|
-
- spec/support/api_server.rb
|
96
|
-
- spec/support/api_server/artifact_endpoints.rb
|
97
|
-
- spec/support/api_server/build_component_endpoints.rb
|
98
|
-
- spec/support/api_server/build_endpoints.rb
|
99
|
-
- spec/support/api_server/group_endpoints.rb
|
100
|
-
- spec/support/api_server/permission_target_endpoints.rb
|
101
|
-
- spec/support/api_server/repository_endpoints.rb
|
102
|
-
- spec/support/api_server/status_endpoints.rb
|
103
|
-
- spec/support/api_server/system_endpoints.rb
|
104
|
-
- spec/support/api_server/user_endpoints.rb
|
105
|
-
- spec/unit/artifactory_spec.rb
|
106
|
-
- spec/unit/client_spec.rb
|
107
|
-
- spec/unit/resources/artifact_spec.rb
|
108
|
-
- spec/unit/resources/backup_spec.rb
|
109
|
-
- spec/unit/resources/base_spec.rb
|
110
|
-
- spec/unit/resources/build_component_spec.rb
|
111
|
-
- spec/unit/resources/build_spec.rb
|
112
|
-
- spec/unit/resources/defaults_spec.rb
|
113
|
-
- spec/unit/resources/group_spec.rb
|
114
|
-
- spec/unit/resources/layout_spec.rb
|
115
|
-
- spec/unit/resources/ldap_setting_spec.rb
|
116
|
-
- spec/unit/resources/mail_server_spec.rb
|
117
|
-
- spec/unit/resources/permission_target_spec.rb
|
118
|
-
- spec/unit/resources/plugin_spec.rb
|
119
|
-
- spec/unit/resources/repository_spec.rb
|
120
|
-
- spec/unit/resources/system_spec.rb
|
121
|
-
- spec/unit/resources/url_base_spec.rb
|
122
|
-
- spec/unit/resources/user_spec.rb
|
123
|
-
homepage: https://github.com/opscode/artifactory-client
|
45
|
+
homepage: https://github.com/chef/artifactory-client
|
124
46
|
licenses:
|
125
|
-
- Apache
|
47
|
+
- Apache-2.0
|
126
48
|
metadata: {}
|
127
49
|
post_install_message:
|
128
50
|
rdoc_options: []
|
@@ -132,7 +54,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
132
54
|
requirements:
|
133
55
|
- - ">="
|
134
56
|
- !ruby/object:Gem::Version
|
135
|
-
version: '
|
57
|
+
version: '2.3'
|
136
58
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
59
|
requirements:
|
138
60
|
- - ">="
|
@@ -140,51 +62,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
62
|
version: '0'
|
141
63
|
requirements: []
|
142
64
|
rubyforge_project:
|
143
|
-
rubygems_version: 2.6
|
65
|
+
rubygems_version: 2.7.6
|
144
66
|
signing_key:
|
145
67
|
specification_version: 4
|
146
68
|
summary: Artifactory is a simple, lightweight Ruby client for interacting with the
|
147
69
|
Artifactory and Artifactory Pro APIs.
|
148
|
-
test_files:
|
149
|
-
- spec/integration/resources/artifact_spec.rb
|
150
|
-
- spec/integration/resources/backup.rb
|
151
|
-
- spec/integration/resources/build_component_spec.rb
|
152
|
-
- spec/integration/resources/build_spec.rb
|
153
|
-
- spec/integration/resources/group_spec.rb
|
154
|
-
- spec/integration/resources/layout_spec.rb
|
155
|
-
- spec/integration/resources/ldap_setting_spec.rb
|
156
|
-
- spec/integration/resources/mail_server_spec.rb
|
157
|
-
- spec/integration/resources/permission_target_spec.rb
|
158
|
-
- spec/integration/resources/repository_spec.rb
|
159
|
-
- spec/integration/resources/system_spec.rb
|
160
|
-
- spec/integration/resources/url_base_spec.rb
|
161
|
-
- spec/integration/resources/user_spec.rb
|
162
|
-
- spec/spec_helper.rb
|
163
|
-
- spec/support/api_server.rb
|
164
|
-
- spec/support/api_server/artifact_endpoints.rb
|
165
|
-
- spec/support/api_server/build_component_endpoints.rb
|
166
|
-
- spec/support/api_server/build_endpoints.rb
|
167
|
-
- spec/support/api_server/group_endpoints.rb
|
168
|
-
- spec/support/api_server/permission_target_endpoints.rb
|
169
|
-
- spec/support/api_server/repository_endpoints.rb
|
170
|
-
- spec/support/api_server/status_endpoints.rb
|
171
|
-
- spec/support/api_server/system_endpoints.rb
|
172
|
-
- spec/support/api_server/user_endpoints.rb
|
173
|
-
- spec/unit/artifactory_spec.rb
|
174
|
-
- spec/unit/client_spec.rb
|
175
|
-
- spec/unit/resources/artifact_spec.rb
|
176
|
-
- spec/unit/resources/backup_spec.rb
|
177
|
-
- spec/unit/resources/base_spec.rb
|
178
|
-
- spec/unit/resources/build_component_spec.rb
|
179
|
-
- spec/unit/resources/build_spec.rb
|
180
|
-
- spec/unit/resources/defaults_spec.rb
|
181
|
-
- spec/unit/resources/group_spec.rb
|
182
|
-
- spec/unit/resources/layout_spec.rb
|
183
|
-
- spec/unit/resources/ldap_setting_spec.rb
|
184
|
-
- spec/unit/resources/mail_server_spec.rb
|
185
|
-
- spec/unit/resources/permission_target_spec.rb
|
186
|
-
- spec/unit/resources/plugin_spec.rb
|
187
|
-
- spec/unit/resources/repository_spec.rb
|
188
|
-
- spec/unit/resources/system_spec.rb
|
189
|
-
- spec/unit/resources/url_base_spec.rb
|
190
|
-
- spec/unit/resources/user_spec.rb
|
70
|
+
test_files: []
|