artifactory 2.3.2 → 2.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile +2 -0
- data/lib/artifactory/resources/repository.rb +2 -1
- data/lib/artifactory/version.rb +1 -1
- data/spec/integration/resources/repository_spec.rb +10 -0
- data/spec/support/api_server/repository_endpoints.rb +33 -4
- data/spec/unit/resources/repository_spec.rb +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e30e4a5e07df31126c09aab2243ca0ecdab76fbf
|
4
|
+
data.tar.gz: 0923e296d14daca6f8e1faa213c3a804525d428f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15dbc8578a44528bfe63fc855c87f440561934a6ee7313a65abf989e9600f963bc52f4dd2cccff49266347532d1de1ac4f0e58c0546ff25803bfb82bf03a38c8
|
7
|
+
data.tar.gz: 2a886d9ec36faa54e6946436c21bb0456d85cc8adc4632175c8dcd492421097d4d0074655375c5f22cdccc0f7f520c9e663f5d2f2212c66c370a551c41c58ce2
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -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.3.3 (06-27-2016)
|
7
|
+
-------------------
|
8
|
+
- Artifactory 4 requires setting package type during repository creation
|
9
|
+
|
6
10
|
v2.3.2 (11-20-2015)
|
7
11
|
-------------------
|
8
12
|
- Fix embedded requests when endpoint has a non-empty path
|
data/Gemfile
CHANGED
@@ -75,8 +75,9 @@ module Artifactory
|
|
75
75
|
attribute :key, ->{ raise 'Key is missing!' }
|
76
76
|
attribute :max_unique_snapshots, 0
|
77
77
|
attribute :notes
|
78
|
+
attribute :package_type, 'generic'
|
78
79
|
attribute :property_sets, []
|
79
|
-
attribute :repo_layout_ref, '
|
80
|
+
attribute :repo_layout_ref, 'simple-default'
|
80
81
|
attribute :rclass, 'local'
|
81
82
|
attribute :snapshot_version_behavior, 'non-unique'
|
82
83
|
attribute :suppress_pom_consistency_checks, false
|
data/lib/artifactory/version.rb
CHANGED
@@ -17,6 +17,16 @@ module Artifactory
|
|
17
17
|
expect(repository).to be_a(described_class)
|
18
18
|
expect(repository.key).to eq('libs-snapshots-local')
|
19
19
|
expect(repository.max_unique_snapshots).to eq(10)
|
20
|
+
expect(repository.package_type).to eql('generic')
|
21
|
+
end
|
22
|
+
|
23
|
+
it 'finds debian repositories' do
|
24
|
+
repo = 'libs-debian-local'
|
25
|
+
|
26
|
+
repository = described_class.find(repo)
|
27
|
+
|
28
|
+
expect(repository.package_type).to eql('debian')
|
29
|
+
expect(repository.key).to eql(repo)
|
20
30
|
end
|
21
31
|
end
|
22
32
|
|
@@ -27,7 +27,7 @@ module Artifactory
|
|
27
27
|
'notes' => '',
|
28
28
|
'includesPattern' => '**/*',
|
29
29
|
'excludesPattern' => '',
|
30
|
-
'repoLayoutRef' => '
|
30
|
+
'repoLayoutRef' => 'simple-default',
|
31
31
|
'enableNuGetSupport' => false,
|
32
32
|
'enableGemsSupport' => false,
|
33
33
|
'checksumPolicyType' => 'client-checksums',
|
@@ -41,7 +41,8 @@ module Artifactory
|
|
41
41
|
'archiveBrowsingEnabled' => false,
|
42
42
|
'calculateYumMetadata' => false,
|
43
43
|
'yumRootDepth' => 0,
|
44
|
-
'rclass' => 'local'
|
44
|
+
'rclass' => 'local',
|
45
|
+
'packageType' => 'generic'
|
45
46
|
})
|
46
47
|
end
|
47
48
|
|
@@ -53,7 +54,7 @@ module Artifactory
|
|
53
54
|
'notes' => '',
|
54
55
|
'includesPattern' => '**/*',
|
55
56
|
'excludesPattern' => '',
|
56
|
-
'repoLayoutRef' => '
|
57
|
+
'repoLayoutRef' => 'simple-default',
|
57
58
|
'enableNuGetSupport' => false,
|
58
59
|
'enableGemsSupport' => false,
|
59
60
|
'checksumPolicyType' => 'client-checksums',
|
@@ -67,10 +68,38 @@ module Artifactory
|
|
67
68
|
'archiveBrowsingEnabled' => false,
|
68
69
|
'calculateYumMetadata' => false,
|
69
70
|
'yumRootDepth' => 0,
|
70
|
-
'rclass' => 'local'
|
71
|
+
'rclass' => 'local',
|
72
|
+
'packageType' => 'generic'
|
71
73
|
})
|
72
74
|
end
|
73
75
|
|
76
|
+
app.get('/api/repositories/libs-debian-local') do
|
77
|
+
content_type 'application/vnd.org.jfrog.artifactory.repositories.LocalRepositoryConfiguration+json'
|
78
|
+
JSON.fast_generate({
|
79
|
+
'key' => 'libs-debian-local',
|
80
|
+
'description' => 'Local repository for in-house snapshots',
|
81
|
+
'notes' => '',
|
82
|
+
'includesPattern' => '**/*',
|
83
|
+
'excludesPattern' => '',
|
84
|
+
'repoLayoutRef' => 'simple-default',
|
85
|
+
'enableNuGetSupport' => false,
|
86
|
+
'enableGemsSupport' => false,
|
87
|
+
'checksumPolicyType' => 'client-checksums',
|
88
|
+
'handleReleases' => false,
|
89
|
+
'handleSnapshots' => true,
|
90
|
+
'maxUniqueSnapshots' => 10,
|
91
|
+
'snapshotVersionBehavior' => 'unique',
|
92
|
+
'suppressPomConsistencyChecks' => false,
|
93
|
+
'blackedOut' => false,
|
94
|
+
'propertySets' => ['artifactory'],
|
95
|
+
'archiveBrowsingEnabled' => false,
|
96
|
+
'calculateYumMetadata' => false,
|
97
|
+
'yumRootDepth' => 0,
|
98
|
+
'rclass' => 'local',
|
99
|
+
'packageType' => 'debian'
|
100
|
+
})
|
101
|
+
end
|
102
|
+
|
74
103
|
# Simulate a non-existent repository
|
75
104
|
app.get('/api/repositories/libs-testing-local') do
|
76
105
|
status 400
|
@@ -50,7 +50,6 @@ module Artifactory
|
|
50
50
|
'notes' => '',
|
51
51
|
'includesPattern' => '**/*',
|
52
52
|
'excludesPattern' => '',
|
53
|
-
'repoLayoutRef' => 'maven-2-default',
|
54
53
|
'enableNuGetSupport' => false,
|
55
54
|
'enableGemsSupport' => false,
|
56
55
|
'checksumPolicyType' => 'server-generated-checksums',
|
@@ -80,8 +79,10 @@ module Artifactory
|
|
80
79
|
expect(instance.key).to eq('libs-release-local')
|
81
80
|
expect(instance.max_unique_snapshots).to eq(10)
|
82
81
|
expect(instance.notes).to eq('')
|
82
|
+
expect(instance.package_type).to eq('generic')
|
83
83
|
expect(instance.property_sets).to eq(['artifactory'])
|
84
84
|
expect(instance.rclass).to eq('local')
|
85
|
+
expect(instance.repo_layout_ref).to eq('simple-default')
|
85
86
|
expect(instance.snapshot_version_behavior).to eq('unique')
|
86
87
|
expect(instance.suppress_pom_consistency_checks).to be_truthy
|
87
88
|
end
|
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.3.
|
4
|
+
version: 2.3.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:
|
11
|
+
date: 2016-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
138
|
version: '0'
|
139
139
|
requirements: []
|
140
140
|
rubyforge_project:
|
141
|
-
rubygems_version: 2.
|
141
|
+
rubygems_version: 2.6.4
|
142
142
|
signing_key:
|
143
143
|
specification_version: 4
|
144
144
|
summary: Artifactory is a simple, lightweight Ruby client for interacting with the
|