registrar 0.3 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/registrar/auth_builder/omni_auth.rb +15 -1
- data/lib/registrar/version.rb +1 -1
- data/spec/omni_auth_adapter_spec.rb +3 -1
- 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: 82c01d23a69df03e428b4dd3244697630ebe113f
|
4
|
+
data.tar.gz: 07fb98b015b38112f929baa401f96e6528416cbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3e46b426c8f69435918fcbbf80ad59dd8d44d7efa1e7c64efb810627026b71e1b5d789cea06102eaf9f6b3640ac6276e72627e2427ead6f27010db4874972ef
|
7
|
+
data.tar.gz: 1bdc82d98e65db5fe2078517b46567a1f894bddb3df678a27af8e45cf8ac04df863c401a78c078b3d234554118fc9176e3f6cdf3ece50d88774877c4f6d8e45f
|
@@ -64,7 +64,9 @@ module Registrar
|
|
64
64
|
'name' => profile_name,
|
65
65
|
'email' => profile_email,
|
66
66
|
'location' => profile_location,
|
67
|
-
'image' => profile_image
|
67
|
+
'image' => profile_image,
|
68
|
+
'terms_accepted' => terms_accepted,
|
69
|
+
'opt_in' => opt_in
|
68
70
|
}
|
69
71
|
end
|
70
72
|
|
@@ -84,6 +86,18 @@ module Registrar
|
|
84
86
|
info['image']
|
85
87
|
end
|
86
88
|
|
89
|
+
def terms_accepted
|
90
|
+
extra['terms_accepted'] || false
|
91
|
+
end
|
92
|
+
|
93
|
+
def opt_in
|
94
|
+
extra['opt_in'] || false
|
95
|
+
end
|
96
|
+
|
97
|
+
def extra
|
98
|
+
auth['extra'].to_hash
|
99
|
+
end
|
100
|
+
|
87
101
|
def info
|
88
102
|
auth['info'].to_hash
|
89
103
|
end
|
data/lib/registrar/version.rb
CHANGED
@@ -64,7 +64,9 @@ class OmniAuthAuthBuilderSpec < Spec
|
|
64
64
|
"name" => "Jan Ow",
|
65
65
|
"email" => "janowiesniak@gmx.de",
|
66
66
|
"location" => "Bochum, Germany",
|
67
|
-
"image" => "http://graph.facebook.com/100000100277322/picture"
|
67
|
+
"image" => "http://graph.facebook.com/100000100277322/picture",
|
68
|
+
"terms_accepted" => false,
|
69
|
+
"opt_in" => false
|
68
70
|
}, env['registrar.auth']['profile'])
|
69
71
|
end
|
70
72
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: registrar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Owiesniak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
158
|
version: '0'
|
159
159
|
requirements: []
|
160
160
|
rubyforge_project:
|
161
|
-
rubygems_version: 2.
|
161
|
+
rubygems_version: 2.4.6
|
162
162
|
signing_key:
|
163
163
|
specification_version: 4
|
164
164
|
summary: 'Registrar: Standardized Multi-Provider Registration'
|