Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

RCurtain 1.0 - Refactor code and update version #11

Open
wants to merge 52 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
334d947
Refactor code
lucasqueiroz Apr 7, 2018
4b05886
Update README to include new usages
lucasqueiroz Apr 8, 2018
d7fe9cb
Remove old usage instructions
lucasqueiroz Apr 8, 2018
020d658
Create auxiliar method to check for valid parameter
Apr 9, 2018
7f62ca4
Update gemspec
Apr 9, 2018
8000ee3
Move before to parent context
Apr 9, 2018
527c6e1
Rename methods
Apr 9, 2018
c1014c4
Use DRY on specs
Apr 9, 2018
ddb35eb
Use sismember instead of smembers
Apr 12, 2018
8d25212
Merge branch 'master' into refactor
Apr 12, 2018
9f008fe
Increase version
Apr 12, 2018
9f43280
Add description to features
Apr 25, 2018
1cf7984
Start refactor
Jun 25, 2018
966e744
Fix conflicts
Jun 25, 2018
81a5f1a
Add tests
Jun 27, 2018
8519b30
Add tests
Jun 27, 2018
51f34ed
Change method names
Jul 3, 2018
2be89db
Stop saving users
Jul 3, 2018
5b168fa
Add test coverage
Jul 3, 2018
940252b
Add .gitignore file
Jul 4, 2018
590c4ba
Remove coverage folder
Jul 4, 2018
88f7d69
Add more tests and coverage
Jul 5, 2018
e4346fd
Add more tests
lucasqueiroz Jul 6, 2018
55ac9c9
Add SimpleCov badge to Readme
lucasqueiroz Jul 6, 2018
5e6e2f5
Move badge
lucasqueiroz Jul 6, 2018
fe84988
Add gem version badge
lucasqueiroz Jul 6, 2018
783cdef
Update gem version badge
lucasqueiroz Jul 6, 2018
6fb829d
Update README.md
lucasqueiroz Jul 6, 2018
b0e08f0
Add contribution guide
lucasqueiroz Jul 6, 2018
2bbf516
Create LICENSE
Jul 6, 2018
a7c79b0
Update README.md
lucasqueiroz Jul 6, 2018
0a956a3
Update .gitignore
lucasqueiroz Jul 6, 2018
f99823a
Add initial circleci configuration
lucasqueiroz Jul 6, 2018
fe526cb
Update circleci
lucasqueiroz Jul 6, 2018
c9e7a39
Follow ruby style guide
lucasqueiroz Jul 6, 2018
59e6c00
Use exploded style
lucasqueiroz Jul 6, 2018
26fe16f
Merge pull request #1 from lucasqueiroz/circleci
Jul 6, 2018
aff48e5
Remove coverage folder from gitignore
lucasqueiroz Jul 6, 2018
ca87b2d
Add Code Climate configuration to circleci
lucasqueiroz Jul 6, 2018
bb85acb
Fix code style
lucasqueiroz Jul 6, 2018
6afe7d0
Remove exit code option
lucasqueiroz Jul 6, 2018
aa35071
Stop instantiating Random
Jul 6, 2018
6b8325f
Move to Codacy
Jul 6, 2018
ff162f9
Remove coverage folder
Jul 6, 2018
211173c
Add Codacy configuration
Jul 6, 2018
f3be188
Add duplication configuration to Codacy
Jul 6, 2018
bdca390
Move pull request template to github folder
Jul 10, 2018
b3f3706
Update documents
Jul 11, 2018
4667902
Move rescue blocks to curtain
Jul 11, 2018
6be4459
Add unit test for default description
Jul 11, 2018
bdef919
Merge pull request #2 from lucasqueiroz/refactor
Jul 11, 2018
59a4b6f
Update Codacy information
Jul 12, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: 2
jobs:
build:
docker:
- image: circleci/ruby:2.4.1
environment:
CODACY_PROJECT_TOKEN: a787dc401ce74569978ff206a4064544
steps:
- checkout
- run:
name: install dependencies
command: |
bundle install
- run:
name: run tests
command: |
bundle exec rspec
- run:
name: run code analyzer
command: |
bundle exec rubocop
8 changes: 8 additions & 0 deletions .codacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
engines:
duplication:
enabled: true
exclude_paths:
- 'spec/**/*'
exclude_paths:
- 'spec/**/*'
35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Title

<!---

Start the title with the tag [BUG] if you're reporting a bug.
Start the title with the tag [FEATURE] if you're requesting a feature.

-->

# Description

<!---

If you're reporting a bug:

Expected behavior:

Describe the expected behavior here.

Actual behavior:

Describe the actual behavior here.



If you're requesting a feature:

Feature name: Feature name goes here

Description:

Describe as much as possible the new feature you're requesting.
Describe why the new feature is important and how it could help the project.

-->
19 changes: 19 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Title

- [ ] I have followed the guidelines at the [Contribution](../CONTRIBUTING.md) document
- [ ] I have created unit tests

# Description

<!---
Describe your updates here.

Example:

- Add feature <feature name>
- Fix bug <bug>
- Closes issue #0

Start the line with "Fix", "Add", "Change" instead of "Fixed", "Added", "Changed".

-->
122 changes: 122 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@

# Created by https://www.gitignore.io/api/ruby,rubymine

### Ruby ###
*.gem
*.rbc
/.config
/coverage
/InstalledFiles
/pkg/
/spec/reports/
/spec/examples.txt
/test/tmp/
/test/version_tmp/
/tmp/

# Used by dotenv library to load environment variables.
# .env

## Specific to RubyMotion:
.dat*
.repl_history
build/
*.bridgesupport
build-iPhoneOS/
build-iPhoneSimulator/

## Specific to RubyMotion (use of CocoaPods):
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# vendor/Pods/

## Documentation cache and generated files:
/.yardoc/
/_yardoc/
/doc/
/rdoc/

## Environment normalization:
/.bundle/
/vendor/bundle
/lib/bundler/man/

# for a library or gem, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
Gemfile.lock
.ruby-version
.ruby-gemset

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc

### RubyMine ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

### RubyMine Patch ###
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721

# *.iml
# modules.xml
# .idea/misc.xml
# *.ipr

# Sonarlint plugin
.idea/sonarlint


# End of https://www.gitignore.io/api/ruby,rubymine
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Metrics/BlockLength:
Exclude:
- spec/**/*
38 changes: 38 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Contributing to RCurtain

Bug reports and pull requests are welcome on GitHub at https://github.com/moip/rcurtain. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.

1. Fork it (https://github.com/moip/rcurtain/fork)
2. Create your feature branch

```
git checkout -b my-new-feature
```

3. Add tests!

4. Check if the code still works after your update

```
bundle exec rspec
```

5. Make sure you're following the [Ruby Style Guide](https://github.com/rubocop-hq/ruby-style-guide)

```
bundle exec rubocop
```

6. Commit your changes

```
git commit -am 'Add some feature'
```

7. Push to the branch

```
git push origin my-new-feature
```

8. Create a new Pull Request
4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
source "https://rubygems.org"
source 'https://rubygems.org'

gemspec
gem 'codacy-coverage', require: false
gem 'rubocop', require: false
39 changes: 0 additions & 39 deletions Gemfile.lock

This file was deleted.

21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2018 Moip Pagamentos

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading