This repository has been archived by the owner on Jun 27, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rubocop and update code to match the style rules
- Loading branch information
Showing
42 changed files
with
214 additions
and
75 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
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 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,45 @@ | ||
AllCops: | ||
Includes: | ||
- '**/*.rake' | ||
- 'Gemfile' | ||
- 'Gemfile.devtools' | ||
Excludes: | ||
- '**/vendor/**' | ||
|
||
# Avoid parameter lists longer than five parameters. | ||
ParameterLists: | ||
Max: 3 | ||
CountKeywordArgs: true | ||
|
||
# Avoid more than `Max` levels of nesting. | ||
BlockNesting: | ||
Max: 3 | ||
|
||
# Align with the style guide. | ||
CollectionMethods: | ||
PreferredMethods: | ||
collect: 'map' | ||
inject: 'reduce' | ||
find: 'detect' | ||
find_all: 'select' | ||
|
||
# Do not force public/protected/private keyword to be indented at the same | ||
# level as the def keyword. My personal preference is to outdent these keywords | ||
# because I think when scanning code it makes it easier to identify the | ||
# sections of code and visually separate them. When the keyword is at the same | ||
# level I think it sort of blends in with the def keywords and makes it harder | ||
# to scan the code and see where the sections are. | ||
AccessControl: | ||
Enabled: false | ||
|
||
LineLength: | ||
Max: 90 | ||
|
||
Blocks: | ||
Enabled: false | ||
|
||
Documentation: | ||
Enabled: false | ||
|
||
EmptyLineBetweenDefs: | ||
Enabled: false # TODO: re-enable once SpecHelper.mock_model case is properly handled |
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 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 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 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,3 +1,5 @@ | ||
# encoding: utf-8 | ||
|
||
module ROM | ||
|
||
# A repository with a given +name+ and +adapter+ | ||
|
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,3 +1,5 @@ | ||
# encoding: utf-8 | ||
|
||
module ROM | ||
|
||
# Represents ROM's relation schema | ||
|
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,3 +1,5 @@ | ||
# encoding: utf-8 | ||
|
||
module ROM | ||
class Schema | ||
|
||
|
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 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,3 +1,5 @@ | ||
# encoding: utf-8 | ||
|
||
module ROM | ||
class Schema | ||
class Definition | ||
|
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 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,3 +1,5 @@ | ||
# encoding: utf-8 | ||
|
||
require 'axiom-do-adapter' | ||
|
||
module Axiom | ||
|
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,3 +1,5 @@ | ||
# encoding: utf-8 | ||
|
||
require 'axiom-memory-adapter' | ||
require 'rom/support/axiom/adapter' | ||
|
||
|
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,3 +1,5 @@ | ||
# encoding: utf-8 | ||
|
||
require 'do_postgres' | ||
|
||
require 'rom/support/axiom/adapter' | ||
|
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,3 +1,5 @@ | ||
# encoding: utf-8 | ||
|
||
require 'do_sqlite3' | ||
|
||
require 'rom/support/axiom/adapter' | ||
|
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,3 +1,5 @@ | ||
# encoding: utf-8 | ||
|
||
module ROM | ||
class Relation | ||
VERSION = '0.0.1' | ||
|
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 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 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 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,4 +1,6 @@ | ||
# encoding: utf-8 | ||
|
||
shared_context 'Environment' do | ||
let(:object) { described_class.coerce(:test => 'memory://test') } | ||
let(:object) { described_class.coerce(test: 'memory://test') } | ||
let(:uri) { 'memory://test' } | ||
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 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 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
Oops, something went wrong.
Looks like something went a bit crazy here with the encoding ;)