notu 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.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/notu/library.rb +1 -1
  4. data/spec/cassettes/Notu_HtmlDocument/_get/follows_redirects.yml +22 -24
  5. data/spec/cassettes/Notu_HtmlDocument/_get/raise_a_NetworkError_on_404.yml +11 -13
  6. data/spec/cassettes/Notu_HtmlDocument/_get/raise_a_ParseError_if_not_a_valid_document.yml +35 -41
  7. data/spec/cassettes/Notu_HtmlDocument/_get/returns_document_parsed.yml +16 -16
  8. data/spec/cassettes/Notu_HttpDownload/_get/accepts_HTTPS_URL.yml +16 -16
  9. data/spec/cassettes/Notu_HttpDownload/_get/follow_redirects.yml +22 -24
  10. data/spec/cassettes/Notu_HttpDownload/_get/raise_a_NetworkError_if_too_many_redirects.yml +7 -9
  11. data/spec/cassettes/Notu_HttpDownload/_get/raise_a_NetworkError_on_404.yml +11 -13
  12. data/spec/cassettes/Notu_HttpDownload/_get/retrives_document_from_given_URL.yml +16 -16
  13. data/spec/cassettes/Notu_LovedTracks/_each/returns_nil.yml +6755 -3685
  14. data/spec/cassettes/Notu_LovedTracks/_each/returns_some_tracks.yml +13522 -7380
  15. data/spec/cassettes/Notu_LovedTracks/_page_urls/is_correct.yml +13477 -7333
  16. data/spec/cassettes/Notu_LovedTracks/_pages_count/is_correct.yml +6728 -3656
  17. data/spec/cassettes/Notu_MostPlayedTracks/_each/returns_nil.yml +22173 -2364
  18. data/spec/cassettes/Notu_MostPlayedTracks/_each/returns_some_tracks.yml +15657 -9037
  19. data/spec/cassettes/Notu_MostPlayedTracks/_page_urls/is_correct.yml +16013 -9153
  20. data/spec/cassettes/Notu_MostPlayedTracks/_pages_count/is_correct.yml +8174 -4730
  21. data/spec/cassettes/Notu_PlayedTracks/_each/returns_nil.yml +7615 -3623
  22. data/spec/cassettes/Notu_PlayedTracks/_each/returns_some_tracks.yml +15365 -7381
  23. data/spec/cassettes/Notu_PlayedTracks/_page_urls/is_correct.yml +15378 -7394
  24. data/spec/cassettes/Notu_PlayedTracks/_pages_count/is_correct.yml +7617 -3625
  25. data/spec/notu/library_spec.rb +7 -7
  26. data/spec/notu/loved_tracks_spec.rb +2 -2
  27. data/spec/notu/most_played_tracks_spec.rb +2 -2
  28. data/spec/notu/played_tracks_spec.rb +2 -2
  29. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ded8a32942e830661c349d58c7a605cfeab5a2fa
4
- data.tar.gz: 65d499dfebe0d40c8d45db82c55a9c4a15e7f1c9
3
+ metadata.gz: 30d828d8f1f677f40a433056c5ae0f4e02c8ae19
4
+ data.tar.gz: 1219ca2136ff1b3012a452213cf23bd054d5b344
5
5
  SHA512:
6
- metadata.gz: 2f5fa245ccf0c0e1b13f1e5f61e0cc273c6d2e711d8b4085d87b962c551868cc6ac311c8dbddcc6d6fb842b7e32fe0de2e2b291b7ebc241b25bfaa876c287a1f
7
- data.tar.gz: fb1e3fbd2a60fd181dfe14b4228aaba16cbd1cabf50896337d932ced2562c2b4f37f4b79e1bc02b5185ee9471cf5d95277d91f4786bff543762704b610614338
6
+ metadata.gz: 7e03cc7ea18cfcfd3ffc6bc3385662306e4b4d40c68b8b0abeb2c5759c92cda6e6ab827dc464a298536e0fc83e1e9b3bf2e6f271f1528eaf038095e04146dce2
7
+ data.tar.gz: 89f38b628a39bb644c426ccf44e0c6caa6624f224f4be44b95761d9e080e98907721a021caf0ae947640065f0d578200d2dd477a8692a15222afb5593dfb31f7
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.2
@@ -29,7 +29,7 @@ module Notu
29
29
  path = options['path'].presence
30
30
  query = options['query'].presence
31
31
  query = options['query'].map { |name, value| "#{CGI.escape(name.to_s)}=#{CGI.escape(value.to_s)}" }.join('&') if options['query'].is_a?(Hash)
32
- "http://#{host}/user/#{username}".tap do |url|
32
+ "https://#{host}/user/#{username}".tap do |url|
33
33
  if path.present?
34
34
  url << '/' unless path.starts_with?('/')
35
35
  url << path
@@ -10,7 +10,7 @@ http_interactions:
10
10
  Accept-Encoding:
11
11
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
12
  Accept:
13
- - "*/*"
13
+ - '*/*'
14
14
  User-Agent:
15
15
  - Ruby
16
16
  response:
@@ -19,15 +19,13 @@ http_interactions:
19
19
  message: Moved Permanently
20
20
  headers:
21
21
  Date:
22
- - Wed, 19 Aug 2015 01:03:26 GMT
22
+ - Tue, 28 Mar 2017 02:03:45 GMT
23
23
  Server:
24
- - Apache/2.2.16 (Debian)
24
+ - Apache/2.4.10 (Debian)
25
25
  Location:
26
26
  - http://alweb.org/
27
- Vary:
28
- - Accept-Encoding
29
27
  Content-Length:
30
- - '241'
28
+ - '304'
31
29
  Content-Type:
32
30
  - text/html; charset=iso-8859-1
33
31
  body:
@@ -40,10 +38,10 @@ http_interactions:
40
38
  <h1>Moved Permanently</h1>
41
39
  <p>The document has moved <a href="http://alweb.org/">here</a>.</p>
42
40
  <hr>
43
- <address>Apache/2.2.16 (Debian) Server at www.alweb.org Port 80</address>
41
+ <address>Apache/2.4.10 (Debian) Server at www.alweb.org Port 80</address>
44
42
  </body></html>
45
43
  http_version:
46
- recorded_at: Wed, 19 Aug 2015 01:03:26 GMT
44
+ recorded_at: Tue, 28 Mar 2017 02:03:45 GMT
47
45
  - request:
48
46
  method: get
49
47
  uri: http://alweb.org/
@@ -54,7 +52,7 @@ http_interactions:
54
52
  Accept-Encoding:
55
53
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
56
54
  Accept:
57
- - "*/*"
55
+ - '*/*'
58
56
  User-Agent:
59
57
  - Ruby
60
58
  response:
@@ -63,31 +61,31 @@ http_interactions:
63
61
  message: OK
64
62
  headers:
65
63
  Date:
66
- - Wed, 19 Aug 2015 01:03:27 GMT
64
+ - Tue, 28 Mar 2017 02:03:46 GMT
67
65
  Server:
68
- - Apache/2.2.16 (Debian)
66
+ - Apache/2.4.10 (Debian)
67
+ Cache-Control:
68
+ - public
69
69
  X-Frame-Options:
70
70
  - SAMEORIGIN
71
71
  X-Xss-Protection:
72
72
  - 1; mode=block
73
73
  X-Content-Type-Options:
74
74
  - nosniff
75
- Etag:
76
- - '"17883192c98ca0216d45df6579fc74e5"'
77
- Cache-Control:
78
- - public
79
- X-Request-Id:
80
- - 7755283b-c2d8-4431-94ad-881df833cf2b
81
75
  X-Runtime:
82
- - '0.006922'
76
+ - '0.005798'
77
+ X-Request-Id:
78
+ - a15540df-ddf3-4625-865f-4f96578dcbbe
83
79
  X-Powered-By:
