ayadn 2.0.5 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/ayadn/nowplaying.rb +5 -3
- data/lib/ayadn/version.rb +1 -1
- data/lib/ayadn/view.rb +8 -1
- data/spec/mock/ayadn.sqlite +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eec7fca71c12e9a4bce47bb49845994357f5d05d
|
4
|
+
data.tar.gz: d8832296355bb46a191e4d3c384d82d533e473cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6213f88a3b32036aa46d705a6e835906a8ca7b2b2ee255d8a7bd315cae5650a4c7d5f032f512e286356cec5f352caa76323767a5b239b463894ef67309d16628
|
7
|
+
data.tar.gz: e9e57a8b71c171bb21026b8f241aabf0b69f1a2ee66086718a1ed360f63e7fa057349138055b5a4dc9c6236912770538e3b6972df91a08a267a2cf0b2f813def
|
data/CHANGELOG.md
CHANGED
data/lib/ayadn/nowplaying.rb
CHANGED
@@ -159,10 +159,12 @@ module Ayadn
|
|
159
159
|
end
|
160
160
|
options = options.dup
|
161
161
|
options[:nowplaying] = true
|
162
|
-
if options[:lastfm]
|
163
|
-
|
162
|
+
source = if options[:lastfm]
|
163
|
+
'Last.fm'
|
164
|
+
elsif options[:deezer]
|
165
|
+
'Deezer'
|
164
166
|
else
|
165
|
-
|
167
|
+
'iTunes'
|
166
168
|
end
|
167
169
|
dic = {
|
168
170
|
options: options,
|
data/lib/ayadn/version.rb
CHANGED
data/lib/ayadn/view.rb
CHANGED
@@ -161,7 +161,14 @@ module Ayadn
|
|
161
161
|
t << [ k.to_s.color(:cyan), x.to_s.color(:yellow), y.to_s.color(:green) ]
|
162
162
|
else
|
163
163
|
y.each do |c|
|
164
|
-
|
164
|
+
yk = c[0]
|
165
|
+
tempv = c[1].to_s
|
166
|
+
if tempv.size > 10
|
167
|
+
yv = "#{tempv[0..7]}..."
|
168
|
+
else
|
169
|
+
yv = tempv
|
170
|
+
end
|
171
|
+
t << [ k.to_s.color(:cyan), x.to_s.color(:yellow), "#{yk} = #{yv}".color(:green) ]
|
165
172
|
end
|
166
173
|
end
|
167
174
|
@iter += 1
|
data/spec/mock/ayadn.sqlite
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ayadn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Dejonckheere
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|