polen_charity_donation_api 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 4fde61dc7913cf843399b59f37a876e8b601da26de5445e9491afb6dbb3aab51
4
+ data.tar.gz: 85cb79aaa30abb6c716fc9263e0d47127b10dd5faa6502fb0dc99ada83797e73
5
+ SHA512:
6
+ metadata.gz: 3f4a769d5e6aa3e7dda0df480a3a46c3143c4c0d83cb6b7070b726323ad8ac53e6ed0bff514473d21efa71ad2b1edc025d16dc2b32f0795700cf4354c6916306
7
+ data.tar.gz: 49e30487bc959288263e824b4762f9d283fd5f424845eb63834866724d04042a75b654c368019a0ce020a3c08db31f10345efe7760618aae11cf107a6415e6a4
data/.gitignore ADDED
@@ -0,0 +1,29 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ /.idea
10
+
11
+ *.gem
12
+ *.rbc
13
+ .bundle
14
+ .config
15
+ .yardoc
16
+ .ruby-version
17
+ .ruby-gemset
18
+ Gemfile.lock
19
+ InstalledFiles
20
+ _yardoc
21
+ coverage
22
+ doc/
23
+ lib/bundler/man
24
+ pkg
25
+ rdoc
26
+ spec/reports
27
+ test/tmp
28
+ test/version_tmp
29
+ tmp
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2021-04-15
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders 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, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at jeovane.araujo@opolen.com.br. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in polen_charity_donation_api.gemspec
6
+ gemspec
7
+
8
+ gem "rest-client", "~> 2.1"
9
+
10
+ gem "rake", "~> 13.0"
11
+
12
+ gem "minitest", "~> 5.0"
13
+
14
+ gem "rubocop", "~> 1.7"
15
+
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 jeovane16
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 ADDED
@@ -0,0 +1,43 @@
1
+ # PolenCharityDonationApi
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/polen_charity_donation_api`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'polen_charity_donation_api'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install polen_charity_donation_api
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/polen_charity_donation_api. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/polen_charity_donation_api/blob/master/CODE_OF_CONDUCT.md).
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the PolenCharityDonationApi project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/polen_charity_donation_api/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ task default: %i[]
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "polen_charity_donation_api"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require "irb"
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,304 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "polen_charity_donation_api/version"
4
+ require "rest-client"
5
+ require "json"
6
+
7
+ class PolenCharityDonation
8
+ attr_reader :api_token, :base_url
9
+ # @param api_token token de acesso
10
+ def initialize(api_token)
11
+ @api_token = api_token.to_s
12
+ @base_url = "https://api.polen.com.br/api/v2"
13
+ end
14
+
15
+ #Causes
16
+
17
+ # Método que retorna todas as causas registradas
18
+ # @param params parametros de configuração
19
+ # @return Object
20
+ def get_all_cause(params={})
21
+ params[:api_token] = @api_token
22
+ RestClient.get("#{@base_url}/cause/all", params: params)
23
+ end
24
+
25
+ # Método que retorna todas as categorias de causas registradas
26
+ # @param params parametros de configuração
27
+ # @return Object
28
+ def get_cause_categories(params={})
29
+ params[:api_token] = @api_token
30
+ RestClient.get("#{@base_url}/cause/categories", params: params)
31
+ end
32
+
33
+ # Método que retorna todas as causas apoidas por uma loja
34
+ # @param params parametros de configuração
35
+ # @return Object
36
+ def get_own_cause(params)
37
+ params[:api_token] = @api_token
38
+ RestClient.get("#{@base_url}/cause", params: params)
39
+ end
40
+
41
+ #Company
42
+
43
+ # Método que retorna detalhe de uma empresa
44
+ # @param params parametros de configuração
45
+ # @return Object
46
+ def get_company_details(params)
47
+ params[:api_token] = @api_token
48
+ RestClient.get("#{@base_url}/company/detail", params: params)
49
+ end
50
+
51
+ # Método que retorna todas as empresas de uma conta
52
+ # @param params parametros de configuração
53
+ # @return Object
54
+ def get_company_list(params={})
55
+ params[:api_token] = @api_token
56
+ RestClient.get("#{@base_url}/company/list", params: params)
57
+ end
58
+
59
+ # Método que retorna as lojas de uma empresa
60
+ # @param params parametros de configuração
61
+ # @return Object
62
+ def get_company_stores(params)
63
+ params[:api_token] = @api_token
64
+ RestClient.get("#{@base_url}/company/stores", params: params)
65
+ end
66
+
67
+ # Método que atualiza os dados de uma empresa
68
+ # @param payload dados para atualização
69
+ # @param params parametros de configuração
70
+ # @return Object
71
+ def update_company(payload, params)
72
+ params[:api_token] = @api_token
73
+ RestClient.put("#{@base_url}/company/update", payload.to_json, { content_type: :json, params: params })
74
+ end
75
+
76
+ # Método que cria uma nova empresa na em uma conta
77
+ # @param payload dados para atualização
78
+ # @param params parametros de configuração
79
+ # @return Object
80
+ def create_company(payload, params={})
81
+ params[:api_token] = @api_token
82
+ RestClient.post("#{@base_url}/company/create", payload.to_json, { content_type: :json, params: params })
83
+ end
84
+
85
+ #Donation Direct
86
+
87
+ # Método que cria uma doação direta
88
+ # @param payload dados para atualização
89
+ # @param params parametros de configuração
90
+ # @return Object
91
+ def donation_direct(payload, params={})
92
+ params[:api_token] = @api_token
93
+ RestClient.post("#{@base_url}/donation/direct", payload.to_json, { content_type: :json, params: params })
94
+ end
95
+
96
+ #Donation Notify
97
+
98
+ # Método que retorna os detalhes de uma doação
99
+ # @param params parametros de configuração
100
+ # @return Object
101
+ def get_notify_donation(params)
102
+ params[:api_token] = @api_token
103
+ RestClient.get("#{@base_url}/donation/notify/detail", params: params)
104
+ end
105
+
106
+ # Método que retorna uma lista de doações de uma loja
107
+ # @param params parametros de configuração
108
+ # @return Object
109
+ def get_notify_donation_list(params)
110
+ params[:api_token] = @api_token
111
+ RestClient.get("#{@base_url}/donation/notify/list", params: params)
112
+ end
113
+
114
+ # Método que atualiza o status da doação
115
+ # @param payload dados para atualização
116
+ # @param params parametros de configuração
117
+ # @return Object
118
+ def update_notify_donation(payload, params)
119
+ params[:api_token] = @api_token
120
+ RestClient.put("#{@base_url}/donation/notify/update", payload.to_json, { content_type: :json, params: params })
121
+ end
122
+
123
+ # Método que adiciona uma nova doação feita em uma loja
124
+ # @param payload dados para atualização
125
+ # @param params parametros de configuração
126
+ # @return Object
127
+ def create_notify_donation(payload, params)
128
+ params[:api_token] = @api_token
129
+ RestClient.post("#{@base_url}/donation/notify/create", payload.to_json, { content_type: :json, params: params })
130
+ end
131
+
132
+ #Finance
133
+
134
+ # Método que retorna faturas da loja
135
+ # @param params parametros de configuração
136
+ # @return Object
137
+ def get_finance_billing_list(params)
138
+ params[:api_token] = @api_token
139
+ RestClient.get("#{@base_url}/finance/billing/list", params: params)
140
+ end
141
+
142
+ #Plataform
143
+
144
+ # Método que retorna uma lista de plataformas cadastradas
145
+ # @param params parametros de configuração
146
+ # @return Object
147
+ def get_platform_list(params = {})
148
+ params[:api_token] = @api_token
149
+ RestClient.get("#{@base_url}/platform/list", params: params)
150
+ end
151
+
152
+ #Store
153
+
154
+ # Método que retorna detalhes de uma loja
155
+ # @param params parametros de configuração
156
+ # @return Object
157
+ def get_store_details(params = {})
158
+ params[:api_token] = @api_token
159
+ RestClient.get("#{@base_url}/store/detail", params: params)
160
+ end
161
+
162
+ # Método que retorna uma lista de lojas cadastradas em uma conta
163
+ # @param params parametros de configuração
164
+ # @return Object
165
+ def get_store_list(params = {})
166
+ params[:api_token] = @api_token
167
+ RestClient.get("#{@base_url}/store/list", params: params)
168
+ end
169
+
170
+ # Método que atualiza uma loja
171
+ # @param payload dados para atualização
172
+ # @param params parametros de configuração
173
+ # @return Object
174
+ def update_store(payload, params)
175
+ params[:api_token] = @api_token
176
+ RestClient.put("#{@base_url}/store/update", payload.to_json, { content_type: :json, params: params })
177
+ end
178
+
179
+ # Método que adiciona uma causa a uma loja
180
+ # @param payload dados para atualização
181
+ # @param params parametros de configuração
182
+ # @return Object
183
+ def add_cause_store(payload, params)
184
+ params[:api_token] = @api_token
185
+ RestClient.post("#{@base_url}/store/cause/add", payload.to_json, { content_type: :json, params: params })
186
+ end
187
+
188
+ # Método para cadastar uma nova loja
189
+ # @param payload dados para atualização
190
+ # @param params parametros de configuração
191
+ # @return Object
192
+ def create_store(payload, params)
193
+ params[:api_token] = @api_token
194
+ RestClient.post("#{@base_url}/store/create", payload.to_json, { content_type: :json, params: params })
195
+ end
196
+
197
+ # Método para remover uma causa de uma loja
198
+ # @param payload dados para atualização
199
+ # @param params parametros de configuração
200
+ # @return Object
201
+ def remove_cause_store(payload, params)
202
+ params[:api_token] = @api_token
203
+ RestClient.post("#{@base_url}/store/cause/remove", payload.to_json, { content_type: :json, params: params })
204
+ end
205
+
206
+ # Transparency
207
+
208
+ # Método que retorna um consolidado total já doado
209
+ # @param params parametros de configuração
210
+ # @return Object
211
+ def get_impact_consolidated(params)
212
+ params[:api_token] = @api_token
213
+ RestClient.get("#{@base_url}/transparency/impact/consolidated", params: params)
214
+ end
215
+
216
+ # Método que retorna os detalhes de um conteúdo em especifico
217
+ # @param params parametros de configuração
218
+ # @return Object
219
+ def get_content_detail(params)
220
+ params[:api_token] = @api_token
221
+ RestClient.get("#{@base_url}/transparency/content/detail", params: params)
222
+ end
223
+
224
+ # Método que retorna os recibos de doações
225
+ # @param params parametros de configuração
226
+ # @return Object
227
+ def get_transparency_receipts(params)
228
+ params[:api_token] = @api_token
229
+ RestClient.get("#{@base_url}/transparency/receipts", params: params)
230
+ end
231
+
232
+ # Método que retorna uma lista de conteúdos da instituição apoiada
233
+ # @param params parametros de configuração
234
+ # @return Object
235
+ def get_content_list(params)
236
+ params[:api_token] = @api_token
237
+ RestClient.get("#{@base_url}/transparency/content/list", params: params)
238
+ end
239
+
240
+ #Transaction
241
+
242
+ # Método que retorna uma lista de conteúdos da instituição apoiada
243
+ # @param params parametros de configuração
244
+ # @return Object
245
+
246
+ def update_status_transaction(params)
247
+ params[:api_token] = @api_token
248
+ RestClient.post("#{@base_url}/transaction/update/status",{}, params: params)
249
+ end
250
+
251
+ #User
252
+
253
+ # Método que retorna detalhes de um usuário
254
+ # @param params parametros de configuração
255
+ # @return Object
256
+ def get_user_details(params)
257
+ params[:api_token] = @api_token
258
+ RestClient.get("#{@base_url}/user/detail", params: params)
259
+ end
260
+
261
+ # Método que retorna detalhes do impacto causado pelo usuário
262
+ # @param params parametros de configuração
263
+ # @return Object
264
+ def get_user_impact(params)
265
+ params[:api_token] = @api_token
266
+ RestClient.get("#{@base_url}/user/impact", params: params)
267
+ end
268
+
269
+ # Método que retorna a lista de usuários de uma loja
270
+ # @param params parametros de configuração
271
+ # @return Object
272
+ def get_user_list(params)
273
+ params[:api_token] = @api_token
274
+ RestClient.get("#{@base_url}/user/list", params: params)
275
+ end
276
+
277
+ # Método que atualiza um usuário de uma loja
278
+ # @param payload dados para atualização
279
+ # @param params parametros de configuração
280
+ # @return Object
281
+ def update_user(payload, params)
282
+ params[:api_token] = @api_token
283
+ RestClient.put("#{@base_url}/user/update", payload.to_json, { content_type: :json, params: params })
284
+ end
285
+
286
+ # Método que atualiza um usuário de uma loja
287
+ # @param payload dados para atualização
288
+ # @param params parametros de configuração
289
+ # @return Object
290
+ def create_user(payload, params)
291
+ params[:api_token] = @api_token
292
+ RestClient.post("#{@base_url}/user/create", payload.to_json, { content_type: :json, params: params })
293
+ end
294
+
295
+ # Método que adiciona ou remove uma causa a um usuário
296
+ # @param payload dados para atualização
297
+ # @param params parametros de configuração
298
+ # @return Object
299
+ def add_user_cause(payload, params)
300
+ params[:api_token] = @api_token
301
+ RestClient.post("#{@base_url}/user/create", payload.to_json, { content_type: :json, params: params })
302
+ end
303
+ end
304
+
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module PolenCharityDonationApi
4
+ VERSION = "1.0.0"
5
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/polen_charity_donation_api/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "polen_charity_donation_api"
7
+ spec.version = PolenCharityDonationApi::VERSION
8
+ spec.authors = ["polen"]
9
+ spec.email = ["fernando@opolen.com.br"]
10
+
11
+ spec.summary = "A Polen é uma empresa especializada em intermediar doações corporativas entre empresas e instituições brasileiras do terceiro setor e em gerar transparência das doações."
12
+ spec.description = "A sua API de doações."
13
+ spec.homepage = "https://polen-donation.github.io/polen-docs/"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
16
+
17
+
18
+ # Specify which files should be added to the gem when it is released.
19
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
20
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
21
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
22
+ end
23
+ spec.bindir = "exe"
24
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
25
+ spec.require_paths = ["lib"]
26
+
27
+ spec.add_development_dependency "minitest", "~> 5.0"
28
+ spec.add_development_dependency "rubocop", "~> 1.7"
29
+ spec.add_development_dependency "rake", "~> 13.0"
30
+
31
+ spec.add_dependency "rest-client", "~> 2.1"
32
+
33
+ # For more information and examples about making a new gem, checkout our
34
+ # guide at: https://bundler.io/guides/creating_gem.html
35
+ end
metadata ADDED
@@ -0,0 +1,113 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: polen_charity_donation_api
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - polen
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-04-15 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: minitest
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '5.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '5.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.7'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.7'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '13.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '13.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rest-client
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2.1'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2.1'
69
+ description: A sua API de doações.
70
+ email:
71
+ - fernando@opolen.com.br
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - CHANGELOG.md
78
+ - CODE_OF_CONDUCT.md
79
+ - Gemfile
80
+ - LICENSE.txt
81
+ - README.md
82
+ - Rakefile
83
+ - bin/console
84
+ - bin/setup
85
+ - lib/polen_charity_donation_api.rb
86
+ - lib/polen_charity_donation_api/version.rb
87
+ - polen_charity_donation_api.gemspec
88
+ homepage: https://polen-donation.github.io/polen-docs/
89
+ licenses:
90
+ - MIT
91
+ metadata: {}
92
+ post_install_message:
93
+ rdoc_options: []
94
+ require_paths:
95
+ - lib
96
+ required_ruby_version: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: 2.4.0
101
+ required_rubygems_version: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - ">="
104
+ - !ruby/object:Gem::Version
105
+ version: '0'
106
+ requirements: []
107
+ rubygems_version: 3.1.6
108
+ signing_key:
109
+ specification_version: 4
110
+ summary: A Polen é uma empresa especializada em intermediar doações corporativas entre
111
+ empresas e instituições brasileiras do terceiro setor e em gerar transparência das
112
+ doações.
113
+ test_files: []