84
- - Phusion Passenger 4.0.53
80
+ - Phusion Passenger 5.1.2
81
+ Etag:
82
+ - W/"1d6c9f54213353228bf5a314864dae98-gzip"
85
83
  Status:
86
84
  - 200 OK
87
85
  Vary:
88
86
  - Accept-Encoding
89
87
  Content-Length:
90
- - '787'
88
+ - '835'
91
89
  Content-Type:
92
90
  - text/html; charset=utf-8
93
91
  body:
@@ -110,8 +108,8 @@ http_interactions:
110
108
  <meta name="DC.creator" content="Alexis Toulotte" />
111
109
  <meta name="DC.description" content="Page personnelle d'Alexis Toulotte." />
112
110
  <meta name="google-site-verification" content="1dodRvC0Zp-iAZilnTeT5PaY4bPKHwSzs9994-3g304" />
113
- <script src="/assets/application-eae74a30b96601b52819de1d8f7920d7.js"></script>
114
- <link rel="stylesheet" media="screen" href="/assets/application-ccd3cc87d5f63a3e28a2f20ec2ea3a97.css" />
111
+ <script src="/assets/application-c8b319b8094a109a741beabe9d1816cc0fc0433c6ea327ed8924d1f35f0feef8.js"></script>
112
+ <link rel="stylesheet" media="screen" href="/assets/application-4b8e4dcf313c48276cec891d1573b606aa89f12e34e7117d93579d95ea6e3d89.css" />
115
113
  <link href="/avatar?size=128" rel="icon" type="image/png" />
116
114
  <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Dancing Script" />
117
115
  <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Raleway" />
@@ -165,5 +163,5 @@ http_interactions:
165
163
 
166
164
  </html>
167
165
  http_version:
168
- recorded_at: Wed, 19 Aug 2015 01:03:27 GMT
169
- recorded_with: VCR 2.9.3
166
+ recorded_at: Tue, 28 Mar 2017 02:03:46 GMT
167
+ recorded_with: VCR 3.0.3
@@ -10,7 +10,7 @@ http_interactions:
10
10
  Accept-Encoding:
11
11
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
12
  Accept:
13
- - "*/*"
13
+ - '*/*'
14
14
  User-Agent:
15
15
  - Ruby
16
16
  response:
@@ -19,21 +19,19 @@ http_interactions:
19
19
  message: Not Found
20
20
  headers:
21
21
  Date:
22
- - Wed, 19 Aug 2015 01:03:25 GMT
22
+ - Tue, 28 Mar 2017 02:03:43 GMT
23
23
  Server:
24
- - Apache/2.2.16 (Debian)
25
- X-Request-Id:
26
- - cd80c4e1-b689-4add-a080-552bc5fb6ca2
24
+ - Apache/2.4.10 (Debian)
27
25
  X-Runtime:
28
- - '0.003299'
26
+ - '0.001316'
27
+ X-Request-Id:
28
+ - e03643d3-ef3a-440e-aed6-e721df0bf2fa
29
29
  X-Powered-By:
30
- - Phusion Passenger 4.0.53
30
+ - Phusion Passenger 5.1.2
31
+ Content-Length:
32
+ - '495'
31
33
  Status:
32
34
  - 404 Not Found
33
- Vary:
34
- - Accept-Encoding
35
- Content-Length:
36
- - '309'
37
35
  Content-Type:
38
36
  - text/html; charset=utf-8
39
37
  body:
@@ -69,5 +67,5 @@ http_interactions:
69
67
 
70
68
  </html>
71
69
  http_version:
72
- recorded_at: Wed, 19 Aug 2015 01:03:25 GMT
73
- recorded_with: VCR 2.9.3
70
+ recorded_at: Tue, 28 Mar 2017 02:03:44 GMT
71
+ recorded_with: VCR 3.0.3
@@ -10,7 +10,7 @@ http_interactions:
10
10
  Accept-Encoding:
11
11
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
12
  Accept:
13
- - "*/*"
13
+ - '*/*'
14
14
  User-Agent:
15
15
  - Ruby
16
16
  response:
