rodauth-select-account 0.1.0 → 0.1.2

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
  SHA256:
3
- metadata.gz: e1268790cfe1720860c39c93bced3253c0cb1bf83dacec424d21cf7facd2f0a3
4
- data.tar.gz: d161bade62b8e1b935fb192ebec45d3641b546b4cf52896cccc3f225a01450ca
3
+ metadata.gz: 90895ef37a108c15a07ad95b7e7e834a792e495dfc6a5b00e95f5cba0e8f5641
4
+ data.tar.gz: e9e436f0e30f7a96e296c9ddb6059cfcf23ad4b1ea0a764d9345669cf82633a7
5
5
  SHA512:
6
- metadata.gz: cd003394cba3aaad1c103ffae1dd008cea6e3788cb9cd96636074021854891a20d2c9d43f83351ba938cd78b923fab171de7d31609d32638a18a0c2202b139d0
7
- data.tar.gz: c489337600b4e06912ecf4e650dcf4b58b2ad69524d9acbe6cbe45df6ab8a1c75faa8b23481456eac12b6d4d42fb19779f2b22934e2ac175a84db597b61a687a
6
+ metadata.gz: 6f27e0dec0e492dfb2de6b50edb469d10a913702a86e823428b5db7e37e9bc01884cc7f8c9f36d81158fec1514f8953b74a07ea646c40b727c80f5cdd3b839da
7
+ data.tar.gz: 6e79144222edfd09428c7f679036a4306d9ee51a03cd9e40ce2892908066ab60f7f6c59cb06fd9625391bbfd189a68ed0d828bda4b9282f04ee12878be721ea1
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 0.1.2
6
+
7
+ point release to update project links in rubygems.
8
+
9
+ ## 0.1.1
10
+
11
+ Updating integration with `rodauth-i18n`, which changed the setup for `v0.2.0`.
12
+
5
13
  ## 0.1.0
6
14
 
7
15
  Support for internationalization (I18n) by hooking up with [rodauth-i18n](https://github.com/janko/rodauth-i18n). Shipping translation for english under `locales/` dir.
data/README.md CHANGED
@@ -1,7 +1,8 @@
1
1
  # Rodauth::SelectAccount
2
2
 
3
- [![pipeline status](https://gitlab.com/honeyryderchuck/rodauth-select-account/badges/master/pipeline.svg)](https://gitlab.com/honeyryderchuck/rodauth-select-account/-/pipelines?page=1&ref=master)
4
- [![coverage report](https://gitlab.com/honeyryderchuck/rodauth-select-account/badges/master/coverage.svg)](https://honeyryderchuck.gitlab.io/rodauth-select-account/coverage/#_AllFiles)
3
+ [![Gem Version](https://badge.fury.io/rb/rodauth-select-account.svg)](http://rubygems.org/gems/rodauth-select-account)
4
+ [![pipeline status](https://gitlab.com/os85/rodauth-select-account/badges/master/pipeline.svg)](https://gitlab.com/os85/rodauth-select-account/-/pipelines?page=1&ref=master)
5
+ [![coverage report](https://gitlab.com/os85/rodauth-select-account/badges/master/coverage.svg)](https://os85.gitlab.io/rodauth-select-account/coverage/#_AllFiles)
5
6
 
6
7
  This gem adds a feature to `rodauth` to support the management of multiple accounts in the same session. The behaviour is similar to how the "Google Sign-In" widget works, where you can sign-in with a different account, or switch to an already authenticated account.
7
8
 
@@ -129,7 +130,7 @@ These are also available methods:
129
130
 
130
131
  `rodauth-select-account` supports translating all user-facing text found in all pages and forms and buttons, by integrating with [rodauth-i18n](https://github.com/janko/rodauth-i18n). Just set it up in your application and `rodauth` configuration.
131
132
 
132
- Default translations shipping with `rodauth-select-account` can be found [in this directory](https://gitlab.com/honeyryderchuck/rodauth-select-account/-/tree/master/locales). If they're not available for the languages you'd like to support, consider getting them translated from the english text, and contributing them to this repository via a Merge Request.
133
+ Default translations shipping with `rodauth-select-account` can be found [in this directory](https://gitlab.com/os85/rodauth-select-account/-/tree/master/locales). If they're not available for the languages you'd like to support, consider getting them translated from the english text, and contributing them to this repository via a Merge Request.
133
134
 
134
135
  (This feature is available since `v0.1`.)
135
136
 
@@ -143,4 +144,4 @@ After checking out the repo, run `bundle install` to install dependencies. Then,
143
144
 
144
145
  ## Contributing
145
146
 
146
- Bug reports and pull requests are welcome on Gitlab at https://gitlab.com/honeyryderchuck/rodauth-select-account.
147
+ Bug reports and pull requests are welcome on Gitlab at https://gitlab.com/os85/rodauth-select-account.
@@ -1,4 +1,4 @@
1
- # frozen-string-literal: true
1
+ # frozen_string_literal: true
2
2
 
3
3
  module Rodauth
4
4
  Feature.define(:select_account) do
@@ -83,6 +83,11 @@ module Rodauth
83
83
  true
84
84
  end
85
85
 
86
+ def post_configure
87
+ super
88
+ i18n_register(File.expand_path(File.join(__dir__, "..", "..", "..", "locales"))) if features.include?(:i18n)
89
+ end
90
+
86
91
  private
87
92
 
88
93
  # when selecting an account and requiring login, you'll want the user to go back to where it was
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rodauth
4
4
  module SelectAccount
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.2"
6
6
  end
7
7
  end
@@ -3,5 +3,3 @@
3
3
  require "rodauth"
4
4
 
5
5
  require "rodauth/select-account/version"
6
-
7
- Rodauth::I18n.directories << File.expand_path(File.join(__dir__, "..", "..", "locales")) if defined?(Rodauth::I18n)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rodauth-select-account
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tiago Cardoso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-02 00:00:00.000000000 Z
11
+ date: 2022-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rodauth
@@ -44,12 +44,11 @@ files:
44
44
  - templates/add-account-form.str
45
45
  - templates/add-account.str
46
46
  - templates/select-account.str
47
- homepage: https://gitlab.com/honeyryderchuck/rodauth-select-account
48
- licenses: []
47
+ homepage: https://gitlab.com/os85/rodauth-select-account
48
+ licenses:
49
+ - Apache 2.0
49
50
  metadata:
50
- homepage_uri: https://gitlab.com/honeyryderchuck/rodauth-select-account
51
- source_code_uri: https://gitlab.com/honeyryderchuck/rodauth-select-account
52
- changelog_uri: https://gitlab.com/honeyryderchuck/rodauth-select-account/-/blob/master/CHANGELOG.md
51
+ rubygems_mfa_required: 'true'
53
52
  post_install_message:
54
53
  rdoc_options: []
55
54
  require_paths:
@@ -58,14 +57,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
58
57
  requirements:
59
58
  - - ">="
60
59
  - !ruby/object:Gem::Version
61
- version: '0'
60
+ version: 2.4.0
62
61
  required_rubygems_version: !ruby/object:Gem::Requirement
63
62
  requirements:
64
63
  - - ">="
65
64
  - !ruby/object:Gem::Version
66
65
  version: '0'
67
66
  requirements: []
68
- rubygems_version: 3.2.22
67
+ rubygems_version: 3.2.32
69
68
  signing_key:
70
69
  specification_version: 4
71
70
  summary: Multiple authenticated accounts per session in rodauth.