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

rbCAS / CASino / 172 / 2
98%
master: 97%

Build:
Build:
LAST BUILD BRANCH: v4.1.2
DEFAULT BRANCH: master
Ran 26 Oct 2013 12:54AM UTC
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

26 Oct 2013 12:50AM UTC coverage: 97.788% (-0.1%) from 97.885%
2.0.0

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
Pull Request #16: Adds CurrentUser processor

1061 of 1085 relevant lines covered (97.79%)

22.76 hits per line

Source Files on job 172.2 (2.0.0)
  • Tree
  • List 0
  • Changed 25
  • Source Changed 21
  • Coverage Changed 21
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 172
  • Travis Job 172.2
  • b6d4638b on github
  • Prev Job for 2.0.0 on release/2.0 (#169.2)
  • Next Job for 2.0.0 on release/2.0 (#173.2)
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