tit 1.1.0 → 1.1.1

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.
@@ -1,3 +1,7 @@
1
+ # tit 1.1.1 2010-01-23
2
+
3
+ * fixed displaying yourself
4
+
1
5
  # tit 1.1.0 2010-01-23
2
6
 
3
7
  * moved to oauth for chris
@@ -1,5 +1,5 @@
1
1
  ---
2
- :patch: 0
2
+ :patch: 1
3
3
  :minor: 1
4
4
  :major: 1
5
5
  :build:
data/lib/tit.rb CHANGED
@@ -103,6 +103,7 @@ class Tit
103
103
  begin
104
104
  @access_token = File.open(ATFILE, "r") do |at|
105
105
  params = YAML.load(at)
106
+ @userid = params[:screen_name]
106
107
  OAuth::AccessToken.from_hash(@consumer, params)
107
108
  end
108
109
  rescue Errno::ENOENT => e
@@ -176,7 +177,7 @@ class Tit
176
177
  end
177
178
 
178
179
  def show_tit(status)
179
- person = if status[:userid].eql? @username
180
+ person = if status[:userid].eql? @userid
180
181
  "you"
181
182
  else
182
183
  "#{status[:username]} (#{status[:userid]})"
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{tit}
8
- s.version = "1.1.0"
8
+ s.version = "1.1.1"
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"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leif Walsh