Commit db501c959a90c7d577504014bdf3cb9d8c4b5749

Authored by Lucas Kanashiro
1 parent 5fd0ff8d

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>
Gemfile 0 → 100644
... ... @@ -0,0 +1,13 @@
  1 +source "http://rubygems.org"
  2 +
  3 +gemspec
  4 +
  5 +group :development, :test do
  6 + gem 'guard'
  7 + gem 'guard-rspec'
  8 + gem 'guard-bundler'
  9 + gem 'growl'
  10 + gem 'rb-fsevent'
  11 + gem 'simplecov'
  12 +end
  13 +
... ...
Rakefile 0 → 100644
... ... @@ -0,0 +1,10 @@
  1 +require 'bundler'
  2 +Bundler::GemHelper.install_tasks
  3 +
  4 +require 'rspec/core/rake_test'
  5 +desc "Run specs."
  6 +RSpec::Core::RakeTask.new(:spec)
  7 +
  8 +task :default => :spec
  9 +task :test => :spec
  10 +
... ...
lib/omniauth/remote_user.rb 0 → 100644
... ... @@ -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 +
... ...
lib/omniauth/strategies/remote_user.rb 0 → 100644
lib/omniauth_remote_user.rb 0 → 100644
... ... @@ -0,0 +1,3 @@
  1 +require 'omniauth-remote-user/version'
  2 +require 'omniauth/remote-user'
  3 +
... ...
lib/omniauth_remote_user/version.rb 0 → 100644
... ... @@ -0,0 +1,6 @@
  1 +module Omniauth
  2 + module Remote_user
  3 + VERSION = '0.0.1'
  4 + end
  5 +end
  6 +
... ...
omniauth-remote-user.gemspec 0 → 100644
... ... @@ -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 +
... ...
spec/spec_helper.rb 0 → 100644
... ... @@ -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 +
... ...