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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88a07bebf0e1201ad10be593194583ddfa5a09f3
4
- data.tar.gz: 13a8f808072f78f902bfcf74acf08d1755623ff4
3
+ metadata.gz: e30e4a5e07df31126c09aab2243ca0ecdab76fbf
4
+ data.tar.gz: 0923e296d14daca6f8e1faa213c3a804525d428f
5
5
  SHA512:
6
- metadata.gz: 4d4686760f8b6b8135affdc2dbc248a56b1ce95bad2f7a877342f2453971d89f09fc1923a63517c62f808c07acee96b74a1bde3b3c370e8b859df9e134f00729
7
- data.tar.gz: 772bc3aa6b4101e3236677dc59c0614f9e43021201e558e395ec6dc50cab308f61d90e7a758423efea4aeb596c48b81edf46f521df190209520aedf08983f2e1
6
+ metadata.gz: 15dbc8578a44528bfe63fc855c87f440561934a6ee7313a65abf989e9600f963bc52f4dd2cccff49266347532d1de1ac4f0e58c0546ff25803bfb82bf03a38c8
7
+ data.tar.gz: 2a886d9ec36faa54e6946436c21bb0456d85cc8adc4632175c8dcd492421097d4d0074655375c5f22cdccc0f7f520c9e663f5d2f2212c66c370a551c41c58ce2
@@ -9,6 +9,9 @@ branches:
9
9
  only:
10
10
  - master
11
11
 
12
+ before_install:
13
+ - gem install bundler
14
+
12
15
  script: bundle exec rake travis:ci
13
16
 
14
17
  notifications:
@@ -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
@@ -5,4 +5,6 @@ group :test do
5
5
  gem 'sinatra', '~> 1.4'
6
6
  gem 'rspec', '~> 3.0'
7
7
  gem 'webmock', '~> 1.17'
8
+ # rspec-mocks 3.4.1 breaks tests with 'System level too deep' errors.
9
+ gem 'rspec-mocks', '3.4.0'
8
10
  end
@@ -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, 'maven-2-default'
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
@@ -15,5 +15,5 @@
15
15
  #
16
16
 
17
17
  module Artifactory
18
- VERSION = '2.3.2'
18
+ VERSION = '2.3.3'
19
19
  end
@@ -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' => 'maven-2-default',
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' => 'maven-2-default',
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.2
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: 2015-11-20 00:00:00.000000000 Z
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.2.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