-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #140 from projecthydra/rubopopo
Rubopopo
- Loading branch information
Showing
42 changed files
with
748 additions
and
618 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,16 @@ | ||
inherit_from: .rubocop_todo.yml | ||
|
||
AllCops: | ||
Exclude: | ||
- db/migrate/** | ||
- db/schema.rb | ||
|
||
Rails: | ||
Enabled: true | ||
|
||
# Configuration parameters: AllowURI, URISchemes. | ||
Metrics/LineLength: | ||
Max: 180 | ||
|
||
Style/NumericLiterals: | ||
MinDigits: 7 |
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,149 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config` | ||
# on 2016-09-28 11:47:17 -0700 using RuboCop version 0.42.0. | ||
# The point is for the user to remove these configuration records | ||
# one by one as the offenses are removed from the code base. | ||
# Note that changes in the inspected code, or installation of new | ||
# versions of RuboCop, may require this file to be generated again. | ||
|
||
# Offense count: 1 | ||
Lint/Loop: | ||
Exclude: | ||
- 'lib/browse_everything/driver/google_drive.rb' | ||
|
||
# Offense count: 10 | ||
Metrics/AbcSize: | ||
Max: 32 | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: CountComments. | ||
Metrics/ClassLength: | ||
Max: 101 | ||
|
||
# Offense count: 3 | ||
Metrics/CyclomaticComplexity: | ||
Max: 7 | ||
|
||
# Offense count: 14 | ||
# Configuration parameters: CountComments. | ||
Metrics/MethodLength: | ||
Max: 26 | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: CountKeywordArgs. | ||
Metrics/ParameterLists: | ||
Max: 7 | ||
|
||
# Offense count: 1 | ||
Metrics/PerceivedComplexity: | ||
Max: 9 | ||
|
||
# Offense count: 1 | ||
Rails/OutputSafety: | ||
Exclude: | ||
- 'app/helpers/browse_everything_helper.rb' | ||
|
||
# Offense count: 14 | ||
# Configuration parameters: EnforcedStyle, SupportedStyles. | ||
# SupportedStyles: strict, flexible | ||
Rails/TimeZone: | ||
Exclude: | ||
- 'lib/browse_everything/driver/box.rb' | ||
- 'lib/browse_everything/driver/dropbox.rb' | ||
- 'lib/browse_everything/driver/google_drive.rb' | ||
- 'lib/browse_everything/driver/sky_drive.rb' | ||
- 'lib/browse_everything/retriever.rb' | ||
- 'spec/unit/browse_everything_helper_spec.rb' | ||
- 'spec/unit/file_entry_spec.rb' | ||
- 'spec/unit/retriever_spec.rb' | ||
- 'spec/unit/sky_drive_spec.rb' | ||
- 'spec/views/browse_everything/_file.html.erb_spec.rb' | ||
|
||
# Offense count: 3 | ||
# Configuration parameters: EnforcedStyle, SupportedStyles. | ||
# SupportedStyles: nested, compact | ||
Style/ClassAndModuleChildren: | ||
Exclude: | ||
- 'lib/generators/browse_everything/assets_generator.rb' | ||
- 'lib/generators/browse_everything/config_generator.rb' | ||
- 'lib/generators/browse_everything/install_generator.rb' | ||
|
||
# Offense count: 18 | ||
Style/Documentation: | ||
Enabled: false | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts. | ||
Style/FileName: | ||
Exclude: | ||
- 'lib/browse-everything.rb' | ||
|
||
# Offense count: 5 | ||
# Configuration parameters: MinBodyLength. | ||
Style/GuardClause: | ||
Exclude: | ||
- 'lib/browse_everything/driver/box.rb' | ||
- 'lib/browse_everything/driver/dropbox.rb' | ||
- 'lib/browse_everything/driver/file_system.rb' | ||
- 'lib/browse_everything/driver/google_drive.rb' | ||
- 'lib/browse_everything/driver/sky_drive.rb' | ||
|
||
# Offense count: 1 | ||
Style/MultilineBlockChain: | ||
Exclude: | ||
- 'lib/browse_everything/driver/google_drive.rb' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
Style/MultilineBlockLayout: | ||
Exclude: | ||
- 'spec/unit/dropbox_spec.rb' | ||
|
||
# Offense count: 2 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, SupportedStyles. | ||
# SupportedStyles: symmetrical, new_line, same_line | ||
Style/MultilineHashBraceLayout: | ||
Exclude: | ||
- 'spec/unit/sky_drive_spec.rb' | ||
|
||
# Offense count: 4 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth. | ||
# SupportedStyles: aligned, indented, indented_relative_to_receiver | ||
Style/MultilineMethodCallIndentation: | ||
Exclude: | ||
- 'spec/unit/sky_drive_spec.rb' | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist. | ||
# NamePrefix: is_, has_, have_ | ||
# NamePrefixBlacklist: is_, has_, have_ | ||
# NameWhitelist: is_a? | ||
Style/PredicateName: | ||
Exclude: | ||
- 'spec/**/*' | ||
- 'app/helpers/browse_everything_helper.rb' | ||
|
||
# Offense count: 2 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes. | ||
# SupportedStyles: slashes, percent_r, mixed | ||
Style/RegexpLiteral: | ||
Exclude: | ||
- 'lib/browse_everything/driver/box.rb' | ||
- 'lib/browse_everything/driver/dropbox.rb' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
Style/RescueModifier: | ||
Exclude: | ||
- 'lib/browse_everything/driver/file_system.rb' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, SupportedStyles. | ||
# SupportedStyles: use_perl_names, use_english_names | ||
Style/SpecialGlobalVars: | ||
Exclude: | ||
- 'browse-everything.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
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,35 +1,33 @@ | ||
module BootstrapVersionHelper | ||
|
||
def bootstrap_three? | ||
Bundler.environment.specs['bootstrap-sass'].first.version >= Gem::Version.new('3') | ||
end | ||
|
||
def bs2(if2) | ||
bs2or3(if2,'') | ||
bs2or3(if2, '') | ||
end | ||
|
||
def bs3(if3) | ||
bs2or3('',if3) | ||
bs2or3('', if3) | ||
end | ||
|
||
def bs2or3(if2,if3) | ||
def bs2or3(if2, if3) | ||
bootstrap_three? ? if3 : if2 | ||
end | ||
|
||
def font_awesome_four? | ||
Bundler.environment.specs['font-awesome-rails'].first.version >= Gem::Version.new('4') | ||
end | ||
|
||
def fa3(if3) | ||
fa3or4(if3,'') | ||
fa3or4(if3, '') | ||
end | ||
|
||
def fa4(if4) | ||
fa3or4('',if4) | ||
fa3or4('', if4) | ||
end | ||
def fa3or4(if3,if4) | ||
|
||
def fa3or4(if3, if4) | ||
font_awesome_four? ? if4 : if3 | ||
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 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,6 +1,6 @@ | ||
BrowseEverything::Engine.routes.draw do | ||
get "connect", to: 'browse_everything#auth', as: 'connector_response' | ||
match "resolve", to: 'browse_everything#resolve', as: 'resolver', via: [:get, :post] | ||
match ":provider(/*path)", to: 'browse_everything#show', as: 'contents', via: [:get, :post] | ||
get 'connect', to: 'browse_everything#auth', as: 'connector_response' | ||
match 'resolve', to: 'browse_everything#resolve', as: 'resolver', via: [:get, :post] | ||
match ':provider(/*path)', to: 'browse_everything#show', as: 'contents', via: [:get, :post] | ||
root to: 'browse_everything#index' | ||
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,3 +1,3 @@ | ||
require 'bootstrap-sass' | ||
require 'font-awesome-rails' | ||
require 'browse_everything' | ||
require 'browse_everything' |
Oops, something went wrong.