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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 256c6fc1c1c983420fac5cb58f7602881b30fb0f
4
- data.tar.gz: 0782d63c44056a14a7313105e0c379d79d55edb5
3
+ metadata.gz: e063503704fa29e84b22336c78b8529acbf4ac9e
4
+ data.tar.gz: 52d6106163d7a12a42d83a87deb9b86d42c5c41d
5
5
  SHA512:
6
- metadata.gz: c0a9eb4c767f842f4e75d2acf61267b466799dab583b772c5c40d2257620b55705600f016e5fe810e6ae7958ccb7b69882b7cb1a461fc44650f8df5fa535bc17
7
- data.tar.gz: f2e3dd76435e78886dd247b1c1b5944c5b59c96635959ff5fb360c8810054d4fdc9bab633072cd401e3799ab0f062cf3f660e37f0ebfbf1bf1cfbaf124b53857
6
+ metadata.gz: 5c503102a3ecd903da3e859f9b442558dad73241a03d9bd98735cd254a2f78936fe024c18e71e0cc8cc6614b5d7e82de16562c566edcd2afe06389b36492eeb4
7
+ data.tar.gz: 5fa5735df0849400b79d19bd6812e57bc343427a47354305a13f8562e2a41545eb81f977fa39ded0ecbb38c784eec12a86a4c516ac62393c53c2a14b2af0e6e0
data/bin/descartes CHANGED
@@ -119,6 +119,10 @@ Cinch::Bot.new {
119
119
  m.reply '“…”'
120
120
  end
121
121
 
122
+ on :message, "!'" do |m|
123
+ m.reply ?`
124
+ end
125
+
122
126
  on :message, '!version' do |m|
123
127
  m.reply Descartes.version
124
128
  end
@@ -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? ? 'in no known album' : "in #{track.album.colorize}"
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} (#{album}) right now!"
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} (#{album})."
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
 
@@ -14,6 +14,6 @@
14
14
 
15
15
  class Descartes
16
16
  def self.version
17
- '0.7.3'
17
+ '0.7.4'
18
18
  end
19
19
  end
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.3
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-06 00:00:00.000000000 Z
11
+ date: 2014-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cinch