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: 52a87257d6d2ee3d340b91510148bbe171b4e81d
4
- data.tar.gz: cdfe36bd3626635f3880ef9dd84e224135056c69
3
+ metadata.gz: 35cad4b788e7f307ae00e0048c809f2d5043f835
4
+ data.tar.gz: 5a01b26236f8177f20b340c341d70cb3d38a9745
5
5
  SHA512:
6
- metadata.gz: 9ff1a5fccb2ffd2d738d57acb9d2c7cb3efc21c2a86382115a64151249da56a23c191d1b83743b29ea05d483594842af0ae640e6587e488817eb3b8f992aca24
7
- data.tar.gz: bde8c0cd5028e80fd0d55d5c371a1fbc7d8a7f8785d1ff0b4649c4e74f4d83012d9d9f184ea01f3c2031aa3d6287179bca5c52de5657520830c3c92d3bea970e
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
 
@@ -57,5 +57,4 @@ module OpenStax
57
57
  end
58
58
  end
59
59
 
60
- ::ActionController::Base.send :include,
61
- OpenStax::Accounts::ActionController::Base
60
+ ::ActionController::Base.send :include, OpenStax::Accounts::ActionController::Base
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Accounts
3
- VERSION = "5.1.2"
3
+ VERSION = "5.2.0"
4
4
  end
5
5
  end
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.1.2
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-05-01 00:00:00.000000000 Z
11
+ date: 2015-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails