shibboleth_auth 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +2 -1
 - data/app/models/shibboleth_user.rb +1 -1
 - data/shibboleth_auth.gemspec +1 -1
 - metadata +5 -5
 
    
        data/README.rdoc
    CHANGED
    
    | 
         @@ -10,7 +10,7 @@ It works only with Rails 3. 
     | 
|
| 
       10 
10 
     | 
    
         
             
            2. Generate views and initializer: rails g shibboleth_auth:install
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
12 
     | 
    
         
             
            3. Modify your routes:
         
     | 
| 
       13 
     | 
    
         
            -
               
     | 
| 
      
 13 
     | 
    
         
            +
              YourApplication::Application.routes.draw do
         
     | 
| 
       14 
14 
     | 
    
         
             
                ...
         
     | 
| 
       15 
15 
     | 
    
         
             
                shibboleth_routes
         
     | 
| 
       16 
16 
     | 
    
         
             
                ...
         
     | 
| 
         @@ -21,6 +21,7 @@ It works only with Rails 3. 
     | 
|
| 
       21 
21 
     | 
    
         
             
                @current_user ||= ShibbolethAuth::ShibbolethUser.new(session[:shibboleth_debug_env] || request.env)
         
     | 
| 
       22 
22 
     | 
    
         
             
              end
         
     | 
| 
       23 
23 
     | 
    
         | 
| 
      
 24 
     | 
    
         
            +
            5. You can now access username, common_name, groups and 
         
     | 
| 
       24 
25 
     | 
    
         
             
            == ToDos
         
     | 
| 
       25 
26 
     | 
    
         
             
            * Write Cucumber features
         
     | 
| 
       26 
27 
     | 
    
         
             
            * Write RSpecs
         
     | 
| 
         @@ -3,7 +3,7 @@ module ShibbolethAuth 
     | 
|
| 
       3 
3 
     | 
    
         
             
                attr_reader :username, :common_name, :groups, :affiliations
         
     | 
| 
       4 
4 
     | 
    
         | 
| 
       5 
5 
     | 
    
         
             
                def strip_group_prefix groups
         
     | 
| 
       6 
     | 
    
         
            -
                  groups = groups.split(';')
         
     | 
| 
      
 6 
     | 
    
         
            +
                  groups = groups.split(';') if group.class == String
         
     | 
| 
       7 
7 
     | 
    
         
             
                  return groups.select do |s|
         
     | 
| 
       8 
8 
     | 
    
         
             
                    s[0...ShibbolethAuth::GroupPrefixField.length] == ShibbolethAuth::GroupPrefixField
         
     | 
| 
       9 
9 
     | 
    
         
             
                  end.map do |s|
         
     | 
    
        data/shibboleth_auth.gemspec
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,13 +1,13 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification 
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: shibboleth_auth
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version 
         
     | 
| 
       4 
     | 
    
         
            -
              hash:  
     | 
| 
       5 
     | 
    
         
            -
              prerelease:  
     | 
| 
      
 4 
     | 
    
         
            +
              hash: 17
         
     | 
| 
      
 5 
     | 
    
         
            +
              prerelease: 
         
     | 
| 
       6 
6 
     | 
    
         
             
              segments: 
         
     | 
| 
       7 
7 
     | 
    
         
             
              - 0
         
     | 
| 
       8 
8 
     | 
    
         
             
              - 3
         
     | 
| 
       9 
     | 
    
         
            -
              -  
     | 
| 
       10 
     | 
    
         
            -
              version: 0.3. 
     | 
| 
      
 9 
     | 
    
         
            +
              - 1
         
     | 
| 
      
 10 
     | 
    
         
            +
              version: 0.3.1
         
     | 
| 
       11 
11 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       12 
12 
     | 
    
         
             
            authors: 
         
     | 
| 
       13 
13 
     | 
    
         
             
            - Dominik Masur
         
     | 
| 
         @@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       144 
144 
     | 
    
         
             
            requirements: []
         
     | 
| 
       145 
145 
     | 
    
         | 
| 
       146 
146 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       147 
     | 
    
         
            -
            rubygems_version: 1. 
     | 
| 
      
 147 
     | 
    
         
            +
            rubygems_version: 1.5.0
         
     | 
| 
       148 
148 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       149 
149 
     | 
    
         
             
            specification_version: 3
         
     | 
| 
       150 
150 
     | 
    
         
             
            summary: Support for Shibboleth Auth
         
     |