notu 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/notu.gemspec +1 -2
  4. metadata +3 -73
  5. data/.gitignore +0 -5
  6. data/.rspec +0 -2
  7. data/Gemfile +0 -3
  8. data/Rakefile +0 -10
  9. data/spec/cassettes/Notu_HtmlDocument/_get/follows_redirects.yml +0 -167
  10. data/spec/cassettes/Notu_HtmlDocument/_get/raise_a_NetworkError_on_404.yml +0 -71
  11. data/spec/cassettes/Notu_HtmlDocument/_get/raise_a_ParseError_if_not_a_valid_document.yml +0 -365
  12. data/spec/cassettes/Notu_HtmlDocument/_get/returns_document_parsed.yml +0 -125
  13. data/spec/cassettes/Notu_HttpDownload/_get/accepts_HTTPS_URL.yml +0 -125
  14. data/spec/cassettes/Notu_HttpDownload/_get/follow_redirects.yml +0 -167
  15. data/spec/cassettes/Notu_HttpDownload/_get/raise_a_NetworkError_if_too_many_redirects.yml +0 -45
  16. data/spec/cassettes/Notu_HttpDownload/_get/raise_a_NetworkError_on_404.yml +0 -71
  17. data/spec/cassettes/Notu_HttpDownload/_get/retrives_document_from_given_URL.yml +0 -125
  18. data/spec/cassettes/Notu_LovedTracks/_each/returns_nil.yml +0 -7013
  19. data/spec/cassettes/Notu_LovedTracks/_each/returns_some_tracks.yml +0 -14021
  20. data/spec/cassettes/Notu_LovedTracks/_page_urls/is_correct.yml +0 -14019
  21. data/spec/cassettes/Notu_LovedTracks/_pages_count/is_correct.yml +0 -7011
  22. data/spec/cassettes/Notu_MostPlayedTracks/_each/returns_nil.yml +0 -22449
  23. data/spec/cassettes/Notu_MostPlayedTracks/_each/returns_some_tracks.yml +0 -16108
  24. data/spec/cassettes/Notu_MostPlayedTracks/_page_urls/is_correct.yml +0 -16473
  25. data/spec/cassettes/Notu_MostPlayedTracks/_pages_count/is_correct.yml +0 -8529
  26. data/spec/cassettes/Notu_PlayedTracks/_each/returns_nil.yml +0 -7917
  27. data/spec/cassettes/Notu_PlayedTracks/_each/returns_some_tracks.yml +0 -15829
  28. data/spec/cassettes/Notu_PlayedTracks/_page_urls/is_correct.yml +0 -15827
  29. data/spec/cassettes/Notu_PlayedTracks/_pages_count/is_correct.yml +0 -7915
  30. data/spec/notu/error_spec.rb +0 -40
  31. data/spec/notu/html_document_spec.rb +0 -31
  32. data/spec/notu/http_download_spec.rb +0 -39
  33. data/spec/notu/library_spec.rb +0 -138
  34. data/spec/notu/loved_tracks_spec.rb +0 -77
  35. data/spec/notu/most_played_tracks_spec.rb +0 -101
  36. data/spec/notu/network_error_spec.rb +0 -15
  37. data/spec/notu/parse_error_spec.rb +0 -15
  38. data/spec/notu/played_tracks_spec.rb +0 -62
  39. data/spec/notu/track_spec.rb +0 -141
  40. data/spec/spec_helper.rb +0 -10
  41. data/spec/support/vcr.rb +0 -8
