Skip to content

Commit cb534c6

Browse files
authored
🔀 Merge pull request #129 from omniauth/release/v3.1.0
Release/v3.1.0
2 parents 77d4926 + f76b688 commit cb534c6

39 files changed

+1177
-103
lines changed

.rubocop_gradual.lock

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
{
2-
"README.md:517414065": [
2+
"README.md:1323834265": [
33
[232, 3, 100, "Style/ClassMethodsDefinitions: Use `class << self` to define a class method.", 3592044714]
44
],
5-
"lib/omniauth/identity/model.rb:3893215304": [
6-
[26, 7, 310, "Style/ClassMethodsDefinitions: Use `class << self` to define a class method.", 2741399784],
7-
[51, 11, 9, "ThreadSafety/ClassInstanceVariable: Avoid class instance variables.", 4045031525],
8-
[52, 11, 9, "ThreadSafety/ClassInstanceVariable: Avoid class instance variables.", 4045031525],
9-
[52, 40, 9, "ThreadSafety/ClassInstanceVariable: Avoid class instance variables.", 4045031525],
10-
[52, 54, 9, "ThreadSafety/ClassInstanceVariable: Avoid class instance variables.", 4045031525],
11-
[54, 11, 9, "ThreadSafety/ClassInstanceVariable: Avoid class instance variables.", 4045031525]
5+
"bin/bundle:247448467": [
6+
[64, 5, 20, "ThreadSafety/ClassInstanceVariable: Avoid class instance variables.", 2485198147]
7+
],
8+
"lib/omniauth/identity/model.rb:1162570792": [
9+
[53, 11, 9, "ThreadSafety/ClassInstanceVariable: Avoid class instance variables.", 4045031525],
10+
[54, 11, 9, "ThreadSafety/ClassInstanceVariable: Avoid class instance variables.", 4045031525],
11+
[54, 40, 9, "ThreadSafety/ClassInstanceVariable: Avoid class instance variables.", 4045031525],
12+
[54, 54, 9, "ThreadSafety/ClassInstanceVariable: Avoid class instance variables.", 4045031525],
13+
[56, 11, 9, "ThreadSafety/ClassInstanceVariable: Avoid class instance variables.", 4045031525]
1214
],
1315
"lib/omniauth/identity/models/active_record.rb:1552301885": [
1416
[19, 9, 113, "Style/ClassMethodsDefinitions: Use `class << self` to define a class method.", 2104861380],

CHANGELOG.md

Lines changed: 109 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,125 +1,123 @@
11
# Changelog
22

3-
All notable changes to this project will be documented in this file.
3+
All notable changes to this project since v2.0 will be documented in this file.
44

5-
6-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
7-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5+
The format is based on [Keep a Changelog v1](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning v2](https://semver.org/spec/v2.0.0.html).
87

98
## [Unreleased]
10-
11-
## [3.0.9] - 2021-06-16
12-
9+
### Added
10+
### Changed
1311
### Fixed
12+
### Removed
1413

14+
## [3.1.0] - 2024-11-18 ([tag][3.1.0t])
15+
- COVERAGE: 91.98% -- 344/374 lines in 15 files
16+
- BRANCH COVERAGE: 80.26% -- 61/76 branches in 15 files
17+
- 44.44% documented
18+
### Added
19+
- [PR #123][123] Improve readability in #identity method of OmniAuth::Strategies::Identity by @Xeragus
20+
- [PR #124][124] Modernized gem structure, and updated dependencies for development by @pboling
21+
- Gem releases are now cryptographically signed
22+
- All ORM adapters (except NoBrainer) are tested in CI
23+
- [PR #127][127] Improved documentation by @pboling
24+
- [PR #128][128] Instructions for contributing by @pboling
25+
### Changed
26+
- Deprecate `require 'omniauth/identity'` by @pboling
27+
- in favor of `require omniauth-identity` (matching the gem name)
28+
### Fixed
29+
- [PR #120][120] Fix: handling of SCRIPT_NAME for registration_path by @btalbot
30+
- [PR #122][122] Compatibility with rack v3.1+: use `req.params[]` instead of `req[]` by @emon
31+
- See: https://github.com/rack/rack/pull/2183
32+
33+
[128]: https://github.com/omniauth/omniauth-identity/pull/128
34+
[127]: https://github.com/omniauth/omniauth-identity/pull/127
35+
[124]: https://github.com/omniauth/omniauth-identity/pull/124
36+
[123]: https://github.com/omniauth/omniauth-identity/pull/123
37+
[122]: https://github.com/omniauth/omniauth-identity/pull/122
38+
[120]: https://github.com/omniauth/omniauth-identity/pull/120
39+
40+
## [3.0.9] - 2021-06-16 ([tag][3.0.9t])
41+
### Fixed
1542
- \[Sequel\] Fixes loading the Sequel adapter, issue reported as [#112](https://github.com/omniauth/omniauth-identity/issues/112)
16-
1743
### Added
18-
1944
- 📝 Document the Database adapters and drivers the gem currently works with
2045

21-
## [3.0.8] - 2021-03-24
22-
46+
## [3.0.8] - 2021-03-24 ([tag][3.0.8t])
2347
### Fixed
24-
2548
- \[Model\] Fixes 2 issues raised in a comment on PR [#108](https://github.com/omniauth/omniauth-identity/pull/108#issuecomment-804456604)
2649
- When `options[:on_validation]` is set `new`/`save`/`persisted?` logic is used.
2750
- When `options[:on_validation]` is not set `create`/`persisted?` logic is used.
2851

29-
## [3.0.7] - 2021-03-23
30-
52+
## [3.0.7] - 2021-03-23 ([tag][3.0.7t])
3153
### Fixed
32-
3354
- \[ActiveRecord\] Fixed [#110](https://github.com/omniauth/omniauth-identity/issues/110) which prevented `OmniAuth::Identity::Models::ActiveRecord`-based records from saving.
3455
- \[CouchPotato\] Fixed `OmniAuth::Identity::Models::CouchPotato`'s `#save`.
3556
- \[Sequel\] Fixed `OmniAuth::Identity::Models::Sequel`'s `#save`.
3657
- \[Model\] Only define `::create`, `#save`, and `#persisted?` when not already defined.
3758
- \[Model\] Restore original `info` functionality which set `name` based on `first_name`, `last_name`, or `nickname`
3859

3960
### Changed
40-
4161
- Upgraded to a newer `OmniAuth::Identity::SecurePassword` ripped from [Rails 6-1-stable](https://github.com/rails/rails/blob/6-1-stable/activemodel/lib/active_model/secure_password.rb)
4262
- Aeons ago the original was ripped from Rails 3.1, and frozen in time.
4363
While writing specs, it was discovered to be incompatible with this gem's Sequel adapter.
4464
- Specs validate that the new version does work.
4565
In any case, the ripped version is only used when the `has_secure_password` macro is not yet defined in the class.
46-
4766
### Added
48-
4967
- New specs to cover real use cases and implementations of each ORM model adapter that ships with the gem:
5068
- ActiveRecord (Polyglot - Many Relational Databases)
5169
- Sequel (Polyglot - Many Relational Databases)
5270
- CouchPotato (CouchDB)
5371
- Mongoid (MongoDB)
5472
- NoBrainer (RethinkDB)
5573

56-
## [3.0.6] - 2021-03-20
57-
74+
## [3.0.6] - 2021-03-20 ([tag][3.0.6t])
5875
### Fixed
59-
6076
- Fix breaking changes introduced by [#108](https://github.com/omniauth/omniauth-identity/pull/108) which prevented `:on_validation` from firing
61-
6277
### Added
63-
6478
- New (or finally documented) options:
6579
- `:create_identity_link_text` defaults to `'Create an Identity'`
6680
- `:registration_failure_message` defaults to `'One or more fields were invalid'`
6781
- `:validation_failure_message` defaults to `'Validation failed'`
6882
- `:title` defaults to `'Identity Verification'`
6983
- `:registration_form_title` defaults to `'Register Identity'`
7084

71-
## [3.0.5] - 2021-03-19
72-
85+
## [3.0.5] - 2021-03-19 ([tag][3.0.5t])
7386
### Fixed
74-
7587
- Fix breaking changes introduced by [#86's](https://github.com/omniauth/omniauth-identity/pull/86) introduction of `:on_validation`
76-
7788
### Added
78-
7989
- Define `#save`, `#persisted?` and `::create` on `Omniauth::Identity::Model`
8090
- Add `@since` YARD tags to interface methods
8191
- Refactor `Omniauth::Strategies::Identity.registration_phase` to support `Omniauth::Identity::Model`-inheriting classes that do not define `#save`.
8292
- This support will be dropped in v4.0.
8393

84-
## [3.0.4] - 2021-02-14
85-
94+
## [3.0.4] - 2021-02-14 ([tag][3.0.4t])
8695
### Added
87-
8896
- Add support for [sequel ORM](http://sequel.jeremyevans.net/)
8997

90-
## [3.0.3] - 2021-02-14
91-
98+
## [3.0.3] - 2021-02-14 ([tag][3.0.3t])
9299
### Added
93-
94100
- Add option `:on_validation`, which can be used to add a Captcha
95101
- See [example here](https://github.com/omniauth/omniauth-identity/pull/86#issue-63225122)
96102
- Add support for nobrainer, an ORM for RethinkDB
97103
- Validation error message on invalid registration form submission
98-
99104
### Removed
100-
101105
- ruby-head build... simply too slow
102106

103-
## [3.0.2] - 2021-02-14
104-
107+
## [3.0.2] - 2021-02-14 ([tag][3.0.2t])
105108
### Fixed
106-
107109
- Github Actions CI Build for Ruby 2.4, 3.0 and ruby-head
108110
- Updated copyright
109111
- Code style cleanup
110112
- Added Code Climate "Quality"
111113
- Updated Readme
112114

113-
## [3.0.1] - 2021-02-14
114-
115+
## [3.0.1] - 2021-02-14 ([tag][3.0.1t])
115116
### Fixed
116-
117117
- Github Actions CI Build for various Rubies
118118

119-
## [3.0] - 2021-02-13
120-
119+
## [3.0.0] - 2021-02-13 ([tag][3.0.0t])
121120
### Added
122-
123121
- Compatibility with Ruby 3
124122
- Add option `:enable_login` to bypass OmniAuth disabling of GET method (default `true`)
125123
- NOTE: This restores compatibility between this gem and the current, core, omniauth gem!
@@ -130,22 +128,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
130128
- Minimum Ruby version = 2.4
131129
- Automatically adds "provider" => "identity" when "provider" column is detected
132130
- Documentation in README.md
133-
134131
### Removed
135-
136132
- Support for Rubies < 2.4
137133
- Support for DataMapper, which died long ago.
138134
- Unwanted git artifacts
139135

140-
## [2.0] - 2020-09-01
141-
136+
## [2.0.0] - 2020-09-01 ([tag][2.0.0t])
142137
### Added
143-
144138
- CHANGELOG to maintain a history of changes.
145139
- Include mongoid-rspec gem.
146-
147140
### Changed
148-
149141
- Fix failing Specs
150142
- Update Spec syntax to RSpec 3
151143
- Fix deprecation Warnings
@@ -154,7 +146,70 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
154146
- Dependency version limits so that the most up-to-date gem dependencies are used. (rspec 3+, mongo 2+, mongoid 7+, rake 13+, rack 2+, json 2+)
155147
- Updated copyright information.
156148
- Updated MongoMapper section of README to reflect its discontinued support.
157-
158149
### Removed
159150
- Gemfile.lock file
160-
- MongoMapper support; unable to satisfy dependencies of both MongoMapper and Mongoig now that MongoMapper is no longer actively maintained.
151+
- MongoMapper support; unable to satisfy dependencies of both MongoMapper and Mongoid now that MongoMapper is no longer actively maintained.
152+
153+
[Unreleased]: https://github.com/omniauth/omniauth-identity/compare/v3.1.0...HEAD
154+
[3.1.0]: https://github.com/omniauth/omniauth-identity/compare/v3.0.9...v3.1.0
155+
[3.1.0t]: https://github.com/omniauth/omniauth-identity/tags/v3.1.0
156+
[3.0.9]: https://github.com/omniauth/omniauth-identity/compare/v3.0.8...v3.0.9
157+
[3.0.9t]: https://github.com/omniauth/omniauth-identity/tags/v3.0.9
158+
[3.0.8]: https://github.com/omniauth/omniauth-identity/compare/v3.0.7...v3.0.8
159+
[3.0.8t]: https://github.com/omniauth/omniauth-identity/tags/v3.0.8
160+
[3.0.7]: https://github.com/omniauth/omniauth-identity/compare/v3.0.6...v3.0.7
161+
[3.0.7t]: https://github.com/omniauth/omniauth-identity/tags/v3.0.7
162+
[3.0.6]: https://github.com/omniauth/omniauth-identity/compare/v3.0.5...v3.0.6
163+
[3.0.6t]: https://github.com/omniauth/omniauth-identity/tags/v3.0.6
164+
[3.0.5]: https://github.com/omniauth/omniauth-identity/compare/v3.0.4...v3.0.5
165+
[3.0.5t]: https://github.com/omniauth/omniauth-identity/tags/v3.0.5
166+
[3.0.4]: https://github.com/omniauth/omniauth-identity/compare/v3.0.3...v3.0.4
167+
[3.0.4t]: https://github.com/omniauth/omniauth-identity/tags/v3.0.4
168+
[3.0.3]: https://github.com/omniauth/omniauth-identity/compare/v3.0.2...v3.0.3
169+
[3.0.3t]: https://github.com/omniauth/omniauth-identity/tags/v3.0.3
170+
[3.0.2]: https://github.com/omniauth/omniauth-identity/compare/v3.0.1...v3.0.2
171+
[3.0.2t]: https://github.com/omniauth/omniauth-identity/tags/v3.0.2
172+
[3.0.1]: https://github.com/omniauth/omniauth-identity/compare/v3.0.0...v3.0.1
173+
[3.0.1t]: https://github.com/omniauth/omniauth-identity/tags/v3.0.1
174+
[3.0.0]: https://github.com/omniauth/omniauth-identity/compare/v2.0.0...v3.0.0
175+
[3.0.0t]: https://github.com/omniauth/omniauth-identity/tags/v3.0.0
176+
[2.0.0]: https://github.com/omniauth/omniauth-identity/compare/v1.1.1...v2.0.0
177+
[2.0.0t]: https://github.com/omniauth/omniauth-identity/tags/v2.0.0
178+
[1.1.1]: https://github.com/omniauth/omniauth-identity/compare/v1.1.0...v1.1.1
179+
[1.1.1t]: https://github.com/omniauth/omniauth-identity/tags/v1.1.1
180+
[1.1.0]: https://github.com/omniauth/omniauth-identity/compare/v1.0.0...v1.1.0
181+
[1.1.0t]: https://github.com/omniauth/omniauth-identity/tags/v1.0.0
182+
[1.0.0]: https://github.com/omniauth/omniauth-identity/compare/v0.3.0...v1.0.0
183+
[1.0.0t]: https://github.com/omniauth/omniauth-identity/tags/v1.0.0
184+
[0.3.0]: https://github.com/omniauth/omniauth-identity/compare/v0.2.6...v0.3.0
185+
[0.3.0t]: https://github.com/omniauth/omniauth-identity/tags/v0.3.0
186+
[0.2.6]: https://github.com/omniauth/omniauth-identity/compare/v0.2.5...v0.2.6
187+
[0.2.6t]: https://github.com/omniauth/omniauth-identity/tags/v0.2.6
188+
[0.2.5]: https://github.com/omniauth/omniauth-identity/compare/v0.2.4...v0.2.5
189+
[0.2.5t]: https://github.com/omniauth/omniauth-identity/tags/v0.2.5
190+
[0.2.4]: https://github.com/omniauth/omniauth-identity/compare/v0.2.3...v0.2.4
191+
[0.2.4t]: https://github.com/omniauth/omniauth-identity/tags/v0.2.5
192+
[0.2.3]: https://github.com/omniauth/omniauth-identity/compare/v0.2.2...v0.2.3
193+
[0.2.3t]: https://github.com/omniauth/omniauth-identity/tags/v0.2.3
194+
[0.2.2]: https://github.com/omniauth/omniauth-identity/compare/v0.2.1...v0.2.2
195+
[0.2.2t]: https://github.com/omniauth/omniauth-identity/tags/v0.2.2
196+
[0.2.1]: https://github.com/omniauth/omniauth-identity/compare/v0.2.0...v0.2.1
197+
[0.2.1t]: https://github.com/omniauth/omniauth-identity/tags/v0.2.1
198+
[0.2.0]: https://github.com/omniauth/omniauth-identity/compare/v0.1.6...v0.2.0
199+
[0.2.0t]: https://github.com/omniauth/omniauth-identity/tags/v0.2.0
200+
[0.1.6]: https://github.com/omniauth/omniauth-identity/compare/v0.1.5...v0.1.6
201+
[0.1.6t]: https://github.com/omniauth/omniauth-identity/tags/v0.1.6
202+
[0.1.5]: https://github.com/omniauth/omniauth-identity/compare/v0.1.4...v0.1.5
203+
[0.1.5t]: https://github.com/omniauth/omniauth-identity/tags/v0.1.5
204+
[0.1.4]: https://github.com/omniauth/omniauth-identity/compare/v0.1.3...v0.1.4
205+
[0.1.4t]: https://github.com/omniauth/omniauth-identity/tags/v0.1.4
206+
[0.1.3]: https://github.com/omniauth/omniauth-identity/compare/v0.1.1...v0.1.3
207+
[0.1.3t]: https://github.com/omniauth/omniauth-identity/tags/v0.1.3
208+
[0.1.1]: https://github.com/omniauth/omniauth-identity/compare/v0.0.4...v0.1.1
209+
[0.1.1t]: https://github.com/omniauth/omniauth-identity/tags/v0.1.1
210+
[0.0.4]: https://github.com/omniauth/omniauth-identity/compare/v0.0.3...v0.0.4
211+
[0.0.4t]: https://github.com/omniauth/omniauth-identity/tags/v0.0.4
212+
[0.0.3]: https://github.com/omniauth/omniauth-identity/compare/v0.0.1...v0.0.3
213+
[0.0.3t]: https://github.com/omniauth/omniauth-identity/tags/v0.0.3
214+
[0.0.1]: https://github.com/omniauth/omniauth-identity/compare/be7b50aafea590caae6dc9dce550a96b997773cd...v0.0.1
215+
[0.0.1t]: https://github.com/omniauth/omniauth-identity/tags/v0.0.1

0 commit comments

Comments
 (0)