Skip to content

Commit 857885a

Browse files
committed
Initial commit
0 parents  commit 857885a

File tree

9 files changed

+178
-0
lines changed

9 files changed

+178
-0
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/.bundle/
2+
/.yardoc
3+
/Gemfile.lock
4+
/_yardoc/
5+
/coverage/
6+
/doc/
7+
/pkg/
8+
/spec/reports/
9+
/tmp/

.rubocop.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
Metrics/BlockNesting:
2+
Max: 2
3+
4+
Metrics/ClassLength:
5+
CountComments: false
6+
Max: 120
7+
8+
Metrics/PerceivedComplexity:
9+
Max: 8
10+
11+
Metrics/ModuleLength:
12+
CountComments: false
13+
Max: 120
14+
15+
Metrics/ParameterLists:
16+
Max: 3
17+
CountKeywordArgs: true
18+
19+
Metrics/AbcSize:
20+
Enabled: false
21+
22+
Style/CollectionMethods:
23+
PreferredMethods:
24+
collect: 'map'
25+
reduce: 'inject'
26+
find: 'detect'
27+
find_all: 'select'
28+
29+
Style/Documentation:
30+
Enabled: false
31+
32+
Style/DotPosition:
33+
EnforcedStyle: trailing
34+
35+
Style/DoubleNegation:
36+
Enabled: false
37+
38+
Style/EachWithObject:
39+
Enabled: false
40+
41+
Style/Encoding:
42+
Enabled: false
43+
44+
Style/HashSyntax:
45+
EnforcedStyle: hash_rockets
46+
47+
Style/Lambda:
48+
Enabled: false
49+
50+
Style/SingleSpaceBeforeFirstArg:
51+
Enabled: false
52+
53+
Style/SpaceAroundOperators:
54+
MultiSpaceAllowedForOperators:
55+
- "="
56+
- "=>"
57+
- "||"
58+
- "||="
59+
- "&&"
60+
- "&&="
61+
62+
Style/SpaceInsideHashLiteralBraces:
63+
EnforcedStyle: no_space
64+
65+
Style/StringLiterals:
66+
EnforcedStyle: double_quotes
67+
68+
Style/TrivialAccessors:
69+
Enabled: false

CODE_OF_CONDUCT.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Contributor Code of Conduct
2+
3+
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4+
5+
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, age, or religion.
6+
7+
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8+
9+
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. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10+
11+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12+
13+
This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)

Gemfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
source "https://rubygems.org"
2+
3+
# Specify your gem's dependencies in omniauth-rails.gemspec
4+
gemspec
5+
6+
gem "rake"
7+
gem "rubocop"

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 Erik Michaels-Ober, Douwe Maan
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# OmniAuthRails
2+
3+
**Ruby on Rails extensions to OmniAuth**
4+
5+
## Installation
6+
7+
Add this line to your application's Gemfile:
8+
9+
```ruby
10+
gem 'omniauth-rails'
11+
```
12+
13+
And then execute:
14+
15+
$ bundle
16+
17+
Or install it yourself as:
18+
19+
$ gem install omniauth-rails
20+
21+
## Contributing
22+
23+
1. Fork it (https://github.com/intridea/omniauth-rails/fork)
24+
2. Create your feature branch (`git checkout -b my-new-feature`)
25+
3. Commit your changes (`git commit -am 'Add some feature'`)
26+
4. Push to the branch (`git push origin my-new-feature`)
27+
5. Create a new Pull Request

Rakefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
require "bundler/gem_tasks"
2+
require "rubocop/rake_task"
3+
4+
RuboCop::RakeTask.new
5+
6+
task :default => :rubocop

lib/omniauth-rails/version.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module OmniAuthRails
2+
VERSION = "1.0.0"
3+
end

omniauth-rails.gemspec

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# coding: utf-8
2+
lib = File.expand_path("../lib", __FILE__)
3+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4+
require "omniauth-rails/version"
5+
6+
Gem::Specification.new do |spec|
7+
spec.name = "omniauth-rails"
8+
spec.version = OmniAuthRails::VERSION
9+
spec.authors = ["Erik Michaels-Ober", "Douwe Maan"]
10+
11+
12+
spec.description = "Ruby on Rails extensions to OmniAuth"
13+
spec.summary = spec.description
14+
spec.homepage = "https://github.com/intridea/omniauth-rails"
15+
spec.license = "MIT"
16+
17+
spec.files = `git ls-files -z`.split("\x0")
18+
spec.require_paths = ["lib"]
19+
20+
spec.add_dependency "omniauth"
21+
spec.add_dependency "rails"
22+
spec.add_development_dependency "bundler", "~> 1.9"
23+
end

0 commit comments

Comments
 (0)