stormpath-rails 2.3.1 → 2.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/docs/changelog.rst +6 -0
- data/lib/generators/stormpath/migration/templates/stormpath.rake +10 -9
- data/lib/stormpath/rails/client.rb +5 -1
- data/lib/stormpath/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03ce4135fb1ea335c2a4cbda06c60648a5d5e091
|
4
|
+
data.tar.gz: 8a980feb04d921c0cf7007a6d27e75a3d9d7df5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41d46c19fafbd32e9956506f7688a5c909560a2ab1083efae049c2aa72d6427586d723ead739e36eb255d940a40fd6601c4180586feafe5ba408cdd53a1fc736
|
7
|
+
data.tar.gz: d31b6ea2c7cb21b5d763c60a03334af7e0bfca800389bf8324786871e876cb8ed3cdf13a44df36d14b326742a63ec95ebd30ce933f35f0b66b0e340eac2dcc00
|
data/CHANGELOG.md
CHANGED
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
|
-
{
|
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
|
-
# {
|
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
|
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.
|
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
|
+
date: 2016-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: stormpath-sdk
|