foobara-auth 0.0.6 → 0.0.8

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: 0e017c0fb63dc9c69dc38b6f730f3e33724373ea39ef3d7792bedc9d8a7ec5a4
4
- data.tar.gz: f29fd3c7d64f64766cd79b93f399d63b0511d624bd6bc79fa38967ca14b2495b
3
+ metadata.gz: e1ba58c561a925a0c68b73d09b35bea08bd1547170c3c5cb947c97b6bbbcd91d
4
+ data.tar.gz: a9a6ef33b8b8834548034c7852ec4904d1b2161e83c8190b5aacf5c76fe7d38a
5
5
  SHA512:
6
- metadata.gz: 9c1a3fcfb322ff9727d2f99f8350ae41a4637a2f063d59f35b23e2c039f2e8ee031f5e9f0704510da55d432704164a6e3f14b865477f1af5fbdd9ce9c43051da
7
- data.tar.gz: 655c3d0d4270f529a3d939c61ac579d94f0c0aa46bfd0ca2a7c56d6493ed48363c84ac7f797157c1d5aada5e5d3f8c3d8eddec68fe16a8dc97653ed13d8fa5c4
6
+ metadata.gz: de9f66fc29b5d7176198a8b03eb33b2046d0c9cf8c4130d2ecf082a65c7b215996d2c080099b1d7bdffa9f26c89d86513edd5bbab65f9bd9f756eaec983720d2
7
+ data.tar.gz: 78a8c4c831f5c808cf4f675ecda90e418803a8c6d5f5d63f08679086a3e5693126f1fb4d9216a1bed7d44ef4f7c96a55d178e0dad5d6dca5cb50ff4e91079971
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [0.0.8] - 2025-04-11
2
+
3
+ - Just seeing if we can successfully push new gems since there's an issue pushing foobara
4
+
5
+ ## [0.0.7] - 2025-03-31
6
+
7
+ - Support creating a user with a specific user_id
8
+
1
9
  ## [0.0.6] - 2025-03-31
2
10
 
3
11
  - Add Logout command
data/src/create_user.rb CHANGED
@@ -4,6 +4,7 @@ module Foobara
4
4
  inputs Types::User.attributes_for_create
5
5
 
6
6
  add_inputs do
7
+ user_id :integer, :allow_nil
7
8
  plaintext_password :string, :sensitive_exposed
8
9
  end
9
10
 
@@ -24,7 +25,13 @@ module Foobara
24
25
  attr_accessor :user
25
26
 
26
27
  def create_user
27
- self.user = Types::User.create(inputs.except(:plaintext_password))
28
+ inputs = self.inputs.except(:user_id, :plaintext_password)
29
+
30
+ if user_id
31
+ inputs[:id] = user_id
32
+ end
33
+
34
+ self.user = Types::User.create(inputs)
28
35
  end
29
36
 
30
37
  def password_present?
data/src/register.rb CHANGED
@@ -6,6 +6,7 @@ module Foobara
6
6
  depends_on CreateUser, SetPassword
7
7
 
8
8
  inputs do
9
+ user_id :integer, :allow_nil
9
10
  username :string, :required
10
11
  email :email, :allow_nil
11
12
  plaintext_password :string, :allow_nil, :sensitive_exposed
@@ -26,7 +27,13 @@ module Foobara
26
27
  attr_accessor :user
27
28
 
28
29
  def create_user
29
- self.user = run_subcommand!(CreateUser, username:, email:)
30
+ inputs = { username:, email: }
31
+
32
+ if user_id
33
+ inputs[:user_id] = user_id
34
+ end
35
+
36
+ self.user = run_subcommand!(CreateUser, inputs)
30
37
  end
31
38
 
32
39
  def password?
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-31 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: argon2
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  requirements: []
112
- rubygems_version: 3.6.6
112
+ rubygems_version: 3.6.7
113
113
  specification_version: 4
114
114
  summary: Provides various auth domain commands and models
115
115
  test_files: []