@@ -19,40 +19,36 @@ http_interactions:
19
19
  message: Found
20
20
  headers:
21
21
  Date:
22
- - Wed, 19 Aug 2015 01:03:28 GMT
22
+ - Tue, 28 Mar 2017 02:03:41 GMT
23
23
  Server:
24
- - Apache/2.2.16 (Debian)
24
+ - Apache/2.4.10 (Debian)
25
+ Cache-Control:
26
+ - no-cache
27
+ X-Runtime:
28
+ - '0.003862'
25
29
  X-Frame-Options:
26
30
  - SAMEORIGIN
27
31
  X-Xss-Protection:
28
32
  - 1; mode=block
29
33
  X-Content-Type-Options:
30
34
  - nosniff
31
- Etag:
32
- - '"fcc9c11bad7747937dfc96cd94e35bca"'
33
- Cache-Control:
34
- - public
35
35
  X-Request-Id:
36
- - 8b9c16a1-d4b1-4634-8b62-2781713921f7
37
- X-Runtime:
38
- - '0.003552'
36
+ - e3243aab-5674-410d-aca1-1483beae699d
39
37
  X-Powered-By:
40
- - Phusion Passenger 4.0.53
38
+ - Phusion Passenger 5.1.2
41
39
  Location:
42
40
  - http://www.gravatar.com/avatar/c090d5749bd9877588ac8563e0817042
43
41
  Status:
44
42
  - 302 Found
45
- Vary:
46
- - Accept-Encoding
47
- Content-Length:
48
- - '129'
43
+ Transfer-Encoding:
44
+ - chunked
49
45
  Content-Type:
50
46
  - text/html; charset=utf-8
51
47
  body:
52
48
  encoding: UTF-8
53
49
  string: <html><body>You are being <a href="http://www.gravatar.com/avatar/c090d5749bd9877588ac8563e0817042">redirected</a>.</body></html>
54
50
  http_version:
55
- recorded_at: Wed, 19 Aug 2015 01:03:28 GMT
51
+ recorded_at: Tue, 28 Mar 2017 02:03:42 GMT
56
52
  - request:
57
53
  method: get
58
54
  uri: http://www.gravatar.com/avatar/c090d5749bd9877588ac8563e0817042
@@ -63,7 +59,7 @@ http_interactions:
63
59
  Accept-Encoding:
64
60
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
65
61
  Accept:
66
- - "*/*"
62
+ - '*/*'
67
63
  User-Agent:
68
64
  - Ruby
69
65
  response:
@@ -71,36 +67,34 @@ http_interactions:
71
67
  code: 200
72
68
  message: OK
73
69
  headers:
70
+ Server:
71
+ - nginx
74
72
  Date:
75
- - Wed, 19 Aug 2015 00:59:59 GMT
73
+ - Tue, 28 Mar 2017 02:03:43 GMT
74
+ Content-Type:
75
+ - image/png
76
+ Content-Length:
77
+ - '11789'
78
+ Connection:
79
+ - keep-alive
76
80
  Last-Modified:
77
81
  - Thu, 24 Jan 2013 00:31:59 GMT
78
- Connection:
79
- - Keep-Alive
80
- Cache-Control:
81
- - max-age=300
82
- Age:
83
- - '210'
84
- Accept-Ranges:
85
- - bytes
86
- Access-Control-Allow-Origin:
87
- - "*"
82
+ Link:
83
+ - <https://www.gravatar.com/avatar/c090d5749bd9877588ac8563e0817042>; rel="canonical"
88
84
  Content-Disposition:
89
85
  - inline; filename="c090d5749bd9877588ac8563e0817042.png"
90
- Content-Type:
91
- - image/png
86
+ Access-Control-Allow-Origin:
87
+ - '*'
88
+ X-Nc:
89
+ - MISS syd 1
90
+ Accept-Ranges:
91
+ - bytes
92
92
  Expires:
93
- - Wed, 19 Aug 2015 01:04:59 GMT
94
- Link:
95
- - <http://www.gravatar.com/avatar/c090d5749bd9877588ac8563e0817042>; rel="canonical"
96
- Server:
97
- - ECS (syd/EBA1)
93
+ - Tue, 28 Mar 2017 02:08:43 GMT
94
+ Cache-Control:
95
+ - max-age=300
98
96
  Source-Age:
99
97
  - '0'
100
- X-Varnish:
101
- - '429679271'
102
- Content-Length:
103
- - '11789'
104
98
  body:
105
99
  encoding: ASCII-8BIT
106
100
  string: !binary |-
@@ -367,5 +361,5 @@ http_interactions:
367
361
  0nq4U7qFDsaylSsypzHmjP5Aa8QrNs33AowZ7kMMtcj/Kwwzi4jsmgCKY16w
368
362
  HkbsMQmjmC6gSeNGLyXZEkoxlIaZ8f8Dl9VUi97Go/gAAAAASUVORK5CYII=
369
363
  http_version:
370
- recorded_at: Wed, 19 Aug 2015 01:03:29 GMT
371
- recorded_with: VCR 2.9.3
364
+ recorded_at: Tue, 28 Mar 2017 02:03:43 GMT
365
+ recorded_with: VCR 3.0.3
@@ -10,7 +10,7 @@ http_interactions:
10
10
  Accept-Encoding:
11
11
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
12
  Accept:
13
- - "*/*"
13
+ - '*/*'
14
14
  User-Agent:
15
15
  - Ruby
16
16
  response:
@@ -19,31 +19,31 @@ http_interactions:
19
19
  message: OK
20
20
  headers:
21
21
  Date:
22
- - Wed, 19 Aug 2015 01:03:29 GMT
22
+ - Tue, 28 Mar 2017 02:03:44 GMT
23
23
  Server:
24
- - Apache/2.2.16 (Debian)
24
+ - Apache/2.4.10 (Debian)
25
+ Cache-Control:
26
+ - public
25
27
  X-Frame-Options:
26
28
  - SAMEORIGIN
27
29
  X-Xss-Protection:
28
30
  - 1; mode=block
29
31
  X-Content-Type-Options:
30
32
  - nosniff
31
- Etag:
32
- - '"17883192c98ca0216d45df6579fc74e5"'
33
- Cache-Control:
34
- - public
35
- X-Request-Id:
36
- - cd9b0e9e-0677-4cd9-a9fd-68010bb7487d
37
33
  X-Runtime:
38
- - '0.007090'
34
+ - '0.005887'
35
+ X-Request-Id:
36
+ - fc540c0f-53c6-4d01-b3b2-840a1b2c6117
39
37
  X-Powered-By:
40
- - Phusion Passenger 4.0.53
38
+ - Phusion Passenger 5.1.2
39
+ Etag:
40
+ - W/"1d6c9f54213353228bf5a314864dae98-gzip"
41
41
  Status:
42
42
  - 200 OK
43
43
  Vary:
44
44
  - Accept-Encoding
45
45
  Content-Length:
46
- - '787'
46
+ - '835'
47
47
  Content-Type:
48
48
  - text/html; charset=utf-8
49
49
  body:
@@ -66,8 +66,8 @@ http_interactions:
66
66
  <meta name="DC.creator" content="Alexis Toulotte" />
67
67
  <meta name="DC.description" content="Page personnelle d'Alexis Toulotte." />
68
68
  <meta name="google-site-verification" content="1dodRvC0Zp-iAZilnTeT5PaY4bPKHwSzs9994-3g304" />
69
- <script src="/assets/application-eae74a30b96601b52819de1d8f7920d7.js"></script>
70
- <link rel="stylesheet" media="screen" href="/assets/application-ccd3cc87d5f63a3e28a2f20ec2ea3a97.css" />
69
+ <script src="/assets/application-c8b319b8094a109a741beabe9d1816cc0fc0433c6ea327ed8924d1f35f0feef8.js"></script>
70
+ <link rel="stylesheet" media="screen" href="/assets/application-4b8e4dcf313c48276cec891d1573b606aa89f12e34e7117d93579d95ea6e3d89.css" />
71
71
  <link href="/avatar?size=128" rel="icon" type="image/png" />
