omniauth-standalone 0.1.0 → 0.2.0
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.
- checksums.yaml +4 -4
- data/lib/omniauth/standalone/version.rb +1 -1
- data/lib/omniauth/strategies/standalone.rb +6 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5730d8155c0ebf13a45dc5020cafc37e17dae3da
|
|
4
|
+
data.tar.gz: 7211e284b25825cfdc60f181f64c4e05fce2da06
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6c85057b9278119a8225b0dab2d2c16ebee87b0636b25270d93195ba23124f634b0488e430c64176b2843168767e8ca7031d6be34dd60e5cc085d3e83eae2e98
|
|
7
|
+
data.tar.gz: fd7a1a5f0ff9199b50a9da1d33adf7a527f2c3f25ec65c9aa42818a8b8ce886f8e937029fc895ef1724d8a5244ad4108bdc9d16b7475f8cbf230c87bfb543f15
|
|
@@ -6,7 +6,11 @@ module OmniAuth
|
|
|
6
6
|
module Strategies
|
|
7
7
|
class Standalone
|
|
8
8
|
include ::OmniAuth::Strategy
|
|
9
|
-
AuthenticationError
|
|
9
|
+
class AuthenticationError < RuntimeError
|
|
10
|
+
def to_sym
|
|
11
|
+
message
|
|
12
|
+
end
|
|
13
|
+
end
|
|
10
14
|
|
|
11
15
|
option :name, 'standalone'
|
|
12
16
|
option :fields, [:name, :email]
|
|
@@ -71,7 +75,7 @@ module OmniAuth
|
|
|
71
75
|
end
|
|
72
76
|
|
|
73
77
|
def validate!
|
|
74
|
-
|
|
78
|
+
fail!(error) if error?
|
|
75
79
|
end
|
|
76
80
|
|
|
77
81
|
def sign_up?
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-standalone
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jan Owiesniak
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-12-
|
|
11
|
+
date: 2015-12-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: omniauth
|
|
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
90
90
|
version: '0'
|
|
91
91
|
requirements: []
|
|
92
92
|
rubyforge_project:
|
|
93
|
-
rubygems_version: 2.
|
|
93
|
+
rubygems_version: 2.4.6
|
|
94
94
|
signing_key:
|
|
95
95
|
specification_version: 4
|
|
96
96
|
summary: OmniAuth strategy to simplify the standalone sign up and sign in process
|