dnsmadeeasyapi-good 1.0.0 → 1.0.1

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: fcaac0e5fdf8cf48df6366890ac7f1e66b7e4dd3
4
- data.tar.gz: e02e00456cccb205a681480c5e2aa51b2e110325
3
+ metadata.gz: c411c3fb78dee55639d65fb1c3e1487bb6843c20
4
+ data.tar.gz: d02b05a9b100de88926576e3a85ba2e9654e7a30
5
5
  SHA512:
6
- metadata.gz: e9a93f8db1b5503c57f8bd23e75d09a6b3e3d0d45e5f6fcd125de73f830f0662686e1c66929745e758b79a7d35f780d94390439ca852d414c1d8505f3017dc5a
7
- data.tar.gz: 54824d900f2982c2dbfe4a991aa4e34dcd6f7afdbf0162f407312342f32b405f006d0ce9ba98a9ff6fa558f32c4224ace230c973b67387cd5742b6f89dadcbd9
6
+ metadata.gz: 1e90fb753c91550209fd91aa5e7eaf596aa16893a0ec5f7b08cc41476b05d6095aeb9959175d13e610491ca11356ae2e538be4221f7b8c2b84444e04d0855c4e
7
+ data.tar.gz: 1068ecc123e0a5e38d4f6fde543185db4113b1231bc49f4576d84ceceeb6214fa80b7450c77ceff481b37bb629dfd2cff8aa57f463212c41b26649c6271fc515
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dnsmadeeasyapi-good (1.0.0)
4
+ dnsmadeeasyapi-good (1.0.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'dnsmadeeasyapi-good'
3
- s.version = '1.0.0'
3
+ s.version = '1.0.1'
4
4
  s.authors = ['Paul Henry', 'James Hart']
5
5
  s.email = 'ops@wanelo.com'
6
6
  s.license = 'Apache'
@@ -77,7 +77,7 @@ class Dnsmadeeasyapi
77
77
 
78
78
  def create_record(domain_name, name, type, value, options = {})
79
79
  body = {"name" => name, "type" => type, "value" => value, "ttl" => 3600, "gtdLocation" => "DEFAULT"}
80
- post "/dns/managed/#{get_id_by_domain(domain_name)}/records/", options.merge(body)
80
+ post "/dns/managed/#{get_id_by_domain(domain_name)}/records/", body.merge(options)
81
81
  end
82
82
 
83
83
  def create_a_record(domain_name, name, value, options = {})
@@ -132,7 +132,7 @@ class Dnsmadeeasyapi
132
132
 
133
133
  def update_record(domain, record_id, name, type, value, options = {})
134
134
  body = { "name" => name, "type" => type, "value" => value, "ttl" => 3600, "gtdLocation" => "DEFAULT", "id" => record_id}
135
- put "/dns/managed/#{get_id_by_domain(domain)}/records/#{record_id}/", options.merge(body)
135
+ put "/dns/managed/#{get_id_by_domain(domain)}/records/#{record_id}/", body.merge(options)
136
136
  end
137
137
 
138
138
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dnsmadeeasyapi-good
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Henry
@@ -50,6 +50,7 @@ files:
50
50
  - Gemfile
51
51
  - Gemfile.lock
52
52
  - README.md
53
+ - Rakefile
53
54
  - dnsmadeeasyapi.gemspec
54
55
  - lib/dnsmadeeasyapi-good.rb
55
56
  - spec/lib/dnsmadeeasyapi-good_spec.rb