rest-api-generator 0.1.0 → 0.1.1

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: d5f141a24ca9cc9e364aec03cdcf46eb3e2bee8cb36cbc120b8034c8ca7fad52
4
- data.tar.gz: 6f6410abc9657e49c10cd9a9654a0e59360128aa1990a7acdbde26485ce9806f
3
+ metadata.gz: f3e06c4a9026a2a814873ee73588d2192c5962d366f35bf6dfd4277208887abd
4
+ data.tar.gz: e4efc771085f7fafb99399ddaa899ff72edf90865d5bd03f39644e686b841c48
5
5
  SHA512:
6
- metadata.gz: 5130c55d992d388cb807642b0680983ef9fbf023d930d4182ff4af257c7209edb9dead5d4322d0d32a8eedc4b1d9e05a084d04c7735ac471c27ff34c4f984a63
7
- data.tar.gz: 4172cf89cbff2f8ddc5216f174066fa1ccac17f7462b697103be6e624b0acd94c3114e84e96b4891dd6a6aa9151dfcb078030f6cbe23f84ed605c90f8eba6e98
6
+ metadata.gz: 633346498caa5fa13db9077962e5a26d1015764f60c96aac91ba75f712f483cba833a16323c19a84f20f91d93c1fbf02ecd2028f59998f4388b151cd41b02db9
7
+ data.tar.gz: 6584c32a008736381fb3b5658cbf21b69efb4587a570d78143a4658ef3c98c4e72049b05e8ebee8453bed60ff6bc559d3a37ca24026d97e5f17537d1ee41a58c
data/Gemfile.lock CHANGED
@@ -1,30 +1,31 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rest-api-generator (0.1.0)
4
+ rest-api-generator (0.1.1)
5
5
  railties (>= 5.0.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actionpack (7.0.2.4)
11
- actionview (= 7.0.2.4)
12
- activesupport (= 7.0.2.4)
13
- rack (~> 2.0, >= 2.2.0)
10
+ actionpack (6.1.6)
11
+ actionview (= 6.1.6)
12
+ activesupport (= 6.1.6)
13
+ rack (~> 2.0, >= 2.0.9)
14
14
  rack-test (>= 0.6.3)
15
15
  rails-dom-testing (~> 2.0)
16
16
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
17
- actionview (7.0.2.4)
18
- activesupport (= 7.0.2.4)
17
+ actionview (6.1.6)
18
+ activesupport (= 6.1.6)
19
19
  builder (~> 3.1)
20
20
  erubi (~> 1.4)
21
21
  rails-dom-testing (~> 2.0)
22
22
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
23
- activesupport (7.0.2.4)
23
+ activesupport (6.1.6)
24
24
  concurrent-ruby (~> 1.0, >= 1.0.2)
25
25
  i18n (>= 1.6, < 2)
26
26
  minitest (>= 5.1)
27
27
  tzinfo (~> 2.0)
28
+ zeitwerk (~> 2.3)
28
29
  ast (2.4.2)
29
30
  builder (3.2.4)
30
31
  concurrent-ruby (1.1.10)
@@ -33,32 +34,31 @@ GEM
33
34
  erubi (1.10.0)
34
35
  i18n (1.10.0)
35
36
  concurrent-ruby (~> 1.0)
36
- loofah (2.17.0)
37
+ loofah (2.18.0)
37
38
  crass (~> 1.0.2)
38
39
  nokogiri (>= 1.5.9)
39
40
  method_source (1.0.0)
40
- minitest (5.15.0)
41
- nokogiri (1.13.5-x86_64-linux)
41
+ minitest (5.16.1)
42
+ nokogiri (1.13.6-x86_64-linux)
42
43
  racc (~> 1.4)
43
44
  parallel (1.22.1)
44
45
  parser (3.1.2.0)
45
46
  ast (~> 2.4.1)
46
47
  racc (1.6.0)
47
- rack (2.2.3)
48
- rack-test (1.1.0)
49
- rack (>= 1.0, < 3)
48
+ rack (2.2.4)
49
+ rack-test (2.0.2)
50
+ rack (>= 1.3)
50
51
  rails-dom-testing (2.0.3)
51
52
  activesupport (>= 4.2.0)
52
53
  nokogiri (>= 1.6)
53
- rails-html-sanitizer (1.4.2)
54
+ rails-html-sanitizer (1.4.3)
54
55
  loofah (~> 2.3)
55
- railties (7.0.2.4)
56
- actionpack (= 7.0.2.4)
57
- activesupport (= 7.0.2.4)
56
+ railties (6.1.6)
57
+ actionpack (= 6.1.6)
58
+ activesupport (= 6.1.6)
58
59
  method_source
59
60
  rake (>= 12.2)
60
61
  thor (~> 1.0)
61
- zeitwerk (~> 2.5)
62
62
  rainbow (3.1.1)
63
63
  rake (13.0.6)
64
64
  regexp_parser (2.3.1)
@@ -92,7 +92,7 @@ GEM
92
92
  tzinfo (2.0.4)
93
93
  concurrent-ruby (~> 1.0)
94
94
  unicode-display_width (2.1.0)
95
- zeitwerk (2.5.4)
95
+ zeitwerk (2.6.0)
96
96
 
97
97
  PLATFORMS
98
98
  x86_64-linux
data/README.md CHANGED
@@ -1,24 +1,29 @@
1
- # RestApiGenerator
1
+ # rest-api-generator
2
2
 
3
- This gem works as a scaffold to generate an endpoint, it generates:
3
+ This gem helps you to build a Ruby on Rails REST API faster, using a scaffold-like generator that follows the best
4
+ practices.
4
5
 
5
- <ul>
6
- <li> Model </li>
7
- <li> Migration </li>
8
- <li> Routes (resource) </li>
9
- <li> Controller </li>
10
- <li> Spec test of controller </li>
11
- <li> Factory bot </li>
12
- </ul>
6
+ ## How it works?
7
+
8
+ The gems use vanilla Rails generators n combination with our templates to create all the resources needed to build a
9
+ REST API.
10
+
11
+ Following [Switch Dreams's](https://www.switchdreams.com.br/]) coding practices, the controllers are built with:
12
+
13
+ - We use an error module to centralize error handling, rescuing from a custom and some of ActiveRecord exceptions.
14
+ The inspiration for this strategy was
15
+ this [article](https://medium.com/rails-ember-beyond/error-handling-in-rails-the-modular-way-9afcddd2fe1b.)
13
16
 
14
- the commnad its simmilar to the model generator "rails g model model_name attributes", in fact it invokes this generator to genrate the model and migration file
17
+ - For tests, we use RSpec and FactoryBot.
15
18
 
16
19
  ## Installation
17
20
 
18
21
  Add this line to your application's Gemfile:
19
22
 
20
23
  ```ruby
21
- gem 'rest-api-generator'
24
+ group :development do
25
+ gem 'rest-api-generator'
26
+ end
22
27
  ```
23
28
 
24
29
  And then execute:
@@ -30,92 +35,107 @@ Or install it yourself as:
30
35
  $ gem install rest-api-generator
31
36
 
32
37
  ## Requirements
33
- You need to have installed in your application rspec and factory bot
38
+
39
+ 1. You need to have installed RSpec and FactoryBot in your application.
34
40
 
35
41
  <ul>
36
- <li>Rspec: https://github.com/rspec/rspec-rails</li>
42
+ <li>RSpec: https://github.com/rspec/rspec-rails</li>
37
43
  <li>Factory bot: https://github.com/thoughtbot/factory_bot_rails</li>
38
44
  </ul>
39
45
 
40
- then inside your folder app/spec create a new folder called "requests", that's where your tests will be generated
46
+ 2. Include in ApplicationController the error handler module:
47
+
48
+ ```ruby
49
+
50
+ class ApplicationController < ActionController::API
51
+ include RestApiGenerator::ErrorHandler
52
+ end
53
+ ```
54
+
55
+ This error handler will rescue from: `ActiveRecord::RecordNotFound`
56
+ , `ActiveRecord::ActiveRecordError`, `ActiveRecord::RecordInvalid`, `ActiveModel::ValidationError`
57
+ , `RestApiGenerator::CustomError`.
41
58
 
42
59
  ## Usage
43
- ### Run command
44
- $ rails g generator table_name attributes
45
60
 
46
- ************************************************************************************
47
- #### Model
48
- this will generate a table and a migration with the table name and it's attribute, it invokes the model generator
61
+ ### Generate Resource
49
62
 
50
- ************************************************************************************
51
- #### Endpoint
52
- It will genrate a controller CarsController that has the methods
63
+ ```bash
64
+ $ rails g rest-api-generator:resource table_name attributes
65
+ ```
53
66
 
54
- ##### Create
55
- saves instance of generated model to database and return json of instance with status ok
67
+ This command will create:
56
68
 
57
- ##### Update
58
- updates instance of generated modelfrom database and return json of instance with status ok
69
+ - **Model and Migration**: Using rails default model generator
70
+ - **Controller**: A controller with index,show,create,update and destroy methods.
71
+ - **Specs for the created controller**
72
+ - **Factory bot factory for created model**
73
+ - **Routes**: with rails resources
59
74
 
60
- ##### Delete
61
- deletes instance of generated model from database
75
+ ### Example
62
76
 
63
- ##### Show
64
- returns JSON instance of generated model from database with status ok
77
+ ```bash
78
+ $ rails g rest-api-generator:resource car name:string color:string
79
+ ```
65
80
 
66
- ##### Index
67
- returns JSON instance of generated model from database with status ok
81
+ Will generate following controller and the other files:
68
82
 
83
+ ```ruby
69
84
 
70
- create and update will have permitted params defined by the attributes defined in the command (except if the attribute is type reference)
71
- ************************************************************************************
72
- ### Spec
85
+ class CarsController < ApplicationController
86
+ before_action :set_car, only: %i[show update destroy]
73
87
 
74
- ##### Create
75
- checks if instance was saved in database
88
+ def index
89
+ @car = Car.all
90
+ render json: @car, status: :ok
91
+ end
76
92
 
77
- ##### Update
78
- checks if instance was updated in database ok
93
+ def show
94
+ render json: @car, status: :ok
95
+ end
79
96
 
80
- ##### Delete
81
- checks if instance was deleted from database
97
+ def create
98
+ @car = Car.create!(car_params)
99
+ render json: @car, status: :created
100
+ end
82
101
 
83
- ##### Show
84
- check if status ok
102
+ def update
103
+ @car = Car.update!(car_params)
104
+ render json: @car, status: :ok
105
+ end
85
106
 
86
- ##### Index
87
- check if status ok
107
+ def destroy
108
+ @car.destroy!
109
+ end
88
110
 
89
- ************************************************************************************
90
- ### Factory
91
- The factory will be generated with it's custom generator, defined in the instalation of the factory-bot
111
+ private
92
112
 
93
- ************************************************************************************
94
- ### Routes
95
- the routes generated are the basic resources routes:
96
- table_name: resources
113
+ def set_car
114
+ @car = Car.find(params[:id])
115
+ end
97
116
 
98
- ************************************************************************************
99
- ### Scope
100
- It's possible to add flag in the command to generate an endpoint with a parent
101
- $ rails g generator table_name attributes --scope father_name
117
+ def car_params
118
+ params.require(:car).permit(:name, :color)
119
+ end
120
+ end
102
121
 
103
- the only thing this won't genrate it's the nested routes, but it will generate all the previous files mentioned just liek a scaffold
122
+ ```
104
123
 
105
124
  ## Development
106
125
 
107
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
126
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can
127
+ also run `bin/console` for an interactive prompt that will allow you to experiment.
108
128
 
109
- 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).
129
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the
130
+ version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version,
131
+ push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
110
132
 
111
133
  ## Contributing
112
134
 
113
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rest-api-generator. 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]/rest-api-generator/blob/master/CODE_OF_CONDUCT.md).
135
+ Bug reports and pull requests are welcome on GitHub at https://github.com/SwitchDreams/rest-api-generator. This project
136
+ is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to
137
+ the [code of conduct](https://github.com/SwitchDreams/rest-api-generator/blob/main/CODE_OF_CONDUCT.md).
114
138
 
115
139
  ## License
116
140
 
117
141
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
118
-
119
- ## Code of Conduct
120
-
121
- Everyone interacting in the Rest::Api::Generator project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/rest-api-generator/blob/master/CODE_OF_CONDUCT.md).
@@ -1,6 +1,6 @@
1
1
  class <%= class_name.pluralize %>Controller < ApplicationController
2
2
  before_action :set_<%= options['scope'].downcase %>
3
- before_action :set_<%= singular_name %>, only: %i[ show update destroy ]
3
+ before_action :set_<%= singular_name %>, only: %i[show update destroy]
4
4
 
5
5
  def index
6
6
  @<%= plural_name %> = @<%= options['scope'].downcase %>.<%= plural_name %>
@@ -1,5 +1,5 @@
1
1
  class <%= class_name.pluralize %>Controller < ApplicationController
2
- before_action :set_<%= singular_name %>, only: %i[ show update destroy ]
2
+ before_action :set_<%= singular_name %>, only: %i[show update destroy]
3
3
 
4
4
  def index
5
5
  @<%= singular_name %> = <%= class_name %>.all
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RestApiGenerator
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/rest_api_generator/version"
4
+ require_relative "lib/rest_api_generator"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "rest-api-generator"
8
+ spec.version = RestApiGenerator::VERSION
9
+ spec.authors = ["PedroAugustoRamalhoDuarte"]
10
+ spec.email = ["pedro_aduarte@aluno.unb.br"]
11
+
12
+ spec.summary = "Build a Ruby on Rails REST API faster"
13
+ spec.description = "This gem helps you to build a Ruby on Rails REST API faster, using a scaffold-like generator that follows the best practices."
14
+ spec.homepage = "https://github.com/SwitchDreams/rest-api-generator"
15
+ spec.license = "MIT"
16
+ spec.required_ruby_version = ">= 2.6.0"
17
+
18
+ spec.metadata["allowed_push_host"] = "https://rubygems.org/"
19
+
20
+ spec.metadata["homepage_uri"] = spec.homepage
21
+ spec.metadata["source_code_uri"] = "https://github.com/SwitchDreams/rest-api-generator"
22
+ spec.metadata["changelog_uri"] = "https://github.com/SwitchDreams/rest-api-generator"
23
+
24
+ spec.files = Dir["{bin,sig,lib,public}/**/*", "MIT-LICENSE", "Rakefile", "README.md", "rest-api-generator.gemspec",
25
+ "Gemfile", "Gemfile.lock"]
26
+ spec.bindir = "exe"
27
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ["lib"]
29
+
30
+ spec.add_runtime_dependency("railties", ">= 5.0.0")
31
+
32
+ # For more information and examples about making a new gem, check out our
33
+ # guide at: https://bundler.io/guides/creating_gem.html
34
+ spec.metadata["rubygems_mfa_required"] = "true"
35
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest-api-generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - PedroAugustoRamalhoDuarte
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-05 00:00:00.000000000 Z
11
+ date: 2022-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -24,19 +24,16 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 5.0.0
27
- description: Generates rest api in SwitchDreams default faster with rest-api-generator
27
+ description: This gem helps you to build a Ruby on Rails REST API faster, using a
28
+ scaffold-like generator that follows the best practices.
28
29
  email:
29
30
  - pedro_aduarte@aluno.unb.br
30
31
  executables: []
31
32
  extensions: []
32
33
  extra_rdoc_files: []
33
34
  files:
34
- - ".rspec"
35
- - ".rubocop.yml"
36
- - CODE_OF_CONDUCT.md
37
35
  - Gemfile
38
36
  - Gemfile.lock
39
- - LICENSE.txt
40
37
  - README.md
41
38
  - Rakefile
42
39
  - bin/console
@@ -53,6 +50,7 @@ files:
53
50
  - lib/rest_api_generator/error_handler.rb
54
51
  - lib/rest_api_generator/helpers/render.rb
55
52
  - lib/rest_api_generator/version.rb
53
+ - rest-api-generator.gemspec
56
54
  - sig/rest_api_generator.rbs
57
55
  homepage: https://github.com/SwitchDreams/rest-api-generator
58
56
  licenses:
@@ -78,8 +76,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
76
  - !ruby/object:Gem::Version
79
77
  version: '0'
80
78
  requirements: []
81
- rubygems_version: 3.3.7
79
+ rubygems_version: 3.3.3
82
80
  signing_key:
83
81
  specification_version: 4
84
- summary: Build a rails rest api in minutes
82
+ summary: Build a Ruby on Rails REST API faster
85
83
  test_files: []
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
data/.rubocop.yml DELETED
@@ -1,23 +0,0 @@
1
- AllCops:
2
- NewCops: enable
3
- TargetRubyVersion: 2.6
4
-
5
- Style/StringLiterals:
6
- Enabled: true
7
- EnforcedStyle: double_quotes
8
-
9
- Style/StringLiteralsInInterpolation:
10
- Enabled: true
11
- EnforcedStyle: double_quotes
12
-
13
- Style/Documentation:
14
- Enabled: false
15
-
16
- Layout/LineLength:
17
- Max: 120
18
-
19
- Metrics/MethodLength:
20
- Max: 17
21
-
22
- Metrics/AbcSize:
23
- Max: 25
data/CODE_OF_CONDUCT.md DELETED
@@ -1,84 +0,0 @@
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 pedro_aduarte@aluno.unb.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/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2022 PedroAugustoRamalhoDuarte
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.