• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rbCAS / CASino / 171
98%
master: 97%

Build:
Build:
LAST BUILD BRANCH: v4.1.2
DEFAULT BRANCH: master
Ran 26 Oct 2013 12:49AM UTC
Jobs 2
Files 77
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
171

Pull #16

travis-ci

dlindahl
Adds CurrentUser processor

This extracts the "find user by TGT" logic that exists in all of the processors
and puts it in a CurrentUser processor.

This processor is automatically run in a :before_filter for most controller
actions. If a user is found, then the User record is assigned to the
@current_user instance variable. From there it can be passed into the other
processors as well as be used in the various CASino views.

An additional benefit of this feature is that the host application can also
use this value in its own views:

```ruby
class WidgetsController < ApplicationController
  include CASino::CurrentUserHelper

  def index
    # ...
  end
end

<div class="widgets">
  <% if user_signed_in? %>
    <%= debug current_user %>
  <% end %>
</div>
```

* Adds CurrentUser processor to encapsulate all user look-up based on TGT
  values

* Provides #current_user and #user_signed_in? controller helper methods

* Refactored some more complicated internal logic out into private methods
  for a handful of processors

fu
Pull Request #16: Adds CurrentUser processor

194 of 194 new or added lines in 27 files covered. (100.0%)

1061 of 1085 relevant lines covered (97.79%)

45.52 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
app/helpers/casino/current_user_helper.rb
1
100.0
app/listeners/casino/current_user_listener.rb
1
100.0
app/processors/casino/processor_concern/current_user.rb
Jobs
ID Job ID Ran Files Coverage
1 171.1 (1.9.3) 26 Oct 2013 12:49AM UTC 0
97.18
Travis Job 171.1
2 171.2 (2.0.0) 26 Oct 2013 12:52AM UTC 0
97.79
Travis Job 171.2
Source Files on build 171
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #171
  • Pull Request #16
  • PR Base - release/2.0 (#169)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc