notu 2.0.2 → 2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c381dc7dd5d423c7904349d16d204602c67a228a8205ad1319a4d171047008d9
4
- data.tar.gz: cad9a5e6425fbfad23de3241cfd1c2fe92f07f94dc10651f86eb3b893544882b
3
+ metadata.gz: 55ecba5a1090418739287fa955a9c80b12c028202f00c8d4ff14764f3643666d
4
+ data.tar.gz: 9f2e38ba666446d0d293311eb5e11a16e70a10d02ea90bc2d7b4c88cce2e7671
5
5
  SHA512:
6
- metadata.gz: ad6579616e87b3671d303e5f819b0be2b21451fcf3ffd0c25b84cf3e7cac17f76934e50d3a7f93e6c7edce7d38738def35d65abfe3868297c72a1ea7ba1136d0
7
- data.tar.gz: 5265dc6fa4c1325fb0ce84c0c15e8f96f39d125186e9a7b4a5a1ae0b41ffb3cc6f6a6c51507fa573c4ea342a240ce96cd2f232f8be6847e8e41a36e815bd5a41
6
+ metadata.gz: 78a46d9f3b529c44100fe0aee5392adb987f96d2973c644c050fa5aecbce9b23a1b6faba88ff329ede4dc4a155899c339e8526efcad05b138ec3ac6c7661d7c8
7
+ data.tar.gz: 90f9cc469f6f9af7453c01efe935428ef70389f2a4c4830b66b71cbadbcbaa5d3210cd54b20fabc03fa1587ba1dab2b72e8a09eb3455171c7f01b4787dc6e382
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.2
1
+ 2.0.3
@@ -9,8 +9,8 @@ module Notu
9
9
  page_urls.each do |url|
10
10
  document = HtmlDocument.get(url)
11
11
  (document/'table.chartlist tbody tr').each do |element|
12
- artist = (element/'td.chartlist-name a').first.try(:text) || next
13
- title = (element/'td.chartlist-artist a').first.try(:text) || next
12
+ artist = (element/'td.chartlist-artist a').first.try(:text) || next
13
+ title = (element/'td.chartlist-name a').first.try(:text) || next
14
14
  yield(Track.new(artist: artist, title: title))
15
15
  end
16
16
  end
@@ -25,8 +25,8 @@ module Notu
25
25
  page_urls.each do |url|
26
26
  document = HtmlDocument.get(url)
27
27
  (document/'table.chartlist tbody tr').each do |element|
28
- artist = (element/'td.chartlist-name a').first.try(:text) || next
29
- title = (element/'td.chartlist-artist a').first.try(:text) || next
28
+ artist = (element/'td.chartlist-artist a').first.try(:text) || next
29
+ title = (element/'td.chartlist-name a').first.try(:text) || next
30
30
  plays_count = (element/'td.chartlist-bar .chartlist-count-bar-value').text.gsub(/[^\d]/, '').presence || next
31
31
  yield(Track.new(artist: artist, plays_count: plays_count, title: title))
32
32
  end
@@ -9,8 +9,8 @@ module Notu
9
9
  page_urls.each do |url|
10
10
  document = HtmlDocument.get(url)
11
11
  (document/'table.chartlist tbody tr').each do |element|
12
- artist = (element/'td.chartlist-name a').first.try(:text) || next
13
- title = (element/'td.chartlist-artist a').first.try(:text) || next
12
+ artist = (element/'td.chartlist-artist a').first.try(:text) || next
13
+ title = (element/'td.chartlist-name a').first.try(:text) || next
14
14
  yield(Track.new(artist: artist, title: title))
15
15
  end
16
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notu
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexis Toulotte