asaas-ruby 0.2.6 → 0.2.7

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: a3146a44385e0b39afdf837e95fe66cd6ededa13f6f1fff5795ca20de1c813c5
4
- data.tar.gz: b95a49ae67a57b769e7f513c9fa23b9ed5992ca2217d2497700922d2121e0622
3
+ metadata.gz: 01b20bd5ff018a5899516aa17f0ca63a8db08a0e0df144909af5b93a18f57c07
4
+ data.tar.gz: a9886c09b0f1d201492a520a222d5a76c7ef7c427d2568b4f8abb157e3fb16cc
5
5
  SHA512:
6
- metadata.gz: ce4dd15e45dad2a2361ea55ba30e391edba1a568ff50cf3a67a3343ca1d5be768a14664df156a835a297794e5596794fe66ce3f60375724ab2bfb912d930c77e
7
- data.tar.gz: 0f332f1456c90a75886600b2aebddbb281433178c6fd0741cb9fdd9b46593e553e4049d5a5ef55584542142f78cde68cace6beb0b29a90be13d759a15d42fd6a
6
+ metadata.gz: 5340f495a7ccadbbf373790ba5ab81aa0df5354548b04a6c92a386e30753bc50761fb96fb2becd02d1b46096d8a9a14c7712965a8498743ebfca4bf5f2bb1203
7
+ data.tar.gz: a4f2c7372e7aa7c0fc1eb49c218d67982cb87b176d7bd94bec72113e9dca3de057d8644803b24bf524289f7a251b813e92c46f1dc00a7fa711c9610ab6e824ec
@@ -15,7 +15,11 @@ module Asaas
15
15
 
16
16
  protected
17
17
  def convert_data_to_entity(type)
18
- "Asaas::Entity::#{type.capitalize}".constantize
18
+ if Asaas::Configuration.api_version == 2
19
+ "Asaas::Entity::#{type.capitalize}".constantize
20
+ else
21
+ "Asaas::#{type.capitalize}".constantize
22
+ end
19
23
  rescue
20
24
  Asaas::Entity::Base
21
25
  end
data/lib/asaas/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Asaas
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asaas-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcos Junior
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-28 00:00:00.000000000 Z
11
+ date: 2019-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler