active-campaign-simple 0.3.2 → 0.3.3a

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: 63e03471fe9ddfffd39e4e000488fcb351e644fb0543eb60c18d1c2ee6efdbe5
4
- data.tar.gz: 05f9b1bf283dc9a352c019df3996a839388492befbe99213227f52a36f70364f
3
+ metadata.gz: b1529b5e051327dced3e02225047ecf1c6c296157ccba72769fe97d095cc6e71
4
+ data.tar.gz: 34a7a8975cc59d96d29a3b05c8597e48f5caf582befe90ca482f9ce0ed1001fa
5
5
  SHA512:
6
- metadata.gz: 6fb592b802a0891f3236cfacc0688ee6165f5f2d14d76009b5bd02ada8eff7eaef8cbbdec9eb9e6cbc048878a198d16a2851df2dbb8abf3d009568fa228e8ed2
7
- data.tar.gz: 6df24341d90774d7761ea1791c518abad99a19b0baa91cf041ab75bf6d4e839772678241dc74e619cbff15038179dbbbb940332c133212c7903e1ceeb71e0df3
6
+ metadata.gz: a92a600af9984c0112c689056b0ef4730df5a5b03b974a0d83678ece293dd87d7c087ae9091e78e4f3f4bd924e0e35380ba76dd3c649a3f3e8fadf8ea13c1813
7
+ data.tar.gz: 6efab749c68d3e42de5f94bc8837e3058206f480527d5183717f9f64cc942a2fe7bfdce0598658635de66ced4260b98a93803d09c74450580f18e4804acbf92d
@@ -4,7 +4,8 @@ module ActiveCampaign
4
4
  class ExceptionHandler
5
5
 
6
6
  ERRORS = {
7
- '404 Not Found' => ActiveCampaign::NotFoundError
7
+ '404 Not Found' => ActiveCampaign::NotFoundError,
8
+ '422 Unprocessable Entity' => ActiveCampaign::UnprocessableEntityError
8
9
  }
9
10
 
10
11
  def initialize(error)
@@ -1,11 +1,14 @@
1
- class ActiveCampaignAPIError < StandardError
1
+ class ActiveCampaignAPIError < ::StandardError
2
2
  def initialize(error)
3
- ActiveCampaign.api_logger.error "ERROR: #{error}"
3
+ stack = "ERROR: #{error}\n"
4
+ stack += error.backtrace.join("\n") if error.backtrace
5
+ ActiveCampaign.api_logger.error stack
4
6
  super(error)
5
7
  end
6
8
  end
7
9
 
8
10
  module ActiveCampaign
9
11
  class NotFoundError < ActiveCampaignAPIError; end
12
+ class UnprocessableEntityError < ActiveCampaignAPIError; end
10
13
  class APIError < ActiveCampaignAPIError; end
11
14
  end
@@ -1,4 +1,4 @@
1
1
  module ActiveCampaign
2
2
  # The version of the gem
3
- VERSION = '0.3.2'.freeze unless defined?(::ActiveCampaign::VERSION)
3
+ VERSION = '0.3.3a'.freeze unless defined?(::ActiveCampaign::VERSION)
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active-campaign-simple
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3a
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Leavitt
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-28 00:00:00.000000000 Z
11
+ date: 2023-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -63,7 +63,7 @@ homepage: https://github.com/nateleavitt/active-campaign-simple
63
63
  licenses:
64
64
  - MIT
65
65
  metadata: {}
66
- post_install_message:
66
+ post_install_message:
67
67
  rdoc_options: []
68
68
  require_paths:
69
69
  - lib
@@ -74,12 +74,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
74
74
  version: '0'
75
75
  required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  requirements:
77
- - - ">="
77
+ - - ">"
78
78
  - !ruby/object:Gem::Version
79
- version: 3.0.0
79
+ version: 1.3.1
80
80
  requirements: []
81
- rubygems_version: 3.2.22
82
- signing_key:
81
+ rubygems_version: 3.3.26
82
+ signing_key:
83
83
  specification_version: 4
84
84
  summary: Simple Ruby REST wrapper for the ActiveCampaign API
85
85
  test_files: []