notu 0.2.0 → 0.2.1

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
  SHA1:
3
- metadata.gz: 83c849e6aa154adb3210c2665d5ef2ffc64ca013
4
- data.tar.gz: 69173c99d6eec9cdb3fd52a671c7c64d80553e86
3
+ metadata.gz: 251775872505c2a7072af789e77016e93b097d30
4
+ data.tar.gz: ab9b66edf9e52c3fb3866ffb5fa9b312c14c253a
5
5
  SHA512:
6
- metadata.gz: 6700b41e5b70ec40928596227c2bded73092ac80620826d0029c09a041b531142366e7a3ced25751b9bf20d894f6835c3c219b84742e8567f20ee817ab4f57f3
7
- data.tar.gz: 6b82941fd297bb5b1255338cd5d642bbc7c91dfe2a6dd9ad827d18d542d75dd812a9f1203096f64e950bde924685c3f320da2d33532212c3a4083566955f856d
6
+ metadata.gz: c5e9e11816dc541c0fde90d026d6e6b87b3f2100f4ea47692b6ba4ff00d691eed221e6f58d043d374ab3e7cdd55bdff2d78be11e2d946f70567771c71269d03e
7
+ data.tar.gz: c00095f5ad50ca3eaba8c7a96f350eeaf2cb5c4f3e2ef41ee3d20dfe43d650e935c17438096b9edba1541949b70780de862cbb3be77890d8ebda0b350631b324
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -10,8 +10,8 @@ module Notu
10
10
  page_urls.each do |url|
11
11
  document = HtmlDocument.get(url)
12
12
  (document/'#user-loved-tracks-section tbody tr').each do |element|
13
- artist = (element/'td.chartlist-name .link-block-target').first.text
14
- title = (element/'td.chartlist-name .chartlist-artists').first.text
13
+ artist = (element/'td.chartlist-name .chartlist-artists').first.text
14
+ title = (element/'td.chartlist-name .link-block-target').first.text
15
15
  yield(Track.new(artist: artist, title: title))
16
16
  end
17
17
  end
@@ -26,8 +26,8 @@ module Notu
26
26
  page_urls.each do |url|
27
27
  document = HtmlDocument.get(url)
28
28
  (document/'table.chartlist tbody tr').each do |element|
29
- artist = (element/'td.chartlist-name .link-block-target').first.text
30
- title = (element/'td.chartlist-name .chartlist-artists').first.text
29
+ artist = (element/'td.chartlist-name .chartlist-artists').first.text
30
+ title = (element/'td.chartlist-name .link-block-target').first.text
31
31
  plays_count = (element/'td.chartlist-countbar .countbar-bar-value').text.gsub(/[^\d]/, '')
32
32
  yield(Track.new(artist: artist, plays_count: plays_count, title: title))
33
33
  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: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexis Toulotte