Commit bd2e41b92a107a4370d1a8cb83b8f6bbda4233af

Authored by Antonio Terceiro
1 parent 312626c3

Reorganize plugin files to make it work on Rails apps

lib/omniauth-remote-user.rb 0 → 100644
... ... @@ -0,0 +1,2 @@
  1 +require 'omniauth-remote-user/version'
  2 +require 'omniauth/remote-user'
... ...
lib/omniauth-remote-user/version.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +module Omniauth
  2 + module RemoteUser
  3 + VERSION = '0.0.1'
  4 + end
  5 +end
... ...
lib/omniauth/remote-user.rb 0 → 100644
... ... @@ -0,0 +1,8 @@
  1 +require 'omniauth'
  2 +require 'json'
  3 +
  4 +module OmniAuth
  5 + module Strategies
  6 + autoload :RemoteUser, 'omniauth/strategies/remote_user'
  7 + end
  8 +end
... ...
lib/omniauth/remote_user.rb
... ... @@ -1,8 +0,0 @@
1   -require 'omniauth'
2   -require 'json'
3   -
4   -module OmniAuth
5   - module Strategies
6   - autoload :RemoteUser, 'omniauth/strategies/remote_user'
7   - end
8   -end
lib/omniauth_remote_user.rb
... ... @@ -1,2 +0,0 @@
1   -require 'omniauth_remote_user/version'
2   -require 'omniauth/remote_user'
lib/omniauth_remote_user/version.rb
... ... @@ -1,5 +0,0 @@
1   -module Omniauth
2   - module Remote_user
3   - VERSION = '0.0.1'
4   - end
5   -end
omniauth-remote-user.gemspec
1   -require File.dirname(__FILE__) + '/lib/omniauth_remote_user/version'
  1 +require File.dirname(__FILE__) + '/lib/omniauth-remote-user/version'
2 2  
3 3 Gem::Specification.new do |gem|
4 4 gem.add_runtime_dependency 'omniauth'
... ... @@ -11,8 +11,8 @@ Gem::Specification.new do |gem|
11 11 gem.add_runtime_dependency 'activerecord'
12 12  
13 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.}
  14 + gem.version = Omniauth::RemoteUser::VERSION
  15 + gem.description = %q{Authentication with Remote-User HTTP header for Omniauth.}
16 16 gem.summary = gem.description
17 17 gem.email = ['kanashiro.duarte@gmail.com', 'thiagitosouza@gmail.com', 'rodrigosiqueiramelo@gmail.com']
18 18 gem.homepage = 'http://beta.softwarepublico.gov.br/gitlab/softwarepublico/omiauth-remote-user'
... ...