auther 13.3.0 → 13.4.0

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: 5746d63fae76c4e8b3648469b07b8768c16a20147d9e64490133283cc49f2c1f
4
- data.tar.gz: 179a32777912cc1e12ec9b2e544b5632f6fe08932c3b83da3a9aac42dc825564
3
+ metadata.gz: 6431857cbe70e5dd528e9c72734c0c4d4b0396e5e0f80aeb4a240e75d0f67ead
4
+ data.tar.gz: c3c0e8349304d4cee54e5fb7755438a16097c139e1fcea1fb67f3aeb1914961c
5
5
  SHA512:
6
- metadata.gz: 669a16e017623e06f624688ea60abe70a7602e9b220e2dec20d3c49219b15e5cd32910f65ef8751421bc56c7fbbdaa20cdf548b3e5ff62870396610e3fdef152
7
- data.tar.gz: 0cd4c1f86fdff3cd417f86a3646418d172a142d04e85c9cdca3d5c68338dd24688332dd40dcc5dcb2b90d595b0349b2d729086139e527abea06af8af004bfec8
6
+ metadata.gz: 2992c8d8092afac63d902230ee77339bee8e17116c49781707aa0a81b1682a236ae4b1958e34af293db9d08f1a38ee1019337620a179b8b5bf381fa902d55469
7
+ data.tar.gz: c9d860ffe33d841de98a3e2823892f859ed1fad41a98e007817ad1a56c37326d7b85f387dde0c7316375636b86b6c4ef24f7d0bc48c7b541b87bb0509f3d7ed7
checksums.yaml.gz.sig CHANGED
Binary file
data/auther.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "auther"
5
- spec.version = "13.3.0"
5
+ spec.version = "13.4.0"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://www.alchemists.io/projects/auther"
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
 
26
26
  spec.required_ruby_version = "~> 3.1"
27
27
  spec.add_dependency "rails", "~> 7.0"
28
- spec.add_dependency "refinements", "~> 9.2"
28
+ spec.add_dependency "refinements", "~> 9.4"
29
29
  spec.add_dependency "sass-rails", "~> 6.0"
30
30
  spec.add_dependency "slim-rails", "~> 3.3"
31
31
 
@@ -4,20 +4,26 @@ module Auther
4
4
  # Credentials generator for new secret, login, and password.
5
5
  class CredentialsGenerator < ::Rails::Generators::Base
6
6
  desc "Generate Auther secret, login, and password credentials."
7
- # :reek:TooManyStatements
8
7
  def credentials
9
8
  puts "Welcome to the Auther credentials generator.\n"
10
9
 
11
10
  login = ask " Enter admin login:", echo: false
12
11
  password = ask "\n Enter admin password:", echo: false
13
- credentials = Cipher.generate login, password
12
+ identity = Cipher.generate login, password
14
13
 
14
+ display identity
15
+ end
16
+
17
+ private
18
+
19
+ def display identity
15
20
  puts "\n\nHere are your credentials:\n"
16
21
 
17
- say " AUTHER_SECRET=#{credentials.fetch :secret}\n" \
18
- " AUTHER_ADMIN_LOGIN=#{credentials.fetch :login}\n" \
19
- " AUTHER_ADMIN_PASSWORD=#{credentials.fetch :password}",
20
- :green
22
+ say <<~MESSAGE.gsub(/^/, " "), :green
23
+ AUTHER_SECRET=#{identity.fetch :secret}
24
+ AUTHER_ADMIN_LOGIN=#{identity.fetch :login}
25
+ AUTHER_ADMIN_PASSWORD=#{identity.fetch :password}
26
+ MESSAGE
21
27
 
22
28
  say "\nReminder: Do not add these credentials to source control.", :yellow
23
29
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auther
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.3.0
4
+ version: 13.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -28,7 +28,7 @@ cert_chain:
28
28
  CxDe2+VuChj4I1nvIHdu+E6XoEVlanUPKmSg6nddhkKn2gC45Kyzh6FZqnzH/CRp
29
29
  RFE=
30
30
  -----END CERTIFICATE-----
31
- date: 2022-05-07 00:00:00.000000000 Z
31
+ date: 2022-07-02 00:00:00.000000000 Z
32
32
  dependencies:
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rails
@@ -50,14 +50,14 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '9.2'
53
+ version: '9.4'
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '9.2'
60
+ version: '9.4'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: sass-rails
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  requirements: []
147
- rubygems_version: 3.3.13
147
+ rubygems_version: 3.3.17
148
148
  signing_key:
149
149
  specification_version: 4
150
150
  summary: Enhances Rails with multi-account, form-based, database-less, application-wide
metadata.gz.sig CHANGED
Binary file