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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c58b27e404ab5b0cf35d0149b39b0d9ae686c164
4
- data.tar.gz: 1a30c31b530c2515545cbe8750c539aa766e0edf
3
+ metadata.gz: 562e2e027e6ca103ce6c1570126b43087a7dcd62
4
+ data.tar.gz: 37774d16b6e2ac098b1219af3cac95d248d12873
5
5
  SHA512:
6
- metadata.gz: dae25695725bbaa608a641addbe029a80139ea3c2e0b8d468e059fe0f7826d0b5519934e3cc2f95ac5941f99cc51d8b3d7bf66b57501bfce60fe6c9f99563aa6
7
- data.tar.gz: fcc812bcc77dfa1bff3b5e0984b3f6b4b5d2d609d169d770ece94256bed9a4f0069212a4881b4e6c4343ed49a6f43749f0a82bf71ebc15e557f3d18698d3f955
6
+ metadata.gz: 65431df8d3d1e2442ba29013bdcb58b2b49c80bb1baef033b25e6382084e9206d178ae018c615ae38a04296a0dbac661fd544708a354fabd02ebbaac4810e323
7
+ data.tar.gz: a53dc84bbc5a61acf178fa25fe14e8efe577141e5971f237b8aced47932b3fad0a654c078f849e2a1d8bf84c6f8e28c6d154086968dec7390dc5a2acee45b197
@@ -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
@@ -1,9 +1,10 @@
1
1
  require 'bundler/gem_tasks'
2
2
 
3
3
  require 'rspec/core/rake_task'
4
+ RSpec::Core::RakeTask.new(:integration)
4
5
  RSpec::Core::RakeTask.new(:unit)
5
6
 
6
7
  namespace :travis do
7
8
  desc 'Run tests on Travis'
8
- task :ci => [:unit]
9
+ task :ci => [:unit,:integration]
9
10
  end
@@ -51,19 +51,19 @@ module Artifactory
51
51
 
52
52
  attribute :blacked_out, false
53
53
  attribute :description
54
- attribute :checksum_policy, 'client-checksums'
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 :maximum_unique_snapshots, 0
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 :suppress_pom_checks, false
66
+ attribute :suppress_pom_consistency_checks, false
67
67
 
68
68
  def save
69
69
  client.put(api_path, to_json, headers)
@@ -1,3 +1,3 @@
1
1
  module Artifactory
2
- VERSION = '2.1.0'
2
+ VERSION = '2.1.1'
3
3
  end
@@ -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' => 0,
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' => 'client-checksums',
56
+ 'checksumPolicyType' => 'server-generated-checksums',
57
57
  'handleReleases' => true,
58
58
  'handleSnapshots' => false,
59
- 'maxUniqueSnapshots' => 0,
59
+ 'maxUniqueSnapshots' => 10,
60
60
  'snapshotVersionBehavior' => 'unique',
61
- 'suppressPomConsistencyChecks' => false,
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.checksum_policy).to eq('client-checksums')
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.maximum_unique_snapshots).to eq(0)
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.suppress_pom_checks).to be_falsey
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.0
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-21 00:00:00.000000000 Z
11
+ date: 2014-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler