emarsys 0.3.3 → 0.3.4

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: 89c99c6a6996b7114a7078a767617cfbae4ca67a
4
- data.tar.gz: 05ad83e8cf199ac5c309acd9abc6c6be3086879a
3
+ metadata.gz: 2e9882d33fd619bae2fd8011f49b30e65a660703
4
+ data.tar.gz: a22e45447c455786e7a82657b1b78204bafab156
5
5
  SHA512:
6
- metadata.gz: 13234020d1b060416c4ef53b2ebd17e47b18402181804186cb2b9067b2d0e5ac79aca7df32c75b037bd4b647ecdf3fa576eed4e98eff4e32b1d571fe39fc090b
7
- data.tar.gz: 208d02f2c4b60b28394949319bcaa932681b36c9b7873ba129fcee6d3c5ce3ff9ab6fe7b3b7b05251ff4966094ca0a174222977addb393f80465e1b198a0d36a
6
+ metadata.gz: 838523f64aff54a8c1e327f57ee2aaa6e5b7f0667e05f06cd427d88de45b7dad29e4fcb67e1ac25a64b7fa6075ba300d9b6c7f02c2b45296f23776b0d6ac9046
7
+ data.tar.gz: 6c06bd9de4347a2c291b17be6aaef8d54137e953bbe023f88ae5ea22436b38cdfc7fc178b4fa76d4753b53036ebb8ce7402296a752f55357259afd0e59a90ff5
data/lib/emarsys/error.rb CHANGED
@@ -2,6 +2,8 @@
2
2
  module Emarsys
3
3
  # Custom error class for rescuing from Emarsys errors
4
4
  class Error < StandardError
5
+ attr_reader :code
6
+
5
7
  def initialize(code, text, status)
6
8
  @code = code
7
9
  @text = text
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Emarsys
3
- VERSION = "0.3.3"
3
+ VERSION = "0.3.4"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emarsys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Schoppmann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-18 00:00:00.000000000 Z
11
+ date: 2017-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client