loopiator 0.4.0 → 0.4.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
- SHA1:
3
- metadata.gz: 9e337f46983f27ebc24f64efef5356dcf51910f0
4
- data.tar.gz: c8721b31e995554baec96c8e35ef8efe5e413be2
2
+ SHA256:
3
+ metadata.gz: b5ff599de1f6c262bdebe4a51d85e7707722ce897b5c6f9c716062762db08f23
4
+ data.tar.gz: 376eebcb9637f22b5ba8338be5d9d936297eecb1e96ead729698b73f737c3c4a
5
5
  SHA512:
6
- metadata.gz: d50ea50d5779d22f44e2106e1a6080a5148810d74906e0a434226b686e681bda4643b4521093844064e4aa99edc1e3a35fb843395be603650a245d0eaa41803a
7
- data.tar.gz: 4495cb58ddbb7d2f5689290099123ce17c7d8c61e5d4ba9afd7e0f319142291a1a598d972286e77840fbfea17ed23f8419f4d4f4c82b91cf9c4e44decffe933f
6
+ metadata.gz: 7dd72a6012c709236e026a89f48b840f274d5a32c9f450d6bdf194be16f5a8672b99a950b9fab30c6ea120a6f8b35fbacb5436845138245fc4eeb8fad3c7fcb4
7
+ data.tar.gz: 420aca94a582a1fd8776bba8d83a202423c536d5fbde66471d29abd223ba1525893c35117d19220319f90839672d8c07df7617d17d62f7890e9c2fd53a369e7b
data/lib/loopiator.rb CHANGED
@@ -12,7 +12,7 @@ require File.join(File.dirname(__FILE__), 'loopiator/credits')
12
12
  require File.join(File.dirname(__FILE__), 'loopiator/client')
13
13
 
14
14
  module Loopiator
15
- VERSION = "0.4.0"
15
+ VERSION = "0.4.1"
16
16
 
17
17
  class << self
18
18
  attr_writer :configuration
@@ -51,7 +51,13 @@ module Loopiator
51
51
  return success
52
52
  end
53
53
 
54
- def update_nameservers(domain, nameservers = ['ns1.loopia.se', 'ns2.loopia.se'], customer_number: "")
54
+ def remove_domain(domain, deactivate: true, customer_number: "")
55
+ response = parse_status_response(call("removeDomain", customer_number, encode_domain(domain), deactivate))
56
+
57
+ return response.eql?(:ok)
58
+ end
59
+
60
+ def update_nameservers(domain, nameservers = ["ns1.loopia.se", "ns2.loopia.se"], customer_number: "")
55
61
  response = parse_status_response(call("updateDNSServers", customer_number, encode_domain(domain), nameservers))
56
62
 
57
63
  return response.eql?(:ok)
data/loopiator.gemspec CHANGED
@@ -3,7 +3,7 @@ Gem::Specification.new do |s|
3
3
  s.required_rubygems_version = Gem::Requirement.new(">= 1.3.5") if s.respond_to? :required_rubygems_version=
4
4
 
5
5
  s.name = 'loopiator'
6
- s.version = '0.4.0'
6
+ s.version = '0.4.1'
7
7
 
8
8
  s.homepage = "https://github.com/Agiley/Loopiator"
9
9
  s.email = "sebastian@agiley.se"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loopiator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Johnsson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-31 00:00:00.000000000 Z
11
+ date: 2018-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simpleidn
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  version: 1.3.5
103
103
  requirements: []
104
104
  rubyforge_project:
105
- rubygems_version: 2.4.8
105
+ rubygems_version: 2.7.4
106
106
  signing_key:
107
107
  specification_version: 2
108
108
  summary: Interface for communicating with Loopia's API