artifactory 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/Rakefile +2 -1
- data/lib/artifactory/resources/repository.rb +3 -3
- data/lib/artifactory/version.rb +1 -1
- data/spec/integration/resources/repository_spec.rb +10 -0
- data/spec/support/api_server/repository_endpoints.rb +1 -1
- data/spec/unit/resources/repository_spec.rb +6 -6
- 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: 562e2e027e6ca103ce6c1570126b43087a7dcd62
|
4
|
+
data.tar.gz: 37774d16b6e2ac098b1219af3cac95d248d12873
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65431df8d3d1e2442ba29013bdcb58b2b49c80bb1baef033b25e6382084e9206d178ae018c615ae38a04296a0dbac661fd544708a354fabd02ebbaac4810e323
|
7
|
+
data.tar.gz: a53dc84bbc5a61acf178fa25fe14e8efe577141e5971f237b8aced47932b3fad0a654c078f849e2a1d8bf84c6f8e28c6d154086968dec7390dc5a2acee45b197
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,16 @@ 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.1 (08-25-2014)
|
7
|
+
-------------------
|
8
|
+
- Use the proper name for POM consistency checks
|
9
|
+
- Use the proper name for checksum policies
|
10
|
+
- Use the proper name for max unique snapshots
|
11
|
+
|
12
|
+
**Other Changes**
|
13
|
+
- Improve integration test coverage
|
14
|
+
- Enable running integration tests in `Rakefile`
|
15
|
+
|
6
16
|
v2.1.0 (08-21-2014)
|
7
17
|
-------------------
|
8
18
|
- Add `Content-Size` header
|
data/Rakefile
CHANGED
@@ -51,19 +51,19 @@ module Artifactory
|
|
51
51
|
|
52
52
|
attribute :blacked_out, false
|
53
53
|
attribute :description
|
54
|
-
attribute :
|
54
|
+
attribute :checksum_policy_type, 'client-checksums'
|
55
55
|
attribute :excludes_pattern, ''
|
56
56
|
attribute :handle_releases, true
|
57
57
|
attribute :handle_snapshots, true
|
58
58
|
attribute :includes_pattern, '**/*'
|
59
59
|
attribute :key, ->{ raise 'Key is missing!' }
|
60
|
-
attribute :
|
60
|
+
attribute :max_unique_snapshots, 0
|
61
61
|
attribute :notes
|
62
62
|
attribute :property_sets, []
|
63
63
|
attribute :repo_layout_ref, 'maven-2-default'
|
64
64
|
attribute :rclass, 'local'
|
65
65
|
attribute :snapshot_version_behavior, 'non-unique'
|
66
|
-
attribute :
|
66
|
+
attribute :suppress_pom_consistency_checks, false
|
67
67
|
|
68
68
|
def save
|
69
69
|
client.put(api_path, to_json, headers)
|
data/lib/artifactory/version.rb
CHANGED
@@ -10,6 +10,16 @@ module Artifactory
|
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
13
|
+
describe '.find' do
|
14
|
+
it 'finds a repository by key' do
|
15
|
+
repository = described_class.find('libs-snapshots-local')
|
16
|
+
|
17
|
+
expect(repository).to be_a(described_class)
|
18
|
+
expect(repository.key).to eq('libs-snapshots-local')
|
19
|
+
expect(repository.max_unique_snapshots).to eq(10)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
13
23
|
describe '#save' do
|
14
24
|
it 'saves the repository to the server' do
|
15
25
|
repository = described_class.new(key: 'libs-testing-local')
|
@@ -59,7 +59,7 @@ module Artifactory
|
|
59
59
|
'checksumPolicyType' => 'client-checksums',
|
60
60
|
'handleReleases' => false,
|
61
61
|
'handleSnapshots' => true,
|
62
|
-
'maxUniqueSnapshots' =>
|
62
|
+
'maxUniqueSnapshots' => 10,
|
63
63
|
'snapshotVersionBehavior' => 'unique',
|
64
64
|
'suppressPomConsistencyChecks' => false,
|
65
65
|
'blackedOut' => false,
|
@@ -53,12 +53,12 @@ module Artifactory
|
|
53
53
|
'repoLayoutRef' => 'maven-2-default',
|
54
54
|
'enableNuGetSupport' => false,
|
55
55
|
'enableGemsSupport' => false,
|
56
|
-
'checksumPolicyType' => '
|
56
|
+
'checksumPolicyType' => 'server-generated-checksums',
|
57
57
|
'handleReleases' => true,
|
58
58
|
'handleSnapshots' => false,
|
59
|
-
'maxUniqueSnapshots' =>
|
59
|
+
'maxUniqueSnapshots' => 10,
|
60
60
|
'snapshotVersionBehavior' => 'unique',
|
61
|
-
'suppressPomConsistencyChecks' =>
|
61
|
+
'suppressPomConsistencyChecks' => true,
|
62
62
|
'blackedOut' => false,
|
63
63
|
'propertySets' => ['artifactory'],
|
64
64
|
'archiveBrowsingEnabled' => false,
|
@@ -72,18 +72,18 @@ module Artifactory
|
|
72
72
|
instance = described_class.from_hash(hash)
|
73
73
|
expect(instance.blacked_out).to be_falsey
|
74
74
|
expect(instance.description).to eq('Local repository for in-house libraries')
|
75
|
-
expect(instance.
|
75
|
+
expect(instance.checksum_policy_type).to eq('server-generated-checksums')
|
76
76
|
expect(instance.excludes_pattern).to eq('')
|
77
77
|
expect(instance.handle_releases).to be_truthy
|
78
78
|
expect(instance.handle_snapshots).to be_falsey
|
79
79
|
expect(instance.includes_pattern).to eq('**/*')
|
80
80
|
expect(instance.key).to eq('libs-release-local')
|
81
|
-
expect(instance.
|
81
|
+
expect(instance.max_unique_snapshots).to eq(10)
|
82
82
|
expect(instance.notes).to eq('')
|
83
83
|
expect(instance.property_sets).to eq(['artifactory'])
|
84
84
|
expect(instance.rclass).to eq('local')
|
85
85
|
expect(instance.snapshot_version_behavior).to eq('unique')
|
86
|
-
expect(instance.
|
86
|
+
expect(instance.suppress_pom_consistency_checks).to be_truthy
|
87
87
|
end
|
88
88
|
end
|
89
89
|
|
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.
|
4
|
+
version: 2.1.1
|
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-
|
11
|
+
date: 2014-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|