vcloud-edge_gateway 0.2.4 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,9 @@
1
+ ## 0.3.0 (2014-05-01)
2
+
3
+ Features:
4
+
5
+ - Depend on version 0.2.0 of vcloud-core which introduces breaking changes to namespacing
6
+
1
7
  ## 0.2.4 (2014-05-01)
2
8
 
3
9
  - Use pessimistic version dependency for vcloud-core
@@ -20,13 +20,3 @@ require 'vcloud/edge_gateway/firewall_configuration_differ'
20
20
  require 'vcloud/edge_gateway/load_balancer_configuration_differ'
21
21
  require 'vcloud/edge_gateway/edge_gateway_configuration'
22
22
 
23
-
24
- module Vcloud
25
- module EdgeGateway
26
-
27
- def self.logger
28
- @logger ||=Logger.new(STDOUT)
29
- end
30
-
31
- end
32
- end
@@ -1,6 +1,6 @@
1
1
  module Vcloud
2
2
  module EdgeGateway
3
- VERSION = '0.2.4'
3
+ VERSION = '0.3.0'
4
4
  end
5
5
  end
6
6
 
@@ -23,7 +23,7 @@ module Vcloud
23
23
  if proposed_config.update_required?
24
24
  edge_gateway.update_configuration proposed_config.config
25
25
  else
26
- Vcloud::EdgeGateway.logger.info("EdgeGatewayServices.update: Configuration is already up to date. Skipping.")
26
+ Vcloud::Core.logger.info("EdgeGatewayServices.update: Configuration is already up to date. Skipping.")
27
27
  end
28
28
  end
29
29
 
@@ -140,7 +140,7 @@ module Vcloud
140
140
 
141
141
  def get_all_edge_gateway_update_tasks_ordered_by_start_date_since_time(timestamp)
142
142
  vcloud_time = timestamp.strftime('%FT%T.000Z')
143
- q = QueryRunner.new
143
+ q = Vcloud::Core::QueryRunner.new
144
144
 
145
145
  q.run('task',
146
146
  :filter =>
@@ -70,7 +70,7 @@ module Vcloud
70
70
  end
71
71
 
72
72
  it "and then should not configure the firewall service if updated again with the same configuration (idempotency)" do
73
- expect(Vcloud::EdgeGateway.logger).to receive(:info).with('EdgeGatewayServices.update: Configuration is already up to date. Skipping.')
73
+ expect(Vcloud::Core.logger).to receive(:info).with('EdgeGatewayServices.update: Configuration is already up to date. Skipping.')
74
74
  EdgeGatewayServices.new.update(@initial_firewall_config_file)
75
75
  end
76
76
 
@@ -103,7 +103,7 @@ module Vcloud
103
103
  end
104
104
 
105
105
  it "should not then configure the LoadBalancerService if updated again with the same configuration" do
106
- expect(Vcloud::EdgeGateway.logger).
106
+ expect(Vcloud::Core.logger).
107
107
  to receive(:info).with('EdgeGatewayServices.update: Configuration is already up to date. Skipping.')
108
108
  EdgeGatewayServices.new.update(@initial_load_balancer_config_file)
109
109
  end
@@ -190,7 +190,7 @@ module Vcloud
190
190
 
191
191
  def get_all_edge_gateway_update_tasks_ordered_by_start_date_since_time(timestamp)
192
192
  vcloud_time = timestamp.strftime('%FT%T.000Z')
193
- q = QueryRunner.new
193
+ q = Vcloud::Core::QueryRunner.new
194
194
  q.run('task',
195
195
  :filter =>
196
196
  "name==networkConfigureEdgeGatewayServices;objectName==#{@edge_name};startDate=ge=#{vcloud_time}",
@@ -90,7 +90,7 @@ module Vcloud
90
90
  end
91
91
 
92
92
  it "and then should not configure the firewall service if updated again with the same configuration (idempotency)" do
93
- expect(Vcloud::EdgeGateway.logger).to receive(:info).with('EdgeGatewayServices.update: Configuration is already up to date. Skipping.')
93
+ expect(Vcloud::Core.logger).to receive(:info).with('EdgeGatewayServices.update: Configuration is already up to date. Skipping.')
94
94
  EdgeGatewayServices.new.update(@initial_nat_config_file)
95
95
  end
96
96
 
@@ -200,7 +200,7 @@ module Vcloud
200
200
 
201
201
  def get_all_edge_gateway_update_tasks_ordered_by_start_date_since_time(timestamp)
202
202
  vcloud_time = timestamp.strftime('%FT%T.000Z')
203
- q = QueryRunner.new
203
+ q = Vcloud::Core::QueryRunner.new
204
204
  q.run('task',
205
205
  :filter => "name==networkConfigureEdgeGatewayServices;objectName==#{@edge_name};startDate=ge=#{vcloud_time}",
206
206
  :sortDesc => 'startDate',
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
  s.required_ruby_version = '>= 1.9.2'
23
23
 
24
24
  s.add_runtime_dependency 'fog', '>= 1.21.0'
25
- s.add_runtime_dependency 'vcloud-core', '~> 0.0.12'
25
+ s.add_runtime_dependency 'vcloud-core', '~> 0.2.0'
26
26
  s.add_runtime_dependency 'hashdiff'
27
27
  s.add_development_dependency 'rake'
28
28
  s.add_development_dependency 'rspec', '~> 2.14.1'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vcloud-edge_gateway
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-01 00:00:00.000000000 Z
12
+ date: 2014-05-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fog
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - ~>
36
36
  - !ruby/object:Gem::Version
37
- version: 0.0.12
37
+ version: 0.2.0
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
- version: 0.0.12
45
+ version: 0.2.0
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: hashdiff
48
48
  requirement: !ruby/object:Gem::Requirement
@@ -240,7 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
240
  version: '0'
241
241
  segments:
242
242
  - 0
243
- hash: 346937587144257703
243
+ hash: 1568405041543007530
244
244
  requirements: []
245
245
  rubyforge_project:
246
246
  rubygems_version: 1.8.23