Commit db501c959a90c7d577504014bdf3cb9d8c4b5749
1 parent
5fd0ff8d
Exists in
master
and in
2 other branches
Added the structure of omniauth-remote-user gem
Signed-off-by: Lucas Kanashiro <kanashiro.duarte@gmail.com> Signed-off-by: Thiago Ribeiro <thiagitosouza@hotmail.com> Signed-off-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
Showing
8 changed files
with
86 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,14 @@ | @@ -0,0 +1,14 @@ | ||
1 | +require 'omniauth' | ||
2 | + | ||
3 | +module Omniauth | ||
4 | + module Stratagies | ||
5 | + autoload :RemoteUser, 'omniauth/stratagies/remote_user' | ||
6 | + end | ||
7 | + | ||
8 | + module Remote_user | ||
9 | + autoload :Model, 'omniauth/remote_user/model' | ||
10 | + module Models | ||
11 | + autoload :ActiveRecord, 'omniauth/remote_user/models/active_record' | ||
12 | + end | ||
13 | +end | ||
14 | + |
@@ -0,0 +1,26 @@ | @@ -0,0 +1,26 @@ | ||
1 | +require File.dirname(__FILE__) + '/lib/omniauth_remote_user/version' | ||
2 | + | ||
3 | +Gem::Specification.new do |gem| | ||
4 | + gem.add_runtime_dependency 'omniauth' | ||
5 | + | ||
6 | + gem.add_runtime_dependency 'simplecov' | ||
7 | + gem.add_runtime_dependency 'bundler' | ||
8 | + gem.add_runtime_dependency 'rake' | ||
9 | + gem.add_runtime_dependency 'rspec' | ||
10 | + gem.add_runtime_dependency 'rack-test' | ||
11 | + gem.add_runtime_dependency 'activerecord' | ||
12 | + | ||
13 | + gem.name = 'omniauth-remote-user' | ||
14 | + gem.version = Omniauth::Remote_user::VERSION | ||
15 | + gem.description = %q{Authentication with remote user HTTP header for Omniauth.} | ||
16 | + gem.summary = gem.description | ||
17 | + gem.email = ['kanashiro.duarte@gmail.com', 'thiagitosouza@gmail.com', 'rodrigosiqueiramelo@gmail.com'] | ||
18 | + gem.homepage = 'http://beta.softwarepublico.gov.br/gitlab/softwarepublico/omiauth-remote-user' | ||
19 | + gem.authors = ['Lucas Kanashiro', 'Thiago Ribeiro', 'Rodrigo Siqueira'] | ||
20 | + gem.require_paths = %w(lib) | ||
21 | + gem.files = `git ls-files -z`.split("\x0").reject {|f| f.start_with?('spec/')} | ||
22 | + gem.test_files = `git ls-files -- {test,spec,feature}/*`.split("\n") | ||
23 | + gem.license = %w(GPLv3) | ||
24 | + gem.required_rubygems_version = '>= 1.3.5' | ||
25 | +end | ||
26 | + |
@@ -0,0 +1,14 @@ | @@ -0,0 +1,14 @@ | ||
1 | +require 'rubygems' | ||
2 | +require 'bundler' | ||
3 | +Bundler.setup :default, :development, :test | ||
4 | + | ||
5 | +require 'simplecov' | ||
6 | +SimpleCov.start | ||
7 | + | ||
8 | +require 'rack/test' | ||
9 | +require 'omniauth/remote_user' | ||
10 | + | ||
11 | +RSpec.configure do |config| | ||
12 | + config.include Rack::Test::Methods | ||
13 | +end | ||
14 | + |