synapse-rubycas-server 1.1.5.pre → 1.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  source "http://rubygems.org"
2
2
 
3
3
  gem 'appraisal'
4
- gem 'synapse-rubycas-server'
4
+ gem 'synapse-rubycas-server', "1.1.5.pre"
5
5
  gem "mysql2"
6
6
  gem 'activerecord-mysql2-adapter'
7
7
  gem "activerecord"
@@ -15,7 +15,7 @@ gem "rake", "~> 10.0.4"
15
15
  group :development do
16
16
  gem 'capistrano-ext'
17
17
  gem 'capistrano_colors'
18
- gem 'capistrano-rbenv'
18
+ gem "capistrano-rbenv", "~> 1.0.5"
19
19
  gem 'capistrano-unicorn', :require => false
20
20
  gem 'foreman'
21
21
  gem 'hipchat'
@@ -1,6 +1,7 @@
1
1
  require "bundler/capistrano"
2
2
  require "capistrano/ext/multistage"
3
3
  require 'hipchat/capistrano'
4
+ require 'capistrano-rbenv'
4
5
 
5
6
  load "config/recipes/base"
6
7
  load "config/recipes/nginx"
@@ -14,6 +15,9 @@ set :deploy_to, "/home/#{user}/apps/#{application}"
14
15
  set :deploy_via, :remote_cache
15
16
  set :use_sudo, false
16
17
 
18
+ #rbenv
19
+ set :rbenv_ruby_version, "1.9.3-p194"
20
+
17
21
  set :bundle_flags, "--deployment --quiet --binstubs"
18
22
  set :bundler, "/home/#{user}/.rbenv/shims/bundle"
19
23
  set :default_environment, {
@@ -33,4 +37,14 @@ set :hipchat_announce, true # notify users?
33
37
 
34
38
  #nginx
35
39
  set :sudo_user, 'root'
36
- set :app_port, "80"
40
+ set :app_port, "80"
41
+
42
+ namespace :deploy do
43
+ task :setup_private_files do
44
+ ["config.yml"].each do |file|
45
+ run "rm -fr #{release_path}/config/#{file}; true"
46
+ run "cd #{release_path}/config && ln -sf #{shared_path}/config/#{file} #{file}"
47
+ end
48
+ end
49
+ end
50
+ before "deploy:finalize_update", "deploy:setup_private_files"
@@ -463,6 +463,7 @@ module CASServer
463
463
  # 3.6 (ticket-granting cookie)
464
464
  tgt = generate_ticket_granting_ticket(@username, extra_attributes)
465
465
  cookie_options = (settings.config[:cookie_options] || {}).symbolize_keys
466
+ cookie_options.merge(:expires => Time.now + 172800, :max_age => Time.now + 172800)
466
467
  response.set_cookie('tgt', cookie_options.merge(:value => tgt.to_s))
467
468
 
468
469
  $LOG.debug("Ticket granting cookie '#{tgt.inspect}' granted to #{@username.inspect}")
@@ -1,6 +1,6 @@
1
1
  $gemspec = Gem::Specification.new do |s|
2
2
  s.name = 'synapse-rubycas-server'
3
- s.version = '1.1.5.pre'
3
+ s.version = '1.1.6'
4
4
  s.authors = ["Matt Zukowski"]
5
5
  s.email = ["matt@zukowski.ca"]
6
6
  s.homepage = 'https://github.com/synapsepd/rubycas-server.git'
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: synapse-rubycas-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5.pre
5
- prerelease: 6
4
+ version: 1.1.6
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Matt Zukowski
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-25 00:00:00.000000000 Z
12
+ date: 2013-07-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -515,9 +515,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
515
515
  required_rubygems_version: !ruby/object:Gem::Requirement
516
516
  none: false
517
517
  requirements:
518
- - - ! '>'
518
+ - - ! '>='
519
519
  - !ruby/object:Gem::Version
520
- version: 1.3.1
520
+ version: '0'
521
521
  requirements: []
522
522
  rubyforge_project:
523
523
  rubygems_version: 1.8.23