vcloud-core 1.2.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d075c4e72f92d0b54e3855234a88de8ff0ee55b0
4
+ data.tar.gz: 74c3dc522565a4c094012af88a199444522e0574
5
+ SHA512:
6
+ metadata.gz: c4c2953770b997c143a2e1b253f6fef898c50465021f74e58c00c0847de3fec21391c087db89fc826fdb440e7e72d6ebf4a49c825dc78573b13d0e4f663e361c
7
+ data.tar.gz: 5c6b1a96ee539135e3697a23bda3575202ff0948c7775a1b6eefe9c86aa9c77d68fcec0581f1246e58738b921af63158e07e1c5af48cccaf29aa3196ff96cf52
@@ -1,9 +1,9 @@
1
1
  ---
2
2
  language: ruby
3
+ sudo: false
3
4
  rvm:
4
- - 1.9.3
5
5
  - 2.0.0
6
- - 2.1.2
6
+ - 2.1.8
7
7
  - 2.2.2
8
8
  notifications:
9
9
  email: false
@@ -1,3 +1,9 @@
1
+ ## 2.0.0 (2015-12-24)
2
+
3
+ - Remove support for Ruby 1.9.3, which is now end-of-life.
4
+ - Update version of fog to work around a bug in fog 1.35.0
5
+ - Minor fixes to tests
6
+
1
7
  ## 1.2.0 (2015-09-10)
2
8
 
3
9
  Bugfixes:
data/jenkins.sh CHANGED
@@ -2,4 +2,6 @@
2
2
  set -e
3
3
 
4
4
  ./jenkins_tests.sh
5
+
6
+ source ./rbenv_version.sh
5
7
  bundle exec rake publish_gem
@@ -18,11 +18,9 @@ ${FOG_CREDENTIAL}:
18
18
  vcloud_director_password: ''
19
19
  EOF
20
20
 
21
- git clean -ffdx
21
+ source ./rbenv_version.sh
22
22
 
23
- # We wish to force using a version of ruby installed with rbenv, because the version of ruby shipped with
24
- # Ubuntu 12.04 has a bug we hit in Psych when loading YAML files.
25
- export RBENV_VERSION="1.9.3"
23
+ git clean -ffdx
26
24
 
27
25
  bundle install --path "${HOME}/bundles/${JOB_NAME}" --shebang="/usr/bin/env ruby"
28
26
 
@@ -1,3 +1,4 @@
1
+ require 'logger'
1
2
  require 'open3'
2
3
  require 'vcloud/core/fog'
3
4
  require 'vcloud/core/api_interface'
@@ -1,5 +1,5 @@
1
1
  module Vcloud
2
2
  module Core
3
- VERSION = '1.2.0'
3
+ VERSION = '2.0.0'
4
4
  end
5
5
  end
@@ -0,0 +1 @@
1
+ export RBENV_VERSION="2.0.0"
@@ -37,7 +37,6 @@ describe Vcloud::Core::Fog::Login do
37
37
  end
38
38
 
39
39
  context "fog credentials without password" do
40
- let(:token_length) { 32 }
41
40
  let(:envvar_token) { 'FOG_VCLOUD_TOKEN' }
42
41
  let(:envvar_password) { 'API_PASSWORD' }
43
42
 
@@ -61,7 +60,7 @@ describe Vcloud::Core::Fog::Login do
61
60
 
62
61
  expect(ENV).not_to have_key(envvar_token)
63
62
  @temp_token = subject.token(@real_password)
64
- expect(@temp_token.size).to eq(token_length)
63
+ expect(@temp_token).not_to be_empty
65
64
  end
66
65
  end
67
66
 
@@ -76,7 +75,7 @@ describe Vcloud::Core::Fog::Login do
76
75
  ENV[envvar_token] = old_token
77
76
  @temp_token = subject.token(@real_password)
78
77
  expect(@temp_token).to_not eq(old_token)
79
- expect(@temp_token.size).to eq(token_length)
78
+ expect(@temp_token).not_to be_empty
80
79
  end
81
80
  end
82
81
  end
@@ -80,10 +80,7 @@ describe Vcloud::Core::Vdc do
80
80
  end
81
81
 
82
82
  it "throws a Forbidden error when trying to access the #name of the Vdc" do
83
- expect { subject.name }.to raise_error(
84
- Fog::Compute::VcloudDirector::Forbidden,
85
- /No access to entity/
86
- )
83
+ expect { subject.name }.to raise_error(Fog::Compute::VcloudDirector::Forbidden)
87
84
  end
88
85
 
89
86
  end
@@ -20,9 +20,9 @@ Gem::Specification.new do |s|
20
20
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
21
21
  s.require_paths = ['lib']
22
22
 
23
- s.required_ruby_version = '>= 1.9.3'
23
+ s.required_ruby_version = '>= 2.0.0'
24
24
 
25
- s.add_runtime_dependency 'fog', '~> 1.34.0'
25
+ s.add_runtime_dependency 'fog', '~> 1.36.0'
26
26
  s.add_runtime_dependency 'mustache', '~> 0.99.0'
27
27
  s.add_runtime_dependency 'highline'
28
28
  s.add_development_dependency 'gem_publisher', '1.2.0'
@@ -31,5 +31,5 @@ Gem::Specification.new do |s|
31
31
  s.add_development_dependency 'rspec', '~> 2.14.1'
32
32
  s.add_development_dependency 'rubocop', '~> 0.30.1'
33
33
  s.add_development_dependency 'simplecov', '~> 0.7.1'
34
- s.add_development_dependency 'vcloud-tools-tester', '~> 1.0'
34
+ s.add_development_dependency 'vcloud-tools-tester'
35
35
  end
metadata CHANGED
@@ -1,126 +1,155 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vcloud-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
5
- prerelease:
4
+ version: 2.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - GOV.UK Infrastructure
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2015-09-21 00:00:00.000000000 Z
11
+ date: 2016-02-29 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: fog
16
- requirement: &8115000 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
- version: 1.34.0
19
+ version: 1.36.0
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *8115000
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 1.36.0
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: mustache
27
- requirement: &8114320 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
31
  - - ~>
31
32
  - !ruby/object:Gem::Version
32
33
  version: 0.99.0
33
34
  type: :runtime
34
35
  prerelease: false
35
- version_requirements: *8114320
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: 0.99.0
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: highline
38
- requirement: &10071740 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
- - - ! '>='
45
+ - - '>='
42
46
  - !ruby/object:Gem::Version
43
47
  version: '0'
44
48
  type: :runtime
45
49
  prerelease: false
46
- version_requirements: *10071740
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
47
55
  - !ruby/object:Gem::Dependency
48
56
  name: gem_publisher
49
- requirement: &10070460 !ruby/object:Gem::Requirement
50
- none: false
57
+ requirement: !ruby/object:Gem::Requirement
51
58
  requirements:
52
- - - =
59
+ - - '='
53
60
  - !ruby/object:Gem::Version
54
61
  version: 1.2.0
55
62
  type: :development
56
63
  prerelease: false
57
- version_requirements: *10070460
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '='
67
+ - !ruby/object:Gem::Version
68
+ version: 1.2.0
58
69
  - !ruby/object:Gem::Dependency
59
70
  name: pry
60
- requirement: &10070040 !ruby/object:Gem::Requirement
61
- none: false
71
+ requirement: !ruby/object:Gem::Requirement
62
72
  requirements:
63
- - - ! '>='
73
+ - - '>='
64
74
  - !ruby/object:Gem::Version
65
75
  version: '0'
66
76
  type: :development
67
77
  prerelease: false
68
- version_requirements: *10070040
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rake
71
- requirement: &10069580 !ruby/object:Gem::Requirement
72
- none: false
85
+ requirement: !ruby/object:Gem::Requirement
73
86
  requirements:
74
- - - ! '>='
87
+ - - '>='
75
88
  - !ruby/object:Gem::Version
76
89
  version: '0'
77
90
  type: :development
78
91
  prerelease: false
79
- version_requirements: *10069580
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
80
97
  - !ruby/object:Gem::Dependency
