fog-dynect 0.0.3 → 0.1.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: d58e753dc0785d8bfaf2f70810c40e181b7a43f8
4
- data.tar.gz: ce0bdaa0b52b229d6df241a0aa1a37f8c430e3b8
3
+ metadata.gz: 401a7838e48dbce6d3886da627c94d2988a66d8f
4
+ data.tar.gz: f0e26f2b61d0aa9c6eaca2054662a5a957511559
5
5
  SHA512:
6
- metadata.gz: 96ff061abe0c12afd440036deb8aecbbaaa0a4b7635a7eb1977f69f492f76b8f9cc36a84c0cb6bf1721c977492bbbdd8bfd0e29c66975570acfbc75d1ce12207
7
- data.tar.gz: 8a9dbb5ac1e27e78be4df16a4a15ffd5895501b76a074592f418b5863369d37eb02803cfbf95dcf8463dae0c86f561099330237ce23c4b8154edeba4a10c50e8
6
+ metadata.gz: f9aad5c5b2a7ec66ecee40dd2aeebd64ef91e8e72f1b75eaab318df7d1a6e630b069dbba6b897e344ec74505ebd8f6e190d8a9cfe336f2e66ffae43af5d8e7dd
7
+ data.tar.gz: 4e954afb4b823a266c8f8b69fe340b0fe0878c9e46ed5e402522dfbe6f8109f29d17e157f57ef942693cc11eb0a59a35e16a9c5e1fd1cbb9219211bd9f4d93f9
data/Rakefile CHANGED
@@ -3,6 +3,7 @@ require 'bundler/gem_tasks'
3
3
  task :default => :test
4
4
 
5
5
  mock = ENV['FOG_MOCK'] || 'true'
6
+ desc 'Run tests.'
6
7
  task :test do
7
8
  sh("export FOG_MOCK=#{mock} && bundle exec shindont")
8
9
  end
@@ -2,5 +2,6 @@ source "https://rubygems.org"
2
2
 
3
3
  gem 'mime-types', '~> 1.16'
4
4
  gem 'nokogiri', '~> 1.5.11'
5
+ gem 'rake', '~> 10.5.0'
5
6
 
6
7
  gemspec :path => "../"
@@ -68,7 +68,7 @@ module Fog
68
68
  @path = options[:path] || '/REST'
69
69
  @persistent = options[:persistent] || false
70
70
  @scheme = options[:scheme] || 'https'
71
- @version = options[:version] || '3.5.2'
71
+ @version = options[:version] || '3.7.0'
72
72
  @job_poll_timeout = options[:job_poll_timeout] || 10
73
73
  @connection = Fog::XML::Connection.new("#{@scheme}://#{@host}:#{@port}", @persistent, @connection_options)
74
74
  end
@@ -5,7 +5,7 @@ module Fog
5
5
  # Delete a record
6
6
  #
7
7
  # ==== Parameters
8
- # * type<~String> - type of record in ['AAAA', 'ANY', 'A', 'CNAME', 'DHCID', 'DNAME', 'DNSKEY', 'DS', 'KEY', 'LOC', 'MX', 'NSA', 'NS', 'PTR', 'PX', 'RP', 'SOA', 'SPF', 'SRV', 'SSHFP', 'TXT']
8
+ # * type<~String> - type of record in ['AAAA', 'ALIAS', 'ANY', 'A', 'CNAME', 'DHCID', 'DNAME', 'DNSKEY', 'DS', 'KEY', 'LOC', 'MX', 'NSA', 'NS', 'PTR', 'PX', 'RP', 'SOA', 'SPF', 'SRV', 'SSHFP', 'TXT']
9
9
  # * zone<~String> - zone of record
10
10
  # * fqdn<~String> - fqdn of record
11
11
  # * record_id<~String> - id of record
@@ -5,7 +5,7 @@ module Fog
5
5
  # List records of a given type
6
6
  #
7
7
  # ==== Parameters
8
- # * type<~String> - type of record in ['AAAA', 'ANY', 'A', 'CNAME', 'DHCID', 'DNAME', 'DNSKEY', 'DS', 'KEY', 'LOC', 'MX', 'NSA', 'NS', 'PTR', 'PX', 'RP', 'SOA', 'SPF', 'SRV', 'SSHFP', 'TXT']
8
+ # * type<~String> - type of record in ['AAAA', 'ALIAS', 'ANY', 'A', 'CNAME', 'DHCID', 'DNAME', 'DNSKEY', 'DS', 'KEY', 'LOC', 'MX', 'NSA', 'NS', 'PTR', 'PX', 'RP', 'SOA', 'SPF', 'SRV', 'SSHFP', 'TXT']
9
9
  # * zone<~String> - name of zone to lookup
10
10
  # * fqdn<~String> - name of fqdn to lookup
11
11
  # * options<~Hash>:
@@ -24,10 +24,10 @@ module Fog
24
24
  class Mock
25
25
  def get_record(type, zone, fqdn, options = {})
26
26
  raise ArgumentError unless [
27
- 'AAAA', 'ANY', 'A', 'CNAME',
28
- 'DHCID', 'DNAME', 'DNSKEY',
29
- 'DS', 'KEY', 'LOC', 'MX',
30
- 'NSA', 'NS', 'PTR', 'PX',
27
+ 'AAAA', 'ALIAS' ,'ANY', 'A',
28
+ 'CNAME', 'DHCID', 'DNAME',
29
+ 'DNSKEY', 'DS', 'KEY', 'LOC',
30
+ 'MX', 'NSA', 'NS', 'PTR', 'PX',
31
31
  'RP', 'SOA', 'SPF', 'SRV',
32
32
  'SSHFP', 'TXT'
33
33
  ].include? type
@@ -5,7 +5,7 @@ module Fog
5
5
  # Create a record
6
6
  #
7
7
  # ==== Parameters
8
- # * type<~String> - type of record in ['AAAA', 'ANY', 'A', 'CNAME', 'DHCID', 'DNAME', 'DNSKEY', 'DS', 'KEY', 'LOC', 'MX', 'NSA', 'NS', 'PTR', 'PX', 'RP', 'SOA', 'SPF', 'SRV', 'SSHFP', 'TXT']
8
+ # * type<~String> - type of record in ['AAAA', 'ALIAS', 'ANY', 'A', 'CNAME', 'DHCID', 'DNAME', 'DNSKEY', 'DS', 'KEY', 'LOC', 'MX', 'NSA', 'NS', 'PTR', 'PX', 'RP', 'SOA', 'SPF', 'SRV', 'SSHFP', 'TXT']
9
9
  # * zone<~String> - zone of record
10
10
  # * rdata<~Hash> - rdata for record
11
11
  # * options<~Hash>: (options vary by type, listing below includes common parameters)
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Dynect
3
- VERSION = '0.0.3'
3
+ VERSION = '0.1.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-dynect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wesley Beary
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-03-17 00:00:00.000000000 Z
12
+ date: 2016-09-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -161,9 +161,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
161
  version: '0'
162
162
  requirements: []
163
163
  rubyforge_project:
164
- rubygems_version: 2.5.1
164
+ rubygems_version: 2.4.5.1
165
165
  signing_key:
166
166
  specification_version: 4
167
167
  summary: Module for the 'fog' gem to support Dynect DNS.
168
168
  test_files: []
169
- has_rdoc: