devise_gauth 0.4.6 → 0.5.0

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: 0ad15faa1108fac98a035718be49601d0719b323aa6553aecd95a302a537e739
4
- data.tar.gz: a7a9baa02de7e8472f1e77633cd90919de205d20c88bfe6a26bd17c7983fd184
3
+ metadata.gz: 9878a76383b3fe03b8c2129c42aa7a4b7b2ae8cf84dcf6ee96b39c7c330c2e6d
4
+ data.tar.gz: c7c67cfddf4782225ea72304d1bf678d3240eb66862871506b364cfca55b0c17
5
5
  SHA512:
6
- metadata.gz: 6edf881a801f18355c2fb80b67b7fcf2d65fd51b52e87703ccd7d79eb0c530514f9f0b4ed8cdd59804c39bc2ec8a37db265727422cb237b4fdda0c6fc93a8d57
7
- data.tar.gz: 9b233a54011a483b8c2a9abdaabe4e0e5b96238ce0470b398fe9ac7831c7d9c0570bf9118a9efddbd51a97c5da3265a204f33c27136a99740a9285072c764bcb
6
+ metadata.gz: f5465a87c12912d7d9204b8a6e71ea2f71de3aac8f95118e97e5043b85a7e44650314b4299ddba50ecadd23128836dea8f16ad160710ead5b4905c758dfbc089
7
+ data.tar.gz: a88add545d24e391f79fec8b1f3716f59b27d1786acc985bd14b0cfd16e37555b30f7a81da782179d31017e0e22b78f3a86abfcbad888511e59c1ff03c54ed08
data/README.md CHANGED
@@ -11,7 +11,7 @@ For more details see the `.github/workflows/ci.yml` file.
11
11
  Add the gem to your Gemfile (don't forget devise too):
12
12
 
13
13
  ```ruby
14
- gem 'devise_gauth', '~> 0.4.6'
14
+ gem 'devise_gauth', '~> 0.5.0'
15
15
  ```
16
16
 
17
17
  Don't forget to "bundle install"
@@ -113,6 +113,16 @@ earthly --allow-privileged +test --EARTHLY_RUBY_VERSION=2.5 --EARTHLY_RAILS_VERS
113
113
  ```
114
114
  _Be careful when switching between Rails versions, don't forget to delete your local Gemfile.lock file in order to avoid gem issues._
115
115
 
116
+ ## Publishing a new release
117
+
118
+ 1. Update the `CHANGELOG.md` file in order to freeze the current `Unreleased` into a version with a diff link at the botton of the file.
119
+ 2. Update the gem version from the `lib/devise_gauth/version.rb` file
120
+ 3. Update the **Installation** section from the `README.md` file if needed
121
+ 4. Commit the changes using the command `git ci -am "Bumped version v$VERSION"`
122
+ 5. Tag the version using the command `git tag -a "v$VERSION" -m "v$VERSION"`
123
+ 6. Push both the commit and the tag
124
+ 7. Using `earthly` you can publish the gem on Rubygems.org with `earthly +gem --RUBYGEMS_OTP=123456` (See `Earthfile` file for more details)
125
+
116
126
  ## Thanks (and unknown contributors)
117
127
 
118
128
  This extension would not exist without the following other projects and associated authors (Whom I have turned to for inspiration and definitely have helped contributing by providing awesome Devise extensions. A lot of this code has been refactored from various sources, in particular these - in particular Sergio and Devise_invitable for his excellent unit test code):
@@ -52,7 +52,7 @@ module Devise
52
52
  valid_vals << ROTP::TOTP.new(get_qr).at(Time.now.in(30 * cc))
53
53
  end
54
54
 
55
- valid_vals.include?(token.to_i)
55
+ valid_vals.map(&:to_i).include?(token.to_i)
56
56
  end
57
57
 
58
58
  def require_token?(cookie)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeviseGauth
4
- VERSION = '0.4.6'
4
+ VERSION = '0.5.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_gauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pharmony SA
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-07-23 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: actionmailer
@@ -70,14 +69,14 @@ dependencies:
70
69
  requirements:
71
70
  - - "~>"
72
71
  - !ruby/object:Gem::Version
73
- version: '1.6'
72
+ version: '2.1'
74
73
  type: :runtime
75
74
  prerelease: false
76
75
  version_requirements: !ruby/object:Gem::Requirement
77
76
  requirements:
78
77
  - - "~>"
79
78
  - !ruby/object:Gem::Version
80
- version: '1.6'
79
+ version: '2.1'
81
80
  - !ruby/object:Gem::Dependency
82
81
  name: rqrcode
83
82
  requirement: !ruby/object:Gem::Requirement
@@ -134,7 +133,7 @@ metadata:
134
133
  homepage_uri: http://github.com/pharmony/devise_gauth
135
134
  source_code_uri: http://github.com/pharmony/devise_gauth
136
135
  changelog_uri: http://github.com/pharmony/devise_gauth/blob/master/CHANGELOG.md
137
- post_install_message:
136
+ rubygems_mfa_required: 'true'
138
137
  rdoc_options: []
139
138
  require_paths:
140
139
  - lib
@@ -143,17 +142,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
143
142
  - - ">="
144
143
  - !ruby/object:Gem::Version
145
144
  version: '2.4'
146
- - - "<"
145
+ - - "<="
147
146
  - !ruby/object:Gem::Version
148
- version: '3.3'
147
+ version: '3.4'
149
148
  required_rubygems_version: !ruby/object:Gem::Requirement
150
149
  requirements:
151
150
  - - ">="
152
151
  - !ruby/object:Gem::Version
153
152
  version: '0'
154
153
  requirements: []
155
- rubygems_version: 3.3.27
156
- signing_key:
154
+ rubygems_version: 3.6.9
157
155
  specification_version: 4
158
156
  summary: Maintained Devise Google Authenticator Extension
159
157
  test_files: []