mxhero-api 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Yzg1Y2FiN2I2MDdmYmYxYjFmMTJjYTQxNDcwMGQ0Y2JmYjJlOWY0Yg==
4
+ ZDdhMjRjYzE4NmIyM2E4ZjU5MWMxMzIzMzRkMjE4Y2MzMmZiMzMzMQ==
5
5
  data.tar.gz: !binary |-
6
- ZDMzMGU5M2RiOWNlODM0ZmY2OWY0YmFkOTdmZDBiOTgzYjZmNThhNg==
6
+ YjFkNWM1YTc4MDM4OTdiNDU2MjhmNTk1MjY1MTI3NmQ5NDRkYjVkYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjUyZDhjNzI2ZGRmMzgzODRiYjRlMWFhZWMzN2ExY2Q2NGZhMDc4ZjMxNTcw
10
- MjJhMDJjMzA4NDZlYzU3M2FlMjE1N2Q2Mjk3ZmE3ZjA4YmYzNWU0YTE5MzUx
11
- NzA1OGM4MTgxM2IyMjMwNWE2ZmU5MTAzMjUyOThjOTI1ZGMwODg=
9
+ N2Q3NDNlZjIxZWI0MDk2MDE3MDgzZTU0YTRlZGNkYzIyMThjMWE5YjVkN2I4
10
+ NTAxMDNhYjhhODBlOGY0ODFiY2YzZWZkNTY5MTA3NTUzZmQwN2NiNDVjZGI2
11
+ MmU4MmYwNjYwYzVmYmJhMWRiMGIzNzY2MDQwMDI2Mzc0ZWFlZmE=
12
12
  data.tar.gz: !binary |-
13
- ZjBhZGYxODhjMzZhNjgxMzkwNTMyODVkZmUxNmY5YTA5MDBkMWVhMjFkN2Vk
14
- ZDMzMjBlOGFjMTYxMjZmODMyNGNkOTAwZWMxNTJhZTg5MDAyYzNlYjA3YTZj
15
- NTliYjczODViMWVkMGQ0YjIxNGNlYzg3NGQyNTNjNGIyMTJlM2U=
13
+ YmRkYWIwYmRkZWI1NGU0MTM0NWYxOTRkZWQ4NDM0MzVhZDM2ZTExOWJhZWUw
14
+ YTAxM2NlNjU5MmM2ZWE5ZTE4YjkyMDRhNWIxYmRiZjAzMGE1MmJjODExZWY2
15
+ NWQyZDhkNjZjY2E5MjljYzU5ZDE5N2VhNjlkMjQ0YzBhMTRjZWQ=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.1
1
+ 1.2.2
data/lib/mxhero-api.rb CHANGED
@@ -134,6 +134,11 @@ module MxHero::API
134
134
  response.status == 201
135
135
  end
136
136
 
137
+ def update_domain(domain_obj = {})
138
+ response = call(:put, domain_by_id_url(domain_obj.domain), domain_obj.to_json, throw_exception: false)
139
+ response.status == 200
140
+ end
141
+
137
142
  # Create a new domain base on domain_obj hash
138
143
  #
139
144
  # @param domain_obj The domain to be created. For example:
data/mxhero-api.gemspec CHANGED
@@ -1,9 +1,9 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: mxhero-api 1.2.1 ruby lib
2
+ # stub: mxhero-api 1.2.2 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "mxhero-api"
6
- s.version = "1.2.1"
6
+ s.version = "1.2.2"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
9
  s.authors = ["Maximiliano Dello Russo", "Juan Pablo Royo", "mxHero"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mxhero-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maximiliano Dello Russo