mailchimp_api_v3 0.1.3 → 0.1.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: c5bd68d37be74e00ba3cc25767c6eb284dacbfb6
4
- data.tar.gz: 38fdd51235a7defcdc13a26da6f9a062299cd42b
3
+ metadata.gz: 9a963fa8831493889c9a3d92111fdc54d6759d3a
4
+ data.tar.gz: b5b5a9afd8aacefb19622fd5990d9d6aa4511faa
5
5
  SHA512:
6
- metadata.gz: da6e188a8a5664611e1d78f3dc046455818d204bc4979d5243421825d9844a872b625dd7e1f854c24e822baac9514a59d9134d18b181aab6c894ef4c00e9aaf7
7
- data.tar.gz: 497263a595bfeef764a482f809a096d4af6d5b5cc4dd0afdd1a6c85cebe7b8d1c2e25d66c219b68bc73322157494e10318f7a47a081e05a5d31d2c0b7962f0d1
6
+ metadata.gz: 601e253eb1fe994184309431f77ce4bf293443608794297323ffc813691ec646a85ba8f077c1a0480524bc7c41f66b26336b87b94b03cc8ddf07541602b223f9
7
+ data.tar.gz: a4d130648bede5dc7c06672f9f75b6240fef9b9af5bb336e0973487b7f2395f84b4873297e36646ba0359a6fa8c12b5cd04524df0b7fb10ed47cfeb942e7832b
@@ -18,7 +18,7 @@ module Mailchimp
18
18
  symbol.is_a?(Symbol) ? @data[symbol.id2name] : super
19
19
  end
20
20
 
21
- def respond_to_missing?(symbol)
21
+ def respond_to_missing?(symbol, *_)
22
22
  symbol.is_a?(Symbol)
23
23
  end
24
24
  end
@@ -59,7 +59,7 @@ module Mailchimp
59
59
  super
60
60
  end
61
61
 
62
- def respond_to_missing?(symbol)
62
+ def respond_to_missing?(symbol, *_)
63
63
  key = symbol.id2name
64
64
  @data.key? key
65
65
  end
@@ -1,3 +1,3 @@
1
1
  module Mailchimp
2
- VERSION = '0.1.3'.freeze
2
+ VERSION = '0.1.4'.freeze
3
3
  end
@@ -39,6 +39,10 @@ describe Mailchimp::Client, vcr: { cassette_name: 'client' } do
39
39
  expect(list).to be_a Mailchimp::List
40
40
  expect(list.name).to eq 'My first list'
41
41
  end
42
+
43
+ it "doesn't respond to everything" do
44
+ expect(Mailchimp::Client.new.respond_to?(:zzz)).to be_falsey
45
+ end
42
46
  end
43
47
 
44
48
  context 'exceptions' do
@@ -50,4 +50,8 @@ describe Mailchimp::Exception::BadRequest do
50
50
  expect { Mailchimp::Exception.parse_invalid_resource_exception data }
51
51
  .to raise_error Mailchimp::Exception::BadRequest
52
52
  end
53
+
54
+ it 'responds to everything' do
55
+ expect(Mailchimp::Exception::BadRequest.new('xxx').respond_to?(:zzz)).to be_truthy
56
+ end
53
57
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailchimp_api_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xenapto