casino 3.0.1 → 3.0.2

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.
@@ -2,3 +2,4 @@ language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
4
  - 2.0.0
5
+ - 2.1.0
@@ -1 +1,10 @@
1
1
  // Place all the behaviors and hooks related to the matching controller here.
2
+ (function(win) {
3
+ if(!win.CASino) {
4
+ win.CASino = { baseUrl: '/' };
5
+ }
6
+
7
+ win.CASino.url = function(path) {
8
+ return win.CASino.baseUrl + path;
9
+ }
10
+ })(this);
@@ -1,5 +1,5 @@
1
1
  (function(win, doc) {
2
- var url = '/login',
2
+ var url = win.CASino.url('login'),
3
3
  cookie_regex = /(^|;)\s*tgt=/,
4
4
  ready_bound = false;
5
5
 
@@ -8,7 +8,6 @@
8
8
  service = serviceEl ? serviceEl.getAttribute('value') : null;
9
9
 
10
10
  if(cookie_regex.test(doc.cookie)) {
11
- url = '/login';
12
11
  if(service) {
13
12
  url += '?service=' + encodeURIComponent(service);
14
13
  }
@@ -4,6 +4,7 @@
4
4
  <title><%= CASino.config.frontend[:sso_name] %></title>
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
6
6
  <%= stylesheet_link_tag "application", :media => "all" %>
7
+ <%= javascript_tag "window.CASino = { baseUrl: '#{root_path}' };" %>
7
8
  <%= javascript_include_tag "application" %>
8
9
  <%= csrf_meta_tags %>
9
10
  <%= favicon_link_tag 'favicon.png', type: 'image/png' %>
@@ -0,0 +1,5 @@
1
+ class ChangeUserAgentToText < ActiveRecord::Migration
2
+ def change
3
+ change_column :casino_ticket_granting_tickets, :user_agent, :text
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module CASino
2
- VERSION = '3.0.1'
2
+ VERSION = '3.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: casino
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-07-30 00:00:00.000000000 Z
14
+ date: 2014-08-27 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: capybara
@@ -405,6 +405,7 @@ files:
405
405
  - db/migrate/20131022110146_cleanup_indexes.rb
406
406
  - db/migrate/20131022110246_fix_long_index_names.rb
407
407
  - db/migrate/20131022110346_change_service_to_text.rb
408
+ - db/migrate/20140821142611_change_user_agent_to_text.rb
408
409
  - lib/assets/.gitkeep
409
410
  - lib/casino.rb
410
411
  - lib/casino/authenticator.rb