Skip to content

Commit a2b809a

Browse files
authored
Release 2.0 (#50)
* Bump to version 2.0.0 * Updated changelog to v2.0.0 * Add upgrading docs
2 parents 1ae8b79 + 21ea959 commit a2b809a

File tree

5 files changed

+30
-4
lines changed

5 files changed

+30
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [v2.0.0]
11+
1012
### Added
1113
- Added dummy route for `/auth/rpi` to add path helper `rpi_auth_login` (#44)
1214
- Request and routing specs inside the "dummy" testing app (#44)
@@ -67,6 +69,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6769
- callback, logout and failure routes to handle auth
6870

6971
[Unreleased]: https://github.com/RaspberryPiFoundation/rpi-auth/compare/v1.4.0...HEAD
72+
[v2.0.0]: https://github.com/RaspberryPiFoundation/rpi-auth/releases/tag/v2.0.0
7073
[v1.4.0]: https://github.com/RaspberryPiFoundation/rpi-auth/releases/tag/v1.4.0
7174
[v1.3.0]: https://github.com/RaspberryPiFoundation/rpi-auth/releases/tag/v1.3.0
7275
[v1.2.1]: https://github.com/RaspberryPiFoundation/rpi-auth/releases/tag/v1.2.1

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
rpi_auth (1.4.0)
4+
rpi_auth (2.0.0)
55
omniauth-rails_csrf_protection (~> 1.0.0)
66
omniauth-rpi (~> 1.4.0)
77
rails (>= 6.1.4)

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ There is also a helper for the logout route:
102102
link_to 'Log out', rpi_auth_logout_path
103103
```
104104

105-
### Sin
106-
107105
### Redirecting users to the "next step"
108106

109107
There are a three possible places the user will end up at following logging in,
@@ -152,6 +150,13 @@ class in `config/application.rb`.
152150
config.railties_order = [RpiAuth::Engine, :main_app, :all]
153151
```
154152

153+
## Upgrading between versions.
154+
155+
This project follows semantic versioning, so upgrades between minor and patch
156+
versions should not need any code or configuration changes.
157+
158+
For major version upgrades see the [upgrading docs](UPGRADING.md).
159+
155160
## License
156161

157162
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

UPGRADING.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Upgrading rpi-auth
2+
3+
Here are the details of the changes needed when upgrading between major versions of this gem.
4+
5+
## v1 to v2
6+
7+
Definitely change the following:
8+
9+
1. [ ] Replace references to `RpiAuth::AuthenticationHelper` with `RpiAuth::Controllers::CurrentUser`.
10+
2. [ ] Change `extend RpiAuth::Models::Authenticatable` to `include RpiAuth::Models::Authenticatable`.
11+
12+
You might also need to;
13+
14+
* [ ] Remove dummy `login` route in `/config/routes.rb`, and replace references to `login_path` with `rpi_auth_login_path`.
15+
* [ ] Change [the railties order](https://github.com/RaspberryPiFoundation/rpi-auth/blob/v2.0.0/README.md#globbedcatch-all-routes) if your app uses globbed/catch-all routes
16+
17+
18+

lib/rpi_auth/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module RpiAuth
4-
VERSION = '1.4.0'
4+
VERSION = '2.0.0'
55
end

0 commit comments

Comments
 (0)