omniauth-lastfm 1.0.1 → 1.0.2

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: 8acc77f20b91580d4aa1559665b4914376cccbcb54267db7ef64b495278e35f1
4
- data.tar.gz: 6535f51491ae46831e89bb7b75255ce4cbd1d64b9690acf12a29bc29c4bca1a3
3
+ metadata.gz: bb2d3144abae35d52e0d7a0d10a7924c37833ca0623a37b751ba27529f2137c7
4
+ data.tar.gz: b0a1e1c56464dfd7ff05afb23f9717ca60491869c3dc9d870ca1a3b495d7cbcc
5
5
  SHA512:
6
- metadata.gz: e74fa69f96436e12153a8cf39d3df2f6d03ce507ea972855568593a1035ec3984aa4ae1c36792b4c599d20acf633c3532a67e5dbdcafff5c56145c24c3abf5a5
7
- data.tar.gz: 8040e624b9ac19ef7f491dfdc70cef20d336326d507027365b0223b6cce0b381d5d154d79db1195a749f709dfb1e33b3ec9c37d804887b74ce10e3771bb5e14e
6
+ metadata.gz: eade64290017a6a6914be62b2fb2c29067ea364a231dfd077c1971380f9bbb003ac5b842ead9d9531f174be92494f1924ae8b831d242c591cf8376059a0cbd47
7
+ data.tar.gz: 91541cdd1b0c60c41d9ff1bb0ce5e4a13e86441678df463969948316d4a7d3ee7785e472d6b3ba43b8b2892ffbf443f71307c710878f5e795937bca7b0b901b8
data/README.md CHANGED
@@ -35,28 +35,63 @@ Set callback URL in the Last.fm API application settings:
35
35
 
36
36
  ## Auth Hash
37
37
 
38
- Example payload available in `request.env['omniauth.auth']`:
38
+ Example payload available in `request.env['omniauth.auth']` (real flow shape, anonymized):
39
39
 
40
40
  ```json
41
41
  {
42
42
  "provider": "lastfm",
43
- "uid": "ripuk",
43
+ "uid": "sample_user",
44
44
  "info": {
45
- "nickname": "ripuk",
46
- "name": "David Stephens",
47
- "url": "https://www.last.fm/user/ripuk",
48
- "image": "https://lastfm.freetls.fastly.net/i/u/300x300/abcdef.jpg",
49
- "country": "UK",
50
- "age": "31",
51
- "gender": "m"
45
+ "nickname": "sample_user",
46
+ "name": "Sample User",
47
+ "url": "https://www.last.fm/user/sample_user",
48
+ "image": "https://lastfm.freetls.fastly.net/i/u/300x300/sample-image-id.png",
49
+ "country": "Neverland",
50
+ "age": "0",
51
+ "gender": "n"
52
52
  },
53
53
  "credentials": {
54
- "token": "abcdefghijklmnop",
55
- "name": "ripuk"
54
+ "token": "sample-session-key",
55
+ "name": "sample_user"
56
56
  },
57
57
  "extra": {
58
58
  "raw_info": {
59
- "name": "ripuk"
59
+ "name": "sample_user",
60
+ "age": "0",
61
+ "subscriber": "0",
62
+ "realname": "Sample User",
63
+ "bootstrap": "0",
64
+ "playcount": "49612",
65
+ "artist_count": "399",
66
+ "playlists": "0",
67
+ "track_count": "5271",
68
+ "album_count": "690",
69
+ "image": [
70
+ {
71
+ "size": "small",
72
+ "#text": "https://lastfm.freetls.fastly.net/i/u/34s/sample-image-id.png"
73
+ },
74
+ {
75
+ "size": "medium",
76
+ "#text": "https://lastfm.freetls.fastly.net/i/u/64s/sample-image-id.png"
77
+ },
78
+ {
79
+ "size": "large",
80
+ "#text": "https://lastfm.freetls.fastly.net/i/u/174s/sample-image-id.png"
81
+ },
82
+ {
83
+ "size": "extralarge",
84
+ "#text": "https://lastfm.freetls.fastly.net/i/u/300x300/sample-image-id.png"
85
+ }
86
+ ],
87
+ "registered": {
88
+ "unixtime": "1257061701",
89
+ "#text": 1257061701
90
+ },
91
+ "country": "Neverland",
92
+ "gender": "n",
93
+ "url": "https://www.last.fm/user/sample_user",
94
+ "type": "user"
60
95
  }
61
96
  }
62
97
  }
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module Lastfm
5
- VERSION = '1.0.1'
5
+ VERSION = '1.0.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-lastfm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claudio Poli