mp_api 0.1.2 → 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
  SHA256:
3
- metadata.gz: c0579d185098077da7c3518e6e79cb7ac6ed347af9c17b1e43cbbab82fe371c6
4
- data.tar.gz: e3d644e358cec648b9916f72489606abd98fd4d0bf1a4b5f5680419b2948757e
3
+ metadata.gz: 1751de40ac5237b3478c4405eba5df5038c9d21af184746f261e3413e61891b1
4
+ data.tar.gz: e563ec150692ffcf1aa743751476329bcd21946c0fb10d14ea1e01a5f40e2c6c
5
5
  SHA512:
6
- metadata.gz: cc3a45e7eddcc640fe028b4d7c6917c8db15da53b2d5cd54635e5480da6840ad686629a694b16e62c3ae0b860773168213828449ba3dcf56318f0019f68bcf5f
7
- data.tar.gz: 34efaba99d0ec1aa9d97d4193f3967e18c32f57a1bfa303cb61cef76787947db4f59cdc53238c522343cba5884104b6c60ca2fa443bcb207aeeb8c8c40aab31c
6
+ metadata.gz: 1d5e08dbae2133a6973fd1595e8423b0348ff2cb55be429c47010a83fc369b5bb21ad843f74a4e48aed43b78d36f5a536fa3b4bdef700e72b7415d43caf172c5
7
+ data.tar.gz: a8040299431cf4033cca143926cec8717f22cc94b152fb8382d0e38e9558f5740f1f6f398299c3e2c202c4a8efb7774dcb8f34b96a141c740f1c2737b3bb3163
@@ -1,9 +1,9 @@
1
- module MercadoPagoApi
1
+ module MpApi
2
2
  module Generators
3
3
  class InstallGenerator < Rails::Generators::Base
4
4
  source_root File.expand_path("templates", __dir__)
5
5
  def copy_initializer
6
- template "initializer.rb", "config/initializers/mercado_pago_api.rb"
6
+ template "initializer.rb", "config/initializers/mp_api.rb"
7
7
  end
8
8
  end
9
9
  end
@@ -0,0 +1,3 @@
1
+ MpApi.configure do |config|
2
+ # config.access_token = nil
3
+ end
@@ -1,9 +1,9 @@
1
- module MercadoPagoApi
1
+ module MpApi
2
2
  class Client < Ac::Base
3
3
  BASE_URL = "https://api.mercadopago.com/v1/"
4
4
 
5
5
  attr_reader :access_token
6
- def initialize(access_token=MercadoPagoApi.configuration.access_token)
6
+ def initialize(access_token=MpApi.configuration.access_token)
7
7
  @headers = {
8
8
  "Content-Type": "application/json",
9
9
  'x-idempotency-key' => SecureRandom.uuid
@@ -1,4 +1,4 @@
1
- module MercadoPagoApi
1
+ module MpApi
2
2
  class Payment
3
3
 
4
4
  def self.find_by_id(payment_id)
@@ -1,4 +1,4 @@
1
- module MercadoPagoApi
1
+ module MpApi
2
2
 
3
3
  class PaymentMethod
4
4
 
@@ -1,4 +1,4 @@
1
- module MercadoPagoApi
1
+ module MpApi
2
2
 
3
3
  class Token
4
4
 
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module MpApi
4
+ VERSION = "0.1.4"
5
+ end
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "ac"
4
- require_relative "mercado_pago_api/client"
5
- require_relative "mercado_pago_api/payment"
6
- require_relative "mercado_pago_api/token"
7
- require_relative "mercado_pago_api/payment_method"
8
- require_relative "mercado_pago_api/version"
9
- module MercadoPagoApi
4
+ require_relative "mp_api/client"
5
+ require_relative "mp_api/payment"
6
+ require_relative "mp_api/token"
7
+ require_relative "mp_api/payment_method"
8
+ require_relative "mp_api/version"
9
+ module MpApi
10
10
  class Error < StandardError; end
11
11
 
12
12
  class Configuration
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mp_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - caio
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-27 00:00:00.000000000 Z
11
+ date: 2023-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ac
@@ -34,22 +34,21 @@ files:
34
34
  - LICENSE.txt
35
35
  - README.md
36
36
  - Rakefile
37
- - lib/generators/mercado_pago_api/install/install_generator.rb
38
- - lib/generators/mercado_pago_api/install/templates/initializer.rb
39
- - lib/mercado_pago_api.rb
40
- - lib/mercado_pago_api/client.rb
41
- - lib/mercado_pago_api/payment.rb
42
- - lib/mercado_pago_api/payment_method.rb
43
- - lib/mercado_pago_api/token.rb
44
- - lib/mercado_pago_api/version.rb
45
- - sig/mercado_pago_api.rbs
46
- homepage: https://github.com/CaioGarcia1/mercado_pago_api
37
+ - lib/generators/mp_api/install/install_generator.rb
38
+ - lib/generators/mp_api/install/templates/initializer.rb
39
+ - lib/mp_api.rb
40
+ - lib/mp_api/client.rb
41
+ - lib/mp_api/payment.rb
42
+ - lib/mp_api/payment_method.rb
43
+ - lib/mp_api/token.rb
44
+ - lib/mp_api/version.rb
45
+ homepage: https://github.com/CaioGarcia1/mp_api
47
46
  licenses:
48
47
  - MIT
49
48
  metadata:
50
- homepage_uri: https://github.com/CaioGarcia1/mercado_pago_api
51
- source_code_uri: https://github.com/CaioGarcia1/mercado_pago_api
52
- changelog_uri: https://github.com/CaioGarcia1/mercado_pago_api
49
+ homepage_uri: https://github.com/CaioGarcia1/mp_api
50
+ source_code_uri: https://github.com/CaioGarcia1/mp_api
51
+ changelog_uri: https://github.com/CaioGarcia1/mp_api
53
52
  post_install_message:
54
53
  rdoc_options: []
55
54
  require_paths:
@@ -1,3 +0,0 @@
1
- MercadoPagoApi.configure do |config|
2
- # config.access_token = nil
3
- end
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module MercadoPagoApi
4
- VERSION = "0.1.2"
5
- end
@@ -1,4 +0,0 @@
1
- module MercadoPagoApi
2
- VERSION: String
3
- # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
- end