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

rbCAS / CASino
98%
master: 97%

Build:
Build:
LAST BUILD BRANCH: v4.1.2
DEFAULT BRANCH: master
Repo Added 12 Mar 2013 08:02PM UTC
Files 45
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

LAST BUILD ON BRANCH release/2.0
branch: release/2.0
CHANGE BRANCH
x
Reset
  • release/2.0
  • 2.0
  • 2.0-stable
  • 31-remove-ujs-dependency
  • 4.0.3
  • casino-4
  • fix-indexes
  • fix-service-length
  • master
  • token-auth
  • urls-with-spaces
  • v2.0.0
  • v2.0.2
  • v2.0.3
  • v2.0.4
  • v2.0.7
  • v3.0.0
  • v3.0.1
  • v3.0.2
  • v3.0.3
  • v3.0.4
  • v4.0.0
  • v4.0.0.pre.1
  • v4.0.0.pre.2
  • v4.0.1
  • v4.0.3
  • v4.1.0
  • v4.1.1
  • v4.1.2

pending completion
185

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

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

1059 of 1083 relevant lines covered (97.78%)

45.6 hits per line

Relevant lines Covered
Build:
Build:
1083 RELEVANT LINES 1059 COVERED LINES
45.6 HITS PER LINE
Source Files on release/2.0
  • List 0
  • Changed 50
  • Source Changed 42
  • Coverage Changed 42
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
185 release/2.0 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 ... Pull #16 01 Nov 2013 02:42PM UTC dlindahl travis-ci pending completion  
179 release/2.0 Make cookie check work again push 29 Oct 2013 04:07PM UTC pencil travis-ci pending completion  
178 release/2.0 Merge pull request #27 from dlindahl/features/remove_jquery_dependency Removes jQuery dependency push 29 Oct 2013 03:14PM UTC pencil travis-ci pending completion  
177 release/2.0 Merge pull request #30 from dlindahl/features/dont_set_yaml_engine Don't override Ruby's YAML Engine push 28 Oct 2013 10:10AM UTC pencil travis-ci pending completion  
176 release/2.0 Merge pull request #29 from dlindahl/features/remove_more_inflections Removes additional inflection acronym (#28 continued) push 28 Oct 2013 08:39AM UTC pencil travis-ci pending completion  
175 release/2.0 Removes explicit YAML engine declaration Pull #30 26 Oct 2013 07:39PM UTC dlindahl travis-ci pending completion  
174 release/2.0 Removes jQuery and CoffeeScript dependencies jQuery Rails is now at v3, so forcing a lower version means that some users will run into dependency conflicts when installing CASino (especially Rails 4 users) Additionally, not only do some users no... Pull #27 26 Oct 2013 01:29AM UTC dlindahl travis-ci pending completion  
173 release/2.0 Removes inflection acronym (#28 continued) I missed another inflection acronym definition for "API" Pull #29 26 Oct 2013 12:59AM UTC dlindahl travis-ci pending completion  
172 release/2.0 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 ... Pull #16 26 Oct 2013 12:50AM UTC dlindahl travis-ci pending completion  
171 release/2.0 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 ... Pull #16 26 Oct 2013 12:49AM UTC dlindahl travis-ci pending completion  
See All Builds (292)
  • Repo on GitHub
  • CI Project
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

© 2025 Coveralls, Inc