route53 0.1.7 → 0.1.8

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.
data/lib/route53/cli.rb CHANGED
@@ -197,6 +197,15 @@ module Route53
197
197
  zones.each do |z|
198
198
  puts "Creating Record"
199
199
  @options.ttl = @config['default_ttl'] if @options.ttl.nil?
200
+ if @options.dnstype == 'TXT'
201
+ @options.values = @options.values.map do |val|
202
+ unless val.start_with?('"') && val.end_with?('"')
203
+ val = '"' + val unless val.start_with? '"'
204
+ val = val + '"' unless val.end_with? '"'
205
+ end
206
+ val
207
+ end
208
+ end
200
209
  record = Route53::DNSRecord.new(@options.name,@options.dnstype,@options.ttl,@options.values,z)
201
210
  puts "Creating Record #{record}"
202
211
  resps.push(record.create)
@@ -1,3 +1,3 @@
1
1
  module Route53
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 7
9
- version: 0.1.7
8
+ - 8
9
+ version: 0.1.8
10
10
  platform: ruby
11
11
  authors:
12
12
  - Philip Corliss
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-30 00:00:00 -06:00
17
+ date: 2011-02-02 00:00:00 -06:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency