moro-repim 0.1.1 → 0.1.2
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.
- data/Rakefile +1 -1
- data/lib/repim/application.rb +1 -0
- data/lib/repim/relying_party.rb +5 -0
- data/lib/repim.rb +1 -1
- metadata +2 -2
data/Rakefile
CHANGED
@@ -82,7 +82,7 @@ spec = Gem::Specification.new do |s|
|
|
82
82
|
s.name = NAME
|
83
83
|
s.version = VERS
|
84
84
|
s.platform = Gem::Platform::RUBY
|
85
|
-
s.has_rdoc =
|
85
|
+
s.has_rdoc = false
|
86
86
|
s.extra_rdoc_files = ["README.rdoc", "ChangeLog"]
|
87
87
|
s.rdoc_options += RDOC_OPTS + ['--exclude', '^(examples|extras)/']
|
88
88
|
s.summary = DESCRIPTION
|
data/lib/repim/application.rb
CHANGED
@@ -6,6 +6,7 @@ module Repim
|
|
6
6
|
base.user_klass = (User rescue nil) # assign nil when LoadError and/or ConstMissing
|
7
7
|
base.login_template = "sessions/new"
|
8
8
|
|
9
|
+
base.before_filter :authenticate
|
9
10
|
[:current_user, :signed_in?, :logged_in?].each do |method|
|
10
11
|
base.helper_method method
|
11
12
|
base.hide_action method
|
data/lib/repim/relying_party.rb
CHANGED
@@ -6,6 +6,7 @@ module Repim
|
|
6
6
|
base.cattr_accessor :attribute_adapter
|
7
7
|
base.cattr_accessor :signup_template
|
8
8
|
|
9
|
+
base.skip_before_filter :authenticate
|
9
10
|
base.signup_template = "users/new"
|
10
11
|
|
11
12
|
base.extend(ClassMethods)
|
@@ -86,5 +87,9 @@ module Repim
|
|
86
87
|
return [request.protocol, request.host_with_port, "/"].join if m.to_sym == :root_url
|
87
88
|
super
|
88
89
|
end
|
90
|
+
|
91
|
+
def verify_authenticity_token
|
92
|
+
super unless ('create' == params[:action] && '1' == params[:open_id_complete])
|
93
|
+
end
|
89
94
|
end
|
90
95
|
end
|
data/lib/repim.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moro-repim
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MOROHASHI Kyosuke
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-03-
|
12
|
+
date: 2009-03-11 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|