mp_api 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 05f6451c6051fb8231aa8637f80ba0dc71abc6ebd3879e36f820c2feb3d9fa53
4
- data.tar.gz: b9a7aa95a288acd705c12591e87902c6c2fb80b318b5e9fb0ab512da574332f8
3
+ metadata.gz: 7bb51f1c6126fedb7f71adb776f93719b41044ebfcc5bc2f6266bd9ffacbc007
4
+ data.tar.gz: a0a78feb21186cb970612015a18f8d1f85128692bb96b9972311f0cffd889690
5
5
  SHA512:
6
- metadata.gz: 1ecb1574a33739a8b2a2550fbfdc273c4ca5ec2748834a56dbe47bf28709042dee64510c89bed9874ede8b72ada9cfcbb4f0cbd98685e3fa242e7cd7ca7e08a4
7
- data.tar.gz: fa7d5f11963ab43f0da0bca7583b9c117b293caae604ccb4db76902f8e89b833771993256613c87d30df57e0f66c9e7fadd91a5f5ded4968fbf254b43032d928
6
+ metadata.gz: 7d85b4ce7b252dfbdd27ba1a2310a07852b6b72604a0dc8167e1a976d26caedc80d87205a7ac9699115937bca5013ee65f49cd4768f6a7b0f807ef555e42bb4d
7
+ data.tar.gz: 338db9ef576b227e74f5df63c5e909bc3028732202ba5c5aa79a14ab0bbd27eea0aff4cd75694a94646bb0759e2b11b94290a2147d0667a776118a3a603cadba
data/lib/mp_api/client.rb CHANGED
@@ -102,7 +102,7 @@ module MpApi
102
102
  def create_customer(email:, first_name: nil, identification_type:, identification_number:, phone_area_code: "55", phone_number: nil)
103
103
  body = {
104
104
  email: email,
105
- first_name: first_name.gsub(/[^a-z A-Z]/, ""),
105
+ first_name: first_name&.gsub(/[^a-z A-Z]/, ""),
106
106
  identification: {
107
107
  type: identification_type,
108
108
  number: identification_number
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MpApi
4
- VERSION = "2.1.1"
4
+ VERSION = "2.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mp_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todas Essas Coisas