omniauth-lastfm 1.0.2 → 1.0.3
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 +4 -4
- data/README.md +24 -2
- data/lib/omniauth/lastfm/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4669ea9ca70a4e4a7c7f08279a588fafafd35c032af578d9020629037f4d2dbb
|
|
4
|
+
data.tar.gz: a7067d4983190aa84f6bc68e18792363efb8d260f6e66c0341efc87cc9cf83d3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 198f79d10470feb34693e1043ddcfa6acca8a1081993ffc2b594cf92e7cbd8b77520aa0cf4cd2b643083c6f7d661fde32165fcc8771004b136afc5ecccbbec4a
|
|
7
|
+
data.tar.gz: ef16eb5143daff1c2fe542d7c7a4d0ea9ca3250a3d7d432c8882742705289ac3f2dac5680c7d52f075f1d9d29d82e0b2b5cd6f57a85e206209e8dc69c8fb7ecb
|
data/README.md
CHANGED
|
@@ -29,10 +29,18 @@ Rails.application.config.middleware.use OmniAuth::Builder do
|
|
|
29
29
|
end
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
## Provider App Setup
|
|
33
|
+
|
|
34
|
+
- Last.fm API applications: <https://www.last.fm/api/account/create>
|
|
35
|
+
- Set callback URL in the Last.fm API application settings:
|
|
33
36
|
|
|
34
37
|
- `https://your-app.example.com/auth/lastfm/callback`
|
|
35
38
|
|
|
39
|
+
## Options
|
|
40
|
+
|
|
41
|
+
- `api_timeout` (default `10`)
|
|
42
|
+
- `callback_url`
|
|
43
|
+
|
|
36
44
|
## Auth Hash
|
|
37
45
|
|
|
38
46
|
Example payload available in `request.env['omniauth.auth']` (real flow shape, anonymized):
|
|
@@ -111,7 +119,21 @@ Run Rails integration tests explicitly:
|
|
|
111
119
|
RAILS_VERSION='~> 7.2.0' bundle exec rake test_rails_integration
|
|
112
120
|
```
|
|
113
121
|
|
|
114
|
-
##
|
|
122
|
+
## Test Structure
|
|
123
|
+
|
|
124
|
+
- `test/omniauth_lastfm_test.rb`: strategy/unit behavior
|
|
125
|
+
- `test/rails_integration_test.rb`: full Rack/Rails request+callback flow
|
|
126
|
+
- `test/test_helper.rb`: shared test bootstrap
|
|
127
|
+
|
|
128
|
+
## Compatibility
|
|
115
129
|
|
|
116
130
|
- Ruby: 3.2, 3.3, 3.4, 4.0
|
|
117
131
|
- Rails integration: 7.1, 7.2, 8.0, 8.1
|
|
132
|
+
|
|
133
|
+
## Release
|
|
134
|
+
|
|
135
|
+
Tag releases as `vX.Y.Z`; GitHub Actions publishes the gem to RubyGems.
|
|
136
|
+
|
|
137
|
+
## License
|
|
138
|
+
|
|
139
|
+
MIT
|