descartes 0.7.3 → 0.7.4
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 +4 -4
- data/bin/descartes +4 -0
- data/lib/descartes/modules/lastfm.rb +3 -3
- data/lib/descartes/version.rb +1 -1
- 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: e063503704fa29e84b22336c78b8529acbf4ac9e
|
|
4
|
+
data.tar.gz: 52d6106163d7a12a42d83a87deb9b86d42c5c41d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5c503102a3ecd903da3e859f9b442558dad73241a03d9bd98735cd254a2f78936fe024c18e71e0cc8cc6614b5d7e82de16562c566edcd2afe06389b36492eeb4
|
|
7
|
+
data.tar.gz: 5fa5735df0849400b79d19bd6812e57bc343427a47354305a13f8562e2a41545eb81f977fa39ded0ecbb38c784eec12a86a4c516ac62393c53c2a14b2af0e6e0
|
data/bin/descartes
CHANGED
|
@@ -42,11 +42,11 @@ class Descartes
|
|
|
42
42
|
user = Rockstar::User.new lastfmnick
|
|
43
43
|
track = user.recent_tracks.first
|
|
44
44
|
|
|
45
|
-
album = track.album.empty? ? '
|
|
45
|
+
album = track.album.empty? ? '' : " (in #{track.album.colorize})"
|
|
46
46
|
if track.now_playing?
|
|
47
|
-
m.reply "#{lastfmnick.colorize} is listening to #{track.name.colorize} by #{track.artist.colorize}
|
|
47
|
+
m.reply "#{lastfmnick.colorize} is listening to #{track.name.decode.colorize} by #{track.artist.decode.colorize}#{album} right now!"
|
|
48
48
|
else
|
|
49
|
-
m.reply "The last song #{lastfmnick.colorize} listened to is #{track.name.colorize} by #{track.artist.colorize}
|
|
49
|
+
m.reply "The last song #{lastfmnick.colorize} listened to is #{track.name.decode.colorize} by #{track.artist.decode.colorize}#{album}."
|
|
50
50
|
end
|
|
51
51
|
end
|
|
52
52
|
|
data/lib/descartes/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: descartes
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Giovanni Capuano
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-02-
|
|
11
|
+
date: 2014-02-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cinch
|