-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Finishes #114505177] Map routes to path
- Loading branch information
andela-ydaniju
committed
Mar 3, 2016
0 parents
commit 56fad6f
Showing
36 changed files
with
916 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
repo_token: j2rQsY7YJdXfxQtYAZkKYb7Zl3yIc4SSP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/.bundle/ | ||
/.yardoc | ||
/Gemfile.lock | ||
/_yardoc/ | ||
/coverage/ | ||
/doc/ | ||
/pkg/ | ||
/spec/reports/ | ||
/tmp/ | ||
algernon-0.1.0.gem | ||
notes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ruby: | ||
config_file: .rubocop.yml | ||
|
||
fail_on_violations: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--format documentation | ||
--color | ||
--backtrace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,233 @@ | ||
AllCops: | ||
TargetRubyVersion: 2.2 | ||
UseCache: false | ||
Style/BracesAroundHashParameters: | ||
EnforcedStyle: context_dependent | ||
Style/CollectionMethods: | ||
Description: Preferred collection methods. | ||
StyleGuide: https://github.com/bbatsov/ruby-style-guide#map-find-select-reduce-size | ||
Enabled: true | ||
PreferredMethods: | ||
collect: map | ||
collect!: map! | ||
find: detect | ||
find_all: select | ||
reduce: inject | ||
Style/DotPosition: | ||
Description: Checks the position of the dot in multi-line method calls. | ||
StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains | ||
Enabled: true | ||
EnforcedStyle: trailing | ||
SupportedStyles: | ||
- leading | ||
- trailing | ||
Style/FileName: | ||
Description: Use snake_case for source file names. | ||
StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files | ||
Enabled: false | ||
Exclude: [] | ||
Style/GuardClause: | ||
Description: Check for conditionals that can be replaced with guard clauses | ||
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals | ||
Enabled: false | ||
MinBodyLength: 1 | ||
Style/IfUnlessModifier: | ||
Description: Favor modifier if/unless usage when you have a single-line body. | ||
StyleGuide: https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier | ||
Enabled: false | ||
MaxLineLength: 80 | ||
Style/OptionHash: | ||
Description: Don't use option hashes when you can use keyword arguments. | ||
Enabled: false | ||
Style/PercentLiteralDelimiters: | ||
Description: Use `%`-literal delimiters consistently | ||
StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-literal-braces | ||
Enabled: false | ||
PreferredDelimiters: | ||
"%": "()" | ||
"%i": "()" | ||
"%q": "()" | ||
"%Q": "()" | ||
"%r": "{}" | ||
"%s": "()" | ||
"%w": "()" | ||
"%W": "()" | ||
"%x": "()" | ||
Style/PredicateName: | ||
Description: Check the names of predicate methods. | ||
StyleGuide: https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark | ||
Enabled: true | ||
NamePrefix: | ||
- is_ | ||
- has_ | ||
- have_ | ||
NamePrefixBlacklist: | ||
- is_ | ||
Exclude: | ||
- spec/**/* | ||
Style/RaiseArgs: | ||
Description: Checks the arguments passed to raise/fail. | ||
StyleGuide: https://github.com/bbatsov/ruby-style-guide#exception-class-messages | ||
Enabled: false | ||
EnforcedStyle: exploded | ||
SupportedStyles: | ||
- compact | ||
- exploded | ||
Style/SignalException: | ||
Description: Checks for proper usage of fail and raise. | ||
StyleGuide: https://github.com/bbatsov/ruby-style-guide#fail-method | ||
Enabled: false | ||
EnforcedStyle: semantic | ||
SupportedStyles: | ||
- only_raise | ||
- only_fail | ||
- semantic | ||
Style/SingleLineBlockParams: | ||
Description: Enforces the names of some block params. | ||
StyleGuide: https://github.com/bbatsov/ruby-style-guide#reduce-blocks | ||
Enabled: false | ||
Methods: | ||
- reduce: | ||
- a | ||
- e | ||
- inject: | ||
- a | ||
- e | ||
Style/SingleLineMethods: | ||
Description: Avoid single-line methods. | ||
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-single-line-methods | ||
Enabled: false | ||
AllowIfMethodIsEmpty: true | ||
Style/StringLiterals: | ||
Description: Checks if uses of quotes match the configured preference. | ||
StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-string-literals | ||
Enabled: true | ||
EnforcedStyle: double_quotes | ||
SupportedStyles: | ||
- single_quotes | ||
- double_quotes | ||
Style/StringLiteralsInInterpolation: | ||
Description: Checks if uses of quotes inside expressions in interpolated strings | ||
match the configured preference. | ||
Enabled: true | ||
EnforcedStyle: single_quotes | ||
SupportedStyles: | ||
- single_quotes | ||
- double_quotes | ||
Style/TrailingCommaInLiteral: | ||
Description: Checks for trailing comma in parameter lists and literals. | ||
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas | ||
Enabled: false | ||
EnforcedStyleForMultiline: no_comma | ||
SupportedStyles: | ||
- comma | ||
- no_comma | ||
Metrics/AbcSize: | ||
Description: A calculated magnitude based on number of assignments, branches, and | ||
conditions. | ||
Enabled: false | ||
Max: 15 | ||
Metrics/ClassLength: | ||
Description: Avoid classes longer than 100 lines of code. | ||
Enabled: false | ||
CountComments: false | ||
Max: 100 | ||
Metrics/ModuleLength: | ||
CountComments: false | ||
Max: 100 | ||
Description: Avoid modules longer than 100 lines of code. | ||
Enabled: false | ||
Metrics/CyclomaticComplexity: | ||
Description: A complexity metric that is strongly correlated to the number of test | ||
cases needed to validate a method. | ||
Enabled: false | ||
Max: 6 | ||
Metrics/MethodLength: | ||
Description: Avoid methods longer than 10 lines of code. | ||
StyleGuide: https://github.com/bbatsov/ruby-style-guide#short-methods | ||
Enabled: false | ||
CountComments: false | ||
Max: 10 | ||
Metrics/ParameterLists: | ||
Description: Avoid parameter lists longer than three or four parameters. | ||
StyleGuide: https://github.com/bbatsov/ruby-style-guide#too-many-params | ||
Enabled: false | ||
Max: 5 | ||
CountKeywordArgs: true | ||
Metrics/PerceivedComplexity: | ||
Description: A complexity metric geared towards measuring complexity for a human | ||
reader. | ||
Enabled: false | ||
Max: 7 | ||
Lint/AssignmentInCondition: | ||
Description: Don't use assignment in conditions. | ||
StyleGuide: https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition | ||
Enabled: false | ||
AllowSafeAssignment: true | ||
Style/InlineComment: | ||
Description: Avoid inline comments. | ||
Enabled: false | ||
Style/AccessorMethodName: | ||
Description: Check the naming of accessor methods for get_/set_. | ||
Enabled: false | ||
Style/Alias: | ||
Description: Use alias_method instead of alias. | ||
StyleGuide: https://github.com/bbatsov/ruby-style-guide#alias-method | ||
Enabled: false | ||
Style/Documentation: | ||
Description: Document classes and non-namespace modules. | ||
Enabled: false | ||
Style/DoubleNegation: | ||
Description: Checks for uses of double negation (!!). | ||
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-bang-bang | ||
Enabled: false | ||
Style/EachWithObject: | ||
Description: Prefer `each_with_object` over `inject` or `reduce`. | ||
Enabled: false | ||
Style/EmptyLiteral: | ||
Description: Prefer literals to Array.new/Hash.new/String.new. | ||
StyleGuide: https://github.com/bbatsov/ruby-style-guide#literal-array-hash | ||
Enabled: false | ||
Style/ModuleFunction: | ||
Description: Checks for usage of `extend self` in modules. | ||
StyleGuide: https://github.com/bbatsov/ruby-style-guide#module-function | ||
Enabled: false | ||
Style/OneLineConditional: | ||
Description: Favor the ternary operator(?:) over if/then/else/end constructs. | ||
StyleGuide: https://github.com/bbatsov/ruby-style-guide#ternary-operator | ||
Enabled: false | ||
Style/PerlBackrefs: | ||
Description: Avoid Perl-style regex back references. | ||
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers | ||
Enabled: false | ||
Style/Send: | ||
Description: Prefer `Object#__send__` or `Object#public_send` to `send`, as `send` | ||
may overlap with existing methods. | ||
StyleGuide: https://github.com/bbatsov/ruby-style-guide#prefer-public-send | ||
Enabled: false | ||
Style/SpecialGlobalVars: | ||
Description: Avoid Perl-style global variables. | ||
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms | ||
Enabled: false | ||
Style/VariableInterpolation: | ||
Description: Don't interpolate global, instance and class variables directly in | ||
strings. | ||
StyleGuide: https://github.com/bbatsov/ruby-style-guide#curlies-interpolate | ||
Enabled: false | ||
Style/WhenThen: | ||
Description: Use when x then ... for one-line cases. | ||
StyleGuide: https://github.com/bbatsov/ruby-style-guide#one-line-cases | ||
Enabled: false | ||
Lint/EachWithObjectArgument: | ||
Description: Check for immutable argument given to each_with_object. | ||
Enabled: true | ||
Lint/HandleExceptions: | ||
Description: Don't suppress exception. | ||
StyleGuide: https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions | ||
Enabled: false | ||
Lint/LiteralInCondition: | ||
Description: Checks of literals used in conditions. | ||
Enabled: false | ||
Lint/LiteralInInterpolation: | ||
Description: Checks for literals used in interpolation. | ||
Enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
language: ruby | ||
rvm: | ||
- 2.2.3 | ||
before_install: gem install bundler -v 1.11.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Contributor Code of Conduct | ||
|
||
As contributors and maintainers of this project, and in the interest of | ||
fostering an open and welcoming community, we pledge to respect all people who | ||
contribute through reporting issues, posting feature requests, updating | ||
documentation, submitting pull requests or patches, and other activities. | ||
|
||
We are committed to making participation in this project a harassment-free | ||
experience for everyone, regardless of level of experience, gender, gender | ||
identity and expression, sexual orientation, disability, personal appearance, | ||
body size, race, ethnicity, age, religion, or nationality. | ||
|
||
Examples of unacceptable behavior by participants include: | ||
|
||
* The use of sexualized language or imagery | ||
* Personal attacks | ||
* Trolling or insulting/derogatory comments | ||
* Public or private harassment | ||
* Publishing other's private information, such as physical or electronic | ||
addresses, without explicit permission | ||
* Other unethical or unprofessional conduct | ||
|
||
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. | ||
|
||
By adopting this Code of Conduct, project maintainers commit themselves to | ||
fairly and consistently applying these principles to every aspect of managing | ||
this project. Project maintainers who do not follow or enforce the Code of | ||
Conduct may be permanently removed from the project team. | ||
|
||
This code of conduct applies both within project spaces and in public spaces | ||
when an individual is representing the project or its community. | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported by contacting a project maintainer at yusuf.daniju@andela.com. All | ||
complaints will be reviewed and investigated and will result in a response that | ||
is deemed necessary and appropriate to the circumstances. Maintainers are | ||
obligated to maintain confidentiality with regard to the reporter of an | ||
incident. | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], | ||
version 1.3.0, available at | ||
[http://contributor-covenant.org/version/1/3/0/][version] | ||
|
||
[homepage]: http://contributor-covenant.org | ||
[version]: http://contributor-covenant.org/version/1/3/0/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "pry" | ||
gem "coveralls", require: false | ||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2016 Yusuf Daniju | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Algernon | ||
|
||
[![Coverage Status](https://coveralls.io/repos/github/andela-ydaniju/algernon/badge.svg?branch=master)](https://coveralls.io/github/andela-ydaniju/algernon?branch=master) [![Build Status](https://travis-ci.org/andela-ydaniju/algernon.svg?branch=master)](https://travis-ci.org/andela-ydaniju/algernon) [![Code Climate](https://codeclimate.com/github/andela-ydaniju/algernon/badges/gpa.svg)](https://codeclimate.com/github/andela-ydaniju/algernon) | ||
|
||
Algernon is a Ruby MVC web framework. | ||
|
||
## Installation | ||
|
||
Add this line to your application's Gemfile: | ||
|
||
```ruby | ||
gem 'algernon' | ||
``` | ||
|
||
And then execute: | ||
|
||
$ bundle | ||
|
||
Or install it yourself as: | ||
|
||
$ gem install algernon | ||
|
||
## Usage | ||
|
||
Coming soon... | ||
|
||
## Development | ||
|
||
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. | ||
|
||
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 tags, and push the `.gem` file to [rubygems.org](https://rubygems.org). | ||
|
||
## Contributing | ||
|
||
Bug reports and pull requests are welcome on GitHub at https://github.com/andela-ydaniju/algernon. 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. | ||
|
||
## License | ||
|
||
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT). | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
require "bundler/gem_tasks" | ||
require "rspec/core/rake_task" | ||
|
||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
task default: :spec |
Oops, something went wrong.