casino 2.0.6 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -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' %>
@@ -26,7 +26,7 @@ CASino::Engine.routes.draw do
26
26
  end
27
27
  end
28
28
 
29
- root to: redirect('/login')
29
+ root to: redirect('login')
30
30
 
31
31
  # The priority is based upon order of creation:
32
32
  # first created -> highest priority.
@@ -1,3 +1,3 @@
1
1
  module CASino
2
- VERSION = '2.0.6'
2
+ VERSION = '2.0.7'
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: 2.0.6
4
+ version: 2.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,35 +10,8 @@ authors:
10
10
  - Samuel Sieg
11
11
  autorequire:
12
12
  bindir: bin
13
- cert_chain:
14
- - !binary |-
15
- LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURLakNDQWhLZ0F3SUJB
16
- Z0lCQURBTkJna3Foa2lHOXcwQkFRVUZBREE3TVEwd0N3WURWUVFEREFScGJt
17
- WnYKTVJVd0V3WUtDWkltaVpQeUxHUUJHUllGY21KallYTXhFekFSQmdvSmtp
18
- YUprL0lzWkFFWkZnTmpiMjB3SGhjTgpNVE13TWpBeU1qSXlOakkyV2hjTk1U
19
- UXdNakF5TWpJeU5qSTJXakE3TVEwd0N3WURWUVFEREFScGJtWnZNUlV3CkV3
20
- WUtDWkltaVpQeUxHUUJHUllGY21KallYTXhFekFSQmdvSmtpYUprL0lzWkFF
21
- WkZnTmpiMjB3Z2dFaU1BMEcKQ1NxR1NJYjNEUUVCQVFVQUE0SUJEd0F3Z2dF
22
- S0FvSUJBUURiZG1OeTRoZU5SZUc4TFhCMm5ha3JwQXJrcVd2dwpqVm54WE1M
23
- UzZUNXFlYmZMV2FsMVBSb1BIemJoUkdtQTN1Q1lZWXVWdVh2NlYxVm1DdG5N
24
- MG1qM1lnTjZoNjFECkQrV25oMUtUOHNVWWhSQjM2TU50bWllclMxRWNNeXZS
25
- dWpYUkxrNngwNkFiejliSmFkeUVXN0RTNFZrcEN6OW4KZjlNRW5IcUlseVFC
26
- UFAzekhzRHlNclRySUJ1dkRXUHIrYUFNS3FJWExqcVdlcDFFYmQvL3BwTmNT
27
- aVZGODdzKwplMEphRmU3LzFhbHhJUEdPYWsvY0dFdm9tNDJUTEdkUEt5dTBY
28
- amsybi9jV1RBbEJzaEZQT1FTM2hrczZSaDhzClZ6d2owTFF2VTByaFhKV0hO
29
- YjZXdWpLaml3c3Z6U1RsR3lkTndJRU5wckpJQVFKc2FJWDNSUUluQWdNQkFB
30
- R2oKT1RBM01Ba0dBMVVkRXdRQ01BQXdIUVlEVlIwT0JCWUVGS3lML1V6R1U4
31
- SVpuZU9qcjczWFBDTFpKN1F1TUFzRwpBMVVkRHdRRUF3SUVzREFOQmdrcWhr
32
- aUc5dzBCQVFVRkFBT0NBUUVBVUsrZnVraS9nVWhJbEpxTTI0TkNzL3kzClNv
33
- cUNHUDB6K2M1ZytCTXUzc2MzeElOL21IK0hZbFBhRWE2V2o0YndtU1ZnVGhh
34
- WjU0T3NtUnlaSUsxVm9BeW0KVDR6T3FDd3QwdHdUMmF6MVA2WFRoVk1FZWJM
35
- alpEYnVRL29RelUvZkE2RFlxam5mbVlOdGdwNXFZWDZDS05Kegp3M1lSS3JL
36
- Mlg2cVlZSGNISS9LTDV3YzFET24rVU5VNGVmbVAwVlZkNVVOZlI0MElCTE50
37
- eFg5Nlg5WVRYT0hFCndRc0xpK0xqbnorVWFPUmsxZHhabGNYWUdjMzR3Rmcx
38
- b1VSdnUwRzgvWXlIVUFtSVUvV0tyanIxYmdjZjFWUnYKUjRLRDFNblVWL3Y1
39
- MDJwaU1sWG1qeE9XZGJLOHl2UUVIa3N1L3pqYkNqU3UrTTJrd0ZtV0dzeDVu
40
- eCtWZHc9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
41
- date: 2014-03-20 00:00:00.000000000 Z
13
+ cert_chain: []
14
+ date: 2014-09-11 00:00:00.000000000 Z
42
15
  dependencies:
43
16
  - !ruby/object:Gem::Dependency
44
17
  name: capybara
data.tar.gz.sig DELETED
Binary file
metadata.gz.sig DELETED
@@ -1,2 +0,0 @@
1
-
2
- ��Gx��cͥ�W��?j����/�w���pZO�ޘ�{�C4��K�.��7�[�#t$�ؚ0!r�e��~��fPM�xF6�|��*.N���Q�Qv�|{O ?�"����=th/4V�Yޠ����7?�k_B�4�p�r]�}�"b�0THQ��ԔxP�RxC��dݡ0~/�}��J��YT&�G��/^����