active_campaign 0.0.2 → 0.0.3

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: 6c9f4c41bd412aaef640f75d80a340c63864bd63
4
- data.tar.gz: 44387b1eb38a407c215b4b6df50f82250e8a599d
3
+ metadata.gz: 242d69bca5c508a8c10cd136988de4df41103439
4
+ data.tar.gz: 3c3df3c9e8cfe4f64e444c6056c0490e0f531a19
5
5
  SHA512:
6
- metadata.gz: ee3763d8f076c080f6e2ae84adbc358a2578b96bbcdec0b0b4d258135ee5abd3ee357b62f2a17cf0b17d5c00a7dbd367ebdc26dff24d7f05b5d7caf146db1e9b
7
- data.tar.gz: 55e38a282f58287e668bad9d1bcbec197680d8a630724399d7956bbac0640a72fc355c3e1e933ff3ac8fd160a44578f3a4cc5973b282570248dd69cfe2343ddc
6
+ metadata.gz: 77db214a88ae278cd382b936ad93b777a3947cb130663dcac8d2fe646cf5c8216eb11a1066e745e4fdf33fcf75e478cea3aa64e1d1c8c424da20ce086e7e9923
7
+ data.tar.gz: 6f715005e65fbf393ccbf0f5442613e12e3552816dd622f061b6106afa49afd63d24d6e2c399f044f858a971a5873693410c49c4728a7237e5222b7a140fad00
@@ -1,3 +1,3 @@
1
1
  module ActiveCampaign
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -24,7 +24,9 @@ module ActiveCampaign
24
24
  # Delegate to ActiveCampaign::Client.new
25
25
  def method_missing(method, *args, &block)
26
26
  return super unless new.respond_to?(method)
27
- new.send(method, *args, &block)
27
+ response = new.send(method, *args, &block)
28
+ response.results = response.reject{|k,v| %w(result_code result_message result_output).include?(k) }.values
29
+ response
28
30
  end
29
31
 
30
32
  def respond_to?(method, include_private=false)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_campaign
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikael Henriksson