mxhero-api 1.0.1 → 1.0.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
- NGJkNGRlNWFmMDQ1ZTc2NzVkZWY3M2QzZDg5MWU4N2MwNzczZjk2MQ==
4
+ NTNhOWM5N2MxMTNjOWRmMzRkZjNhZDU1Yzk3YzM2NzZkYjgyMGEyYg==
5
5
  data.tar.gz: !binary |-
6
- ZDA0MGU2NmQzY2Q3NTllZjRiZTk5YjZiMzc0MjExNjM2ZTJkMzY1OQ==
6
+ MGM3ZjIwZWUyYTkxYzE3Yzc2ODdlNjNkYTU2YTNhNDQ1MzdlMGUzYw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NTMyMDNiNGYxNTdiZDFhZGI2N2I5NDdlMDIwMjE5Y2EwZjBlNzBmMTliNjFh
10
- ZjhiN2MxOTJjNDgyYzVlNTlhNzk1OTU1ODE2MWY3Zjk1OWU2MDRmN2Y4OGJh
11
- Y2QyYzlkMTYwYjI1MmE3MjE4NGEzMDJiNzU0NDM0NzYxZDA0NzQ=
9
+ Njk4NzA3NTA2N2M0YzJkZDRlMGEwYjE1ODMyZDczOTBlYzY3YjcyZGE5NjRj
10
+ ZWI5N2IzZjk0OWE4M2IwNDgzYzZjODAwNjIzYTU2NGE4ZTMxZDAwNmVjOGMz
11
+ MDhlODAwZTczYjU5NTFjMDk3NjdkNGI5ZTdjNGZjOThhMzlmOTU=
12
12
  data.tar.gz: !binary |-
13
- OWE3MDZiOGFmNjVhNTg2MDIxMzk2YWUxNjU5NjkxNzk1M2I0YTFhNjdiMDU1
14
- ZDdlMzExMTZmNzY0NGQ2MmJlNzA3N2E5NDIyODg0M2Y2NDMzZGUwMWJkZDM4
15
- MjQ4MzI1ODdhNTA1NTlhY2Q2ZmY4MTNiOWM5M2QxZDhhYWZkNzI=
13
+ NDEwNDdhNTM0ZDZkMWVhMmU4M2QwYWRjYjA5NjI3OWFmMTYxN2IwMTJmNjk0
14
+ NTFiMjAxYTQwN2I3OWY3NGY4ZGY2MjkwNTAzMmRkZTE3YjliNGMyOWI1NzM2
15
+ N2NiNzJjZGVkZWQ0Nzc4MzQ5OTQyNWY1MWRmNWI5Mjc1ZjQ1YTg=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.2
data/lib/pst-converter.rb CHANGED
@@ -42,7 +42,9 @@ module MxHero::API
42
42
 
43
43
  def save(account, task)
44
44
  response = call(:post, url_pst(account), task.to_json, throw_exception: false)
45
- response.status == 201
45
+ parsed = parse_response(response)
46
+ return parsed.msg[:id] if parsed.success?
47
+ nil
46
48
  end
47
49
 
48
50
  private
data/mxhero-api.gemspec CHANGED
@@ -1,9 +1,9 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: mxhero-api 1.0.1 ruby lib
2
+ # stub: mxhero-api 1.0.2 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "mxhero-api"
6
- s.version = "1.0.1"
6
+ s.version = "1.0.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.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maximiliano Dello Russo