artifactory 2.3.3 → 2.4.0

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: e30e4a5e07df31126c09aab2243ca0ecdab76fbf
4
- data.tar.gz: 0923e296d14daca6f8e1faa213c3a804525d428f
3
+ metadata.gz: b583a16571d58a56d063a338c2543586d09e04ba
4
+ data.tar.gz: 27ca88314c07f285769c65a719a00f1b8160e231
5
5
  SHA512:
6
- metadata.gz: 15dbc8578a44528bfe63fc855c87f440561934a6ee7313a65abf989e9600f963bc52f4dd2cccff49266347532d1de1ac4f0e58c0546ff25803bfb82bf03a38c8
7
- data.tar.gz: 2a886d9ec36faa54e6946436c21bb0456d85cc8adc4632175c8dcd492421097d4d0074655375c5f22cdccc0f7f520c9e663f5d2f2212c66c370a551c41c58ce2
6
+ metadata.gz: 494ce9b2476390843799656b5692e6c5a3583fa852e9a238b108de2d30b058d95402728e30418e71ded15e44d8720b0eff8188c5c04bbe6c260d9c362948cf64
7
+ data.tar.gz: 951485c566e2a023116ef0d38831dea1ae2b9c3b5a4df2440ac10b142bf61352def93311c8de8de1b3f38e473d00b342814a92489815c23a7ba1cfd0d8a1eafe
@@ -3,6 +3,11 @@ 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.4.0 (09-13-2016)
7
+ -------------------
8
+ - Coerce `ARTIFACTORY_READ_TIMEOUT` value to integer
9
+ - Add url attribute to support remote repositories
10
+
6
11
  v2.3.3 (06-27-2016)
7
12
  -------------------
8
13
  - Artifactory 4 requires setting package type during repository creation
@@ -131,10 +131,14 @@ module Artifactory
131
131
  #
132
132
  # Number of seconds to wait for a response from Artifactory
133
133
  #
134
- # @return [Integer, nil]
134
+ # @return [Integer]
135
135
  #
136
136
  def read_timeout
137
- ENV['ARTIFACTORY_READ_TIMEOUT'] || 120
137
+ if ENV['ARTIFACTORY_READ_TIMEOUT']
138
+ ENV['ARTIFACTORY_READ_TIMEOUT'].to_i
139
+ else
140
+ 120
141
+ end
138
142
  end
139
143
  end
140
144
  end
@@ -81,6 +81,7 @@ module Artifactory
81
81
  attribute :rclass, 'local'
82
82
  attribute :snapshot_version_behavior, 'non-unique'
83
83
  attribute :suppress_pom_consistency_checks, false
84
+ attribute :url, ''
84
85
 
85
86
  #
86
87
  # Creates or updates a repository configuration depending on if the
@@ -15,5 +15,5 @@
15
15
  #
16
16
 
17
17
  module Artifactory
18
- VERSION = '2.3.3'
18
+ VERSION = '2.4.0'
19
19
  end
@@ -0,0 +1,27 @@
1
+ require "spec_helper"
2
+
3
+ module Artifactory
4
+ describe Defaults do
5
+ describe "read_timeout" do
6
+ before(:each) do
7
+ ENV['ARTIFACTORY_READ_TIMEOUT'] = "60"
8
+ end
9
+
10
+ after(:each) do
11
+ ENV.delete('ARTIFACTORY_READ_TIMEOUT')
12
+ end
13
+
14
+ it "returns Fixnums even when given strings" do
15
+ expect(subject.read_timeout).to be_an_instance_of Fixnum
16
+ end
17
+
18
+ it 'returns a non-zero value' do
19
+ expect(subject.read_timeout).to be > 0
20
+ end
21
+
22
+ it 'does not return a nil value' do
23
+ expect(subject.read_timeout).not_to be nil
24
+ end
25
+ end
26
+ end
27
+ end
@@ -64,6 +64,7 @@ module Artifactory
64
64
  'calculateYumMetadata' => false,
65
65
  'yumRootDepth' => 0,
66
66
  'rclass' => 'local',
67
+ 'url' => 'someurl',
67
68
  }
68
69
  end
69
70
 
@@ -85,6 +86,7 @@ module Artifactory
85
86
  expect(instance.repo_layout_ref).to eq('simple-default')
86
87
  expect(instance.snapshot_version_behavior).to eq('unique')
87
88
  expect(instance.suppress_pom_consistency_checks).to be_truthy
89
+ expect(instance.url).to eq('someurl')
88
90
  end
89
91
  end
90
92
 
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.3
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Vargo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-27 00:00:00.000000000 Z
11
+ date: 2016-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -108,6 +108,7 @@ files:
108
108
  - spec/unit/resources/base_spec.rb
109
109
  - spec/unit/resources/build_component_spec.rb
110
110
  - spec/unit/resources/build_spec.rb
111
+ - spec/unit/resources/defaults_spec.rb
111
112
  - spec/unit/resources/group_spec.rb
112
113
  - spec/unit/resources/layout_spec.rb
113
114
  - spec/unit/resources/ldap_setting_spec.rb
@@ -138,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
139
  version: '0'
139
140
  requirements: []
140
141
  rubyforge_project:
141
- rubygems_version: 2.6.4
142
+ rubygems_version: 2.4.5.1
142
143
  signing_key:
143
144
  specification_version: 4
144
145
  summary: Artifactory is a simple, lightweight Ruby client for interacting with the
@@ -175,6 +176,7 @@ test_files:
175
176
  - spec/unit/resources/base_spec.rb
176
177
  - spec/unit/resources/build_component_spec.rb
177
178
  - spec/unit/resources/build_spec.rb
179
+ - spec/unit/resources/defaults_spec.rb
178
180
  - spec/unit/resources/group_spec.rb
179
181
  - spec/unit/resources/layout_spec.rb
180
182
  - spec/unit/resources/ldap_setting_spec.rb