72
72
  <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Dancing Script" />
73
73
  <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Raleway" />
@@ -121,5 +121,5 @@ http_interactions:
121
121
 
122
122
  </html>
123
123
  http_version:
124
- recorded_at: Wed, 19 Aug 2015 01:03:30 GMT
125
- recorded_with: VCR 2.9.3
124
+ recorded_at: Tue, 28 Mar 2017 02:03:45 GMT
125
+ recorded_with: VCR 3.0.3
@@ -10,7 +10,7 @@ http_interactions:
10
10
  Accept-Encoding:
11
11
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
12
  Accept:
13
- - "*/*"
13
+ - '*/*'
14
14
  User-Agent:
15
15
  - Ruby
16
16
  response:
@@ -19,31 +19,31 @@ http_interactions:
19
19
  message: OK
20
20
  headers:
21
21
  Date:
22
- - Wed, 19 Aug 2015 01:03:21 GMT
22
+ - Tue, 28 Mar 2017 02:02:20 GMT
23
23
  Server:
24
- - Apache/2.2.16 (Debian)
24
+ - Apache/2.4.10 (Debian)
25
+ Cache-Control:
26
+ - public
25
27
  X-Frame-Options:
26
28
  - SAMEORIGIN
27
29
  X-Xss-Protection:
28
30
  - 1; mode=block
29
31
  X-Content-Type-Options:
30
32
  - nosniff
31
- Etag:
32
- - '"17883192c98ca0216d45df6579fc74e5"'
33
- Cache-Control:
34
- - public
35
- X-Request-Id:
36
- - 98f830a1-c0f3-4139-b906-584e67123e61
37
33
  X-Runtime:
38
- - '0.006972'
34
+ - '0.005838'
35
+ X-Request-Id:
36
+ - 382efc7b-b3c5-433b-9407-ebd771cad7b4
39
37
  X-Powered-By:
40
- - Phusion Passenger 4.0.53
38
+ - Phusion Passenger 5.1.2
39
+ Etag:
40
+ - W/"1d6c9f54213353228bf5a314864dae98-gzip"
41
41
  Status:
42
42
  - 200 OK
43
43
  Vary:
44
44
  - Accept-Encoding
45
45
  Content-Length:
46
- - '787'
46
+ - '835'
47
47
  Content-Type:
48
48
  - text/html; charset=utf-8
49
49
  body:
@@ -66,8 +66,8 @@ http_interactions:
66
66
  <meta name="DC.creator" content="Alexis Toulotte" />
67
67
  <meta name="DC.description" content="Page personnelle d'Alexis Toulotte." />
68
68
  <meta name="google-site-verification" content="1dodRvC0Zp-iAZilnTeT5PaY4bPKHwSzs9994-3g304" />
69
- <script src="/assets/application-eae74a30b96601b52819de1d8f7920d7.js"></script>
70
- <link rel="stylesheet" media="screen" href="/assets/application-ccd3cc87d5f63a3e28a2f20ec2ea3a97.css" />
69
+ <script src="/assets/application-c8b319b8094a109a741beabe9d1816cc0fc0433c6ea327ed8924d1f35f0feef8.js"></script>
70
+ <link rel="stylesheet" media="screen" href="/assets/application-4b8e4dcf313c48276cec891d1573b606aa89f12e34e7117d93579d95ea6e3d89.css" />
71
71
  <link href="/avatar?size=128" rel="icon" type="image/png" />
72
72
  <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Dancing Script" />
73
73
  <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Raleway" />
@@ -121,5 +121,5 @@ http_interactions:
121
121
 
122
122
  </html>
123
123
  http_version:
124
- recorded_at: Wed, 19 Aug 2015 01:03:22 GMT
125
- recorded_with: VCR 2.9.3
124
+ recorded_at: Tue, 28 Mar 2017 02:02:22 GMT
125
+ recorded_with: VCR 3.0.3