Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b52ed43
commit 4a49d70
Showing
7 changed files
with
88 additions
and
29 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
--format documentation | ||
--color | ||
--require spec_helper |
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,69 @@ | ||
require: rubocop-rspec | ||
|
||
AllCops: | ||
TargetRubyVersion: 2.3 | ||
Include: | ||
- '**/Gemfile' | ||
- '**/Rakefile' | ||
Exclude: | ||
- 'bin/*' | ||
- 'db/**/*' | ||
- 'vendor/bundle/**/*' | ||
- 'spec/spec_helper.rb' | ||
- 'spec/rails_helper.rb' | ||
- 'spec/support/**/*' | ||
- 'config/**/*' | ||
- '**/Rakefile' | ||
- '**/Gemfile' | ||
|
||
RSpec/DescribeClass: | ||
Exclude: | ||
- 'spec/requests/**/*' | ||
|
||
Style/BlockDelimiters: | ||
Exclude: | ||
- 'spec/**/*' | ||
|
||
Style/AlignParameters: | ||
EnforcedStyle: with_fixed_indentation | ||
|
||
Style/ClosingParenthesisIndentation: | ||
Enabled: false | ||
|
||
Metrics/LineLength: | ||
Max: 100 | ||
AllowURI: true | ||
|
||
Style/FirstParameterIndentation: | ||
Enabled: false | ||
|
||
Style/MultilineMethodCallIndentation: | ||
EnforcedStyle: indented | ||
|
||
Style/IndentArray: | ||
EnforcedStyle: consistent | ||
|
||
Style/IndentHash: | ||
EnforcedStyle: consistent | ||
|
||
Style/SignalException: | ||
EnforcedStyle: semantic | ||
|
||
Style/BracesAroundHashParameters: | ||
EnforcedStyle: context_dependent | ||
|
||
Lint/EndAlignment: | ||
AlignWith: variable | ||
AutoCorrect: true | ||
|
||
Style/AndOr: | ||
EnforcedStyle: conditionals | ||
|
||
Style/MultilineBlockChain: | ||
Enabled: false | ||
|
||
RSpec/NamedSubject: | ||
Enabled: false | ||
|
||
RSpec/ExampleLength: | ||
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 |
---|---|---|
@@ -1,7 +1,10 @@ | ||
require "pragma/contract/version" | ||
# frozen_string_literal: true | ||
require 'pragma/contract/version' | ||
|
||
# Form objects on steroids for your HTTP API. | ||
# | ||
# @author Alessandro Desantis | ||
module Pragma | ||
module Contract | ||
# Your code goes here... | ||
end | ||
end |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# frozen_string_literal: true | ||
module Pragma | ||
module Contract | ||
VERSION = "0.1.0" | ||
VERSION = '0.1.0' | ||
end | ||
end |
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
require 'coveralls' | ||
Coveralls.wear! | ||
|
||
$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__) | ||
require "pragma/contract" |