tit 2.1.0 → 2.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog.markdown +4 -0
- data/VERSION.yml +1 -1
- data/bin/tit +0 -1
- data/lib/tit.rb +3 -2
- data/tit.gemspec +1 -1
- metadata +1 -1
data/ChangeLog.markdown
CHANGED
data/VERSION.yml
CHANGED
data/bin/tit
CHANGED
data/lib/tit.rb
CHANGED
@@ -91,7 +91,7 @@ end
|
|
91
91
|
Why are you reading the documentation, you cunt?
|
92
92
|
=end
|
93
93
|
class Tit
|
94
|
-
VERSION = [2, 1,
|
94
|
+
VERSION = [2, 1, 5]
|
95
95
|
|
96
96
|
RCFILE = File.join(ENV["HOME"], ".titrc")
|
97
97
|
RTFILE = File.join(ENV["HOME"], ".titrt")
|
@@ -256,10 +256,11 @@ class Tit
|
|
256
256
|
end
|
257
257
|
|
258
258
|
response = @access_token.post(URLS[:new_direct_message], payload)
|
259
|
+
puts response
|
259
260
|
|
260
261
|
# Check the response for errors
|
261
262
|
Nokogiri.XML(response).xpath("//hash").map do |xml|
|
262
|
-
if
|
263
|
+
if xml.at_xpath("./error")
|
263
264
|
abort("you cannot send a dm to someone who doesn't follow you")
|
264
265
|
end
|
265
266
|
end
|
data/tit.gemspec
CHANGED