mercadopago-sdk 0.3.6 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. checksums.yaml +5 -5
  2. data/.editorconfig +10 -0
  3. data/.github/ISSUE_TEMPLATE/bug_report.md +28 -0
  4. data/.github/ISSUE_TEMPLATE/feature_request.md +19 -0
  5. data/.github/workflows/ruby.yml +35 -0
  6. data/.gitignore +2 -1
  7. data/.rubocop.yml +1 -0
  8. data/.rubocop_todo.yml +104 -0
  9. data/.ruby-version +1 -0
  10. data/CODE_OF_CONDUCT.md +74 -0
  11. data/CODING_GUIDELINES.md +70 -0
  12. data/CONTRIBUTING.md +57 -0
  13. data/Gemfile +8 -0
  14. data/Gemfile.lock +51 -12
  15. data/LICENSE.txt +21 -0
  16. data/README.md +54 -143
  17. data/Rakefile +3 -1
  18. data/docs/CODE_OF_CONDUCT_md.html +154 -0
  19. data/docs/CODING_GUIDELINES_md.html +188 -0
  20. data/docs/CONTRIBUTING_md.html +165 -0
  21. data/docs/LICENSE_txt.html +96 -0
  22. data/docs/Mercadopago.html +123 -0
  23. data/docs/Mercadopago/AdvancedPayment.html +279 -0
  24. data/docs/Mercadopago/Card.html +204 -0
  25. data/docs/Mercadopago/CardToken.html +160 -0
  26. data/docs/Mercadopago/Config.html +266 -0
  27. data/docs/Mercadopago/Customer.html +228 -0
  28. data/docs/Mercadopago/DisbursementRefund.html +183 -0
  29. data/docs/Mercadopago/HttpClient.html +249 -0
  30. data/docs/Mercadopago/IdentificationType.html +136 -0
  31. data/docs/Mercadopago/MPBase.html +316 -0
  32. data/docs/Mercadopago/MerchantOrder.html +209 -0
  33. data/docs/Mercadopago/Payment.html +208 -0
  34. data/docs/Mercadopago/PaymentMethods.html +136 -0
  35. data/docs/Mercadopago/Preference.html +184 -0
  36. data/docs/Mercadopago/Refund.html +160 -0
  37. data/docs/Mercadopago/RequestOptions.html +433 -0
  38. data/docs/Mercadopago/SDK.html +528 -0
  39. data/docs/Mercadopago/User.html +136 -0
  40. data/docs/README_md.html +181 -0
  41. data/docs/created.rid +25 -0
  42. data/docs/css/fonts.css +167 -0
  43. data/docs/css/rdoc.css +619 -0
  44. data/docs/fonts/Lato-Light.ttf +0 -0
  45. data/docs/fonts/Lato-LightItalic.ttf +0 -0
  46. data/docs/fonts/Lato-Regular.ttf +0 -0
  47. data/docs/fonts/Lato-RegularItalic.ttf +0 -0
  48. data/docs/fonts/SourceCodePro-Bold.ttf +0 -0
  49. data/docs/fonts/SourceCodePro-Regular.ttf +0 -0
  50. data/docs/images/add.png +0 -0
  51. data/docs/images/arrow_up.png +0 -0
  52. data/docs/images/brick.png +0 -0
  53. data/docs/images/brick_link.png +0 -0
  54. data/docs/images/bug.png +0 -0
  55. data/docs/images/bullet_black.png +0 -0
  56. data/docs/images/bullet_toggle_minus.png +0 -0
  57. data/docs/images/bullet_toggle_plus.png +0 -0
  58. data/docs/images/date.png +0 -0
  59. data/docs/images/delete.png +0 -0
  60. data/docs/images/find.png +0 -0
  61. data/docs/images/loadingAnimation.gif +0 -0
  62. data/docs/images/macFFBgHack.png +0 -0
  63. data/docs/images/package.png +0 -0
  64. data/docs/images/page_green.png +0 -0
  65. data/docs/images/page_white_text.png +0 -0
  66. data/docs/images/page_white_width.png +0 -0
  67. data/docs/images/plugin.png +0 -0
  68. data/docs/images/ruby.png +0 -0
  69. data/docs/images/tag_blue.png +0 -0
  70. data/docs/images/tag_green.png +0 -0
  71. data/docs/images/transparent.png +0 -0
  72. data/docs/images/wrench.png +0 -0
  73. data/docs/images/wrench_orange.png +0 -0
  74. data/docs/images/zoom.png +0 -0
  75. data/docs/index.html +109 -0
  76. data/docs/js/darkfish.js +84 -0
  77. data/docs/js/navigation.js +105 -0
  78. data/docs/js/navigation.js.gz +0 -0
  79. data/docs/js/search.js +110 -0
  80. data/docs/js/search_index.js +1 -0
  81. data/docs/js/search_index.js.gz +0 -0
  82. data/docs/js/searcher.js +229 -0
  83. data/docs/js/searcher.js.gz +0 -0
  84. data/docs/table_of_contents.html +562 -0
  85. data/lib/mercadopago.rb +24 -349
  86. data/lib/mercadopago/config/config.rb +42 -0
  87. data/lib/mercadopago/config/request_options.rb +85 -0
  88. data/lib/mercadopago/core/mp_base.rb +77 -0
  89. data/lib/mercadopago/http/http_client.rb +74 -0
  90. data/lib/mercadopago/resources/advanced_payment.rb +48 -0
  91. data/lib/mercadopago/resources/card.rb +31 -0
  92. data/lib/mercadopago/resources/card_token.rb +19 -0
  93. data/lib/mercadopago/resources/customer.rb +36 -0
  94. data/lib/mercadopago/resources/disbursement_refund.rb +24 -0
  95. data/lib/mercadopago/resources/identification_type.rb +13 -0
  96. data/lib/mercadopago/resources/merchant_order.rb +32 -0
  97. data/lib/mercadopago/resources/payment.rb +35 -0
  98. data/lib/mercadopago/resources/payment_methods.rb +13 -0
  99. data/lib/mercadopago/resources/preference.rb +26 -0
  100. data/lib/mercadopago/resources/refund.rb +24 -0
  101. data/lib/mercadopago/resources/user.rb +13 -0
  102. data/lib/mercadopago/sdk.rb +85 -0
  103. data/mercadopago.gemspec +15 -15
  104. data/tests/test_card.rb +79 -0
  105. data/tests/test_card_token.rb +39 -0
  106. data/tests/test_customer.rb +54 -0
  107. data/tests/test_identification_type.rb +16 -0
  108. data/tests/test_merchant_order.rb +94 -0
  109. data/tests/test_payment.rb +102 -0
  110. data/tests/test_payment_methods.rb +14 -0
  111. data/tests/test_preference.rb +49 -0
  112. data/tests/test_refund.rb +88 -0
  113. data/tests/test_user.rb +17 -0
  114. data/tests/tests.rb +12 -56
  115. metadata +154 -37
  116. data/examples/checkout-buttons/basic_preference/button.rb +0 -28
  117. data/examples/instant-payment-notifications/receive-ipn.rb +0 -25
  118. data/examples/payment-search/search-approved-payments.rb +0 -23
  119. data/examples/payment-search/search-creditcard-payments.rb +0 -23
  120. data/examples/payment-search/search-funded-payments-by-name.rb +0 -23
  121. data/examples/payment-search/search-payments-from-email-and-date.rb +0 -23
  122. data/examples/payment-search/search-payments.rb +0 -23
  123. data/examples/preapproval-payments/button.rb +0 -42
  124. data/lib/ssl_options_patch.rb +0 -15
  125. data/lib/version.rb +0 -1
  126. data/mercadopago-sdk-0.3.2.gem +0 -0
  127. data/mercadopago-sdk-0.3.3.gem +0 -0
data/Gemfile.lock CHANGED
@@ -1,26 +1,65 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mercadopago-sdk (0.3.5)
5
- json
4
+ mercadopago-sdk (2.0.2)
5
+ json (~> 2.5)
6
+ rest-client (~> 2.1)
6
7
 
7
8
  GEM
8
9
  remote: https://rubygems.org/
9
10
  specs:
10
- coderay (1.0.9)
11
- json (1.8.3)
12
- method_source (0.8.1)
13
- pry (0.9.12)
14
- coderay (~> 1.0.5)
15
- method_source (~> 0.8)
16
- slop (~> 3.4)
17
- rake (10.0.3)
18
- slop (3.4.4)
11
+ ast (2.4.2)
12
+ coderay (1.1.3)
13
+ domain_name (0.5.20190701)
14
+ unf (>= 0.0.5, < 1.0.0)
15
+ http-accept (1.7.0)
16
+ http-cookie (1.0.3)
17
+ domain_name (~> 0.5)
18
+ jaro_winkler (1.5.4)
19
+ json (2.5.1)
20
+ method_source (1.0.0)
21
+ mime-types (3.3.1)
22
+ mime-types-data (~> 3.2015)
23
+ mime-types-data (3.2021.0225)
24
+ minitest (5.14.4)
25
+ netrc (0.11.0)
26
+ parallel (1.19.2)
27
+ parser (3.0.1.0)
28
+ ast (~> 2.4.1)
29
+ pry (0.14.1)
30
+ coderay (~> 1.1)
31
+ method_source (~> 1.0)
32
+ rainbow (3.0.0)
33
+ rake (13.0.3)
34
+ rest-client (2.1.0)
35
+ http-accept (>= 1.7.0, < 2.0)
36
+ http-cookie (>= 1.0.2, < 2.0)
37
+ mime-types (>= 1.16, < 4.0)
38
+ netrc (~> 0.8)
39
+ rexml (3.2.5)
40
+ rubocop (0.81.0)
41
+ jaro_winkler (~> 1.5.1)
42
+ parallel (~> 1.10)
43
+ parser (>= 2.7.0.1)
44
+ rainbow (>= 2.2.2, < 4.0)
45
+ rexml
46
+ ruby-progressbar (~> 1.7)
47
+ unicode-display_width (>= 1.4.0, < 2.0)
48
+ ruby-progressbar (1.11.0)
49
+ unf (0.1.4)
50
+ unf_ext
51
+ unf_ext (0.0.7.7)
52
+ unicode-display_width (1.7.0)
19
53
 
20
54
  PLATFORMS
21
55
  ruby
22
56
 
23
57
  DEPENDENCIES
24
58
  mercadopago-sdk!
25
- pry
59
+ minitest
60
+ pry (~> 0.14)
26
61
  rake
62
+ rubocop
63
+
64
+ BUNDLED WITH
65
+ 1.17.0
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Mercado Pago
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md CHANGED
@@ -1,176 +1,87 @@
1
- # MercadoPago SDK module for Payments integration
1
+ # Mercado Pago SDK for Ruby
2
2
 
3
- * [Install](#install)
4
- * [Basic checkout](#basic-checkout)
5
- * [Customized checkout](#custom-checkout)
6
- * [Generic methods](#generic-methods)
3
+ [![Gem](https://img.shields.io/gem/v/mercadopago-sdk)](https://rubygems.org/gems/mercadopago-sdk)
4
+ [![Gem](https://img.shields.io/gem/dt/mercadopago-sdk)](https://rubygems.org/gems/mercadopago-sdk)
5
+ [![APM](https://img.shields.io/apm/l/vim-mode)](https://github.com/mercadopago/sdk-ruby)
7
6
 
8
- <a name="install"></a>
9
- ## Install
7
+ This library provides developers with a simple set of bindings to help you integrate Mercado Pago API to a website and start receiving payments.
10
8
 
11
- ```gem install mercadopago-sdk```
9
+ ## 💡 Requirements
12
10
 
13
- <a name="basic-checkout"></a>
14
- ## Basic checkout
11
+ Ruby version **2.3 or greater**.
15
12
 
16
- ### Configure your credentials
13
+ ## 📲 Installation
17
14
 
18
- * Get your **CLIENT_ID** and **CLIENT_SECRET** in the following address:
19
- * Argentina: [https://www.mercadopago.com/mla/herramientas/aplicaciones](https://www.mercadopago.com/mla/herramientas/aplicaciones)
20
- * Brazil: [https://www.mercadopago.com/mlb/ferramentas/aplicacoes](https://www.mercadopago.com/mlb/ferramentas/aplicacoes)
21
- * México: [https://www.mercadopago.com/mlm/herramientas/aplicaciones](https://www.mercadopago.com/mlm/herramientas/aplicaciones)
22
- * Venezuela: [https://www.mercadopago.com/mlv/herramientas/aplicaciones](https://www.mercadopago.com/mlv/herramientas/aplicaciones)
23
- * Colombia: [https://www.mercadopago.com/mco/herramientas/aplicaciones](https://www.mercadopago.com/mco/herramientas/aplicaciones)
24
- * Chile: [https://www.mercadopago.com/mlc/herramientas/aplicaciones](https://www.mercadopago.com/mlc/herramientas/aplicaciones)
15
+ Run ```gem install mercadopago-sdk```
25
16
 
26
- ```ruby
27
- require 'mercadopago.rb'
28
-
29
- $mp = MercadoPago.new('CLIENT_ID', 'CLIENT_SECRET')
30
- ```
31
-
32
- ### Preferences
33
-
34
- #### Get an existent Checkout preference
35
-
36
- ```ruby
37
- preference = $mp.get_preference('PREFERENCE_ID')
38
-
39
- puts $preferenceResult
40
- ```
17
+ ## 🌟 Getting Started
41
18
 
42
- #### Create a Checkout preference
19
+ First time using Mercado Pago? Create your [Mercado Pago account](https://www.mercadopago.com).
43
20
 
44
- ```ruby
21
+ Copy your `Access Token` in the [credentials panel](https://www.mercadopago.com/developers/panel/credentials) and replace the text `YOUR_ACCESS_TOKEN` with it.
45
22
 
46
- preference_data = {
47
- "items": [
48
- {
49
- "title": "testCreate",
50
- "quantity": 1,
51
- "unit_price": 10.2,
52
- "currency_id": "ARS"
53
- }
54
- ]
55
- }
56
- preference = $mp.create_preference(preference_data)
57
-
58
- puts preference
59
- ```
23
+ ### Simple usage
60
24
 
61
- #### Update an existent Checkout preference
25
+ To generate a `card token` read the [Checkout API](https://www.mercadopago.com/developers/en/guides/online-payments/checkout-api/introduction) documentation.
62
26
 
63
27
  ```ruby
64
- preferenceDataToUpdate = Hash["items" => Array(Array["title"=>"testUpdated", "quantity"=>1, "unit_price"=>2])]
65
-
66
- preferenceUpdate = $mp.update_preference("PREFERENCE_ID", preferenceDataToUpdate)
67
-
68
- puts preferenceUpdate
28
+ require 'mercadopago'
29
+
30
+ sdk = Mercadopago::SDK.new('YOUR_ACCESS_TOKEN')
31
+
32
+ payment_data = {
33
+ transaction_amount: 100,
34
+ token: 'CARD_TOKEN',
35
+ description: 'Payment description',
36
+ payment_method_id: 'visa',
37
+ installments: 1,
38
+ payer: {
39
+ email: 'test_user_123456@testuser.com'
40
+ }
41
+ }
42
+ result = sdk.payment.create(payment_data)
43
+ payment = result[:response]
44
+
45
+ puts payment
69
46
  ```
70
47
 
71
- ### Payments/Collections
72
-
73
- #### Search for payments
74
-
75
- ```ruby
76
- filters = Array["id"=>null, "external_reference"=>null]
77
-
78
- searchResult = $mp.search_payment(filters)
79
-
80
- puts searchResult
81
- ```
48
+ ### Per-request configuration
82
49
 
83
- #### Get payment data
50
+ All methods that make API calls accept an optional `RequestOptions` object. This can be used to configure some special options of the request, such as changing credentials or custom headers.
84
51
 
85
52
  ```ruby
86
- paymentInfo = $mp.get_payment("ID")
53
+ require 'mercadopago'
87
54
 
88
- puts paymentInfo
89
- ```
90
-
91
- ### Cancel (only for pending payments)
92
-
93
- ```ruby
94
- result = $mp.cancel_payment("ID");
55
+ request_options = Mercadopago::RequestOptions.new(access_token: 'YOUR_ACCESS_TOKEN')
56
+ # ...
95
57
 
96
- // Show result
97
- puts result
58
+ result = sdk.payment.create(payment_data, request_options: request_options)
59
+ payment = result[:response]
98
60
  ```
99
61
 
100
- ### Refund (only for accredited payments)
62
+ ## 📚 Documentation
101
63
 
102
- ```ruby
103
- result = $mp.refund_payment("ID");
64
+ Visit our Dev Site for further information regarding:
65
+ - [APIs](https://www.mercadopago.com/developers/en/reference)
66
+ - [Checkout Pro](https://www.mercadopago.com/developers/en/guides/online-payments/checkout-pro/introduction)
67
+ - [Checkout API](https://www.mercadopago.com/developers/en/guides/online-payments/checkout-api/introduction)
68
+ - [Web Tokenize Checkout](https://www.mercadopago.com/developers/en/guides/online-payments/web-tokenize-checkout/introduction)
104
69
 
105
- // Show result
106
- puts result
107
- ```
70
+ Check our official code reference to explore all available functionalities.
108
71
 
109
- <a name="custom-checkout"></a>
110
- ## Customized checkout
72
+ ## 🤝 Contributing
111
73
 
112
- ### Configure your credentials
74
+ All contributions are welcome, ranging from people wanting to triage issues, others wanting to write documentation, to people wanting to contribute code.
113
75
 
114
- * Get your **ACCESS_TOKEN** in the following address:
115
- * Argentina: [https://www.mercadopago.com/mla/account/credentials](https://www.mercadopago.com/mla/account/credentials)
116
- * Brazil: [https://www.mercadopago.com/mlb/account/credentials](https://www.mercadopago.com/mlb/account/credentials)
117
- * Mexico: [https://www.mercadopago.com/mlm/account/credentials](https://www.mercadopago.com/mlm/account/credentials)
118
- * Venezuela: [https://www.mercadopago.com/mlv/account/credentials](https://www.mercadopago.com/mlv/account/credentials)
119
- * Colombia: [https://www.mercadopago.com/mco/account/credentials](https://www.mercadopago.com/mco/account/credentials)
76
+ Please read and follow our [contribution guidelines](CONTRIBUTING.md). Contributions not following this guidelines will be disregarded. The guidelines are in place to make all of our lives easier and make contribution a consistent process for everyone.
120
77
 
121
- ```ruby
122
- require 'mercadopago.rb'
123
-
124
- $mp = MercadoPago.new('ACCESS_TOKEN')
125
- ```
126
-
127
- ### Create payment
128
-
129
- ```ruby
130
- $mp.post ("/v1/payments", payment_data);
131
- ```
132
-
133
- ### Create customer
78
+ ## ❤️ Support
134
79
 
135
- ```ruby
136
- $mp.post ("/v1/customers", Hash["email" => "email@test.com"]);
137
- ```
80
+ If you require technical support, please contact our support team at [developers.mercadopago.com](https://developers.mercadopago.com).
138
81
 
139
- ### Get customer
82
+ ## 🏻 License
140
83
 
141
- ```ruby
142
- $mp.get ("/v1/customers/CUSTOMER_ID");
143
84
  ```
144
-
145
- * View more Custom checkout related APIs in Developers Site
146
- * Argentina: [https://www.mercadopago.com.ar/developers](https://www.mercadopago.com.ar/developers)
147
- * Brazil: [https://www.mercadopago.com.br/developers](https://www.mercadopago.com.br/developers)
148
- * Mexico: [https://www.mercadopago.com.mx/developers](https://www.mercadopago.com.mx/developers)
149
- * Venezuela: [https://www.mercadopago.com.ve/developers](https://www.mercadopago.com.ve/developers)
150
- * Colombia: [https://www.mercadopago.com.co/developers](https://www.mercadopago.com.co/developers)
151
-
152
- <a name="generic-methods"></a>
153
- ## Generic methods
154
- You can access any other resource from the MercadoPago API using the generic methods:
155
-
156
- ```ruby
157
- // Get a resource, with optional URL params. Also you can disable authentication for public APIs
158
- $mp.get ("/resource/uri", [params], [authenticate=true])
159
-
160
- // Create a resource with "data" and optional URL params.
161
- $mp.post ("/resource/uri", data, [params])
162
-
163
- // Update a resource with "data" and optional URL params.
164
- $mp.put ("/resource/uri", data, [params])
165
-
166
- // Delete a resource with optional URL params.
167
- $mp.delete ("/resource/uri", [params])
168
- ```
169
-
170
- For example, if you want to get the Sites list (no params and no authentication):
171
-
172
- ```ruby
173
- $sites = $mp.get ("/sites", null, false)
174
-
175
- puts $sites
85
+ MIT license. Copyright (c) 2021 - Mercado Pago / Mercado Libre
86
+ For more information, see the LICENSE file.
176
87
  ```
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rake/testtask'
2
4
 
3
5
  Rake::TestTask.new do |t|
@@ -6,4 +8,4 @@ Rake::TestTask.new do |t|
6
8
  t.verbose = true
7
9
  end
8
10
 
9
- task :default => :test
11
+ task default: :test
@@ -0,0 +1,154 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>CODE_OF_CONDUCT - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "./";
11
+ var index_rel_prefix = "./";
12
+ </script>
13
+
14
+ <script src="./js/navigation.js" defer></script>
15
+ <script src="./js/search.js" defer></script>
16
+ <script src="./js/search_index.js" defer></script>
17
+ <script src="./js/searcher.js" defer></script>
18
+ <script src="./js/darkfish.js" defer></script>
19
+
20
+ <link href="./css/fonts.css" rel="stylesheet">
21
+ <link href="./css/rdoc.css" rel="stylesheet">
22
+
23
+
24
+ <body id="top" role="document" class="file">
25
+ <nav role="navigation">
26
+ <div id="project-navigation">
27
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
28
+ <h2>
29
+ <a href="./index.html" rel="home">Home</a>
30
+ </h2>
31
+
32
+ <div id="table-of-contents-navigation">
33
+ <a href="./table_of_contents.html#pages">Pages</a>
34
+ <a href="./table_of_contents.html#classes">Classes</a>
35
+ <a href="./table_of_contents.html#methods">Methods</a>
36
+ </div>
37
+ </div>
38
+
39
+ <div id="search-section" role="search" class="project-section initially-hidden">
40
+ <form action="#" method="get" accept-charset="utf-8">
41
+ <div id="search-field-wrapper">
42
+ <input id="search-field" role="combobox" aria-label="Search"
43
+ aria-autocomplete="list" aria-controls="search-results"
44
+ type="text" name="search" placeholder="Search" spellcheck="false"
45
+ title="Type to search, Up and Down to navigate, Enter to load">
46
+ </div>
47
+
48
+ <ul id="search-results" aria-label="Search Results"
49
+ aria-busy="false" aria-expanded="false"
50
+ aria-atomic="false" class="initially-hidden"></ul>
51
+ </form>
52
+ </div>
53
+
54
+ </div>
55
+
56
+
57
+ <div class="nav-section">
58
+ <h3>Table of Contents</h3>
59
+
60
+ <ul class="link-list" role="directory">
61
+ <li><a href="#label-Contributor+Covenant+Code+of+Conduct">Contributor Covenant Code of Conduct</a>
62
+ <li><a href="#label-Our+Pledge">Our Pledge</a>
63
+ <li><a href="#label-Our+Standards">Our Standards</a>
64
+ <li><a href="#label-Our+Responsibilities">Our Responsibilities</a>
65
+ <li><a href="#label-Scope">Scope</a>
66
+ <li><a href="#label-Enforcement">Enforcement</a>
67
+ <li><a href="#label-Attribution">Attribution</a>
68
+ </ul>
69
+ </div>
70
+
71
+
72
+ <div id="project-metadata">
73
+
74
+ <div id="fileindex-section" class="nav-section">
75
+ <h3>Pages</h3>
76
+
77
+ <ul class="link-list">
78
+ <li><a href="./CODE_OF_CONDUCT_md.html">CODE_OF_CONDUCT</a>
79
+ <li><a href="./CODING_GUIDELINES_md.html">CODING_GUIDELINES</a>
80
+ <li><a href="./CONTRIBUTING_md.html">CONTRIBUTING</a>
81
+ <li><a href="./LICENSE_txt.html">LICENSE</a>
82
+ <li><a href="./README_md.html">README</a>
83
+ </ul>
84
+ </div>
85
+
86
+ </div>
87
+ </nav>
88
+
89
+ <main role="main" aria-label="Page CODE_OF_CONDUCT.md">
90
+
91
+ <h1 id="label-Contributor+Covenant+Code+of+Conduct">Contributor Covenant Code of Conduct<span><a href="#label-Contributor+Covenant+Code+of+Conduct">&para;</a> <a href="#top">&uarr;</a></span></h1>
92
+
93
+ <h2 id="label-Our+Pledge">Our Pledge<span><a href="#label-Our+Pledge">&para;</a> <a href="#top">&uarr;</a></span></h2>
94
+
95
+ <p>In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.</p>
96
+
97
+ <h2 id="label-Our+Standards">Our Standards<span><a href="#label-Our+Standards">&para;</a> <a href="#top">&uarr;</a></span></h2>
98
+
99
+ <p>Examples of behavior that contributes to creating a positive environment include:</p>
100
+ <ul><li>
101
+ <p>Using welcoming and inclusive language</p>
102
+ </li><li>
103
+ <p>Being respectful of differing viewpoints and experiences</p>
104
+ </li><li>
105
+ <p>Gracefully accepting constructive criticism</p>
106
+ </li><li>
107
+ <p>Focusing on what is best for the community</p>
108
+ </li><li>
109
+ <p>Showing empathy towards other community members</p>
110
+ </li></ul>
111
+
112
+ <p>Examples of unacceptable behavior by participants include:</p>
113
+ <ul><li>
114
+ <p>The use of sexualized language or imagery and unwelcome sexual attention or advances</p>
115
+ </li><li>
116
+ <p>Trolling, insulting/derogatory comments, and personal or political attacks</p>
117
+ </li><li>
118
+ <p>Public or private harassment</p>
119
+ </li><li>
120
+ <p>Publishing others&#39; private information, such as a physical or electronic address, without explicit permission</p>
121
+ </li><li>
122
+ <p>Other conduct which could reasonably be considered inappropriate in a professional setting</p>
123
+ </li></ul>
124
+
125
+ <h2 id="label-Our+Responsibilities">Our Responsibilities<span><a href="#label-Our+Responsibilities">&para;</a> <a href="#top">&uarr;</a></span></h2>
126
+
127
+ <p>Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.</p>
128
+
129
+ <p>Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.</p>
130
+
131
+ <h2 id="label-Scope">Scope<span><a href="#label-Scope">&para;</a> <a href="#top">&uarr;</a></span></h2>
132
+
133
+ <p>This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.</p>
134
+
135
+ <h2 id="label-Enforcement">Enforcement<span><a href="#label-Enforcement">&para;</a> <a href="#top">&uarr;</a></span></h2>
136
+
137
+ <p>Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at danilo.elias@mercadolivre.com. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.</p>
138
+
139
+ <p>Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project&#39;s leadership.</p>
140
+
141
+ <h2 id="label-Attribution">Attribution<span><a href="#label-Attribution">&para;</a> <a href="#top">&uarr;</a></span></h2>
142
+
143
+ <p>This Code of Conduct is adapted from the <a href="https://contributor-covenant.org">Contributor Covenant</a>, version 1.4, available at <a href="https://contributor-covenant.org/version/1/4/">contributor-covenant.org/version/1/4</a></p>
144
+
145
+ </main>
146
+
147
+
148
+
149
+ <footer id="validator-badges" role="contentinfo">
150
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
151
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.0.
152
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
153
+ </footer>
154
+