dslimple 2.0.1 → 2.0.2

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
  SHA256:
3
- metadata.gz: bc742760b9f2b0f5bb0622bef99d046fe664719459572d124f5b5ac0172d7139
4
- data.tar.gz: 2f964c7a33967651e5edd57b2551c7fd1b99430c8b017261910a1034078bb403
3
+ metadata.gz: 76fd44602ed610b20a5e3ef82bb894729699459954fc2b04a90b19212ba69bc2
4
+ data.tar.gz: 98e8ed71b3baaa2b045b04dbe11f5f56135b2697b73339a3201381a9a3428817
5
5
  SHA512:
6
- metadata.gz: 0bcde8ec0d0b9fdefa121dcfd422d50ef78d70aaec2d14b6927cf4f5730f6c840cda726e9dc02503b8ad298b2faad9083590fb4a225bbcd44b82ed390c304980
7
- data.tar.gz: 677c475d42387ac7ab0013869623aa5814c273af405fa9474c2c27e5db331aa47e51fda174f05f5e57951986ed8758430f32c9c283c934375ef75ba3c86e1598
6
+ metadata.gz: 2552106afd4c2c9b7737d63c60757f379e6d83f8232eb6c159e4421d39887e96aef586dd1388d377a645cf95550f7280ce780de2a5164457cdec2096ef4a167b
7
+ data.tar.gz: 6a6aa968a3c0884164a271de40dcf397b5324a20199d714f9b4511c05214975d1c7fa7b6c58dfd24c31ffaf514af1a9df3923f8fba1ee8b5f857f316b7334260
@@ -46,13 +46,14 @@ class Dslimple::Client < Dnsimple::Client
46
46
  end
47
47
 
48
48
  def all_records(zone)
49
- response = zones.list_records(account_id, zone.name)
49
+ zone = zone.name if zone.is_a?(Dslimple::Zone)
50
+ response = zones.list_zone_records(account_id, zone)
50
51
 
51
52
  records = []
52
53
  while response
53
54
  records = records + response.data.map do |record|
54
55
  record = Dslimple::Record.new(record)
55
- record.zone = zone.name
56
+ record.zone = zone
56
57
  record
57
58
  end
58
59
 
@@ -1,3 +1,3 @@
1
1
  module Dslimple
2
- VERSION = '2.0.1'.freeze
2
+ VERSION = '2.0.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dslimple
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sho Kusano
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-21 00:00:00.000000000 Z
11
+ date: 2018-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler