stormpath-rails 2.3.1 → 2.3.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db78dfe6eb37a717cc63a11079e9ab97b26cb828
4
- data.tar.gz: 4d876869b8206cac38f96ef1a472fb1cc8211995
3
+ metadata.gz: 03ce4135fb1ea335c2a4cbda06c60648a5d5e091
4
+ data.tar.gz: 8a980feb04d921c0cf7007a6d27e75a3d9d7df5a
5
5
  SHA512:
6
- metadata.gz: d28fbd2472799152d2cf4a24670e88c44efb88f7a448e198e3ebf15ce1f1f52c25d1bb7ebe467eaa1ea10cb0f5c1714c9024924eba9e05450c13f359a958ccf9
7
- data.tar.gz: 74a8238f67668fa69c78867997e2acb80b887987bff4d4b9b3f623987402a2d70d2ee7639960258384ded3c4a8d204cd5fcba3437929c37ca42d7f455396458c
6
+ metadata.gz: 41d46c19fafbd32e9956506f7688a5c909560a2ab1083efae049c2aa72d6427586d723ead739e36eb255d940a40fd6601c4180586feafe5ba408cdd53a1fc736
7
+ data.tar.gz: d31b6ea2c7cb21b5d763c60a03334af7e0bfca800389bf8324786871e876cb8ed3cdf13a44df36d14b326742a63ec95ebd30ce933f35f0b66b0e340eac2dcc00
data/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  Stormpath Rails Changelog
2
2
  ============================
3
3
 
4
+ Version 2.3.2
5
+ -------------
6
+ Released on Dec 16, 2016
7
+ - Fix error with setting custom base path during client initialization
8
+
9
+
4
10
  Version 2.3.1
5
11
  -------------
6
12
  Released on Nov 28, 2016
data/docs/changelog.rst CHANGED
@@ -6,6 +6,12 @@ Change Log
6
6
 
7
7
  Gem changes until version 2.0.1, in descending order.
8
8
 
9
+ Version 2.3.2
10
+ -------------
11
+ Released on Dec 16, 2016
12
+ - Fix error with setting custom base path during client initialization
13
+
14
+
9
15
  Version 2.3.1
10
16
  -------------
11
17
  Released on Nov 28, 2016
@@ -23,11 +23,7 @@ namespace :stormpath do
23
23
 
24
24
  User.all.find_each do |user|
25
25
  directory.accounts.create(
26
- { username: "rex#{user.id}",
27
- email: user.email,
28
- given_name: 'Captain',
29
- middle_name: '12345',
30
- surname: 'Rex',
26
+ { email: user.email,
31
27
  password: user.encrypted_password },
32
28
  password_format: 'mcf'
33
29
  )
@@ -58,10 +54,7 @@ namespace :stormpath do
58
54
 
59
55
  # User.all.find_each do |user|
60
56
  # account = directory.accounts.create(
61
- # { username: "rex#{user.id}",
62
- # email: user.email,
63
- # given_name: 'Jean-Luc',
64
- # surname: 'Picard',
57
+ # { email: user.email,
65
58
  # password: user.encrypted_password,
66
59
  # custom_data: {
67
60
  # rank: 'Captain',
@@ -71,5 +64,13 @@ namespace :stormpath do
71
64
  # )
72
65
  # puts "#{user.email} with custom data #{account.custom_data['favorite_drink']} migrated."
73
66
  # end
67
+
68
+ # ==============================================================
69
+ # Use your directories account schema configuration if you have required fields on your account
70
+ # ==============================================================
71
+
72
+ # directory.account_schema.fields.each do |field|
73
+ # puts field.name if field.required
74
+ # end
74
75
  end
75
76
  end
@@ -24,12 +24,16 @@ module Stormpath
24
24
  end
25
25
 
26
26
  def self.client
27
- self.connection ||= Stormpath::Client.new(api_key: api_key.credentials)
27
+ self.connection ||= Stormpath::Client.new(api_key: api_key.credentials, base_url: base_url)
28
28
  end
29
29
 
30
30
  def self.api_key
31
31
  Stormpath::Rails::ApiKey.new
32
32
  end
33
+
34
+ def self.base_url
35
+ Stormpath::Rails.config.merged_config_hashes['stormpath']['web']['base_path']
36
+ end
33
37
  end
34
38
  end
35
39
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Stormpath
3
3
  module Rails
4
- VERSION = '2.3.1'.freeze
4
+ VERSION = '2.3.2'.freeze
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stormpath-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nenad Nikolic
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-28 00:00:00.000000000 Z
11
+ date: 2016-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: stormpath-sdk