vagrant-aws-dns 0.2.0 → 0.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9f7e44e05e1c7569905cbf9ad7ce4aa334954b1
4
- data.tar.gz: bdab77b308b1143f0ca5427bbd6e7e2224a290ba
3
+ metadata.gz: 8ec56c451ef137a33190b5ca7698f2746f211436
4
+ data.tar.gz: 84cffd9d0687a1ab595aa67275118d403afe7207
5
5
  SHA512:
6
- metadata.gz: 260de9063374602ae142ddc6288629585e551361cd0a27156b00fcbfba5818a3f3af810c48c761283e3861ca58b20e8814a14a6c387572d776ebee5ce72ae62d
7
- data.tar.gz: 5c51bd8805419e353f6fa9088b8fc3e0eca8b1351c45bb3c7213d71b6126d6bc70b003047d329363a68299e3f6cb06d5d469c70071cac42f97d1783040483dd9
6
+ metadata.gz: fec2f7cc02c69d662c0fc1352c0763c51f50fbcf71b5cf86486ba4ba4251efb42f3413ba91d89bb6f81b772c74566f69edc76b2066cf4a969aa534c8a1ec2cdc
7
+ data.tar.gz: f928756d4136a3dcac2ee05837ef39a003da41555ea9491670d08ca71062ed2b32a882720010ce2b1c18d4d4e44f8e03eadc9bbe84d1ec9d772ef0fa231c3fbd
data/Gemfile CHANGED
@@ -6,6 +6,6 @@ end
6
6
 
7
7
  group :plugins do
8
8
  gemspec
9
- gem 'vagrant-aws', '~> 0.6.0'
9
+ gem 'vagrant-aws', '~> 0.7.0'
10
10
  gem 'vagrant-aws-dns', path: '.'
11
11
  end
data/README.md CHANGED
@@ -10,6 +10,11 @@
10
10
  * Remove associated route53 records on machine halt/destroy.
11
11
 
12
12
  ## Release notes
13
+ #### 0.2.1
14
+
15
+ - [BUGFIX] hard-coded AWS region ([#1](/nasskach/vagrant-aws-dns/issues/1)) - Thanks [hoopesj](https://github.com/hoopesj) for the reporting.
16
+ - Upgrade aws-sdk to 2.2.14.
17
+
13
18
  #### 0.2.0
14
19
 
15
20
  - Adding multiple HOSTED_ZONE_ID support.
@@ -46,7 +51,7 @@ Vagrant.configure("2") do |config|
46
51
 
47
52
  `record_sets` is an array of record set that are also represented as arrays. Below are some examples:
48
53
 
49
- * `%w(HOSTED_ZONE_ID subdomain.domain.com A)` - This will set a record of type `subdomain.domain.com. A <public_ip>`, the <public_ip> is auto detected.
54
+ * `%w(HOSTED_ZONE_ID subdomain.domain.com A)` - This will set a record of type `subdomain.domain.com. A <public_ip>`, the `<public_ip>` is auto detected.
50
55
  * `%w(HOSTED_ZONE_ID subdomain.domain.com A 4.3.2.1)` - This will set a record of type `subdomain.domain.com. A 4.3.2.1`.
51
56
  * `%w(HOSTED_ZONE_ID subdomain.domain.com CNAME domain2.com)` - This will set a record of type `subdomain.domain1.com. CNAME domain2.com.`.
52
57
 
@@ -16,7 +16,8 @@ module VagrantPlugins
16
16
  return @app.call(env) if @machine.config.dns.record_sets.nil?
17
17
 
18
18
  @aws = AwsDns::Util::AwsUtil.new(@machine.provider_config.access_key_id,
19
- @machine.provider_config.secret_access_key)
19
+ @machine.provider_config.secret_access_key,
20
+ @machine.provider_config.region)
20
21
  public_ip = @aws.get_public_ip(@machine.id)
21
22
 
22
23
  @machine.config.dns.record_sets.each do |record_set|
@@ -8,14 +8,14 @@ module VagrantPlugins
8
8
 
9
9
  attr_reader :ec2, :route53
10
10
 
11
- def initialize(accesskey, secretkey)
11
+ def initialize(accesskey, secretkey, region)
12
12
  credentials = Aws::Credentials.new(accesskey, secretkey)
13
13
  @ec2 = Aws::EC2::Client.new(
14
- region: 'eu-west-1',
14
+ region: region,
15
15
  credentials: credentials
16
16
  )
17
17
  @route53 = Aws::Route53::Client.new(
18
- region: 'eu-west-1',
18
+ region: region,
19
19
  credentials: credentials
20
20
  )
21
21
  end
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  module AwsDns
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_dependency 'aws-sdk', '~> 2.2.9'
22
+ spec.add_dependency 'aws-sdk', '~> 2.2.14'
23
23
 
24
24
  spec.add_development_dependency "bundler", "~> 1.10"
25
25
  spec.add_development_dependency "rake", "~> 10.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-aws-dns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nassim Kacha
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-11 00:00:00.000000000 Z
11
+ date: 2016-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.2.9
19
+ version: 2.2.14
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.2.9
26
+ version: 2.2.14
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement