authrocket 3.4.0 → 3.4.1

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
  SHA256:
3
- metadata.gz: 1081c944badcc582e41e1b6a2c490b7b36797072ce37c4c0d4ff95cff70c9a37
4
- data.tar.gz: c3fb78aa005891773187d5dd3494b51746566b180c99358d41ec48fa9e46a6ee
3
+ metadata.gz: cfb53b90a6986d8877e810f2e1dd2034fc45285201269f0264a870e1d8102155
4
+ data.tar.gz: d0e9abb7924da35f41046ce30ce114186a02a79722be53e1d49b2a2a8766bb7f
5
5
  SHA512:
6
- metadata.gz: 71ae02ef915333191bc493a141c6ef9fa452184028cfb528ade5b264aa7323adb1a3d13d457566766b628246b892e19a2fa7587edefe57938f884f0da972ed15
7
- data.tar.gz: 86634dae4a53d8dca492b409782c45a096db901adeee0ef5012ea7405782cf0ab6d9258a99c4ec6ba0514c405a8500b31991a9666e9e3a7aef55959982cfd4d3
6
+ metadata.gz: 56e9f2aa33e943ecf0ebd0926e240246c3a52faf31b52a4339554d0089fdfb0c7cce7c1dd07cfcaf5f8c589943ad3cd0b3b9cf74150bc925b2191fc6b46bd823
7
+ data.tar.gz: fb4ac8faaefe75aa8c0e820738b4f12adebfbbb85922e4abaed7dea7f8b46497b1a883184e643becd32f9ef8a8136191ecef46da4e310dc2bc271e8711e1b527
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ #### 3.4.1
2
+
3
+ - Rails 7 compatibility
4
+
1
5
  #### 3.4.0
2
6
 
3
7
  - Document how to change locales
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014-2021 Notioneer, Inc.
1
+ Copyright (c) 2014-2022 Notioneer, Inc.
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -137,7 +137,7 @@ Likewise, the built-in handler for `before_action :require_login` will automatic
137
137
  # For example, to force the user to always return to "/manage":
138
138
  def require_login
139
139
  unless current_session
140
- redirect_to ar_login_url(redirect_uri: "/manage")
140
+ redirect_to ar_login_url(redirect_uri: "/manage"), allow_other_host: true
141
141
  end
142
142
  end
143
143
 
@@ -226,7 +226,7 @@ Each of the above are designed for ongoing use. The initial login isn't going to
226
226
  return
227
227
  end
228
228
  end
229
- redirect_to AuthRocket::Api.credentials[:loginrocket_url]
229
+ redirect_to AuthRocket::Api.credentials[:loginrocket_url], allow_other_host: true
230
230
  end
231
231
 
232
232
 
@@ -10,9 +10,9 @@ class AuthRocket::ArController < ::ApplicationController
10
10
  if AuthRocket::Api.post_logout_path
11
11
  uri = Addressable::URI.parse full_url_for
12
12
  uri.path = AuthRocket::Api.post_logout_path
13
- redirect_to ar_logout_url(redirect_uri: uri.to_s)
13
+ redirect_to ar_logout_url(redirect_uri: uri.to_s), allow_other_host: true
14
14
  else
15
- redirect_to ar_logout_url
15
+ redirect_to ar_logout_url, allow_other_host: true
16
16
  end
17
17
  # set flash message in the child
18
18
 
@@ -1,3 +1,3 @@
1
1
  module AuthRocket
2
- VERSION = '3.4.0'
2
+ VERSION = '3.4.1'
3
3
  end
@@ -40,7 +40,7 @@ module AuthRocket
40
40
  NCore::Collection.new.tap do |coll|
41
41
  coll.metadata = parsed[:metadata]
42
42
  parsed[:data].each do |hash|
43
- coll << factory(hash.merge(metadata: parsed[:metadata]), creds)
43
+ coll << factory({data: hash, metadata: parsed[:metadata]}, creds)
44
44
  end
45
45
  end
46
46
  end
@@ -20,7 +20,7 @@ module AuthRocket::ControllerHelper
20
20
 
21
21
  def require_login
22
22
  unless current_session
23
- redirect_to ar_login_url(redirect_uri: safe_this_uri)
23
+ redirect_to ar_login_url(redirect_uri: safe_this_uri), allow_other_host: true
24
24
  end
25
25
  end
26
26
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authrocket
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.0
4
+ version: 3.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - AuthRocket Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-11 00:00:00.000000000 Z
11
+ date: 2022-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable