casino 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- casino (1.2.0)
5
- casino_core (~> 1.3.0)
4
+ casino (1.2.1)
5
+ casino_core (~> 1.3.2)
6
6
  http_accept_language (~> 2.0.0.pre)
7
7
  jquery-rails (~> 2.1)
8
8
  rails (~> 3.2.9)
@@ -40,7 +40,7 @@ GEM
40
40
  addressable (2.3.2)
41
41
  arel (3.0.2)
42
42
  builder (3.0.4)
43
- casino_core (1.3.1)
43
+ casino_core (1.3.2)
44
44
  activerecord (~> 3.2.9)
45
45
  addressable (~> 2.3)
46
46
  faraday (~> 0.8)
@@ -1,3 +1,3 @@
1
1
  <div id="footer">
2
- Powered by CASino
2
+ <%= CASinoCore::Settings.frontend[:footer_text].html_safe %>
3
3
  </div>
@@ -11,7 +11,7 @@
11
11
  <%= t('two_factor_authenticators.instructions') %>
12
12
  </p>
13
13
  <div id="qr-code">
14
- <img src="http://chart.apis.google.com/chart?cht=qr&chs=250x250&chl=<%= u "otpauth://totp/CASino?secret=#{@two_factor_authenticator.secret}" %>" height="250" width="250"><br />
14
+ <img src="http://chart.apis.google.com/chart?cht=qr&chs=250x250&chl=<%= u "otpauth://totp/#{u CASinoCore::Settings.frontend[:sso_name] + ': ' + @two_factor_authenticator.user.username}?secret=#{@two_factor_authenticator.secret}" %>" height="250" width="250"><br />
15
15
  </div>
16
16
  <p>
17
17
  <%= t('two_factor_authenticators.secret') %>: <%= @two_factor_authenticator.secret %>
@@ -1,7 +1,7 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
3
  <head>
4
- <title>CASino</title>
4
+ <title><%= CASinoCore::Settings.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
7
  <%= javascript_include_tag "application" %>
data/casino.gemspec CHANGED
@@ -29,5 +29,5 @@ Gem::Specification.new do |s|
29
29
  s.add_runtime_dependency 'rails', '~> 3.2.9'
30
30
  s.add_runtime_dependency 'jquery-rails', '~> 2.1'
31
31
  s.add_runtime_dependency 'http_accept_language', '~> 2.0.0.pre'
32
- s.add_runtime_dependency 'casino_core', '~> 1.3.0'
32
+ s.add_runtime_dependency 'casino_core', '~> 1.3.2'
33
33
  end
@@ -0,0 +1,9 @@
1
+ require 'casino_core/settings'
2
+
3
+ # default config
4
+ config = {
5
+ sso_name: 'CASino',
6
+ footer_text: 'Powered by <a href="http://rbcas.com/">CASino</a>'
7
+ }
8
+
9
+ CASinoCore::Settings.add_defaults :frontend, config
@@ -1,3 +1,3 @@
1
1
  module CASino
2
- VERSION = '1.2.0'
2
+ VERSION = '1.2.1'
3
3
  end
@@ -7,6 +7,9 @@ defaults: &defaults
7
7
  proxy_ticket:
8
8
  lifetime_unconsumed: 300
9
9
  lifetime_consumed: 86400
10
+ frontend:
11
+ sso_name: "CASino"
12
+ footer_text: "Powered by <a href=\"http://rbcas.com/\">CASino</a>"
10
13
 
11
14
  development:
12
15
  <<: *defaults
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: 1.2.0
4
+ version: 1.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -175,7 +175,7 @@ dependencies:
175
175
  requirements:
176
176
  - - ~>
177
177
  - !ruby/object:Gem::Version
178
- version: 1.3.0
178
+ version: 1.3.2
179
179
  type: :runtime
180
180
  prerelease: false
181
181
  version_requirements: !ruby/object:Gem::Requirement
@@ -183,7 +183,7 @@ dependencies:
183
183
  requirements:
184
184
  - - ~>
185
185
  - !ruby/object:Gem::Version
186
- version: 1.3.0
186
+ version: 1.3.2
187
187
  description: CASino is a simple CAS (Central Authentication Service) server using
188
188
  CASinoCore as its backend.
189
189
  email:
@@ -234,6 +234,7 @@ files:
234
234
  - casino-public_cert.pem
235
235
  - casino.gemspec
236
236
  - config/.gitignore
237
+ - config/initializers/frontend_config.rb
237
238
  - config/initializers/inflections.rb
238
239
  - config/initializers/mime_types.rb
239
240
  - config/initializers/wrap_parameters.rb
@@ -346,7 +347,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
346
347
  version: '0'
347
348
  segments:
348
349
  - 0
349
- hash: -115436971097524055
350
+ hash: 1146680884824081593
350
351
  required_rubygems_version: !ruby/object:Gem::Requirement
351
352
  none: false
352
353
  requirements:
@@ -355,7 +356,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
355
356
  version: '0'
356
357
  segments:
357
358
  - 0
358
- hash: -115436971097524055
359
+ hash: 1146680884824081593
359
360
  requirements: []
360
361
  rubyforge_project:
361
362
  rubygems_version: 1.8.24
metadata.gz.sig CHANGED
@@ -1,5 +1,2 @@
1
- ��jc� x xi��E
2
- ��~�IOe��C;��z��SiH��'BL��� ��u��E7�V9� ����
3
- �����W�im+���N���� F���pj�UMn�, vM���G �e�h�s�D+y-L��'a�
4
- ����p�C���4�
5
- �!���T���j����|�Y1��-
1
+ .=�dV��X*�R���hé}ി���e�Dn�lA=D��m�%Z�4��H@ ��<fqqp�>��8���8xu� ��*�>J��|<u@#�}�@�5{<� ݇f9��O��,�����|�'jW�S:f�s[�&�PZ.�������Į��iV㠙
2
+ ���W疏� ���|����;$XU~�:C��j'Am2Qp����\v;�Ӵ}[