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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f3074d0784be7cc10979a6612c784711c4ff40b
4
- data.tar.gz: 46547137f27f3f73fc87072c36250714b4c8ef9d
3
+ metadata.gz: 82c01d23a69df03e428b4dd3244697630ebe113f
4
+ data.tar.gz: 07fb98b015b38112f929baa401f96e6528416cbc
5
5
  SHA512:
6
- metadata.gz: 279cf9a93f0f491a4417d17ac3957d190a31f4ba907de9897a037a5a545ffd513c882de5d97066e87d0d75d74a0fb7b5530d184a157bbcbd3d94b5da912e56a7
7
- data.tar.gz: 142a5702630d7f69ea71929d770c722001cbe21629f4bcd845482e5520a955e78469c995f13f626294cf491bf185ef54f0e29c42b6e53277aadecfdf8513553e
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
@@ -1,3 +1,3 @@
1
1
  module Registrar
2
- VERSION = "0.3"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -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: '0.3'
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-01 00:00:00.000000000 Z
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.2.2
161
+ rubygems_version: 2.4.6
162
162
  signing_key:
163
163
  specification_version: 4
164
164
  summary: 'Registrar: Standardized Multi-Provider Registration'