-
Notifications
You must be signed in to change notification settings - Fork 25
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
Showing
12 changed files
with
229 additions
and
94 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,82 @@ | ||
AllCops: | ||
Includes: | ||
- 'Gemfile' | ||
- 'Rakefile' | ||
- 'omniauth-gplus.gemspec' | ||
|
||
# Avoid long parameter lists | ||
ParameterLists: | ||
Max: 5 | ||
CountKeywordArgs: true | ||
|
||
MethodLength: | ||
CountComments: false | ||
Max: 18 | ||
|
||
# Avoid more than `Max` levels of nesting. | ||
BlockNesting: | ||
Max: 2 | ||
|
||
# Align with the style guide. | ||
CollectionMethods: | ||
PreferredMethods: | ||
map: 'collect' | ||
reduce: 'inject' | ||
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. | ||
AccessModifierIndentation: | ||
Enabled: false | ||
|
||
# Limit line length | ||
LineLength: | ||
Enabled: false | ||
|
||
# Disable documentation checking until a class needs to be documented once | ||
Documentation: | ||
Enabled: false | ||
|
||
# Enforce Ruby 1.8-compatible hash syntax | ||
HashSyntax: | ||
EnforcedStyle: hash_rockets | ||
|
||
# No spaces inside hash literals | ||
SpaceInsideHashLiteralBraces: | ||
EnforcedStyle: no_space | ||
|
||
# Allow dots at the end of lines | ||
DotPosition: | ||
Enabled: false | ||
|
||
# Don't require magic comment at the top of every file | ||
Encoding: | ||
Enabled: false | ||
|
||
# Enforce outdenting of access modifiers (i.e. public, private, protected) | ||
AccessModifierIndentation: | ||
EnforcedStyle: outdent | ||
|
||
EmptyLinesAroundAccessModifier: | ||
Enabled: true | ||
|
||
# Align ends correctly | ||
EndAlignment: | ||
AlignWith: variable | ||
|
||
# Indentation of when/else | ||
CaseIndentation: | ||
IndentWhenRelativeTo: end | ||
IndentOneStep: false | ||
|
||
Lambda: | ||
Enabled: false | ||
|
||
FileName: | ||
Exclude: | ||
- 'lib/omniauth-gplus.rb' |
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,5 +1,2 @@ | ||
require "omniauth-oauth2" | ||
require_relative "omniauth/strategies/gplus" | ||
require_relative "omniauth/gplus/version" | ||
|
||
OmniAuth.config.add_camelization("gplus", "GPlus") | ||
require 'omniauth/gplus' | ||
OmniAuth.config.add_camelization('gplus', 'GPlus') |
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,2 @@ | ||
require 'omniauth/gplus/version' | ||
require 'omniauth/strategies/gplus' |
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,5 @@ | ||
module OmniAuth | ||
module GPlus | ||
VERSION = "2.0.0.beta1" | ||
VERSION = '2.0.0.beta1' | ||
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,34 +1,36 @@ | ||
lib = File.expand_path('../lib', __FILE__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
# -*- encoding: utf-8 -*- | ||
$:.push File.expand_path('../lib', __FILE__) | ||
require 'omniauth/gplus/version' | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "omniauth-gplus" | ||
spec.version = OmniAuth::GPlus::VERSION | ||
spec.authors = ["Kurtis Rainbolt-Greene", "Sam Dunne"] | ||
spec.email = ["me@kurtisrainboltgreene.name", "sam@sam-dunne.com"] | ||
spec.summary = %q{A Google+ OAuth2 solution for Omniauth} | ||
spec.description = spec.summary | ||
spec.homepage = "http://samdunne.github.com/omniauth-gplus" | ||
spec.license = "MIT" | ||
Gem::Specification.new do |s| | ||
s.name = 'omniauth-gplus' | ||
s.version = OmniAuth::GPlus::VERSION | ||
s.authors = %w(Kurtis Rainbolt-Greene Sam Dunne) | ||
s.email = %w(me@kurtisrainboltgreene.name sam@sam-dunne.com) | ||
s.summary = 'A Google+ OAuth2 solution for Omniauth' | ||
s.description = s.summary | ||
s.homepage = 'http://samdunne.github.com/omniauth-gplus' | ||
s.license = 'MIT' | ||
|
||
spec.files = `git ls-files`.split($/) | ||
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } | ||
spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) | ||
spec.require_paths = ["lib"] | ||
s.files = `git ls-files`.split("\n") | ||
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") | ||
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) } | ||
s.require_paths = ['lib'] | ||
|
||
spec.add_runtime_dependency "omniauth-oauth2", '~> 1.1' | ||
spec.add_development_dependency "bundler" | ||
spec.add_development_dependency "rake" | ||
spec.add_development_dependency "mocha" | ||
spec.add_development_dependency 'yard' | ||
spec.add_development_dependency 'kramdown' | ||
spec.add_development_dependency 'pry' | ||
spec.add_development_dependency 'coveralls' | ||
s.add_runtime_dependency 'omniauth-oauth2', '~> 1.1' | ||
|
||
s.add_development_dependency 'bundler' | ||
s.add_development_dependency 'rake' | ||
s.add_development_dependency 'mocha' | ||
s.add_development_dependency 'yard' | ||
s.add_development_dependency 'kramdown' | ||
s.add_development_dependency 'pry' | ||
s.add_development_dependency 'coveralls' | ||
s.add_development_dependency 'rubocop' | ||
|
||
if RUBY_PLATFORM == 'rbx' | ||
spec.add_development_dependency 'racc' | ||
spec.add_development_dependency 'rubinius-coverage', github: 'rubinius/rubinius-coverage' | ||
spec.add_development_dependency 'rubysl' | ||
s.add_development_dependency 'racc' | ||
s.add_development_dependency 'rubinius-coverage', github: 'rubinius/rubinius-coverage' | ||
s.add_development_dependency 'rubysl' | ||
end | ||
end |
Oops, something went wrong.