@@ -1,125 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://alweb.org/
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept-Encoding:
11
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - '*/*'
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Date:
22
- - Tue, 28 Mar 2017 02:03:44 GMT
23
- Server:
24
- - Apache/2.4.10 (Debian)
25
- Cache-Control:
26
- - public
27
- X-Frame-Options:
28
- - SAMEORIGIN
29
- X-Xss-Protection:
30
- - 1; mode=block
31
- X-Content-Type-Options:
32
- - nosniff
33
- X-Runtime:
34
- - '0.005887'
35
- X-Request-Id:
36
- - fc540c0f-53c6-4d01-b3b2-840a1b2c6117
37
- X-Powered-By:
38
- - Phusion Passenger 5.1.2
39
- Etag:
40
- - W/"1d6c9f54213353228bf5a314864dae98-gzip"
41
- Status:
42
- - 200 OK
43
- Vary:
44
- - Accept-Encoding
45
- Content-Length:
46
- - '835'
47
- Content-Type:
48
- - text/html; charset=utf-8
49
- body:
50
- encoding: UTF-8
51
- string: |
52
- <!DOCTYPE html>
53
-
54
- <html lang="fr">
55
-
56
- <head>
57
- <meta charset="utf-8" />
58
- <title>Alexis Toulotte</title>
59
- <meta name="author" content="Alexis Toulotte" />
60
- <meta name="description" content="Page personnelle d'Alexis Toulotte." />
61
- <meta name="robots" content="all" />
62
- <link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" />
63
- <meta name="DC.format" content="text/html" />
64
- <meta name="DC.language" content="fr" />
65
- <meta name="DC.title" content="Alexis Toulotte" />
66
- <meta name="DC.creator" content="Alexis Toulotte" />
67
- <meta name="DC.description" content="Page personnelle d'Alexis Toulotte." />
68
- <meta name="google-site-verification" content="1dodRvC0Zp-iAZilnTeT5PaY4bPKHwSzs9994-3g304" />
69
- <script src="/assets/application-c8b319b8094a109a741beabe9d1816cc0fc0433c6ea327ed8924d1f35f0feef8.js"></script>
70
- <link rel="stylesheet" media="screen" href="/assets/application-4b8e4dcf313c48276cec891d1573b606aa89f12e34e7117d93579d95ea6e3d89.css" />
71
- <link href="/avatar?size=128" rel="icon" type="image/png" />
72
- <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Dancing Script" />
73
- <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Raleway" />
74
- </head>
75
-
76
- <body>
77
-
78
- <h1>Alexis Toulotte</h1>
79
-
80
- <ul class="services">
81
- <li class="github">
82
- <a href="/github"><span>GitHub</span></a>
83
- </li>
84
- <li class="rubygems">
85
- <a href="/rubygems"><span>RubyGems</span></a>
86
- </li>
87
- <li class="cv">
88
- <a href="/cv"><span>CV</span></a>
89
- </li>
90
- <li class="email">
91
- <a href="#"><span>Email</span></a>
92
- </li>
93
- <li class="phone">
94
- <a href="callto://+687817612"><span>+687 81 76 12</span></a>
95
- </li>
96
- <li class="skype">
97
- <a href="skype:alexistoulotte"><span>Skype</span></a>
98
- </li>
99
- <li class="twitter">
100
- <a href="/twitter"><span>Twitter</span></a>
101
- </li>
102
- <li class="facebook">
103
- <a href="/facebook"><span>Facebook</span></a>
104
- </li>
105
- <li class="linkedin">
106
- <a href="/linkedin"><span>LinkedIn</span></a>
107
- </li>
108
- <li class="google-plus">
109
- <a href="/google_plus"><span>Google+</span></a>
110
- </li>
111
- <li class="mixcloud">
112
- <a href="/mixcloud"><span>Mixcloud</span></a>
113
- </li>
114
- <li class="lastfm">
115
- <a href="/lastfm"><span>Last.fm</span></a>
116
- </li>
117
- </ul>
118
-
119
-
120
- </body>
121
-
122
- </html>
123
- http_version:
124
- recorded_at: Tue, 28 Mar 2017 02:03:45 GMT
125
- recorded_with: VCR 3.0.3
@@ -1,125 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://alweb.org/
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept-Encoding:
11
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - '*/*'
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Date:
22
- - Tue, 28 Mar 2017 02:02:20 GMT
23
- Server:
24
- - Apache/2.4.10 (Debian)
25
- Cache-Control:
26
- - public
27
- X-Frame-Options:
28
- - SAMEORIGIN
29
- X-Xss-Protection:
30
- - 1; mode=block
31
- X-Content-Type-Options:
32
- - nosniff
33
- X-Runtime:
34
- - '0.005838'
35
- X-Request-Id:
36
- - 382efc7b-b3c5-433b-9407-ebd771cad7b4
37
- X-Powered-By:
38
- - Phusion Passenger 5.1.2
39
- Etag:
40
- - W/"1d6c9f54213353228bf5a314864dae98-gzip"
41
- Status:
42
- - 200 OK
43
- Vary:
44
- - Accept-Encoding
45
- Content-Length:
46
- - '835'
47
- Content-Type:
48
- - text/html; charset=utf-8
49
- body:
50
- encoding: UTF-8
51
- string: |
52
- <!DOCTYPE html>
53
-
54
- <html lang="fr">
55
-
56
- <head>
57
- <meta charset="utf-8" />
58
- <title>Alexis Toulotte</title>
59
- <meta name="author" content="Alexis Toulotte" />
60
- <meta name="description" content="Page personnelle d'Alexis Toulotte." />
61
- <meta name="robots" content="all" />
62
- <link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" />
63
- <meta name="DC.format" content="text/html" />
64
- <meta name="DC.language" content="fr" />
65
- <meta name="DC.title" content="Alexis Toulotte" />
66
- <meta name="DC.creator" content="Alexis Toulotte" />
67
- <meta name="DC.description" content="Page personnelle d'Alexis Toulotte." />
68
- <meta name="google-site-verification" content="1dodRvC0Zp-iAZilnTeT5PaY4bPKHwSzs9994-3g304" />
69
- <script src="/assets/application-c8b319b8094a109a741beabe9d1816cc0fc0433c6ea327ed8924d1f35f0feef8.js"></script>
70
- <link rel="stylesheet" media="screen" href="/assets/application-4b8e4dcf313c48276cec891d1573b606aa89f12e34e7117d93579d95ea6e3d89.css" />
71
- <link href="/avatar?size=128" rel="icon" type="image/png" />
72
- <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Dancing Script" />
73
- <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Raleway" />
74
- </head>
75
-
76
- <body>
77
-
78
- <h1>Alexis Toulotte</h1>
79
-
80
- <ul class="services">
81
- <li class="github">
82
- <a href="/github"><span>GitHub</span></a>
83
- </li>
84
- <li class="rubygems">
85
- <a href="/rubygems"><span>RubyGems</span></a>
86
- </li>
87
- <li class="cv">
88
- <a href="/cv"><span>CV</span></a>
89
- </li>
90
- <li class="email">
91
- <a href="#"><span>Email</span></a>
92
- </li>
93
- <li class="phone">
94
- <a href="callto://+687817612"><span>+687 81 76 12</span></a>
95
- </li>
96
- <li class="skype">
97
- <a href="skype:alexistoulotte"><span>Skype</span></a>
98
- </li>
99
- <li class="twitter">
100
- <a href="/twitter"><span>Twitter</span></a>
101
- </li>
102
- <li class="facebook">
103
- <a href="/facebook"><span>Facebook</span></a>
104
- </li>
105
- <li class="linkedin">
106
- <a href="/linkedin"><span>LinkedIn</span></a>
107
- </li>
108
- <li class="google-plus">
109
- <a href="/google_plus"><span>Google+</span></a>
110
- </li>
111
- <li class="mixcloud">
112
- <a href="/mixcloud"><span>Mixcloud</span></a>
113
- </li>
114
- <li class="lastfm">
115
- <a href="/lastfm"><span>Last.fm</span></a>
116
- </li>
117
- </ul>
118
-
119
-
120
- </body>
121
-
122
- </html>
123
- http_version:
124
- recorded_at: Tue, 28 Mar 2017 02:02:22 GMT
125
- recorded_with: VCR 3.0.3
@@ -1,167 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://www.alweb.org/
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept-Encoding:
11
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - '*/*'
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 301
19
- message: Moved Permanently
20
- headers:
21
- Date:
22
- - Tue, 28 Mar 2017 02:02:17 GMT
23
- Server:
24
- - Apache/2.4.10 (Debian)
25
- Location:
26
- - http://alweb.org/
27
- Content-Length:
28
- - '304'
29
- Content-Type:
30
- - text/html; charset=iso-8859-1
31
- body:
32
- encoding: UTF-8
33
- string: |
34
- <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
35
- <html><head>
36
- <title>301 Moved Permanently</title>
37
- </head><body>
38
- <h1>Moved Permanently</h1>
39
- <p>The document has moved <a href="http://alweb.org/">here</a>.</p>
40
- <hr>
41
- <address>Apache/2.4.10 (Debian) Server at www.alweb.org Port 80</address>
42
- </body></html>
43
- http_version:
44
- recorded_at: Tue, 28 Mar 2017 02:02:17 GMT
45
- - request:
46
- method: get
47
- uri: http://alweb.org/
48
- body:
49
- encoding: US-ASCII
50
- string: ''
51
- headers:
52
- Accept-Encoding:
53
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
54
- Accept:
55
- - '*/*'
56
- User-Agent:
57
- - Ruby
58
- response:
59
- status:
60
- code: 200
61
- message: OK
62
- headers:
63
- Date:
64
- - Tue, 28 Mar 2017 02:02:18 GMT
65
- Server:
66
- - Apache/2.4.10 (Debian)
67
- Cache-Control:
68
- - public
69
- X-Frame-Options:
70
- - SAMEORIGIN
71
- X-Xss-Protection:
72
- - 1; mode=block
73
- X-Content-Type-Options:
74
- - nosniff
75
- X-Runtime:
76
- - '0.005774'
77
- X-Request-Id:
78
- - 66220a1b-dfdf-4384-b7e9-34151126944b
79
- X-Powered-By:
80
- - Phusion Passenger 5.1.2
81
- Etag:
82
- - W/"1d6c9f54213353228bf5a314864dae98-gzip"
83
- Status:
84
- - 200 OK
85
- Vary:
86
- - Accept-Encoding
87
- Content-Length:
88
- - '835'
89
- Content-Type:
90
- - text/html; charset=utf-8
91
- body:
92
- encoding: UTF-8
93
- string: |
94
- <!DOCTYPE html>
95
-
96
- <html lang="fr">
97
-
98
- <head>
99
- <meta charset="utf-8" />
100
- <title>Alexis Toulotte</title>
101
- <meta name="author" content="Alexis Toulotte" />
102
- <meta name="description" content="Page personnelle d'Alexis Toulotte." />
103
- <meta name="robots" content="all" />
104
- <link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" />
105
- <meta name="DC.format" content="text/html" />
106
- <meta name="DC.language" content="fr" />
107
- <meta name="DC.title" content="Alexis Toulotte" />
108
- <meta name="DC.creator" content="Alexis Toulotte" />
109
- <meta name="DC.description" content="Page personnelle d'Alexis Toulotte." />
110
- <meta name="google-site-verification" content="1dodRvC0Zp-iAZilnTeT5PaY4bPKHwSzs9994-3g304" />
111
- <script src="/assets/application-c8b319b8094a109a741beabe9d1816cc0fc0433c6ea327ed8924d1f35f0feef8.js"></script>
112
- <link rel="stylesheet" media="screen" href="/assets/application-4b8e4dcf313c48276cec891d1573b606aa89f12e34e7117d93579d95ea6e3d89.css" />
113
- <link href="/avatar?size=128" rel="icon" type="image/png" />
114
- <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Dancing Script" />
115
- <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Raleway" />
116
- </head>
117
-
118
- <body>
119
-
120
- <h1>Alexis Toulotte</h1>
121
-
122
- <ul class="services">
123
- <li class="github">
124
- <a href="/github"><span>GitHub</span></a>
125
- </li>
126
- <li class="rubygems">
127
- <a href="/rubygems"><span>RubyGems</span></a>
128
- </li>
129
- <li class="cv">
130
- <a href="/cv"><span>CV</span></a>
131
- </li>
132
- <li class="email">
133
- <a href="#"><span>Email</span></a>
134
- </li>
135
- <li class="phone">
136
- <a href="callto://+687817612"><span>+687 81 76 12</span></a>
137
- </li>
138
- <li class="skype">
139
- <a href="skype:alexistoulotte"><span>Skype</span></a>
140
- </li>
141
- <li class="twitter">
142
- <a href="/twitter"><span>Twitter</span></a>
143
- </li>
144
- <li class="facebook">
145
- <a href="/facebook"><span>Facebook</span></a>
146
- </li>
147
- <li class="linkedin">
148
- <a href="/linkedin"><span>LinkedIn</span></a>
149
- </li>
150
- <li class="google-plus">
151
- <a href="/google_plus"><span>Google+</span></a>
152
- </li>
153
- <li class="mixcloud">
154
- <a href="/mixcloud"><span>Mixcloud</span></a>
155
- </li>
156
- <li class="lastfm">
157
- <a href="/lastfm"><span>Last.fm</span></a>
158
- </li>
159
- </ul>
160
-
161
-
162
- </body>
163
-
164
- </html>
165
- http_version:
166
- recorded_at: Tue, 28 Mar 2017 02:02:18 GMT
167
- recorded_with: VCR 3.0.3
@@ -1,45 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://www.alweb.org/
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept-Encoding:
11
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - '*/*'
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 301
19
- message: Moved Permanently
20
- headers:
21
- Date:
22
- - Tue, 28 Mar 2017 02:02:23 GMT
23
- Server:
24
- - Apache/2.4.10 (Debian)
25
- Location:
26
- - http://alweb.org/
27
- Content-Length:
28
- - '304'
29
- Content-Type:
30
- - text/html; charset=iso-8859-1
31
- body:
32
- encoding: UTF-8
33
- string: |
34
- <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
35
- <html><head>
36
- <title>301 Moved Permanently</title>
37
- </head><body>
38
- <h1>Moved Permanently</h1>
39
- <p>The document has moved <a href="http://alweb.org/">here</a>.</p>
40
- <hr>
41
- <address>Apache/2.4.10 (Debian) Server at www.alweb.org Port 80</address>
42
- </body></html>
43
- http_version:
44
- recorded_at: Tue, 28 Mar 2017 02:02:23 GMT
45
- recorded_with: VCR 3.0.3