tit 2.1.0 → 2.1.5

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.
data/ChangeLog.markdown CHANGED
@@ -1,3 +1,7 @@
1
+ # tit 2.1.5 2011-09-12
2
+
3
+ *
4
+
1
5
  # tit 2.1.0 2011-09-10
2
6
 
3
7
  * got direct messaging working -- requires reauthorization
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 2
3
3
  :minor: 1
4
- :patch: 0
4
+ :patch: 5
data/bin/tit CHANGED
@@ -48,7 +48,6 @@ def main
48
48
  options[:payload] ||= {}
49
49
  options[:payload]["screen_name"] = user
50
50
  else
51
- puts "Displaying dms."
52
51
  options[:action] = :direct_messages
53
52
  end
54
53
  end
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, 0]
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 not xml.at_xpath("./error").content.eql?("")
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{tit}
8
- s.version = "2.1.0"
8
+ s.version = "2.1.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Leif Walsh", "Parker Moore"]
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: tit
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.1.0
5
+ version: 2.1.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Leif Walsh