sinatra-google-auth 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,6 @@
1
1
  require 'omniauth-google-apps'
2
2
  require 'openid/store/filesystem'
3
+ require 'securerandom'
3
4
 
4
5
  module Sinatra
5
6
  module GoogleAuth
@@ -45,7 +46,7 @@ module Sinatra
45
46
  end
46
47
 
47
48
  def self.secret
48
- ENV['SESSION_SECRET'] || ENV['SECURE_KEY'] || 'please change me'
49
+ ENV['SESSION_SECRET'] || ENV['SECURE_KEY'] || SecureRandom.hex(64)
49
50
  end
50
51
 
51
52
  def self.registered(app)
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module GoogleAuth
3
- VERSION = '1.2.0'
3
+ VERSION = '1.3.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-google-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-26 00:00:00.000000000 Z
12
+ date: 2013-10-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth-google-apps
@@ -78,7 +78,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
78
78
  version: '0'
79
79
  segments:
80
80
  - 0
81
- hash: -2083577921601217896
81
+ hash: 1806973702613227217
82
82
  required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  version: '0'
88
88
  segments:
89
89
  - 0
90
- hash: -2083577921601217896
90
+ hash: 1806973702613227217
91
91
  requirements: []
92
92
  rubyforge_project:
93
93
  rubygems_version: 1.8.23