openstax_accounts 5.1.2 → 5.2.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35cad4b788e7f307ae00e0048c809f2d5043f835
|
4
|
+
data.tar.gz: 5a01b26236f8177f20b340c341d70cb3d38a9745
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49f01680bd5dd42c340a3194ac3c1bff1abdfbe6ac0167cc93c2915863ad9ef71c6141ee83cae56471ea2a7c0bc9b4f8fa384c1ba47333c72b97bedbb37914a0
|
7
|
+
data.tar.gz: 7c018d6e44c8e4f30c725bc529be0e1c3a229a573718e505b1e8b0ce0d0475752705132fa1199bda50a30d71b9efe6f2ef42ca564dc184e7f182b3e1b256ed97
|
@@ -8,7 +8,8 @@ module OpenStax
|
|
8
8
|
|
9
9
|
protected
|
10
10
|
|
11
|
-
def exec(email: nil, username: nil, password: nil
|
11
|
+
def exec(email: nil, username: nil, password: nil,
|
12
|
+
first_name: nil, last_name: nil, full_name: nil, title: nil)
|
12
13
|
raise ArgumentError,
|
13
14
|
'You must specify either an email address or a username (and an optional password)' \
|
14
15
|
if email.nil? && username.nil?
|
@@ -31,6 +32,10 @@ module OpenStax
|
|
31
32
|
username = SecureRandom.hex(3).to_s
|
32
33
|
end
|
33
34
|
account.username = username
|
35
|
+
account.first_name = first_name
|
36
|
+
account.last_name = last_name
|
37
|
+
account.full_name = full_name
|
38
|
+
account.title = title
|
34
39
|
account.save!
|
35
40
|
end
|
36
41
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openstax_accounts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JP Slavinsky
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|