synapse-rubycas-server 1.1.4 → 1.1.5.pre

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.
Files changed (118) hide show
  1. data/Gemfile +21 -2
  2. data/Rakefile +6 -0
  3. data/bin/cap +16 -0
  4. data/bin/capify +16 -0
  5. data/bin/foreman +16 -0
  6. data/bin/lessc +16 -0
  7. data/bin/rackup +16 -0
  8. data/bin/rake2thor +16 -0
  9. data/bin/rubycas-server +12 -26
  10. data/bin/therubyracer +16 -0
  11. data/bin/thor +16 -0
  12. data/bin/tilt +16 -0
  13. data/bin/unicorn +16 -0
  14. data/bin/unicorn_rails +16 -0
  15. data/config.ru +2 -1
  16. data/config/deploy.rb +36 -0
  17. data/config/deploy/production.rb +4 -0
  18. data/config/deploy/staging.rb +4 -0
  19. data/config/recipes/base.rb +8 -0
  20. data/config/recipes/git.rb +10 -0
  21. data/config/recipes/nginx.rb +28 -0
  22. data/config/recipes/puma.rb +38 -0
  23. data/config/recipes/rubycas.rb +11 -0
  24. data/config/recipes/templates/nginx.erb +43 -0
  25. data/config/recipes/templates/puma.erb +13 -0
  26. data/config/recipes/templates/rubycas.erb +114 -0
  27. data/config/unicorn/development.rb +14 -0
  28. data/config/unicorn/production.rb +14 -0
  29. data/config/unicorn/staging.rb +14 -0
  30. data/lib/casserver.rb +2 -1
  31. data/lib/casserver/cas.rb +330 -4
  32. data/lib/casserver/server.rb +4 -8
  33. data/lib/casserver/views/_login_form.erb +15 -36
  34. data/lib/casserver/views/layout.erb +40 -4
  35. data/lib/casserver/views/login.erb +13 -27
  36. data/locales/en.yml +17 -3
  37. data/public/app.css +9641 -0
  38. data/public/assets/fontawesome-webfont.eot +0 -0
  39. data/public/assets/fontawesome-webfont.svg +255 -0
  40. data/public/assets/fontawesome-webfont.ttf +0 -0
  41. data/public/assets/fontawesome-webfont.woff +0 -0
  42. data/public/assets/gothamhtf-black-webfont.eot +0 -0
  43. data/public/assets/gothamhtf-black-webfont.svg +241 -0
  44. data/public/assets/gothamhtf-black-webfont.ttf +0 -0
  45. data/public/assets/gothamhtf-black-webfont.woff +0 -0
  46. data/public/assets/gothamhtf-blackitalic-webfont.eot +0 -0
  47. data/public/assets/gothamhtf-blackitalic-webfont.svg +241 -0
  48. data/public/assets/gothamhtf-blackitalic-webfont.ttf +0 -0
  49. data/public/assets/gothamhtf-blackitalic-webfont.woff +0 -0
  50. data/public/assets/gothamhtf-bold-webfont.eot +0 -0
  51. data/public/assets/gothamhtf-bold-webfont.svg +241 -0
  52. data/public/assets/gothamhtf-bold-webfont.ttf +0 -0
  53. data/public/assets/gothamhtf-bold-webfont.woff +0 -0
  54. data/public/assets/gothamhtf-bolditalic-webfont.eot +0 -0
  55. data/public/assets/gothamhtf-bolditalic-webfont.svg +241 -0
  56. data/public/assets/gothamhtf-bolditalic-webfont.ttf +0 -0
  57. data/public/assets/gothamhtf-bolditalic-webfont.woff +0 -0
  58. data/public/assets/gothamhtf-book-webfont.eot +0 -0
  59. data/public/assets/gothamhtf-book-webfont.svg +241 -0
  60. data/public/assets/gothamhtf-book-webfont.ttf +0 -0
  61. data/public/assets/gothamhtf-book-webfont.woff +0 -0
  62. data/public/assets/gothamhtf-bookitalic-webfont.eot +0 -0
  63. data/public/assets/gothamhtf-bookitalic-webfont.svg +241 -0
  64. data/public/assets/gothamhtf-bookitalic-webfont.ttf +0 -0
  65. data/public/assets/gothamhtf-bookitalic-webfont.woff +0 -0
  66. data/public/assets/gothamhtf-light-webfont.eot +0 -0
  67. data/public/assets/gothamhtf-light-webfont.svg +241 -0
  68. data/public/assets/gothamhtf-light-webfont.ttf +0 -0
  69. data/public/assets/gothamhtf-light-webfont.woff +0 -0
  70. data/public/assets/gothamhtf-lightitalic-webfont.eot +0 -0
  71. data/public/assets/gothamhtf-lightitalic-webfont.svg +241 -0
  72. data/public/assets/gothamhtf-lightitalic-webfont.ttf +0 -0
  73. data/public/assets/gothamhtf-lightitalic-webfont.woff +0 -0
  74. data/public/assets/gothamhtf-medium-webfont.eot +0 -0
  75. data/public/assets/gothamhtf-medium-webfont.svg +241 -0
  76. data/public/assets/gothamhtf-medium-webfont.ttf +0 -0
  77. data/public/assets/gothamhtf-medium-webfont.woff +0 -0
  78. data/public/assets/gothamhtf-thin-webfont.eot +0 -0
  79. data/public/assets/gothamhtf-thin-webfont.svg +241 -0
  80. data/public/assets/gothamhtf-thin-webfont.ttf +0 -0
  81. data/public/assets/gothamhtf-thin-webfont.woff +0 -0
  82. data/public/assets/gothamhtf-thinitalic-webfont.eot +0 -0
  83. data/public/assets/gothamhtf-thinitalic-webfont.svg +241 -0
  84. data/public/assets/gothamhtf-thinitalic-webfont.ttf +0 -0
  85. data/public/assets/gothamhtf-thinitalic-webfont.woff +0 -0
  86. data/public/assets/gothamhtf-ultra-webfont.eot +0 -0
  87. data/public/assets/gothamhtf-ultra-webfont.svg +241 -0
  88. data/public/assets/gothamhtf-ultra-webfont.ttf +0 -0
  89. data/public/assets/gothamhtf-ultra-webfont.woff +0 -0
  90. data/public/assets/gothamhtf-ultraitalic-webfont.eot +0 -0
  91. data/public/assets/gothamhtf-ultraitalic-webfont.svg +241 -0
  92. data/public/assets/gothamhtf-ultraitalic-webfont.ttf +0 -0
  93. data/public/assets/gothamhtf-ultraitalic-webfont.woff +0 -0
  94. data/public/assets/gothamhtf-xlight-webfont.eot +0 -0
  95. data/public/assets/gothamhtf-xlight-webfont.svg +241 -0
  96. data/public/assets/gothamhtf-xlight-webfont.ttf +0 -0
  97. data/public/assets/gothamhtf-xlight-webfont.woff +0 -0
  98. data/public/assets/gothamhtf-xlightitalic-webfont.eot +0 -0
  99. data/public/assets/gothamhtf-xlightitalic-webfont.svg +241 -0
  100. data/public/assets/gothamhtf-xlightitalic-webfont.ttf +0 -0
  101. data/public/assets/gothamhtf-xlightitalic-webfont.woff +0 -0
  102. data/public/css/app.css +190 -0
  103. data/public/css/bootstrap-responsive.min.css +9 -0
  104. data/public/css/bootstrap.min.css +9 -0
  105. data/public/img/glyphicons-halflings-white.png +0 -0
  106. data/public/img/glyphicons-halflings.png +0 -0
  107. data/public/js/app.js +0 -0
  108. data/public/js/bootstrap.min.js +6 -0
  109. data/public/js/jquery-1.8.0.js +9227 -0
  110. data/public/themes/app.css +4652 -0
  111. data/public/themes/cas.css +2 -0
  112. data/rubycas-server.gemspec +62 -0
  113. data/spec/casserver_spec.rb +1 -1
  114. data/spec/config/default_config.yml +1 -1
  115. metadata +146 -12
  116. checksums.yaml +0 -15
  117. data/config/unicorn.rb +0 -88
  118. data/public/themes/simple/theme.css +0 -28
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ODQxZTBlYWM3YTJkNWIwMTYyNTc3OGM4OGNjMmJkYjE5YzA5MjVkZQ==
5
- data.tar.gz: !binary |-
6
- OGY5NmJjMGIyOGNjOGQ1NDMxODE0YTRjMTljNTRkMTM3NmU5Y2VkZg==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- ZmQ3MjNmNGE0MjY1NGU4ZDk1ZTBkNDg0Nzk3YjNmODRhNTc3ODQxMWQyNTU1
10
- NjgyNGQ2NDI1YzM3YTIzODAxZjZjY2Q5NmVkNDBhNjUyNTJiYWQ1NWY3NmM5
11
- Yjg1N2FjNTMyNDIxMTM2ZDA3M2M4ZmE0ZWNkNTRlY2I4N2U5MDE=
12
- data.tar.gz: !binary |-
13
- NzQzMjMyN2YyMjI0MTEyNGRkM2U3YzRkNTRjOGFiNDI0Y2YxMTNjZTYxMmYy
14
- NDlmMjAyYjUxODc5ZjVlZjhjYmNlMTQ0MjI0ZDJlNmI1OGI3NjgzYjUzMWJl
15
- ZDZhMzEwNTlhOGI2ODAwOWEyZGI0ZGE0OWUzNTM3NmRmNzNiYzk=
data/config/unicorn.rb DELETED
@@ -1,88 +0,0 @@
1
- # Sample configuration file for Unicorn (not Rack)
2
- #
3
- # See http://unicorn.bogomips.org/Unicorn/Configurator.html for complete
4
- # documentation.
5
- SINATRA_ROOT = `pwd`.strip
6
-
7
- # Use at least one worker per core if you're on a dedicated server,
8
- # more will usually help for _short_ waits on databases/caches.
9
- worker_processes 3
10
-
11
- # Help ensure your application will always spawn in the symlinked
12
- # "current" directory that Capistrano sets up.
13
- working_directory SINATRA_ROOT # available in 0.94.0+
14
-
15
- # listen on both a Unix domain socket and a TCP port,
16
- # we use a shorter backlog for quicker failover when busy
17
- # listen "/tmp/.sock", :backlog => 64
18
- listen 18889, :tcp_nopush => true
19
-
20
- # nuke workers after 30 seconds instead of 60 seconds (the default)
21
- timeout 30
22
-
23
- # feel free to point this anywhere accessible on the filesystem
24
-
25
- pid "#{SINATRA_ROOT}/tmp/pids/unicorn.pid"
26
-
27
- # relative_path "/test_platform"
28
- # some applications/frameworks log to stderr or stdout, so prevent
29
- # them from going to /dev/null when daemonized here:
30
- stderr_path "#{SINATRA_ROOT}/log/unicorn.stderr.log"
31
- stdout_path "#{SINATRA_ROOT}/log/unicorn.stdout.log"
32
-
33
- # combine REE with "preload_app true" for memory savings
34
- # http://rubyenterpriseedition.com/faq.html#adapt_apps_for_cow
35
- preload_app false
36
- GC.respond_to?(:copy_on_write_friendly=) and
37
- GC.copy_on_write_friendly = true
38
-
39
- before_fork do |server, worker|
40
- # the following is highly recomended for Rails + "preload_app true"
41
- # as there's no need for the master process to hold a connection
42
- # defined?(ActiveRecord::Base) and
43
- # ActiveRecord::Base.connection.disconnect!
44
-
45
- # The following is only recommended for memory/DB-constrained
46
- # installations. It is not needed if your system can house
47
- # twice as many worker_processes as you have configured.
48
- #
49
- # # This allows a new master process to incrementally
50
- # # phase out the old master process with SIGTTOU to avoid a
51
- # # thundering herd (especially in the "preload_app false" case)
52
- # # when doing a transparent upgrade. The last worker spawned
53
- # # will then kill off the old master process with a SIGQUIT.
54
- old_pid = "#{server.config[:pid]}.oldbin"
55
-
56
- puts 'pid:'
57
- puts '-------------------'
58
- puts server.pid
59
- puts old_pid
60
- puts '---------------------'
61
-
62
- if old_pid != server.pid
63
- begin
64
- sig = (worker.nr + 1) >= server.worker_processes ? :QUIT : :TTOU
65
- Process.kill(sig, File.read(old_pid).to_i)
66
- rescue Errno::ENOENT, Errno::ESRCH
67
- end
68
- end
69
- #
70
- # # *optionally* throttle the master from forking too quickly by sleeping
71
- sleep 1
72
- end
73
-
74
- after_fork do |server, worker|
75
- # per-process listener ports for debugging/admin/migrations
76
- # addr = "127.0.0.1:#{9293 + worker.nr}"
77
- # server.listen(addr, :tries => -1, :delay => 5, :tcp_nopush => true)
78
-
79
- # the following is *required* for Rails + "preload_app true",
80
- # defined?(ActiveRecord::Base) and
81
- # ActiveRecord::Base.establish_connection
82
-
83
- # if preload_app is true, then you may also want to check and
84
- # restart any other shared sockets/descriptors such as Memcached,
85
- # and Redis. TokyoCabinet file handles are safe to reuse
86
- # between any number of forked children (assuming your kernel
87
- # correctly implements pread()/pwrite() system calls)
88
- end
@@ -1,28 +0,0 @@
1
- body {
2
- background-image: url(bg.png);
3
- }
4
-
5
- #headline-container {
6
- margin-bottom: 5px;
7
- }
8
-
9
- #login-box {
10
- margin: 0 auto;
11
- width: 450px;
12
- top: 110px;
13
- position: relative;
14
- }
15
-
16
- #login-form {
17
- background-color: #fff;
18
- border: 1px #aaa solid;
19
- }
20
-
21
- #logo-container {
22
- vertical-align: middle;
23
- }
24
-
25
- #logo {
26
- width: 128px;
27
- height: 128px;
28
- }