nehm 1.5.5.1 → 1.5.5.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
  SHA1:
3
- metadata.gz: 8b56162720e521296eab895683dc2fa1c8829d9d
4
- data.tar.gz: edfdc21208cc7ef4fcf079b10c76717a64ef6a6d
3
+ metadata.gz: 6f8bc2d05e674fed6fb6f60ad330e6b4264bd7fc
4
+ data.tar.gz: 69e43d9f7aa2d2261a249986aca4912b771525ad
5
5
  SHA512:
6
- metadata.gz: b136d0b1e1db0198a9ed64e8dca40208f08f8218d606f5ecbfac05652270745f171ed0b41895502c1be0717b2acd6f2d82961f4fd96a20768a1201009ddb1b3f
7
- data.tar.gz: cc7b42a50791e55e5014b8da6f4d295d9ad7c66d1cfa8564942f916ae2ca0328efae6e8d2f70c8a217b858db2c4efead95b58990e020291c2f68039279bdf8a5
6
+ metadata.gz: de1b819c2411d12dea43faa2550b899bfb6fb456269b2a183f9593c6afe55bb87b82a9a861df0a7e0f552421baaf284b93c138700242bb8ecf8cddef38fb98ed
7
+ data.tar.gz: 1fe62d5461ebfde0d6d05633fc40a42b55f78d8c5bc9de1760acb96318a0647bc0bb2737483ce11d9645c142d04d98e92aa298ad3ab0cc0d19770f431df628e9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # nehm change log
2
2
 
3
+ ## 1.5.5.2
4
+ * Fix wrong detection of artist in title name of song
5
+
3
6
  ## 1.5.5.1
4
7
  * Fix bug with `nil` in user class
5
8
 
data/lib/nehm/track.rb CHANGED
@@ -7,9 +7,8 @@ module Nehm
7
7
  end
8
8
 
9
9
  def artist
10
- if @hash['title'].include?('-')
11
- title = @hash['title'].split('-')
12
- title[0].rstrip
10
+ if @hash['title'].index(' - ')
11
+ @hash['title'].split(' - ')[0]
13
12
  else
14
13
  @hash['user']['username']
15
14
  end
@@ -41,9 +40,8 @@ module Nehm
41
40
  end
42
41
 
43
42
  def title
44
- if @hash['title'].include?('-')
45
- title = @hash['title'].split('-')
46
- title[1].lstrip
43
+ if @hash['title'].index(' - ')
44
+ @hash['title'].split(' - ')[1]
47
45
  else
48
46
  @hash['title']
49
47
  end
data/lib/nehm/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Nehm
2
- VERSION = '1.5.5.1'.freeze
2
+ VERSION = '1.5.5.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nehm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.5.1
4
+ version: 1.5.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Albert Nigmatzianov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-13 00:00:00.000000000 Z
11
+ date: 2015-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bogy