81
98
  name: rspec
82
- requirement: &10069020 !ruby/object:Gem::Requirement
83
- none: false
99
+ requirement: !ruby/object:Gem::Requirement
84
100
  requirements:
85
101
  - - ~>
86
102
  - !ruby/object:Gem::Version
87
103
  version: 2.14.1
88
104
  type: :development
89
105
  prerelease: false
90
- version_requirements: *10069020
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ~>
109
+ - !ruby/object:Gem::Version
110
+ version: 2.14.1
91
111
  - !ruby/object:Gem::Dependency
92
112
  name: rubocop
93
- requirement: &10068480 !ruby/object:Gem::Requirement
94
- none: false
113
+ requirement: !ruby/object:Gem::Requirement
95
114
  requirements:
96
115
  - - ~>
97
116
  - !ruby/object:Gem::Version
98
117
  version: 0.30.1
99
118
  type: :development
100
119
  prerelease: false
101
- version_requirements: *10068480
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ~>
123
+ - !ruby/object:Gem::Version
124
+ version: 0.30.1
102
125
  - !ruby/object:Gem::Dependency
103
126
  name: simplecov
104
- requirement: &10068000 !ruby/object:Gem::Requirement
105
- none: false
127
+ requirement: !ruby/object:Gem::Requirement
106
128
  requirements:
107
129
  - - ~>
108
130
  - !ruby/object:Gem::Version
109
131
  version: 0.7.1
110
132
  type: :development
111
133
  prerelease: false
112
- version_requirements: *10068000
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ~>
137
+ - !ruby/object:Gem::Version
138
+ version: 0.7.1
113
139
  - !ruby/object:Gem::Dependency
114
140
  name: vcloud-tools-tester
115
- requirement: &10067520 !ruby/object:Gem::Requirement
116
- none: false
141
+ requirement: !ruby/object:Gem::Requirement
117
142
  requirements:
118
- - - ~>
143
+ - - '>='
119
144
  - !ruby/object:Gem::Version
120
- version: '1.0'
145
+ version: '0'
121
146
  type: :development
122
147
  prerelease: false
123
- version_requirements: *10067520
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - '>='
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
124
153
  description: Core tools for interacting with VMware vCloud Director. Includes vCloud
125
154
  Query, a light wrapper round the vCloud Query API.
126
155
  email:
@@ -171,6 +200,7 @@ files:
171
200
  - lib/vcloud/core/vdc.rb
172
201
  - lib/vcloud/core/version.rb
173
202
  - lib/vcloud/core/vm.rb
203
+ - rbenv_version.sh
174
204
  - spec/integration/core/edge_gateway_spec.rb
175
205
  - spec/integration/core/fog/login_spec.rb
176
206
  - spec/integration/core/fog_spec.rb
@@ -215,30 +245,26 @@ files:
215
245
  homepage: http://github.com/gds-operations/vcloud-core
216
246
  licenses:
217
247
  - MIT
248
+ metadata: {}
218
249
  post_install_message:
219
250
  rdoc_options: []
220
251
  require_paths:
221
252
  - lib
222
253
  required_ruby_version: !ruby/object:Gem::Requirement
223
- none: false
224
254
  requirements:
225
- - - ! '>='
255
+ - - '>='
226
256
  - !ruby/object:Gem::Version
227
- version: 1.9.3
257
+ version: 2.0.0
228
258
  required_rubygems_version: !ruby/object:Gem::Requirement
229
- none: false
230
259
  requirements:
231
- - - ! '>='
260
+ - - '>='
232
261
  - !ruby/object:Gem::Version
233
262
  version: '0'
234
- segments:
235
- - 0
236
- hash: -4307019916057884210
237
263
  requirements: []
238
264
  rubyforge_project:
239
- rubygems_version: 1.8.11
265
+ rubygems_version: 2.1.11
240
266
  signing_key:
241
- specification_version: 3
267
+ specification_version: 4
242
268
  summary: Core tools for interacting with VMware vCloud Director
243
269
  test_files:
244
270
  - spec/integration/core/edge_gateway_spec.rb